fumadocs-openapi 11.1.0 → 11.1.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.
@@ -41,6 +41,13 @@ function ServerSelect(props) {
41
41
  }), /* @__PURE__ */ jsxs(DialogContent, { children: [
42
42
  /* @__PURE__ */ jsxs(DialogHeader, { children: [/* @__PURE__ */ jsx(DialogTitle, { children: t("Server URL") }), /* @__PURE__ */ jsx(DialogDescription, { children: t("The base URL of your API endpoint.") })] }),
43
43
  /* @__PURE__ */ jsxs(Select, {
44
+ items: servers.map((server) => ({
45
+ value: server.url,
46
+ label: /* @__PURE__ */ jsx("code", {
47
+ className: "text-[0.8125rem]",
48
+ children: server.url
49
+ })
50
+ })),
44
51
  value: server?.url ?? null,
45
52
  onValueChange: (v) => v !== null && setServer(v),
46
53
  children: [/* @__PURE__ */ jsx(SelectTrigger, { children: /* @__PURE__ */ jsx(SelectValue, {}) }), /* @__PURE__ */ jsx(SelectContent, { children: servers.map((item) => /* @__PURE__ */ jsxs(SelectItem, {
@@ -111,7 +118,7 @@ function Field({ fieldName, variable }) {
111
118
  id: fieldName,
112
119
  children: /* @__PURE__ */ jsx(SelectValue, {})
113
120
  }), /* @__PURE__ */ jsx(SelectContent, { children: variable.enum.map((value) => /* @__PURE__ */ jsx(SelectItem, {
114
- value: String(value),
121
+ value,
115
122
  children: value
116
123
  }, value)) })]
117
124
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fumadocs-openapi",
3
- "version": "11.1.0",
3
+ "version": "11.1.1",
4
4
  "description": "Generate MDX docs for your OpenAPI spec",
5
5
  "keywords": [
6
6
  "Docs",
@@ -68,9 +68,9 @@
68
68
  "json-schema-typed": "^8.0.2",
69
69
  "tsdown": "0.22.3",
70
70
  "xml-js": "^1.6.11",
71
- "fumadocs-core": "16.11.0",
72
- "fumadocs-ui": "npm:@fumadocs/base-ui@16.11.0",
73
- "tsconfig": "0.0.0"
71
+ "fumadocs-core": "16.11.1",
72
+ "tsconfig": "0.0.0",
73
+ "fumadocs-ui": "npm:@fumadocs/base-ui@16.11.1"
74
74
  },
75
75
  "peerDependencies": {
76
76
  "@scalar/api-client-react": "^2.0.20",