fumadocs-openapi 6.0.0 → 6.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/scalar/{client-client-DgnHaOQ3.js → client-client-BXAjVueF.js} +1 -1
- package/dist/scalar/index.js +1 -1
- package/dist/ui/{client-client-CpwKrzlY.js → client-client-CYO00OiB.js} +1 -1
- package/dist/ui/{fetcher-Cey1qI8X.js → fetcher-CsHhplmD.js} +1 -1
- package/dist/ui/{index-client-CehDtJk-.js → index-client-BUeWwFWK.js} +4 -4
- package/dist/ui/index.js +2 -2
- package/dist/ui/{server-select-client-CbFencmM.js → server-select-client-Ct_HJ46K.js} +2 -2
- package/package.json +3 -3
package/dist/scalar/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx } from 'react/jsx-runtime';
|
|
2
2
|
import dynamic from 'next/dynamic';
|
|
3
3
|
|
|
4
|
-
const Client = dynamic(()=>import('./client-client-
|
|
4
|
+
const Client = dynamic(()=>import('./client-client-BXAjVueF.js'));
|
|
5
5
|
function APIPlayground({ path, method, ctx }) {
|
|
6
6
|
return /*#__PURE__*/ jsx(Client, {
|
|
7
7
|
method: method.method,
|
|
@@ -90,7 +90,7 @@ function useSchemaContext() {
|
|
|
90
90
|
return ctx;
|
|
91
91
|
}
|
|
92
92
|
|
|
93
|
-
const APIPlayground = dynamic(()=>import('./index-client-
|
|
93
|
+
const APIPlayground = dynamic(()=>import('./index-client-BUeWwFWK.js').then(function (n) { return n.i; }).then((mod)=>mod.APIPlayground));
|
|
94
94
|
function Root({ children, baseUrl, className, shikiOptions, servers, ...props }) {
|
|
95
95
|
return /*#__PURE__*/ jsx("div", {
|
|
96
96
|
className: cn('flex flex-col gap-24 text-sm text-fd-muted-foreground', className),
|
|
@@ -4,11 +4,11 @@ import { forwardRef, createElement, useState, useMemo, useRef, useEffect, Fragme
|
|
|
4
4
|
import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
5
5
|
import { useFormContext, Controller, useFieldArray, useForm, FormProvider } from 'react-hook-form';
|
|
6
6
|
import { cn, buttonVariants } from 'fumadocs-ui/components/api';
|
|
7
|
-
import { u as useSchemaContext, a as useApiContext, S as SchemaContext } from './client-client-
|
|
7
|
+
import { u as useSchemaContext, a as useApiContext, S as SchemaContext } from './client-client-CYO00OiB.js';
|
|
8
8
|
import * as SelectPrimitive from '@radix-ui/react-select';
|
|
9
9
|
import { cva } from 'class-variance-authority';
|
|
10
10
|
import { DynamicCodeBlock } from 'fumadocs-ui/components/dynamic-codeblock';
|
|
11
|
-
import { S as ServerSelect } from './server-select-client-
|
|
11
|
+
import { S as ServerSelect } from './server-select-client-Ct_HJ46K.js';
|
|
12
12
|
import { Collapsible, CollapsibleTrigger, CollapsibleContent } from 'fumadocs-ui/components/ui/collapsible';
|
|
13
13
|
|
|
14
14
|
/**
|
|
@@ -225,7 +225,7 @@ const Trash2 = createLucideIcon("Trash2", __iconNode);
|
|
|
225
225
|
function getDefaultValue(item, references) {
|
|
226
226
|
if (item.type === 'object') return Object.fromEntries(Object.entries(item.properties).map(([key, prop])=>[
|
|
227
227
|
key,
|
|
228
|
-
getDefaultValue(references[prop.schema], references)
|
|
228
|
+
getDefaultValue(prop.type === 'ref' ? references[prop.schema] : prop, references)
|
|
229
229
|
]));
|
|
230
230
|
if (item.type === 'array') return [];
|
|
231
231
|
if (item.type === 'null') return null;
|
|
@@ -840,7 +840,7 @@ function APIPlayground({ route, method = 'GET', authorization, path = [], header
|
|
|
840
840
|
}
|
|
841
841
|
});
|
|
842
842
|
const testQuery = useQuery(async (input)=>{
|
|
843
|
-
const fetcher = await import('./fetcher-
|
|
843
|
+
const fetcher = await import('./fetcher-CsHhplmD.js').then((mod)=>mod.createBrowserFetcher(body, schemas));
|
|
844
844
|
const query = {
|
|
845
845
|
...input.query
|
|
846
846
|
};
|
package/dist/ui/index.js
CHANGED
|
@@ -2,8 +2,8 @@ import { jsx, jsxs } from 'react/jsx-runtime';
|
|
|
2
2
|
import { cn, buttonVariants } from 'fumadocs-ui/components/api';
|
|
3
3
|
import { cva } from 'class-variance-authority';
|
|
4
4
|
import { Collapsible, CollapsibleTrigger, CollapsibleContent } from 'fumadocs-ui/components/ui/collapsible';
|
|
5
|
-
export { A as APIPlayground, R as Root, u as useSchemaContext } from './client-client-
|
|
6
|
-
import { C as ChevronDown } from './index-client-
|
|
5
|
+
export { A as APIPlayground, R as Root, u as useSchemaContext } from './client-client-CYO00OiB.js';
|
|
6
|
+
import { C as ChevronDown } from './index-client-BUeWwFWK.js';
|
|
7
7
|
|
|
8
8
|
const badgeVariants = cva('rounded-xl border px-1.5 py-1 text-xs font-medium leading-[12px]', {
|
|
9
9
|
variants: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
3
|
-
import { a as useApiContext, b as useServerSelectContext } from './client-client-
|
|
4
|
-
import { S as Select, a as SelectTrigger, b as SelectValue, c as SelectContent, d as SelectItem, l as labelVariants, I as Input } from './index-client-
|
|
3
|
+
import { a as useApiContext, b as useServerSelectContext } from './client-client-CYO00OiB.js';
|
|
4
|
+
import { S as Select, a as SelectTrigger, b as SelectValue, c as SelectContent, d as SelectItem, l as labelVariants, I as Input } from './index-client-BUeWwFWK.js';
|
|
5
5
|
import { cn } from 'fumadocs-ui/components/api';
|
|
6
6
|
|
|
7
7
|
function ServerSelect(props) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "fumadocs-openapi",
|
|
3
|
-
"version": "6.0.
|
|
3
|
+
"version": "6.0.1",
|
|
4
4
|
"description": "Generate MDX docs for your OpenAPI spec",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"NextJs",
|
|
@@ -66,8 +66,8 @@
|
|
|
66
66
|
"next": "15.1.6",
|
|
67
67
|
"openapi-types": "^12.1.3",
|
|
68
68
|
"tailwindcss": "^4.0.2",
|
|
69
|
-
"
|
|
70
|
-
"
|
|
69
|
+
"eslint-config-custom": "0.0.0",
|
|
70
|
+
"tsconfig": "0.0.0"
|
|
71
71
|
},
|
|
72
72
|
"peerDependencies": {
|
|
73
73
|
"@scalar/api-client-react": "*",
|