fumadocs-openapi 7.0.12 → 7.0.14
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/generate-file.d.ts.map +1 -1
- package/dist/generate-file.js +10 -12
- package/dist/playground/auth/oauth-dialog.js +1 -1
- package/dist/playground/client.d.ts.map +1 -1
- package/dist/playground/client.js +2 -1
- package/dist/playground/inputs.d.ts.map +1 -1
- package/dist/playground/inputs.js +2 -1
- package/dist/render/operation/index.d.ts.map +1 -1
- package/dist/render/operation/index.js +1 -1
- package/dist/scalar/client.js +1 -1
- package/dist/ui/components/dialog.d.ts.map +1 -1
- package/dist/ui/components/dialog.js +1 -1
- package/dist/ui/components/input.js +1 -1
- package/dist/ui/components/method-label.js +1 -1
- package/dist/ui/components/select.js +1 -1
- package/dist/ui/contexts/code-example.lazy.d.ts.map +1 -1
- package/dist/ui/index.d.ts.map +1 -1
- package/dist/ui/index.js +2 -1
- package/dist/ui/server-select.js +1 -1
- package/package.json +6 -6
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generate-file.d.ts","sourceRoot":"","sources":["../src/generate-file.ts"],"names":[],"mappings":"AAGA,OAAO,EAEL,KAAK,eAAe,EAErB,MAAM,YAAY,CAAC;AAGpB,MAAM,WAAW,MAAO,SAAQ,eAAe;IAC7C;;OAEG;IACH,KAAK,EAAE,MAAM,EAAE,GAAG,MAAM,CAAC;IAEzB;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;;;;;OAMG;IACH,GAAG,CAAC,EAAE,KAAK,GAAG,MAAM,GAAG,WAAW,CAAC;IAEnC;;OAEG;IACH,IAAI,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,GAAG,KAAK,EAAE,IAAI,EAAE,MAAM,KAAK,MAAM,CAAC;IAEtD;;;;;OAKG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IAExB;;;;OAIG;IACH,OAAO,CAAC,EAAE,KAAK,GAAG,OAAO,GAAG,MAAM,CAAC;CACpC;AAED,wBAAsB,aAAa,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,
|
|
1
|
+
{"version":3,"file":"generate-file.d.ts","sourceRoot":"","sources":["../src/generate-file.ts"],"names":[],"mappings":"AAGA,OAAO,EAEL,KAAK,eAAe,EAErB,MAAM,YAAY,CAAC;AAGpB,MAAM,WAAW,MAAO,SAAQ,eAAe;IAC7C;;OAEG;IACH,KAAK,EAAE,MAAM,EAAE,GAAG,MAAM,CAAC;IAEzB;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;;;;;OAMG;IACH,GAAG,CAAC,EAAE,KAAK,GAAG,MAAM,GAAG,WAAW,CAAC;IAEnC;;OAEG;IACH,IAAI,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,GAAG,KAAK,EAAE,IAAI,EAAE,MAAM,KAAK,MAAM,CAAC;IAEtD;;;;;OAKG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IAExB;;;;OAIG;IACH,OAAO,CAAC,EAAE,KAAK,GAAG,OAAO,GAAG,MAAM,CAAC;CACpC;AAED,wBAAsB,aAAa,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAiIlE"}
|
package/dist/generate-file.js
CHANGED
|
@@ -38,16 +38,13 @@ export async function generateFiles(options) {
|
|
|
38
38
|
}
|
|
39
39
|
const outPaths = [];
|
|
40
40
|
if (groupBy === 'tag') {
|
|
41
|
-
|
|
42
|
-
if (tags
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
}
|
|
41
|
+
let tags = result.operation.tags;
|
|
42
|
+
if (!tags || tags.length === 0) {
|
|
43
|
+
console.warn('When `groupBy` is set to `tag`, make sure a `tags` is defined for every operation schema.');
|
|
44
|
+
tags = ['unknown'];
|
|
46
45
|
}
|
|
47
|
-
|
|
48
|
-
outPaths.push(
|
|
49
|
-
? join(outputDir, `${file}.mdx`)
|
|
50
|
-
: join(outputDir, 'webhooks', `${file}.mdx`));
|
|
46
|
+
for (const tag of tags) {
|
|
47
|
+
outPaths.push(join(outputDir, getFilename(tag), `${file}.mdx`));
|
|
51
48
|
}
|
|
52
49
|
}
|
|
53
50
|
else {
|
|
@@ -76,15 +73,16 @@ export async function generateFiles(options) {
|
|
|
76
73
|
if (per === 'operation') {
|
|
77
74
|
const results = await generatePages(pathOrUrl, options);
|
|
78
75
|
for (const result of results) {
|
|
79
|
-
|
|
76
|
+
const outputPaths = getOutputPaths(result);
|
|
77
|
+
await Promise.all(outputPaths.map(async (outPath) => {
|
|
80
78
|
await write(outPath, result.content);
|
|
81
|
-
console.log(`Generated: ${outPath}`);
|
|
82
79
|
if (groupBy === 'route' && result.pathItem.summary) {
|
|
83
80
|
await writeMetafile(join(dirname(outPath), 'meta.json'), {
|
|
84
81
|
title: result.pathItem.summary,
|
|
85
82
|
});
|
|
86
83
|
}
|
|
87
|
-
}
|
|
84
|
+
}));
|
|
85
|
+
console.log(`Generated: ${outputPaths.join(', ')}`);
|
|
88
86
|
}
|
|
89
87
|
}
|
|
90
88
|
if (per === 'tag') {
|
|
@@ -4,7 +4,7 @@ import { useForm } from 'react-hook-form';
|
|
|
4
4
|
import { Input, labelVariants } from '../../ui/components/input.js';
|
|
5
5
|
import { useQuery } from '../../utils/use-query.js';
|
|
6
6
|
import { useEffect, useState } from 'react';
|
|
7
|
-
import { cn } from 'fumadocs-ui/
|
|
7
|
+
import { cn } from 'fumadocs-ui/utils/cn';
|
|
8
8
|
import { buttonVariants } from 'fumadocs-ui/components/ui/button';
|
|
9
9
|
export function OauthDialog({ flow, scheme, setToken, children, }) {
|
|
10
10
|
const [open, setOpen] = useState(false);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../src/playground/client.tsx"],"names":[],"mappings":"AACA,OAAO,EACL,KAAK,YAAY,EACjB,KAAK,cAAc,EAInB,KAAK,EAAE,EAGP,KAAK,SAAS,EAIf,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iBAAiB,CAIpD;AAkBD,MAAM,CAAC,OAAO,UAAU,MAAM,CAAC,EAC7B,KAAK,EACL,MAAc,EACd,aAAa,EACb,UAAU,EACV,IAAI,EACJ,MAAM,EACN,UAAU,EACV,QAAQ,EACR,UAAU,EAAE,EAAE,aAAoC,EAAO,EACzD,GAAG,IAAI,EACR,EAAE,WAAW,2CAuHb"}
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
3
3
|
import { useMemo, useRef, useEffect, Fragment, createContext, useContext, useState, } from 'react';
|
|
4
4
|
import { Controller, FormProvider, useForm, useFormContext, } from 'react-hook-form';
|
|
5
|
-
import { cn, buttonVariants } from 'fumadocs-ui/components/api';
|
|
6
5
|
import { useApiContext, useServerSelectContext } from '../ui/contexts/api.js';
|
|
7
6
|
import { FieldSet, ObjectInput } from './inputs.js';
|
|
8
7
|
import { getStatusInfo } from './status-info.js';
|
|
@@ -16,6 +15,8 @@ import { ChevronDown, Loader2 } from 'lucide-react';
|
|
|
16
15
|
import { OauthDialog, OauthDialogTrigger, } from '../playground/auth/oauth-dialog.js';
|
|
17
16
|
import { useRequestData } from '../ui/contexts/code-example.js';
|
|
18
17
|
import { useEffectEvent } from 'fumadocs-core/utils/use-effect-event';
|
|
18
|
+
import { buttonVariants } from 'fumadocs-ui/components/ui/button';
|
|
19
|
+
import { cn } from 'fumadocs-ui/utils/cn';
|
|
19
20
|
const SchemaContext = createContext(undefined);
|
|
20
21
|
export function useSchemaContext() {
|
|
21
22
|
const ctx = useContext(SchemaContext);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inputs.d.ts","sourceRoot":"","sources":["../../src/playground/inputs.tsx"],"names":[],"mappings":"AACA,OAAO,EACL,KAAK,cAAc,EAEnB,KAAK,SAAS,EAEf,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"inputs.d.ts","sourceRoot":"","sources":["../../src/playground/inputs.tsx"],"names":[],"mappings":"AACA,OAAO,EACL,KAAK,cAAc,EAEnB,KAAK,SAAS,EAEf,MAAM,OAAO,CAAC;AAUf,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAQxD,KAAK,WAAW,CAAC,IAAI,IAAI,OAAO,CAAC,aAAa,EAAE;IAAE,IAAI,EAAE,IAAI,CAAA;CAAE,CAAC,CAAC;AA6BhE,wBAAgB,WAAW,CAAC,EAC1B,KAAK,EACL,SAAS,EACT,GAAG,KAAK,EACT,EAAE;IACD,KAAK,EAAE,WAAW,CAAC,QAAQ,CAAC,CAAC;IAC7B,SAAS,EAAE,MAAM,CAAC;CACnB,GAAG,cAAc,CAAC,cAAc,CAAC,2CAqBjC;AA+ID,wBAAgB,UAAU,CAAC,EACzB,KAAK,EACL,SAAS,EACT,GAAG,KAAK,EACT,EAAE,cAAc,CAAC,WAAW,CAAC,GAAG;IAC/B,KAAK,EAAE,OAAO,CAAC,aAAa,EAAE;QAAE,IAAI,EAAE,UAAU,CAAA;KAAE,CAAC,CAAC;IACpD,SAAS,EAAE,MAAM,CAAC;CACnB,kDAmGA;AAED,wBAAgB,QAAQ,CAAC,EACvB,KAAK,EACL,SAAS,EACT,OAAO,EACP,IAAI,EACJ,GAAG,KAAK,EACT,EAAE,cAAc,CAAC,WAAW,CAAC,GAAG;IAC/B,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,KAAK,EAAE,aAAa,CAAC;IACrB,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,SAAS,CAAC;CACrB,kDAgGA"}
|
|
@@ -3,12 +3,13 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
|
|
|
3
3
|
import { useState, } from 'react';
|
|
4
4
|
import { Plus, Trash2 } from 'lucide-react';
|
|
5
5
|
import { Controller, useFieldArray, useFormContext } from 'react-hook-form';
|
|
6
|
-
import { cn, buttonVariants } from 'fumadocs-ui/components/api';
|
|
7
6
|
import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue, } from '../ui/components/select.js';
|
|
8
7
|
import { resolve } from '../playground/resolve.js';
|
|
9
8
|
import { Input, labelVariants } from '../ui/components/input.js';
|
|
10
9
|
import { getDefaultValue } from './get-default-values.js';
|
|
11
10
|
import { useSchemaContext } from './client.js';
|
|
11
|
+
import { cn } from 'fumadocs-ui/utils/cn';
|
|
12
|
+
import { buttonVariants } from 'fumadocs-ui/components/ui/button';
|
|
12
13
|
function FieldHeader({ name, required = false, type, ...props }) {
|
|
13
14
|
return (_jsxs("label", { ...props, className: cn('w-full inline-flex items-center gap-1', props.className), children: [_jsx("span", { className: cn(labelVariants()), children: name }), required ? _jsx("span", { className: "text-red-500", children: "*" }) : null, _jsx("div", { className: "flex-1" }), type ? (_jsx("code", { className: "text-xs text-fd-muted-foreground", children: type })) : null, props.children] }));
|
|
14
15
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/render/operation/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAY,KAAK,YAAY,EAAkB,MAAM,OAAO,CAAC;AACpE,OAAO,KAAK,EAEV,iBAAiB,EAEjB,aAAa,EAEd,MAAM,SAAS,CAAC;AAgBjB,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEtD,MAAM,WAAW,UAAU;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EACH,MAAM,GACN,CAAC,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,WAAW,KAAK,MAAM,GAAG,SAAS,CAAC,GACxD,KAAK,CAAC;CACX;AASD,wBAAgB,SAAS,CAAC,EACxB,IAAkB,EAClB,IAAI,EACJ,MAAM,EACN,GAAG,EACH,OAAO,EACP,YAAgB,GACjB,EAAE;IACD,IAAI,CAAC,EAAE,SAAS,GAAG,WAAW,CAAC;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,iBAAiB,CAAC;IAC1B,GAAG,EAAE,aAAa,CAAC;IAEnB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB,GAAG,YAAY,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/render/operation/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAY,KAAK,YAAY,EAAkB,MAAM,OAAO,CAAC;AACpE,OAAO,KAAK,EAEV,iBAAiB,EAEjB,aAAa,EAEd,MAAM,SAAS,CAAC;AAgBjB,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEtD,MAAM,WAAW,UAAU;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EACH,MAAM,GACN,CAAC,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,WAAW,KAAK,MAAM,GAAG,SAAS,CAAC,GACxD,KAAK,CAAC;CACX;AASD,wBAAgB,SAAS,CAAC,EACxB,IAAkB,EAClB,IAAI,EACJ,MAAM,EACN,GAAG,EACH,OAAO,EACP,YAAgB,GACjB,EAAE;IACD,IAAI,CAAC,EAAE,SAAS,GAAG,WAAW,CAAC;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,iBAAiB,CAAC;IAC1B,GAAG,EAAE,aAAa,CAAC;IAEnB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB,GAAG,YAAY,CAqLf"}
|
|
@@ -25,7 +25,7 @@ export function Operation({ type = 'operation', path, method, ctx, hasHead, head
|
|
|
25
25
|
if (hasHead) {
|
|
26
26
|
const title = method.summary ??
|
|
27
27
|
(method.operationId ? idToTitle(method.operationId) : path);
|
|
28
|
-
headNode = (_jsxs(_Fragment, { children: [heading(headingLevel, title, ctx), method.description ?
|
|
28
|
+
headNode = (_jsxs(_Fragment, { children: [heading(headingLevel, title, ctx), method.description ? _jsx(Markdown, { text: method.description }) : null] }));
|
|
29
29
|
headingLevel++;
|
|
30
30
|
}
|
|
31
31
|
if (body) {
|
package/dist/scalar/client.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
-
import { cn } from 'fumadocs-ui/
|
|
3
|
+
import { cn } from 'fumadocs-ui/utils/cn';
|
|
4
4
|
import { buttonVariants } from 'fumadocs-ui/components/ui/button';
|
|
5
5
|
import { ApiClientModalProvider, useApiClientModal, } from '@scalar/api-client-react';
|
|
6
6
|
import { MethodLabel } from '../ui/components/method-label.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dialog.d.ts","sourceRoot":"","sources":["../../../src/ui/components/dialog.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,eAAe,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"dialog.d.ts","sourceRoot":"","sources":["../../../src/ui/components/dialog.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,eAAe,MAAM,wBAAwB,CAAC;AAI1D,QAAA,MAAM,MAAM,uCAAuB,CAAC;AAEpC,QAAA,MAAM,aAAa,8GAA0B,CAAC;AAE9C,QAAA,MAAM,YAAY,6CAAyB,CAAC;AAE5C,QAAA,MAAM,WAAW,4GAAwB,CAAC;AAE1C,QAAA,MAAM,aAAa,8JAYjB,CAAC;AAGH,QAAA,MAAM,aAAa,8JAqBjB,CAAC;AAGH,QAAA,MAAM,YAAY;8BAGf,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;;CAQtC,CAAC;AAGF,QAAA,MAAM,YAAY;8BAGf,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;;CAQtC,CAAC;AAGF,QAAA,MAAM,WAAW,oKAYf,CAAC;AAGH,QAAA,MAAM,iBAAiB,8KASrB,CAAC;AAGH,OAAO,EACL,MAAM,EACN,YAAY,EACZ,aAAa,EACb,WAAW,EACX,aAAa,EACb,aAAa,EACb,YAAY,EACZ,YAAY,EACZ,WAAW,EACX,iBAAiB,GAClB,CAAC"}
|
|
@@ -3,7 +3,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import * as DialogPrimitive from '@radix-ui/react-dialog';
|
|
5
5
|
import { X } from 'lucide-react';
|
|
6
|
-
import { cn } from 'fumadocs-ui/
|
|
6
|
+
import { cn } from 'fumadocs-ui/utils/cn';
|
|
7
7
|
const Dialog = DialogPrimitive.Root;
|
|
8
8
|
const DialogTrigger = DialogPrimitive.Trigger;
|
|
9
9
|
const DialogPortal = DialogPrimitive.Portal;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
import { cn } from 'fumadocs-ui/
|
|
3
|
+
import { cn } from 'fumadocs-ui/utils/cn';
|
|
4
4
|
import { cva } from 'class-variance-authority';
|
|
5
5
|
export const labelVariants = cva('text-[13px] text-fd-card-foreground peer-disabled:cursor-not-allowed peer-disabled:opacity-70');
|
|
6
6
|
const Input = React.forwardRef(({ className, type, ...props }, ref) => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { cva } from 'class-variance-authority';
|
|
3
|
-
import { cn } from 'fumadocs-ui/
|
|
3
|
+
import { cn } from 'fumadocs-ui/utils/cn';
|
|
4
4
|
export const badgeVariants = cva('font-mono font-medium', {
|
|
5
5
|
variants: {
|
|
6
6
|
color: {
|
|
@@ -2,7 +2,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
import * as SelectPrimitive from '@radix-ui/react-select';
|
|
3
3
|
import { Check, ChevronDown, ChevronUp } from 'lucide-react';
|
|
4
4
|
import { forwardRef } from 'react';
|
|
5
|
-
import { cn } from 'fumadocs-ui/
|
|
5
|
+
import { cn } from 'fumadocs-ui/utils/cn';
|
|
6
6
|
const Select = SelectPrimitive.Root;
|
|
7
7
|
const SelectGroup = SelectPrimitive.Group;
|
|
8
8
|
const SelectValue = SelectPrimitive.Value;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"code-example.lazy.d.ts","sourceRoot":"","sources":["../../../src/ui/contexts/code-example.lazy.tsx"],"names":[],"mappings":"AAGA,eAAO,MAAM,mBAAmB
|
|
1
|
+
{"version":3,"file":"code-example.lazy.d.ts","sourceRoot":"","sources":["../../../src/ui/contexts/code-example.lazy.tsx"],"names":[],"mappings":"AAGA,eAAO,MAAM,mBAAmB;;;;;;;;EAE/B,CAAC;AACF,eAAO,MAAM,WAAW,4EAEvB,CAAC;AACF,eAAO,MAAM,mBAAmB,6EAE/B,CAAC"}
|
package/dist/ui/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/ui/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/ui/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,cAAc,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAE5D,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAWlE,wBAAgB,IAAI,CAAC,EACnB,QAAQ,EACR,OAAO,EACP,SAAS,EACT,YAAY,EACZ,OAAO,EACP,GAAG,KAAK,EACT,EAAE,SAAS,GAAG,cAAc,CAAC,cAAc,CAAC,2CAkB5C;AAED,wBAAgB,OAAO,CAAC,EACtB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,cAAc,CAAC,cAAc,CAAC,2CAMhC;AAED,wBAAgB,GAAG,CAAC,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,cAAc,CAAC,cAAc,CAAC,2CAmBzE;AAED,wBAAgB,QAAQ,CAAC,EACvB,IAAI,EACJ,IAAI,EACJ,QAAQ,EACR,UAAU,EACV,QAAQ,GACT,EAAE,aAAa,2CAsBf;AAED,wBAAgB,UAAU,CAAC,KAAK,EAAE,cAAc,CAAC,cAAc,CAAC,2CAY/D;AAED,wBAAgB,iBAAiB,CAAC,KAAK,EAAE;IACvC,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,SAAS,CAAC;CACrB,2CAiBA"}
|
package/dist/ui/index.js
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { buttonVariants, cn } from 'fumadocs-ui/components/api';
|
|
3
2
|
import { Badge } from '../ui/components/method-label.js';
|
|
4
3
|
import { Collapsible, CollapsibleContent, CollapsibleTrigger, } from 'fumadocs-ui/components/ui/collapsible';
|
|
5
4
|
import { ChevronDown } from 'lucide-react';
|
|
6
5
|
import { ApiProvider } from '../ui/contexts/api.js';
|
|
6
|
+
import { cn } from 'fumadocs-ui/utils/cn';
|
|
7
|
+
import { buttonVariants } from 'fumadocs-ui/components/ui/button';
|
|
7
8
|
export function Root({ children, baseUrl, className, shikiOptions, servers, ...props }) {
|
|
8
9
|
return (_jsx("div", { className: cn('flex flex-col gap-24 text-sm text-fd-muted-foreground', className), ...props, children: _jsx(ApiProvider, { servers: servers, shikiOptions: shikiOptions, defaultBaseUrl: baseUrl, children: children }) }));
|
|
9
10
|
}
|
package/dist/ui/server-select.js
CHANGED
|
@@ -3,7 +3,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
3
3
|
import { useApiContext } from '../ui/contexts/api.js';
|
|
4
4
|
import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue, } from '../ui/components/select.js';
|
|
5
5
|
import { Input, labelVariants } from '../ui/components/input.js';
|
|
6
|
-
import { cn } from 'fumadocs-ui/
|
|
6
|
+
import { cn } from 'fumadocs-ui/utils/cn';
|
|
7
7
|
export default function ServerSelect({ server, onServerChanged, onVariablesChanged, ...props }) {
|
|
8
8
|
const { servers } = useApiContext();
|
|
9
9
|
if (servers.length <= 1)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "fumadocs-openapi",
|
|
3
|
-
"version": "7.0.
|
|
3
|
+
"version": "7.0.14",
|
|
4
4
|
"description": "Generate MDX docs for your OpenAPI spec",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"NextJs",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"@radix-ui/react-dialog": "^1.1.6",
|
|
48
48
|
"@radix-ui/react-select": "^2.1.6",
|
|
49
49
|
"@radix-ui/react-slot": "^1.1.2",
|
|
50
|
-
"@scalar/openapi-parser": "0.10.
|
|
50
|
+
"@scalar/openapi-parser": "0.10.14",
|
|
51
51
|
"ajv-draft-04": "^1.0.0",
|
|
52
52
|
"class-variance-authority": "^0.7.1",
|
|
53
53
|
"fast-glob": "^3.3.3",
|
|
@@ -62,18 +62,18 @@
|
|
|
62
62
|
"remark-rehype": "^11.1.2",
|
|
63
63
|
"shiki": "^3.2.1",
|
|
64
64
|
"xml-js": "^1.6.11",
|
|
65
|
-
"fumadocs-core": "15.2.
|
|
66
|
-
"fumadocs-ui": "15.2.
|
|
65
|
+
"fumadocs-core": "15.2.6",
|
|
66
|
+
"fumadocs-ui": "15.2.6"
|
|
67
67
|
},
|
|
68
68
|
"devDependencies": {
|
|
69
|
-
"@scalar/api-client-react": "^1.2.
|
|
69
|
+
"@scalar/api-client-react": "^1.2.13",
|
|
70
70
|
"@types/js-yaml": "^4.0.9",
|
|
71
71
|
"@types/node": "22.14.0",
|
|
72
72
|
"@types/openapi-sampler": "^1.0.3",
|
|
73
73
|
"@types/react": "^19.1.0",
|
|
74
74
|
"next": "15.2.4",
|
|
75
75
|
"openapi-types": "^12.1.3",
|
|
76
|
-
"tailwindcss": "^4.1.
|
|
76
|
+
"tailwindcss": "^4.1.3",
|
|
77
77
|
"tsc-alias": "^1.8.13",
|
|
78
78
|
"eslint-config-custom": "0.0.0",
|
|
79
79
|
"tsconfig": "0.0.0"
|