fumadocs-openapi 5.2.0 → 5.2.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/index.d.ts CHANGED
@@ -155,7 +155,7 @@ interface ParameterSample {
155
155
  interface CodeSample {
156
156
  lang: string;
157
157
  label: string;
158
- source: string;
158
+ source?: string;
159
159
  }
160
160
 
161
161
  interface RouteInformation {
@@ -156,7 +156,7 @@ interface ParameterSample {
156
156
  interface CodeSample {
157
157
  lang: string;
158
158
  label: string;
159
- source: string;
159
+ source?: string;
160
160
  }
161
161
 
162
162
  type Awaitable<T> = T | Promise<T>;
@@ -765,7 +765,7 @@ async function APIExample({ method, endpoint, ctx }) {
765
765
  },
766
766
  ...ctx.generateCodeSamples ? await ctx.generateCodeSamples(endpoint) : [],
767
767
  ...method['x-codeSamples'] ?? []
768
- ]);
768
+ ]).filter((item)=>item.source !== undefined);
769
769
  children.push(/*#__PURE__*/ jsx(renderer.Requests, {
770
770
  items: samples.map((s)=>s.label),
771
771
  children: samples.map((s)=>/*#__PURE__*/ jsx(renderer.Request, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fumadocs-openapi",
3
- "version": "5.2.0",
3
+ "version": "5.2.1",
4
4
  "description": "Generate MDX docs for your OpenAPI spec",
5
5
  "keywords": [
6
6
  "NextJs",
@@ -54,18 +54,18 @@
54
54
  "github-slugger": "^2.0.0",
55
55
  "js-yaml": "^4.1.0",
56
56
  "json-schema-to-typescript": "^15.0.0",
57
- "lucide-react": "^0.427.0",
57
+ "lucide-react": "^0.428.0",
58
58
  "openapi-sampler": "^1.5.1",
59
59
  "react-hook-form": "^7.52.2",
60
60
  "remark": "^15.0.0",
61
- "shiki": "^1.12.1",
61
+ "shiki": "^1.13.0",
62
62
  "swr": "^2.2.5",
63
- "fumadocs-core": "13.2.2",
64
- "fumadocs-ui": "13.2.2"
63
+ "fumadocs-core": "13.3.0",
64
+ "fumadocs-ui": "13.3.0"
65
65
  },
66
66
  "devDependencies": {
67
67
  "@types/js-yaml": "^4.0.9",
68
- "@types/node": "20.14.12",
68
+ "@types/node": "22.3.0",
69
69
  "@types/openapi-sampler": "^1.0.3",
70
70
  "@types/react": "^18.3.3",
71
71
  "bunchee": "^5.3.2",