zudoku 0.3.1-dev.7 → 0.3.1-dev.9

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 (27) hide show
  1. package/dist/lib/plugins/openapi/OperationList.js +3 -4
  2. package/dist/lib/plugins/openapi/OperationList.js.map +1 -1
  3. package/dist/lib/plugins/openapi/OperationListItem.js +2 -3
  4. package/dist/lib/plugins/openapi/OperationListItem.js.map +1 -1
  5. package/dist/lib/plugins/openapi/ParameterListItem.js +1 -1
  6. package/dist/lib/plugins/openapi/ParameterListItem.js.map +1 -1
  7. package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js +2 -2
  8. package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js.map +1 -1
  9. package/lib/{OperationList-CJajXSzC.js → OperationList-CYyaboNz.js} +114 -120
  10. package/lib/OperationList-CYyaboNz.js.map +1 -0
  11. package/lib/{Route-BpMrPUVN.js → Route-C3Jb0axy.js} +2 -2
  12. package/lib/{Route-BpMrPUVN.js.map → Route-C3Jb0axy.js.map} +1 -1
  13. package/lib/{index-B6zugCnN.js → index-B1he6g8N.js} +532 -514
  14. package/lib/index-B1he6g8N.js.map +1 -0
  15. package/lib/zudoku.plugin-openapi.js +1 -1
  16. package/package.json +1 -1
  17. package/src/app/main.css +1 -1
  18. package/src/lib/plugins/openapi/OperationList.tsx +3 -7
  19. package/src/lib/plugins/openapi/OperationListItem.tsx +2 -3
  20. package/src/lib/plugins/openapi/ParameterListItem.tsx +1 -1
  21. package/src/lib/plugins/openapi/playground/PlaygroundDialog.tsx +27 -5
  22. package/dist/lib/plugins/openapi/util/prose.d.ts +0 -1
  23. package/dist/lib/plugins/openapi/util/prose.js +0 -4
  24. package/dist/lib/plugins/openapi/util/prose.js.map +0 -1
  25. package/lib/OperationList-CJajXSzC.js.map +0 -1
  26. package/lib/index-B6zugCnN.js.map +0 -1
  27. package/src/lib/plugins/openapi/util/prose.ts +0 -7
@@ -1,20 +1,20 @@
1
1
  import { j as e } from "./jsx-runtime-B6kdoens.js";
2
- import { C as S } from "./CategoryHeading-z15xh7Jb.js";
3
- import { D as I } from "./DeveloperHint-BQSFXH01.js";
4
- import { C as T, a as d, b as R, c as z, d as F, T as H, e as E, f as $, g as D, S as B, h as M, u as G, E as Q } from "./index-B6zugCnN.js";
5
- import { c as j, h as p, H as y, a as m, P as g, I as w, S as V } from "./Markdown-CEccPMI_.js";
6
- import { useState as b, useCallback as _ } from "react";
7
- import { R as O, T as v, C as k, a as J } from "./index-Dz4LyXZI.js";
8
- import { u as K } from "./urql-DrBfkb92.js";
9
- import { B as U } from "./Combination-DTfV-c98.js";
10
- import { j as Z } from "./Input-CzXNm7xb.js";
2
+ import { C as k } from "./CategoryHeading-z15xh7Jb.js";
3
+ import { D as A } from "./DeveloperHint-BQSFXH01.js";
4
+ import { C as I, a as d, b as T, c as R, d as z, T as F, e as H, f as $, g as E, S as D, h as P, u as B, E as G } from "./index-B1he6g8N.js";
5
+ import { c as y, h as p, H as g, a as h, P as j, I as w, S as Q } from "./Markdown-CEccPMI_.js";
6
+ import { useState as b, useCallback as V } from "react";
7
+ import { R as O, T as v, C, a as _ } from "./index-Dz4LyXZI.js";
8
+ import { u as J } from "./urql-DrBfkb92.js";
9
+ import { B as K } from "./Combination-DTfV-c98.js";
10
+ import { j as U } from "./Input-CzXNm7xb.js";
11
11
  /**
12
12
  * @license lucide-react v0.378.0 - ISC
13
13
  *
14
14
  * This source code is licensed under the ISC license.
15
15
  * See the LICENSE file in the root directory of this source tree.
16
16
  */
