fumadocs-openapi 5.11.5 → 5.11.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/dist/ui/{client-client-B0hpK9b7.js → client-client-B06fJG48.js} +4 -4
- package/dist/ui/{fetcher-CsyGTBlt.js → fetcher-Cc3BieIx.js} +1 -1
- package/dist/ui/{index-client-D_ZwIB_V.js → index-client-DPqAL2w9.js} +2 -2
- package/dist/ui/index.js +2 -2
- package/dist/ui/{server-select-client-prQnF0hV.js → server-select-client-CtG30byb.js} +2 -2
- package/package.json +9 -9
|
@@ -5,7 +5,7 @@ import { cn, useCopyButton, buttonVariants } from 'fumadocs-ui/components/api';
|
|
|
5
5
|
import dynamic from 'next/dynamic';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
|
-
* @license lucide-react v0.
|
|
8
|
+
* @license lucide-react v0.473.0 - ISC
|
|
9
9
|
*
|
|
10
10
|
* This source code is licensed under the ISC license.
|
|
11
11
|
* See the LICENSE file in the root directory of this source tree.
|
|
@@ -15,7 +15,7 @@ const mergeClasses = (...classes)=>classes.filter((className, index, array)=>{
|
|
|
15
15
|
}).join(" ").trim();
|
|
16
16
|
|
|
17
17
|
/**
|
|
18
|
-
* @license lucide-react v0.
|
|
18
|
+
* @license lucide-react v0.473.0 - ISC
|
|
19
19
|
*
|
|
20
20
|
* This source code is licensed under the ISC license.
|
|
21
21
|
* See the LICENSE file in the root directory of this source tree.
|
|
@@ -320,8 +320,8 @@ function useSchemaContext() {
|
|
|
320
320
|
return ctx;
|
|
321
321
|
}
|
|
322
322
|
|
|
323
|
-
const APIPlayground = dynamic(()=>import('./index-client-
|
|
324
|
-
const ServerSelect = dynamic(()=>import('./server-select-client-
|
|
323
|
+
const APIPlayground = dynamic(()=>import('./index-client-DPqAL2w9.js').then(function (n) { return n.i; }).then((mod)=>mod.APIPlayground));
|
|
324
|
+
const ServerSelect = dynamic(()=>import('./server-select-client-CtG30byb.js'));
|
|
325
325
|
function Root({ children, baseUrl, className, shikiOptions, servers, ...props }) {
|
|
326
326
|
return /*#__PURE__*/ jsx("div", {
|
|
327
327
|
className: cn('flex flex-col gap-24 text-sm text-fd-muted-foreground', className),
|
|
@@ -5,7 +5,7 @@ import { forwardRef, useId, createContext, useContext, useState, useCallback, us
|
|
|
5
5
|
import { FormProvider, Controller, useFormContext, useFieldArray, useForm, useWatch } from 'react-hook-form';
|
|
6
6
|
import { Collapsible, CollapsibleTrigger, CollapsibleContent } from 'fumadocs-ui/components/ui/collapsible';
|
|
7
7
|
import { cn, buttonVariants } from 'fumadocs-ui/components/api';
|
|
8
|
-
import { C as ChevronDown, a as Check, b as ChevronUp, u as useSchemaContext, T as Trash2, P as Plus, c as CircleCheck, d as CircleX, e as useApiContext, S as SchemaContext, g as getUrl } from './client-client-
|
|
8
|
+
import { C as ChevronDown, a as Check, b as ChevronUp, u as useSchemaContext, T as Trash2, P as Plus, c as CircleCheck, d as CircleX, e as useApiContext, S as SchemaContext, g as getUrl } from './client-client-B06fJG48.js';
|
|
9
9
|
import { Slot } from '@radix-ui/react-slot';
|
|
10
10
|
import { cva } from 'class-variance-authority';
|
|
11
11
|
import { useOnChange } from 'fumadocs-core/utils/use-on-change';
|
|
@@ -739,7 +739,7 @@ function APIPlayground({ route, method = 'GET', authorization, path = [], header
|
|
|
739
739
|
}
|
|
740
740
|
});
|
|
741
741
|
const testQuery = useQuery(async (input)=>{
|
|
742
|
-
const fetcher = await import('./fetcher-
|
|
742
|
+
const fetcher = await import('./fetcher-Cc3BieIx.js').then((mod)=>mod.createBrowserFetcher(body, schemas));
|
|
743
743
|
const serverUrl = serverRef.current ? getUrl(serverRef.current.url, serverRef.current.variables) : window.location.origin;
|
|
744
744
|
let url = `${serverUrl}${createPathnameFromInput(route, input.path, input.query)}`;
|
|
745
745
|
if (proxyUrl) {
|
package/dist/ui/index.js
CHANGED
|
@@ -3,8 +3,8 @@ import { cn } from 'fumadocs-ui/components/api';
|
|
|
3
3
|
import { Fragment } from 'react';
|
|
4
4
|
import { Accordions, Accordion } from 'fumadocs-ui/components/accordion';
|
|
5
5
|
import { cva } from 'class-variance-authority';
|
|
6
|
-
import { h as CopyRouteButton, i as ServerSelect } from './client-client-
|
|
7
|
-
export { A as APIPlayground, R as Root, u as useSchemaContext } from './client-client-
|
|
6
|
+
import { h as CopyRouteButton, i as ServerSelect } from './client-client-B06fJG48.js';
|
|
7
|
+
export { A as APIPlayground, R as Root, u as useSchemaContext } from './client-client-B06fJG48.js';
|
|
8
8
|
|
|
9
9
|
const badgeVariants = cva('rounded-xl border px-1.5 py-1 text-xs font-medium leading-[12px]', {
|
|
10
10
|
variants: {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
3
|
-
import { e as useApiContext, f as useServerSelectContext, C as ChevronDown } from './client-client-
|
|
3
|
+
import { e as useApiContext, f as useServerSelectContext, C as ChevronDown } from './client-client-B06fJG48.js';
|
|
4
4
|
import { Collapsible, CollapsibleTrigger, CollapsibleContent } from 'fumadocs-ui/components/ui/collapsible';
|
|
5
|
-
import { S as Select, a as SelectTrigger, b as SelectValue, c as SelectContent, d as SelectItem, I as Input } from './index-client-
|
|
5
|
+
import { S as Select, a as SelectTrigger, b as SelectValue, c as SelectContent, d as SelectItem, I as Input } from './index-client-DPqAL2w9.js';
|
|
6
6
|
|
|
7
7
|
function ServerSelect() {
|
|
8
8
|
const { servers } = useApiContext();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "fumadocs-openapi",
|
|
3
|
-
"version": "5.11.
|
|
3
|
+
"version": "5.11.6",
|
|
4
4
|
"description": "Generate MDX docs for your OpenAPI spec",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"NextJs",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"@fumari/json-schema-to-typescript": "^1.1.2",
|
|
35
35
|
"@radix-ui/react-select": "^2.1.4",
|
|
36
36
|
"@radix-ui/react-slot": "^1.1.1",
|
|
37
|
-
"@scalar/openapi-parser": "0.10.
|
|
37
|
+
"@scalar/openapi-parser": "0.10.4",
|
|
38
38
|
"ajv-draft-04": "^1.0.0",
|
|
39
39
|
"class-variance-authority": "^0.7.1",
|
|
40
40
|
"fast-glob": "^3.3.3",
|
|
@@ -45,19 +45,19 @@
|
|
|
45
45
|
"react-hook-form": "^7.54.2",
|
|
46
46
|
"remark": "^15.0.1",
|
|
47
47
|
"remark-rehype": "^11.1.1",
|
|
48
|
-
"shiki": "^1.27.
|
|
48
|
+
"shiki": "^1.27.2",
|
|
49
49
|
"xml-js": "^1.6.11",
|
|
50
|
-
"fumadocs-core": "14.7.
|
|
51
|
-
"fumadocs-ui": "14.7.
|
|
50
|
+
"fumadocs-core": "14.7.5",
|
|
51
|
+
"fumadocs-ui": "14.7.5"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
54
|
"@types/js-yaml": "^4.0.9",
|
|
55
|
-
"@types/node": "22.10.
|
|
55
|
+
"@types/node": "22.10.7",
|
|
56
56
|
"@types/openapi-sampler": "^1.0.3",
|
|
57
57
|
"@types/react": "^19.0.7",
|
|
58
|
-
"bunchee": "^6.3.
|
|
59
|
-
"lucide-react": "^0.
|
|
60
|
-
"next": "15.1.
|
|
58
|
+
"bunchee": "^6.3.2",
|
|
59
|
+
"lucide-react": "^0.473.0",
|
|
60
|
+
"next": "15.1.5",
|
|
61
61
|
"openapi-types": "^12.1.3",
|
|
62
62
|
"eslint-config-custom": "0.0.0",
|
|
63
63
|
"tsconfig": "0.0.0"
|