fumadocs-openapi 9.1.1 → 9.1.3
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.
|
@@ -85,7 +85,7 @@ function DynamicProperties({ fieldName, filterKey = () => true, getType = () =>
|
|
|
85
85
|
setProperties((p) => p.filter((prop) => prop !== item));
|
|
86
86
|
control.unregister(`${fieldName}.${item}`);
|
|
87
87
|
}, children: _jsx(Trash2, {}) }) }, item));
|
|
88
|
-
}), _jsxs("div", { className: "flex gap-2", children: [_jsx(Input, { value: nextName, placeholder: "Enter Property Name", onChange: (e) => setNextName(e.target.value), onKeyDown: (e) => {
|
|
88
|
+
}), _jsxs("div", { className: "flex gap-2 col-span-full", children: [_jsx(Input, { value: nextName, placeholder: "Enter Property Name", onChange: (e) => setNextName(e.target.value), onKeyDown: (e) => {
|
|
89
89
|
if (e.key === 'Enter') {
|
|
90
90
|
onAppend();
|
|
91
91
|
e.preventDefault();
|
|
@@ -87,7 +87,7 @@ async function ResponseAccordion({ status, operation, ctx, }) {
|
|
|
87
87
|
const contentTypes = response.content
|
|
88
88
|
? Object.entries(response.content)
|
|
89
89
|
: null;
|
|
90
|
-
return (_jsxs(SelectTabs, { defaultValue: contentTypes?.[0][0], children: [_jsxs(AccordionHeader, { children: [_jsx(AccordionTrigger, { className: "font-mono", children: status }), contentTypes && (_jsx(SelectTabTrigger, { items: contentTypes.map((v) => v[0]) }))] }), _jsxs(AccordionContent, { children: [response.description && (_jsx("div", { className: "prose-no-margin", children: _jsx(Markdown, { text: response.description }) })), contentTypes?.map(async ([type, resType]) => {
|
|
90
|
+
return (_jsxs(SelectTabs, { defaultValue: contentTypes?.[0][0], children: [_jsxs(AccordionHeader, { children: [_jsx(AccordionTrigger, { className: "font-mono", children: status }), contentTypes && (_jsx(SelectTabTrigger, { items: contentTypes.map((v) => v[0]) }))] }), _jsxs(AccordionContent, { className: "ps-4.5", children: [response.description && (_jsx("div", { className: "prose-no-margin", children: _jsx(Markdown, { text: response.description }) })), contentTypes?.map(async ([type, resType]) => {
|
|
91
91
|
const schema = resType.schema;
|
|
92
92
|
let ts;
|
|
93
93
|
if (generateTypeScriptSchema) {
|
|
@@ -96,7 +96,7 @@ async function ResponseAccordion({ status, operation, ctx, }) {
|
|
|
96
96
|
else if (generateTypeScriptSchema === undefined && schema) {
|
|
97
97
|
ts = await getTypescriptSchema(schema, dereferenceMap);
|
|
98
98
|
}
|
|
99
|
-
return (_jsxs(SelectTab, { value: type, className: "
|
|
99
|
+
return (_jsxs(SelectTab, { value: type, className: "my-2", children: [ts && _jsx(CopyResponseTypeScript, { code: ts }), schema && (_jsx("div", { className: "border px-3 py-2 rounded-lg overflow-auto max-h-[400px]", children: _jsx(Schema, { name: "response", schema: schema, as: "body", readOnly: true, ctx: ctx }) }))] }, type));
|
|
100
100
|
})] })] }));
|
|
101
101
|
}
|
|
102
102
|
function WebhookCallback({ callback, ctx, headingLevel, }) {
|
|
@@ -10,7 +10,7 @@ export function AccordionItem(props) {
|
|
|
10
10
|
return (_jsx(Primitive.Item, { ...props, className: cn('scroll-m-20', props.className), children: props.children }));
|
|
11
11
|
}
|
|
12
12
|
export function AccordionContent(props) {
|
|
13
|
-
return (_jsx(Primitive.Content, { ...props, className: cn('overflow-hidden
|
|
13
|
+
return (_jsx(Primitive.Content, { ...props, className: cn('overflow-hidden data-[state=closed]:animate-fd-accordion-up data-[state=open]:animate-fd-accordion-down', props.className), children: props.children }));
|
|
14
14
|
}
|
|
15
15
|
export function AccordionHeader(props) {
|
|
16
16
|
return (_jsx(Primitive.Header, { ...props, className: cn('not-prose flex py-2 text-fd-foreground font-medium', props.className), children: props.children }));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "fumadocs-openapi",
|
|
3
|
-
"version": "9.1.
|
|
3
|
+
"version": "9.1.3",
|
|
4
4
|
"description": "Generate MDX docs for your OpenAPI spec",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"NextJs",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"@radix-ui/react-dialog": "^1.1.14",
|
|
51
51
|
"@radix-ui/react-select": "^2.2.5",
|
|
52
52
|
"@radix-ui/react-slot": "^1.2.3",
|
|
53
|
-
"@scalar/openapi-parser": "0.18.
|
|
53
|
+
"@scalar/openapi-parser": "0.18.1",
|
|
54
54
|
"ajv": "^8.17.1",
|
|
55
55
|
"class-variance-authority": "^0.7.1",
|
|
56
56
|
"github-slugger": "^2.0.0",
|
|
@@ -58,23 +58,23 @@
|
|
|
58
58
|
"js-yaml": "^4.1.0",
|
|
59
59
|
"next-themes": "^0.4.6",
|
|
60
60
|
"openapi-sampler": "^1.6.1",
|
|
61
|
-
"react-hook-form": "^7.
|
|
61
|
+
"react-hook-form": "^7.60.0",
|
|
62
62
|
"remark": "^15.0.1",
|
|
63
63
|
"remark-rehype": "^11.1.2",
|
|
64
|
-
"shiki": "^3.
|
|
64
|
+
"shiki": "^3.8.0",
|
|
65
65
|
"tinyglobby": "^0.2.14",
|
|
66
66
|
"xml-js": "^1.6.11",
|
|
67
|
-
"fumadocs-core": "15.6.
|
|
68
|
-
"fumadocs-ui": "15.6.
|
|
67
|
+
"fumadocs-core": "15.6.4",
|
|
68
|
+
"fumadocs-ui": "15.6.4"
|
|
69
69
|
},
|
|
70
70
|
"devDependencies": {
|
|
71
|
-
"@scalar/api-client-react": "^1.3.
|
|
71
|
+
"@scalar/api-client-react": "^1.3.22",
|
|
72
72
|
"@types/js-yaml": "^4.0.9",
|
|
73
|
-
"@types/node": "24.0.
|
|
73
|
+
"@types/node": "24.0.13",
|
|
74
74
|
"@types/openapi-sampler": "^1.0.3",
|
|
75
75
|
"@types/react": "^19.1.8",
|
|
76
76
|
"json-schema-typed": "^8.0.1",
|
|
77
|
-
"next": "15.
|
|
77
|
+
"next": "15.4.1",
|
|
78
78
|
"openapi-types": "^12.1.3",
|
|
79
79
|
"tailwindcss": "^4.1.11",
|
|
80
80
|
"tsc-alias": "^1.8.16",
|