17
- const W = j("CircleDot", [
17
+ const Z = y("CircleDot", [
18
18
  ["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
19
19
  ["circle", { cx: "12", cy: "12", r: "1", key: "41hilf" }]
20
20
  ]);
@@ -24,7 +24,7 @@ const W = j("CircleDot", [
24
24
  * This source code is licensed under the ISC license.
25
25
  * See the LICENSE file in the root directory of this source tree.
26
26
  */
27
- const X = j("CircleFadingPlus", [
27
+ const W = y("CircleFadingPlus", [
28
28
  ["path", { d: "M12 2a10 10 0 0 1 7.38 16.75", key: "175t95" }],
29
29
  ["path", { d: "M12 8v8", key: "napkw2" }],
30
30
  ["path", { d: "M16 12H8", key: "1fr5h0" }],
@@ -39,7 +39,7 @@ const X = j("CircleFadingPlus", [
39
39
  * This source code is licensed under the ISC license.
40
40
  * See the LICENSE file in the root directory of this source tree.
41
41
  */
42
- const Y = j("Circle", [
42
+ const X = y("Circle", [
43
43
  ["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }]
44
44
  ]);
45
45
  /**
@@ -48,7 +48,7 @@ const Y = j("Circle", [
48
48
  * This source code is licensed under the ISC license.
49
49
  * See the LICENSE file in the root directory of this source tree.
50
50
  */
51
- const ee = j("ListPlus", [
51
+ const Y = y("ListPlus", [
52
52
  ["path", { d: "M11 12H3", key: "51ecnj" }],
53
53
  ["path", { d: "M16 6H3", key: "1wxfjs" }],
54
54
  ["path", { d: "M16 18H3", key: "12xzn7" }],
@@ -61,7 +61,7 @@ const ee = j("ListPlus", [
61
61
  * This source code is licensed under the ISC license.
62
62
  * See the LICENSE file in the root directory of this source tree.
63
63
  */
64
- const se = j("SquareMinus", [
64
+ const ee = y("SquareMinus", [
65
65
  ["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }],
66
66
  ["path", { d: "M8 12h8", key: "1wcyev" }]
67
67
  ]);
@@ -71,30 +71,30 @@ const se = j("SquareMinus", [
71
71
  * This source code is licensed under the ISC license.
72
72
  * See the LICENSE file in the root directory of this source tree.
73
73
  */
74
- const te = j("SquarePlus", [
74
+ const se = y("SquarePlus", [
75
75
  ["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }],
76
76
  ["path", { d: "M8 12h8", key: "1wcyev" }],
77
77
  ["path", { d: "M12 8v8", key: "napkw2" }]
78
78
  ]);
79
- function re(t, s) {
79
+ function te(t, s) {
80
80
  return s;
81
81
  }
82
- const q = (t, s) => t.reduce(
82
+ const M = (t, s) => t.reduce(
83
83
  (n, a) => {
84
84
  const r = s(a);
85
85
  return n[r] || (n[r] = []), n[r].push(a), n;
86
86
  },
87
87
  {}
88
- ), ne = (t, s) => t ? s(t) : void 0, P = (t) => t.schema != null && typeof t.schema == "object" ? t.schema : {
88
+ ), re = (t, s) => t ? s(t) : void 0, S = (t) => t.schema != null && typeof t.schema == "object" ? t.schema : {
89
89
  type: "string"
90
- }, ae = ({
90
+ }, ne = ({
91
91
  parameter: t,
92
92
  group: s,
93
93
  id: n
94
94
  }) => /* @__PURE__ */ e.jsxs("li", { className: "p-4 bg-border/20 text-sm flex flex-col gap-1", children: [
95
95
  /* @__PURE__ */ e.jsxs("div", { className: "flex items-center gap-2", children: [
96
96
  /* @__PURE__ */ e.jsx("code", { children: s === "path" ? /* @__PURE__ */ e.jsx(
97
- T,
97
+ I,
98
98
  {
99
99
  name: t.name,
100
100
  backgroundOpacity: "15%",
@@ -102,23 +102,23 @@ const q = (t, s) => t.reduce(
102
102
  }
103
103
  ) : t.name }),
104
104
  t.required && /* @__PURE__ */ e.jsx("span", { className: "py-px px-1.5 font-medium bg-primary/75 text-muted rounded-lg", children: "required" }),
105
- P(t).type && /* @__PURE__ */ e.jsx("span", { className: "text-muted-foreground", children: P(t).type })
105
+ S(t).type && /* @__PURE__ */ e.jsx("span", { className: "text-muted-foreground", children: S(t).type })
106
106
  ] }),
107
107
  t.description && /* @__PURE__ */ e.jsx(
108
108
  p,
109
109
  {
110
110
  content: t.description,
111
- className: "text-sm prose-p:my-1"
111
+ className: "text-sm prose-p:my-1 prose-code:whitespace-pre-line"
112
112
  }
113
113
  )
114
- ] }), ie = ({
114
+ ] }), ae = ({
115
115
  group: t,
116
116
  parameters: s,
117
117
  id: n
118
118
  }) => /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
119
- /* @__PURE__ */ e.jsx(y, { level: 3, id: `${n}/${t}-parameters`, className: "capitalize", children: t === "header" ? "Headers" : `${t} Parameters` }),
119
+ /* @__PURE__ */ e.jsx(g, { level: 3, id: `${n}/${t}-parameters`, className: "capitalize", children: t === "header" ? "Headers" : `${t} Parameters` }),
120
120
  /* @__PURE__ */ e.jsx(d, { children: /* @__PURE__ */ e.jsx("ul", { className: "list-none m-0 px-0 divide-y ", children: s.sort((a, r) => a.required === r.required ? 0 : a.required ? -1 : 1).map((a) => /* @__PURE__ */ e.jsx(
121
- ae,
121
+ ne,
122
122
  {
123
123
  parameter: a,
124
124
  id: n,
@@ -126,42 +126,42 @@ const q = (t, s) => t.reduce(
126
126
  },
127
127
  `${a.name}-${a.in}`
128
128
  )) }) })
129
- ] }), oe = (t) => Object.entries(t), le = {
130
- AND: /* @__PURE__ */ e.jsx(X, { size: 16, className: "fill-card" }),
131
- OR: /* @__PURE__ */ e.jsx(W, { size: 16, className: "fill-card" }),
132
- ONE: /* @__PURE__ */ e.jsx(Y, { size: 14, className: "fill-card" })
133
- }, ce = {
129
+ ] }), ie = (t) => Object.entries(t), oe = {
130
+ AND: /* @__PURE__ */ e.jsx(W, { size: 16, className: "fill-card" }),
131
+ OR: /* @__PURE__ */ e.jsx(Z, { size: 16, className: "fill-card" }),
132
+ ONE: /* @__PURE__ */ e.jsx(X, { size: 14, className: "fill-card" })
133
+ }, le = {
134
134
  AND: "text-green-500 dark:text-green-300/60",
135
135
  OR: "text-blue-400 dark:text-blue-500",
136
136
  ONE: "text-purple-500 dark:text-purple-300/60"
137
- }, de = ({
137
+ }, ce = ({
138
138
  type: t,
139
139
  isOpen: s,
140
140
  className: n
141
141
  }) => /* @__PURE__ */ e.jsx(
142
142
  "div",
143
143
  {
144
- className: m(
145
- ce[t],
144
+ className: h(
145
+ le[t],
146
146
  "relative text-sm flex py-2",
147
147
  "before:border-l before:absolute before:-top-2 before:-bottom-2 before:border-border before:border-dashed before:content-['']",
148
148
  n
149
149
  ),
150
150
  children: /* @__PURE__ */ e.jsxs("div", { className: "-translate-x-[7px] flex gap-1 items-center", children: [
151
- le[t],
151
+ oe[t],
152
152
  /* @__PURE__ */ e.jsx(
153
153
  "div",
154
154
  {
155
- className: m(
155
+ className: h(
156
156
  "translate-y-px mx-px opacity-0 group-hover:opacity-100 transition",
157
157
  !s && "-rotate-90"
158
158
  ),
159
- children: /* @__PURE__ */ e.jsx(Z, { size: 16 })
159
+ children: /* @__PURE__ */ e.jsx(U, { size: 16 })
160
160
  }
161
161
  )
162
162
  ] })
163
163
  }
164
- ), pe = (t) => {
164
+ ), de = (t) => {
165
165
  const [s, n] = b(!0);
166
166
  return /* @__PURE__ */ e.jsxs(
167
167
  O,
@@ -170,17 +170,17 @@ const q = (t, s) => t.reduce(
170
170
  onOpenChange: () => n((a) => !a),
171
171
  className: "group",
172
172
  children: [
173
- /* @__PURE__ */ e.jsx(v, { children: /* @__PURE__ */ e.jsx(de, { type: t.type, isOpen: s }) }),
173
+ /* @__PURE__ */ e.jsx(v, { children: /* @__PURE__ */ e.jsx(ce, { type: t.type, isOpen: s }) }),
174
174
  !s && /* @__PURE__ */ e.jsx("div", { className: "wavy-line bg-border translate-y-1" }),
175
- /* @__PURE__ */ e.jsx(k, { children: /* @__PURE__ */ e.jsx(f, { schema: t.schema, level: t.level + 1 }) })
175
+ /* @__PURE__ */ e.jsx(C, { children: /* @__PURE__ */ e.jsx(f, { schema: t.schema, level: t.level + 1 }) })
176
176
  ]
177
177
  }
178
178
  );
179
- }, me = {
179
+ }, pe = {
180
180
  AND: "All of",
181
181
  OR: "Any of",
182
182
  ONE: "One of"
183
- }, xe = ({
183
+ }, me = ({
184
184
  schemas: t,
185
185
  type: s,
186
186
  isOpen: n,
@@ -188,13 +188,13 @@ const q = (t, s) => t.reduce(
188
188
  toggleOpen: r
189
189
  }) => /* @__PURE__ */ e.jsx(O, { open: n, onOpenChange: r, asChild: !0, children: /* @__PURE__ */ e.jsxs(d, { className: "px-6", children: [
190
190
  /* @__PURE__ */ e.jsxs(v, { className: "flex gap-2 items-center py-2 w-full text-sm text-muted-foreground -translate-x-1.5", children: [
191
- n ? /* @__PURE__ */ e.jsx(se, { size: 14 }) : /* @__PURE__ */ e.jsx(te, { size: 14 }),
192
- /* @__PURE__ */ e.jsx("span", { children: me[s] })
191
+ n ? /* @__PURE__ */ e.jsx(ee, { size: 14 }) : /* @__PURE__ */ e.jsx(se, { size: 14 }),
192
+ /* @__PURE__ */ e.jsx("span", { children: pe[s] })
193
193
  ] }),
194
- /* @__PURE__ */ e.jsx(k, { className: "pb-4", children: t.map((i, l) => (
194
+ /* @__PURE__ */ e.jsx(C, { className: "pb-4", children: t.map((i, l) => (
195
195
  // eslint-disable-next-line react/no-array-index-key
196
196
  /* @__PURE__ */ e.jsx(
197
- pe,
197
+ de,
198
198
  {
199
199
  type: s,
200
200
  schema: i,
@@ -203,19 +203,19 @@ const q = (t, s) => t.reduce(
203
203
  l
204
204
  )
205
205
  )) })
206
- ] }) }), ue = (t) => t.type === "object" || t.type === "array" && typeof t.items == "object" && (!t.items.type || t.items.type === "object"), N = (t) => !!(t.oneOf ?? t.allOf ?? t.anyOf), he = {
206
+ ] }) }), xe = (t) => t.type === "object" || t.type === "array" && typeof t.items == "object" && (!t.items.type || t.items.type === "object"), N = (t) => !!(t.oneOf ?? t.allOf ?? t.anyOf), ue = {
207
207
  allOf: "AND",
208
208
  anyOf: "OR",
209
209
  oneOf: "ONE"
210
- }, L = ({
210
+ }, q = ({
211
211
  schema: t,
212
212
  level: s
213
213
  }) => {
214
- const [n, a] = b(!0), r = _(() => a((i) => !i), []);
215
- for (const [i, l] of oe(he))
214
+ const [n, a] = b(!0), r = V(() => a((i) => !i), []);
215
+ for (const [i, l] of ie(ue))
216
216
  if (t[i])
217
217
  return /* @__PURE__ */ e.jsx(
218
- xe,
218
+ me,
219
219
  {
220
220
  schemas: t[i],
221
221
  type: l,
@@ -224,7 +224,7 @@ const q = (t, s) => t.reduce(
224
224
  level: s
225
225
  }
226
226
  );
227
- }, je = ({
227
+ }, he = ({
228
228
  name: t,
229
229
  schema: s,
230
230
  group: n,
@@ -232,12 +232,12 @@ const q = (t, s) => t.reduce(
232
232
  defaultOpen: r = !1,
233
233
  showCollapseButton: i = !0
234
234
  }) => {
235
- var u;
236
- const [l, x] = b(r);
235
+ var x;
236
+ const [l, m] = b(r);
237
237
  return /* @__PURE__ */ e.jsx("li", { className: "p-4 bg-border/20 hover:bg-border/30", children: /* @__PURE__ */ e.jsxs("div", { className: "flex flex-col gap-1 justify-between text-sm", children: [
238
238
  /* @__PURE__ */ e.jsxs("div", { className: "flex gap-2 items-center", children: [
239
239
  /* @__PURE__ */ e.jsx("code", { children: t }),
240
- /* @__PURE__ */ e.jsx("span", { className: "text-muted-foreground", children: s.type === "array" && ((u = s.items) != null && u.type) ? /* @__PURE__ */ e.jsxs("span", { children: [
240
+ /* @__PURE__ */ e.jsx("span", { className: "text-muted-foreground", children: s.type === "array" && ((x = s.items) != null && x.type) ? /* @__PURE__ */ e.jsxs("span", { children: [
241
241
  s.items.type,
242
242
  "[]"
243
243
  ] }) : Array.isArray(s.type) ? /* @__PURE__ */ e.jsx("span", { children: s.type.join(" | ") }) : /* @__PURE__ */ e.jsx("span", { children: s.type }) }),
@@ -246,30 +246,30 @@ const q = (t, s) => t.reduce(
246
246
  s.description && /* @__PURE__ */ e.jsx(
247
247
  p,
248
248
  {
249
- className: m(g, "text-sm leading-normal line-clamp-4"),
249
+ className: h(j, "text-sm leading-normal line-clamp-4"),
250
250
  content: s.description
251
251
  }
252
252
  ),
253
- (N(s) || ue(s)) && /* @__PURE__ */ e.jsxs(
253
+ (N(s) || xe(s)) && /* @__PURE__ */ e.jsxs(
254
254
  O,
255
255
  {
256
256
  defaultOpen: r,
257
257
  open: l,
258
- onOpenChange: () => x(!l),
258
+ onOpenChange: () => m(!l),
259
259
  children: [
260
260
  i && /* @__PURE__ */ e.jsx(v, { asChild: !0, children: /* @__PURE__ */ e.jsxs(
261
- U,
261
+ K,
262
262
  {
263
263
  variant: "outline",
264
264
  size: "sm",
265
265
  className: "mt-2 flex gap-1.5",
266
266
  children: [
267
- /* @__PURE__ */ e.jsx(ee, { size: 18 }),
267
+ /* @__PURE__ */ e.jsx(Y, { size: 18 }),
268
268
  l ? "Hide nested properties" : "Show nested properties"
269
269
  ]
270
270
  }
271
271
  ) }),
272
- /* @__PURE__ */ e.jsx(k, { children: /* @__PURE__ */ e.jsx("div", { className: "mt-2", children: N(s) ? /* @__PURE__ */ e.jsx(L, { schema: s, level: a + 1 }) : s.type === "object" ? /* @__PURE__ */ e.jsx(f, { schema: s, level: a + 1 }) : s.type === "array" && typeof s.items == "object" && /* @__PURE__ */ e.jsx(f, { schema: s.items, level: a + 1 }) }) })
272
+ /* @__PURE__ */ e.jsx(C, { children: /* @__PURE__ */ e.jsx("div", { className: "mt-2", children: N(s) ? /* @__PURE__ */ e.jsx(q, { schema: s, level: a + 1 }) : s.type === "object" ? /* @__PURE__ */ e.jsx(f, { schema: s, level: a + 1 }) : s.type === "array" && typeof s.items == "object" && /* @__PURE__ */ e.jsx(f, { schema: s.items, level: a + 1 }) }) })
273
273
  ]
274
274
  }
275
275
  )
@@ -283,7 +283,7 @@ const q = (t, s) => t.reduce(
283
283
  return /* @__PURE__ */ e.jsx(d, { className: "p-4", children: /* @__PURE__ */ e.jsx("span", { className: "text-sm text-muted-foreground italic", children: "No response specified" }) });
284
284
  const a = (r, i) => {
285
285
  if (r.oneOf || r.allOf || r.anyOf)
286
- return /* @__PURE__ */ e.jsx(L, { schema: r, level: i });
286
+ return /* @__PURE__ */ e.jsx(q, { schema: r, level: i });
287
287
  if (r.type === "array" && r.items) {
288
288
  const l = r.items;
289
289
  return typeof l.type == "string" && ["string", "number", "boolean", "integer"].includes(l.type) ? /* @__PURE__ */ e.jsxs(d, { className: "p-4", children: [
@@ -294,8 +294,8 @@ const q = (t, s) => t.reduce(
294
294
  r.description && /* @__PURE__ */ e.jsx(
295
295
  p,
296
296
  {
297
- className: m(
298
- g,
297
+ className: h(
298
+ j,
299
299
  "text-sm leading-normal line-clamp-4"
300
300
  ),
301
301
  content: r.description
@@ -313,8 +313,8 @@ const q = (t, s) => t.reduce(
313
313
  r.description && /* @__PURE__ */ e.jsx(
314
314
  p,
315
315
  {
316
- className: m(
317
- g,
316
+ className: h(
317
+ j,
318
318
  "text-sm leading-normal line-clamp-4"
319
319
  ),
320
320
  content: r.description
@@ -322,23 +322,23 @@ const q = (t, s) => t.reduce(
322
322
  )
323
323
  ] });
324
324
  if (r.properties) {
325
- const l = q(
325
+ const l = M(
326
326
  Object.entries(r.properties),
327
327
  ([o, c]) => {
328
- var h;
329
- return c.deprecated ? "deprecated" : (h = r.required) != null && h.includes(o) ? "required" : "optional";
328
+ var u;
329
+ return c.deprecated ? "deprecated" : (u = r.required) != null && u.includes(o) ? "required" : "optional";
330
330
  }
331
- ), x = i === 0 && Object.keys(l).length === 1, u = ["required", "optional", "deprecated"];
332
- return /* @__PURE__ */ e.jsx(d, { className: "divide-y overflow-hidden", children: u.map(
333
- (o) => l[o] && /* @__PURE__ */ e.jsx("ul", { className: "divide-y", children: l[o].map(([c, h]) => /* @__PURE__ */ e.jsx(
334
- je,
331
+ ), m = i === 0 && Object.keys(l).length === 1, x = ["required", "optional", "deprecated"];
332
+ return /* @__PURE__ */ e.jsx(d, { className: "divide-y overflow-hidden", children: x.map(
333
+ (o) => l[o] && /* @__PURE__ */ e.jsx("ul", { className: "divide-y", children: l[o].map(([c, u]) => /* @__PURE__ */ e.jsx(
334
+ he,
335
335
  {
336
336
  name: c,
337
- schema: h,
337
+ schema: u,
338
338
  group: o,
339
339
  level: i,
340
- defaultOpen: x || n,
341
- showCollapseButton: !x
340
+ defaultOpen: m || n,
341
+ showCollapseButton: !m
342
342
  },
343
343
  c
344
344
  )) }, o)
@@ -349,30 +349,27 @@ const q = (t, s) => t.reduce(
349
349
  r.description && /* @__PURE__ */ e.jsx(
350
350
  p,
351
351
  {
352
- className: m(
353
- g,
352
+ className: h(
353
+ j,
354
354
  "text-sm leading-normal line-clamp-4"
355
355
  ),
356
356
  content: r.description
357
357
  }
358
358
  )
359
359
  ] }) : r.additionalProperties ? /* @__PURE__ */ e.jsxs(d, { className: "my-2", children: [
360
- /* @__PURE__ */ e.jsx(R, { children: /* @__PURE__ */ e.jsx(z, { children: "Additional Properties:" }) }),
361
- /* @__PURE__ */ e.jsx(F, { children: a(
360
+ /* @__PURE__ */ e.jsx(T, { children: /* @__PURE__ */ e.jsx(R, { children: "Additional Properties:" }) }),
361
+ /* @__PURE__ */ e.jsx(z, { children: a(
362
362
  r.additionalProperties,
363
363
  i + 1
364
364
  ) })
365
365
  ] }) : null;
366
366
  };
367
367
  return a(t, s);
368
- }, C = m(
369
- g,
370
- "max-w-full prose-img:max-w-prose"
371
- ), ye = ["path", "query", "header", "cookie"], ge = ({
368
+ }, je = ["path", "query", "header", "cookie"], ye = ({
372
369
  operationFragment: t
373
370
  }) => {
374
- var l, x, u;
375
- const s = re(fe, t), n = q(
371
+ var l, m, x;
372
+ const s = te(ge, t), n = M(
376
373
  s.parameters ?? [],
377
374
  (o) => o.in
378
375
  ), a = s.responses.at(0), [r, i] = b(a == null ? void 0 : a.statusCode);
@@ -382,19 +379,19 @@ const q = (t, s) => t.reduce(
382
379
  className: "grid grid-cols-1 lg:grid-cols-[4fr_3fr] gap-8 items-start border-b-2 mb-16 pb-16",
383
380
  children: [
384
381
  /* @__PURE__ */ e.jsxs("div", { className: "flex flex-col gap-4", children: [
385
- /* @__PURE__ */ e.jsx(y, { level: 2, id: s.slug, registerSidebarAnchor: !0, children: s.summary }),
382
+ /* @__PURE__ */ e.jsx(g, { level: 2, id: s.slug, registerSidebarAnchor: !0, children: s.summary }),
386
383
  s.description && /* @__PURE__ */ e.jsx(
387
384
  p,
388
385
  {
389
- className: C,
386
+ className: `${j} max-w-full prose-img:max-w-prose`,
390
387
  content: s.description
391
388
  }
392
389
  ),
393
- s.parameters && s.parameters.length > 0 && /* @__PURE__ */ e.jsx(e.Fragment, { children: ye.flatMap(
390
+ s.parameters && s.parameters.length > 0 && /* @__PURE__ */ e.jsx(e.Fragment, { children: je.flatMap(
394
391
  (o) => {
395
392
  var c;
396
393
  return (c = n[o]) != null && c.length ? /* @__PURE__ */ e.jsx(
397
- ie,
394
+ ae,
398
395
  {
399
396
  id: s.slug,
400
397
  parameters: n[o],
@@ -404,19 +401,19 @@ const q = (t, s) => t.reduce(
404
401
  ) : [];
405
402
  }
406
403
  ) }),
407
- ne((u = (x = (l = s.requestBody) == null ? void 0 : l.content) == null ? void 0 : x.at(0)) == null ? void 0 : u.schema, (o) => /* @__PURE__ */ e.jsxs("div", { className: "mt-4 flex flex-col gap-4", children: [
408
- /* @__PURE__ */ e.jsx(y, { level: 3, className: "capitalize", children: "Request Body" }),
404
+ re((x = (m = (l = s.requestBody) == null ? void 0 : l.content) == null ? void 0 : m.at(0)) == null ? void 0 : x.schema, (o) => /* @__PURE__ */ e.jsxs("div", { className: "mt-4 flex flex-col gap-4", children: [
405
+ /* @__PURE__ */ e.jsx(g, { level: 3, className: "capitalize", children: "Request Body" }),
409
406
  /* @__PURE__ */ e.jsx(f, { schema: o })
410
407
  ] })),
411
408
  s.responses.length > 0 && /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
412
- /* @__PURE__ */ e.jsx(y, { level: 3, className: "capitalize mt-8 pt-8 border-t", children: "Responses" }),
409
+ /* @__PURE__ */ e.jsx(g, { level: 3, className: "capitalize mt-8 pt-8 border-t", children: "Responses" }),
413
410
  /* @__PURE__ */ e.jsxs(
414
- H,
411
+ F,
415
412
  {
416
413
  onValueChange: (o) => i(o),
417
414
  value: r,
418
415
  children: [
419
- s.responses.length > 1 && /* @__PURE__ */ e.jsx(E, { children: s.responses.map((o) => /* @__PURE__ */ e.jsx(
416
+ s.responses.length > 1 && /* @__PURE__ */ e.jsx(H, { children: s.responses.map((o) => /* @__PURE__ */ e.jsx(
420
417
  $,
421
418
  {
422
419
  value: o.statusCode,
@@ -426,15 +423,15 @@ const q = (t, s) => t.reduce(
426
423
  o.statusCode
427
424
  )) }),
428
425
  /* @__PURE__ */ e.jsx("ul", { className: "list-none m-0 px-0", children: s.responses.map((o) => {
429
- var c, h;
426
+ var c, u;
430
427
  return /* @__PURE__ */ e.jsx(
431
- D,
428
+ E,
432
429
  {
433
430
  value: o.statusCode,
434
431
  children: /* @__PURE__ */ e.jsx(
435
432
  f,
436
433
  {
437
- schema: (h = (c = o.content) == null ? void 0 : c.find((A) => A.schema)) == null ? void 0 : h.schema
434
+ schema: (u = (c = o.content) == null ? void 0 : c.find((L) => L.schema)) == null ? void 0 : u.schema
438
435
  }
439
436
  )
440
437
  },
@@ -447,7 +444,7 @@ const q = (t, s) => t.reduce(
447
444
  ] })
448
445
  ] }),
449
446
  /* @__PURE__ */ e.jsx(
450
- B,
447
+ D,
451
448
  {
452
449
  selectedResponse: r,
453
450
  onSelectResponse: i,
@@ -458,7 +455,7 @@ const q = (t, s) => t.reduce(
458
455
  },
459
456
  s.operationId
460
457
  );
461
- }, fe = M(
458
+ }, ge = P(
462
459
  /* GraphQL */
463
460
  `
464
461
  fragment OperationsFragment on OperationItem {
@@ -509,7 +506,7 @@ const q = (t, s) => t.reduce(
509
506
  }
510
507
  }
511
508
  `
512
- ), be = M(
509
+ ), fe = P(
513
510
  /* GraphQL */
514
511
  `
515
512
  query AllOperations($input: JSON!, $type: SchemaType!) {
@@ -529,20 +526,20 @@ const q = (t, s) => t.reduce(
529
526
  }
530
527
  }
531
528
  `
532
- ), Ne = { suspense: !0 }, Ae = () => {
529
+ ), be = { suspense: !0 }, Le = () => {
533
530
  var r;
534
- const { type: t, input: s } = G(), [n] = K({
535
- query: be,
531
+ const { type: t, input: s } = B(), [n] = J({
532
+ query: fe,
536
533
  variables: { type: t, input: s },
537
- context: Ne
534
+ context: be
538
535
  }), a = (r = n.error) == null ? void 0 : r.graphQLErrors.at(0);
539
536
  return a ? /* @__PURE__ */ e.jsx(
540
- Q,
537
+ G,
541
538
  {
542
539
  category: "Error",
543
540
  title: "Schema cannot be displayed",
544
541
  message: /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
545
- /* @__PURE__ */ e.jsxs(I, { className: "mb-4", children: [
542
+ /* @__PURE__ */ e.jsxs(A, { className: "mb-4", children: [
546
543
  "Check your configuration value ",
547
544
  /* @__PURE__ */ e.jsx(w, { children: "apis.type" }),
548
545
  " ",
@@ -551,35 +548,32 @@ const q = (t, s) => t.reduce(
551
548
  " in the Zudoku config."
552
549
  ] }),
553
550
  "An error occurred while trying to fetch the API reference:",
554
- /* @__PURE__ */ e.jsx(V, { code: a.toString(), language: "plain" })
551
+ /* @__PURE__ */ e.jsx(Q, { code: a.toString(), language: "plain" })
555
552
  ] })
556
553
  }
557
554
  ) : n.data ? /* @__PURE__ */ e.jsxs("div", { className: "pt-[--padding-content-top]", children: [
558
555
  /* @__PURE__ */ e.jsxs(
559
556
  "div",
560
557
  {
561
- className: m(
562
- C,
563
- "mb-16 max-w-full prose-img:max-w-prose"
564
- ),
558
+ className: h(j, "mb-16 max-w-full prose-img:max-w-prose"),
565
559
  children: [
566
- /* @__PURE__ */ e.jsx(S, { children: "Overview" }),
567
- /* @__PURE__ */ e.jsx(y, { level: 1, id: "description", registerSidebarAnchor: !0, children: n.data.schema.title }),
560
+ /* @__PURE__ */ e.jsx(k, { children: "Overview" }),
561
+ /* @__PURE__ */ e.jsx(g, { level: 1, id: "description", registerSidebarAnchor: !0, children: n.data.schema.title }),
568
562
  /* @__PURE__ */ e.jsx(p, { content: n.data.schema.description ?? "" })
569
563
  ]
570
564
  }
571
565
  ),
572
566
  n.data.schema.tags.filter((i) => i.operations.length > 0).map((i) => /* @__PURE__ */ e.jsxs("div", { children: [
573
- i.name && /* @__PURE__ */ e.jsx(S, { children: i.name }),
567
+ i.name && /* @__PURE__ */ e.jsx(k, { children: i.name }),
574
568
  i.description && /* @__PURE__ */ e.jsx(
575
569
  p,
576
570
  {
577
- className: `${C} mt-2 mb-12`,
571
+ className: `${j} max-w-full prose-img:max-w-prose w-full mt-2 mb-12`,
578
572
  content: i.description
579
573
  }
580
574
  ),
581
- /* @__PURE__ */ e.jsx("div", { className: "operation mb-12", children: /* @__PURE__ */ e.jsx(J, { children: i.operations.map((l) => /* @__PURE__ */ e.jsx(
582
- ge,
575
+ /* @__PURE__ */ e.jsx("div", { className: "operation mb-12", children: /* @__PURE__ */ e.jsx(_, { children: i.operations.map((l) => /* @__PURE__ */ e.jsx(
576
+ ye,
583
577
  {
584
578
  operationFragment: l
585
579
  },
@@ -589,7 +583,7 @@ const q = (t, s) => t.reduce(
589
583
  ] }) : null;
590
584
  };
591
585
  export {
592
- Ae as OperationList,
593
- fe as OperationsFragment
586
+ Le as OperationList,
587
+ ge as OperationsFragment
594
588
  };
595
- //# sourceMappingURL=OperationList-CJajXSzC.js.map
589
+ //# sourceMappingURL=OperationList-CYyaboNz.js.map