fumadocs-openapi 11.1.1 → 11.2.0

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.
Files changed (48) hide show
  1. package/css/generated/shared.css +1 -1
  2. package/dist/generate-file.d.ts +0 -1
  3. package/dist/i18n.d.ts +0 -1
  4. package/dist/node_modules/.pnpm/xml-js@1.6.11/node_modules/xml-js/lib/js2xml.js +2 -1
  5. package/dist/playground/auth.js +4 -3
  6. package/dist/playground/client.d.ts +4 -18
  7. package/dist/playground/client.js +52 -42
  8. package/dist/playground/components/oauth-dialog.js +3 -2
  9. package/dist/playground/components/result-display.d.ts +1 -6
  10. package/dist/playground/fetcher.d.ts +1 -1
  11. package/dist/requests/generators/all.d.ts +0 -1
  12. package/dist/requests/generators/csharp.d.ts +0 -1
  13. package/dist/requests/generators/curl.d.ts +0 -1
  14. package/dist/requests/generators/go.d.ts +0 -1
  15. package/dist/requests/generators/index.d.ts +1 -5
  16. package/dist/requests/generators/java.d.ts +0 -1
  17. package/dist/requests/generators/javascript.d.ts +0 -1
  18. package/dist/requests/generators/python.d.ts +0 -1
  19. package/dist/requests/generators/rust.d.ts +0 -1
  20. package/dist/requests/media/encode.d.ts +2 -0
  21. package/dist/requests/types.d.ts +0 -1
  22. package/dist/scalar/index.d.ts +0 -1
  23. package/dist/server/index.d.ts +2 -2
  24. package/dist/types/openapi.d.ts +4 -4
  25. package/dist/types.d.ts +0 -1
  26. package/dist/ui/base.d.ts +1 -9
  27. package/dist/ui/base.js +10 -13
  28. package/dist/ui/create-client.d.ts +0 -1
  29. package/dist/ui/index.d.ts +6 -8
  30. package/dist/ui/operation/index.js +41 -30
  31. package/dist/ui/operation/request-tabs.d.ts +2 -4
  32. package/dist/ui/operation/response-tabs.d.ts +1 -3
  33. package/dist/ui/operation/response-tabs.js +19 -9
  34. package/dist/utils/document/dereference.d.ts +9 -6
  35. package/dist/utils/document/dereference.js +5 -7
  36. package/dist/utils/get-example-requests.d.ts +1 -2
  37. package/dist/utils/get-example-requests.js +19 -14
  38. package/dist/utils/pages/builder.d.ts +0 -1
  39. package/dist/utils/pages/builder.js +10 -8
  40. package/dist/utils/pages/preset-auto.d.ts +0 -1
  41. package/dist/utils/pages/preset-auto.js +2 -2
  42. package/dist/utils/pages/to-static-data.js +4 -2
  43. package/dist/utils/pages/to-text.d.ts +1 -1
  44. package/dist/utils/pages/to-text.js +5 -3
  45. package/dist/utils/schema.d.ts +1 -0
  46. package/dist/utils/schema.js +7 -4
  47. package/package.json +12 -11
  48. package/dist/utils/remove-undefined.js +0 -24
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fumadocs-openapi",
3
- "version": "11.1.1",
3
+ "version": "11.2.0",
4
4
  "description": "Generate MDX docs for your OpenAPI spec",
5
5
  "keywords": [
6
6
  "Docs",
@@ -44,33 +44,34 @@
44
44
  },
45
45
  "dependencies": {
46
46
  "@fuma-translate/react": "^1.0.2",
47
- "@fumari/json-schema-ts": "^0.0.2",
47
+ "@fumari/json-schema-ts": "^1.0.2",
48
+ "@scalar/json-magic": "^0.12.17",
48
49
  "chokidar": "^5.0.0",
49
50
  "class-variance-authority": "^0.7.1",
50
51
  "cnfast": "^0.0.8",
51
52
  "github-slugger": "^2.0.0",
52
53
  "hast-util-to-jsx-runtime": "^2.3.6",
53
- "js-yaml": "^5.2.1",
54
- "lucide-react": "^1.23.0",
54
+ "lucide-react": "^1.24.0",
55
55
  "remark": "^15.0.1",
56
56
  "remark-rehype": "^11.1.2",
57
57
  "shiki": "^4.3.1",
58
- "@fumadocs/api-docs": "0.1.0",
59
- "@fumari/stf": "1.1.0"
58
+ "yaml": "^2.9.0",
59
+ "@fumari/stf": "1.1.0",
60
+ "@fumadocs/api-docs": "0.2.0"
60
61
  },
61
62
  "devDependencies": {
62
- "@scalar/api-client-react": "^2.0.31",
63
+ "@scalar/api-client-react": "^2.0.32",
63
64
  "@scalar/openapi-upgrader": "^0.2.9",
64
65
  "@tailwindcss/oxide": "^4.3.2",
65
- "@types/node": "26.1.0",
66
+ "@types/node": "26.1.1",
66
67
  "@types/react": "^19.2.17",
67
68
  "fast-content-type-parse": "^3.0.0",
68
69
  "json-schema-typed": "^8.0.2",
69
- "tsdown": "0.22.3",
70
+ "tsdown": "0.22.5",
70
71
  "xml-js": "^1.6.11",
71
- "fumadocs-core": "16.11.1",
72
+ "fumadocs-ui": "npm:@fumadocs/base-ui@16.11.4",
72
73
  "tsconfig": "0.0.0",
73
- "fumadocs-ui": "npm:@fumadocs/base-ui@16.11.1"
74
+ "fumadocs-core": "16.11.4"
74
75
  },
75
76
  "peerDependencies": {
76
77
  "@scalar/api-client-react": "^2.0.20",
@@ -1,24 +0,0 @@
1
- //#region src/utils/remove-undefined.ts
2
- function removeUndefined(value, deep = false) {
3
- const obj = value;
4
- for (const key in obj) {
5
- if (obj[key] === void 0) delete obj[key];
6
- if (!deep) continue;
7
- const entry = obj[key];
8
- if (isPlainObject(entry)) {
9
- removeUndefined(entry, deep);
10
- continue;
11
- }
12
- if (Array.isArray(entry)) {
13
- for (const item of entry) if (isPlainObject(item)) removeUndefined(item, deep);
14
- }
15
- }
16
- return value;
17
- }
18
- function isPlainObject(value) {
19
- if (typeof value !== "object" || value === null) return false;
20
- const prototype = Object.getPrototypeOf(value);
21
- return prototype === null || prototype === Object.prototype || Object.getPrototypeOf(prototype) === null;
22
- }
23
- //#endregion
24
- export { removeUndefined };