fumadocs-openapi 11.2.2 → 11.2.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.
- package/dist/node_modules/.pnpm/{@scalar_openapi-upgrader@0.2.9 → @scalar_openapi-upgrader@0.2.11}/node_modules/@scalar/openapi-upgrader/dist/2.0-to-3.0/upgrade-from-two-to-three.js +1 -1
- package/dist/node_modules/.pnpm/{@scalar_openapi-upgrader@0.2.9 → @scalar_openapi-upgrader@0.2.11}/node_modules/@scalar/openapi-upgrader/dist/3.0-to-3.1/upgrade-from-three-to-three-one.js +1 -1
- package/dist/node_modules/.pnpm/{@scalar_openapi-upgrader@0.2.9 → @scalar_openapi-upgrader@0.2.11}/node_modules/@scalar/openapi-upgrader/dist/3.1-to-3.2/upgrade-from-three-one-to-three-two.js +1 -1
- package/dist/node_modules/.pnpm/{@scalar_openapi-upgrader@0.2.9 → @scalar_openapi-upgrader@0.2.11}/node_modules/@scalar/openapi-upgrader/dist/helpers/traverse.js +1 -1
- package/dist/node_modules/.pnpm/{@scalar_openapi-upgrader@0.2.9 → @scalar_openapi-upgrader@0.2.11}/node_modules/@scalar/openapi-upgrader/dist/upgrade.js +1 -1
- package/dist/ui/base.js +1 -1
- package/dist/utils/document/load.js +1 -1
- package/package.json +14 -14
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { traverse } from "../helpers/traverse.js";
|
|
2
|
-
//#region ../../node_modules/.pnpm/@scalar+openapi-upgrader@0.2.
|
|
2
|
+
//#region ../../node_modules/.pnpm/@scalar+openapi-upgrader@0.2.11/node_modules/@scalar/openapi-upgrader/dist/2.0-to-3.0/upgrade-from-two-to-three.js
|
|
3
3
|
const DEFAULT_MEDIA_TYPE = "application/json";
|
|
4
4
|
/** Extracts and removes x-example and x-examples extensions from an object */
|
|
5
5
|
function extractXExampleExtensions(obj) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { traverse } from "../helpers/traverse.js";
|
|
2
|
-
//#region ../../node_modules/.pnpm/@scalar+openapi-upgrader@0.2.
|
|
2
|
+
//#region ../../node_modules/.pnpm/@scalar+openapi-upgrader@0.2.11/node_modules/@scalar/openapi-upgrader/dist/3.0-to-3.1/upgrade-from-three-to-three-one.js
|
|
3
3
|
const SCHEMA_SEGMENTS = /* @__PURE__ */ new Set([
|
|
4
4
|
"properties",
|
|
5
5
|
"items",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region ../../node_modules/.pnpm/@scalar+openapi-upgrader@0.2.
|
|
1
|
+
//#region ../../node_modules/.pnpm/@scalar+openapi-upgrader@0.2.11/node_modules/@scalar/openapi-upgrader/dist/3.1-to-3.2/upgrade-from-three-one-to-three-two.js
|
|
2
2
|
/**
|
|
3
3
|
* Recursively migrate XML object properties from 3.1 to 3.2 format
|
|
4
4
|
*/
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region ../../node_modules/.pnpm/@scalar+openapi-upgrader@0.2.
|
|
1
|
+
//#region ../../node_modules/.pnpm/@scalar+openapi-upgrader@0.2.11/node_modules/@scalar/openapi-upgrader/dist/helpers/traverse.js
|
|
2
2
|
/**
|
|
3
3
|
* Recursively traverses the content and applies the transform function to each node.
|
|
4
4
|
*/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { upgradeFromThreeOneToThreeTwo } from "./3.1-to-3.2/upgrade-from-three-one-to-three-two.js";
|
|
2
2
|
import { upgradeFromTwoToThree } from "./2.0-to-3.0/upgrade-from-two-to-three.js";
|
|
3
3
|
import { upgradeFromThreeToThreeOne } from "./3.0-to-3.1/upgrade-from-three-to-three-one.js";
|
|
4
|
-
//#region ../../node_modules/.pnpm/@scalar+openapi-upgrader@0.2.
|
|
4
|
+
//#region ../../node_modules/.pnpm/@scalar+openapi-upgrader@0.2.11/node_modules/@scalar/openapi-upgrader/dist/upgrade.js
|
|
5
5
|
function upgrade(value, targetVersion) {
|
|
6
6
|
const openapi30 = upgradeFromTwoToThree(value);
|
|
7
7
|
if (targetVersion === "3.0") return openapi30;
|
package/dist/ui/base.js
CHANGED
|
@@ -4,10 +4,10 @@ import { ClientCodeBlock } from "./components/codeblock.js";
|
|
|
4
4
|
import { createCodeUsageGeneratorRegistry } from "../requests/generators/index.js";
|
|
5
5
|
import { defaultAdapters } from "../requests/media/adapter.js";
|
|
6
6
|
import { AuthProvider } from "../playground/auth.js";
|
|
7
|
+
import { registerDefault } from "../requests/generators/all.js";
|
|
7
8
|
import { Markdown } from "./components/markdown.js";
|
|
8
9
|
import { Operation } from "./operation/index.js";
|
|
9
10
|
import { dereferenceBundledDocument } from "../utils/document/dereference.js";
|
|
10
|
-
import { registerDefault } from "../requests/generators/all.js";
|
|
11
11
|
import { getRaw } from "@scalar/json-magic/magic-proxy";
|
|
12
12
|
import { Children, useMemo } from "react";
|
|
13
13
|
import * as JsxRuntime from "react/jsx-runtime";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { upgrade } from "../../node_modules/.pnpm/@scalar_openapi-upgrader@0.2.
|
|
1
|
+
import { upgrade } from "../../node_modules/.pnpm/@scalar_openapi-upgrader@0.2.11/node_modules/@scalar/openapi-upgrader/dist/upgrade.js";
|
|
2
2
|
import { bundle } from "@fumadocs/api-docs/schema/bundle";
|
|
3
3
|
//#region src/utils/document/load.ts
|
|
4
4
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "fumadocs-openapi",
|
|
3
|
-
"version": "11.2.
|
|
3
|
+
"version": "11.2.3",
|
|
4
4
|
"description": "Generate MDX docs for your OpenAPI spec",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Docs",
|
|
@@ -45,33 +45,33 @@
|
|
|
45
45
|
"dependencies": {
|
|
46
46
|
"@fuma-translate/react": "^1.0.2",
|
|
47
47
|
"@fumari/json-schema-ts": "^1.0.2",
|
|
48
|
-
"@scalar/json-magic": "^0.12.
|
|
48
|
+
"@scalar/json-magic": "^0.12.19",
|
|
49
49
|
"chokidar": "^5.0.0",
|
|
50
50
|
"class-variance-authority": "^0.7.1",
|
|
51
|
-
"cnfast": "^0.0
|
|
51
|
+
"cnfast": "^0.1.0",
|
|
52
52
|
"github-slugger": "^2.0.0",
|
|
53
53
|
"hast-util-to-jsx-runtime": "^2.3.6",
|
|
54
|
-
"lucide-react": "^1.
|
|
54
|
+
"lucide-react": "^1.27.0",
|
|
55
55
|
"remark": "^15.0.1",
|
|
56
56
|
"remark-rehype": "^11.1.2",
|
|
57
57
|
"shiki": "^4.3.1",
|
|
58
58
|
"yaml": "^2.9.0",
|
|
59
|
-
"@fumadocs/api-docs": "0.2.
|
|
59
|
+
"@fumadocs/api-docs": "0.2.2",
|
|
60
60
|
"@fumari/stf": "1.1.0"
|
|
61
61
|
},
|
|
62
62
|
"devDependencies": {
|
|
63
|
-
"@scalar/api-client-react": "^2.0.
|
|
64
|
-
"@scalar/openapi-upgrader": "^0.2.
|
|
65
|
-
"@tailwindcss/oxide": "^4.3.
|
|
66
|
-
"@types/node": "26.1.
|
|
63
|
+
"@scalar/api-client-react": "^2.0.36",
|
|
64
|
+
"@scalar/openapi-upgrader": "^0.2.11",
|
|
65
|
+
"@tailwindcss/oxide": "^4.3.3",
|
|
66
|
+
"@types/node": "26.1.2",
|
|
67
67
|
"@types/react": "^19.2.17",
|
|
68
68
|
"fast-content-type-parse": "^3.0.0",
|
|
69
69
|
"json-schema-typed": "^8.0.2",
|
|
70
|
-
"tsdown": "0.22.
|
|
70
|
+
"tsdown": "0.22.14",
|
|
71
71
|
"xml-js": "^1.6.11",
|
|
72
|
-
"fumadocs-
|
|
73
|
-
"
|
|
74
|
-
"
|
|
72
|
+
"fumadocs-ui": "npm:@fumadocs/base-ui@16.14.0",
|
|
73
|
+
"fumadocs-core": "16.14.0",
|
|
74
|
+
"tsconfig": "0.0.0"
|
|
75
75
|
},
|
|
76
76
|
"peerDependencies": {
|
|
77
77
|
"@scalar/api-client-react": "^2.0.20",
|
|
@@ -94,7 +94,7 @@
|
|
|
94
94
|
}
|
|
95
95
|
},
|
|
96
96
|
"inlinedDependencies": {
|
|
97
|
-
"@scalar/openapi-upgrader": "0.2.
|
|
97
|
+
"@scalar/openapi-upgrader": "0.2.11",
|
|
98
98
|
"fast-content-type-parse": "3.0.0",
|
|
99
99
|
"xml-js": "1.6.11"
|
|
100
100
|
},
|