zudoku 0.35.5 → 0.35.6
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/lib/authentication/providers/openid.js +11 -7
- package/dist/lib/authentication/providers/openid.js.map +1 -1
- package/dist/lib/components/AnchorLink.js +3 -2
- package/dist/lib/components/AnchorLink.js.map +1 -1
- package/dist/lib/components/navigation/SidebarItem.js +3 -2
- package/dist/lib/components/navigation/SidebarItem.js.map +1 -1
- package/dist/lib/oas/graphql/index.d.ts +4 -3
- package/dist/lib/oas/graphql/index.js +9 -13
- package/dist/lib/oas/graphql/index.js.map +1 -1
- package/dist/lib/plugins/openapi/OperationList.js +1 -1
- package/dist/lib/plugins/openapi/OperationList.js.map +1 -1
- package/dist/lib/plugins/openapi/graphql/graphql.d.ts +1 -1
- package/dist/lib/plugins/openapi/graphql/graphql.js +1 -1
- package/dist/lib/plugins/openapi/graphql/graphql.js.map +1 -1
- package/lib/{Markdown-hBN9vkm5.js → Markdown-C0eXdzGn.js} +306 -306
- package/lib/{Markdown-hBN9vkm5.js.map → Markdown-C0eXdzGn.js.map} +1 -1
- package/lib/{MdxPage-UCWwxhzC.js → MdxPage-BKkG1cm1.js} +2 -2
- package/lib/{MdxPage-UCWwxhzC.js.map → MdxPage-BKkG1cm1.js.map} +1 -1
- package/lib/{OasProvider-CJ8KOnsH.js → OasProvider-CwhKwrwl.js} +2 -2
- package/lib/{OasProvider-CJ8KOnsH.js.map → OasProvider-CwhKwrwl.js.map} +1 -1
- package/lib/{OperationList-C4rpJdcE.js → OperationList-DGYoFitT.js} +4 -4
- package/lib/{OperationList-C4rpJdcE.js.map → OperationList-DGYoFitT.js.map} +1 -1
- package/lib/{SlotletProvider-D-XPr1Wg.js → SlotletProvider-BJC58V32.js} +2 -2
- package/lib/{SlotletProvider-D-XPr1Wg.js.map → SlotletProvider-BJC58V32.js.map} +1 -1
- package/lib/{createServer-BEFAOb-x.js → createServer-CbL1Uh2Q.js} +4108 -4066
- package/lib/createServer-CbL1Uh2Q.js.map +1 -0
- package/lib/{index-Dowg8c_k.js → index-Dm1QJHVl.js} +118 -116
- package/lib/index-Dm1QJHVl.js.map +1 -0
- package/lib/zudoku.auth-openid.js +282 -281
- package/lib/zudoku.auth-openid.js.map +1 -1
- package/lib/zudoku.components.js +2 -2
- package/lib/zudoku.plugin-api-catalog.js +1 -1
- package/lib/zudoku.plugin-api-keys.js +1 -1
- package/lib/zudoku.plugin-custom-pages.js +1 -1
- package/lib/zudoku.plugin-markdown.js +1 -1
- package/lib/zudoku.plugin-openapi.js +1 -1
- package/package.json +5 -5
- package/src/lib/authentication/providers/openid.tsx +12 -9
- package/src/lib/components/AnchorLink.tsx +4 -2
- package/src/lib/components/navigation/SidebarItem.tsx +3 -2
- package/src/lib/oas/graphql/index.ts +27 -27
- package/src/lib/plugins/openapi/OperationList.tsx +1 -1
- package/src/lib/plugins/openapi/graphql/graphql.ts +5 -4
- package/lib/createServer-BEFAOb-x.js.map +0 -1
- package/lib/index-Dowg8c_k.js.map +0 -1
|
@@ -3,19 +3,19 @@ var st = (t) => {
|
|
|
3
3
|
throw TypeError(t);
|
|
4
4
|
};
|
|
5
5
|
var Ft = (t, s, n) => s in t ? Vt(t, s, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[s] = n;
|
|
6
|
-
var
|
|
6
|
+
var J = (t, s, n) => Ft(t, typeof s != "symbol" ? s + "" : s, n), zt = (t, s, n) => s.has(t) || st("Cannot " + n);
|
|
7
7
|
var xe = (t, s, n) => (zt(t, s, "read from private field"), n ? n.call(t) : s.get(t)), ge = (t, s, n) => s.has(t) ? st("Cannot add the same private member more than once") : s instanceof WeakSet ? s.add(t) : s.set(t, n);
|
|
8
8
|
import { j as e } from "./jsx-runtime-CYK1ROHF.js";
|
|
9
|
-
import { s as
|
|
10
|
-
import { ChevronRightIcon as
|
|
9
|
+
import { s as re } from "./index-LNp6rxyU.js";
|
|
10
|
+
import { ChevronRightIcon as W, CheckIcon as Ht, DotIcon as Mt, Check as Bt, XIcon as Gt, Circle as _t, ChevronDownIcon as Jt, InfoIcon as nt, LogInIcon as Ut, CirclePlayIcon as Qt } from "lucide-react";
|
|
11
11
|
import { r as Wt, m as at } from "./chunk-HA7DTUK3-ZGg2W6yV.js";
|
|
12
12
|
import { h as Zt, p as Xt, i as Kt, k as Yt, l as es, e as ts } from "./hook-CfCFKZ-2.js";
|
|
13
|
-
import { Button as
|
|
13
|
+
import { Button as Z } from "./ui/Button.js";
|
|
14
14
|
import { j as q } from "./joinUrl-10po2Jdj.js";
|
|
15
15
|
import { Z as ss } from "./invariant-Caa8-XvF.js";
|
|
16
16
|
import { VisuallyHidden as ns } from "@radix-ui/react-visually-hidden";
|
|
17
17
|
import * as y from "react";
|
|
18
|
-
import { Fragment as O, useRef as G, useEffect as
|
|
18
|
+
import { Fragment as O, useRef as G, useEffect as oe, useState as I, useCallback as as, useTransition as rs } from "react";
|
|
19
19
|
import { D as ke, a as Oe, b as Ae, d as gt, e as ft, f as os } from "./Dialog-sbgekbjb.js";
|
|
20
20
|
import { S as Ne, a as we, b as Ce, c as Se, e as U, u as is } from "./Select-FAYHOYTy.js";
|
|
21
21
|
import { b as Le, u as qe, C as A, a as ls, F as ds } from "./index.esm--gIChbWs.js";
|
|
@@ -27,14 +27,14 @@ import { z as us } from "./index-DwT-v3zK.js";
|
|
|
27
27
|
import { B as L, S as ps } from "./Spinner-C6n4eOvh.js";
|
|
28
28
|
import * as b from "@radix-ui/react-dropdown-menu";
|
|
29
29
|
import * as Te from "@radix-ui/react-checkbox";
|
|
30
|
-
import * as
|
|
30
|
+
import * as ie from "@radix-ui/react-popover";
|
|
31
31
|
import { PopoverAnchor as hs } from "@radix-ui/react-popover";
|
|
32
32
|
import { T as xs } from "./index-gQD2h1wX.js";
|
|
33
33
|
import { g as gs, h as fs, C as ys, b as js, f as vs } from "./Callout-B2vsR09t.js";
|
|
34
34
|
import { Input as De } from "./ui/Input.js";
|
|
35
35
|
import { Slot as bs } from "@radix-ui/react-slot";
|
|
36
36
|
import * as bt from "@radix-ui/react-label";
|
|
37
|
-
import * as
|
|
37
|
+
import * as X from "@radix-ui/react-radio-group";
|
|
38
38
|
import { Callout as Ns } from "./ui/Callout.js";
|
|
39
39
|
import { Card as Nt, CardHeader as ws, CardTitle as Cs, CardContent as Ss } from "./ui/Card.js";
|
|
40
40
|
import { Collapsible as rt, CollapsibleTrigger as ot, CollapsibleContent as it } from "./ui/Collapsible.js";
|
|
@@ -49,16 +49,16 @@ const Ps = (t) => {
|
|
|
49
49
|
developerHint: "Check your configuration value `apis.type` and `apis.input` in the Zudoku config."
|
|
50
50
|
});
|
|
51
51
|
};
|
|
52
|
-
var
|
|
52
|
+
var ce, me;
|
|
53
53
|
class Is {
|
|
54
54
|
constructor(s) {
|
|
55
|
-
ge(this,
|
|
55
|
+
ge(this, ce, async () => (fe || (fe = import("./createServer-CbL1Uh2Q.js").then(
|
|
56
56
|
(s) => s.createServer(this.config)
|
|
57
57
|
)), fe));
|
|
58
|
-
ge(this,
|
|
59
|
-
|
|
58
|
+
ge(this, me, async (s) => this.config.server ? fetch(this.config.server, s) : (await xe(this, ce).call(this)).fetch("http://localhost/graphql", s));
|
|
59
|
+
J(this, "fetch", async (s, ...[n]) => {
|
|
60
60
|
var l;
|
|
61
|
-
const a = (l = s.match(/query (\w+)/)) == null ? void 0 : l[1], r = await xe(this,
|
|
61
|
+
const a = (l = s.match(/query (\w+)/)) == null ? void 0 : l[1], r = await xe(this, me).call(this, {
|
|
62
62
|
method: "POST",
|
|
63
63
|
body: JSON.stringify({ query: s, variables: n, operationName: a }),
|
|
64
64
|
headers: { "Content-Type": "application/json" }
|
|
@@ -71,18 +71,20 @@ class Is {
|
|
|
71
71
|
this.config = s;
|
|
72
72
|
}
|
|
73
73
|
}
|
|
74
|
-
|
|
75
|
-
class
|
|
74
|
+
ce = new WeakMap(), me = new WeakMap();
|
|
75
|
+
class _ extends String {
|
|
76
76
|
constructor(n, a) {
|
|
77
77
|
super(n);
|
|
78
|
-
|
|
78
|
+
J(this, "__apiType");
|
|
79
|
+
J(this, "value");
|
|
80
|
+
J(this, "__meta__");
|
|
79
81
|
this.value = n, this.__meta__ = a;
|
|
80
82
|
}
|
|
81
83
|
toString() {
|
|
82
84
|
return this.value;
|
|
83
85
|
}
|
|
84
86
|
}
|
|
85
|
-
const Rs = new
|
|
87
|
+
const Rs = new _(
|
|
86
88
|
`
|
|
87
89
|
fragment OperationsFragment on OperationItem {
|
|
88
90
|
slug
|
|
@@ -150,7 +152,7 @@ const Rs = new J(
|
|
|
150
152
|
}
|
|
151
153
|
`,
|
|
152
154
|
{ fragmentName: "OperationsFragment" }
|
|
153
|
-
), ks = new
|
|
155
|
+
), ks = new _(`
|
|
154
156
|
query ServersQuery($input: JSON!, $type: SchemaType!) {
|
|
155
157
|
schema(input: $input, type: $type) {
|
|
156
158
|
url
|
|
@@ -159,7 +161,7 @@ const Rs = new J(
|
|
|
159
161
|
}
|
|
160
162
|
}
|
|
161
163
|
}
|
|
162
|
-
`), Os = new
|
|
164
|
+
`), Os = new _(`
|
|
163
165
|
query AllOperations($input: JSON!, $type: SchemaType!, $tag: String, $untagged: Boolean) {
|
|
164
166
|
schema(input: $input, type: $type) {
|
|
165
167
|
servers {
|
|
@@ -243,7 +245,7 @@ const Rs = new J(
|
|
|
243
245
|
schema
|
|
244
246
|
}
|
|
245
247
|
}
|
|
246
|
-
}`), As = new
|
|
248
|
+
}`), As = new _(`
|
|
247
249
|
query getServerQuery($input: JSON!, $type: SchemaType!) {
|
|
248
250
|
schema(input: $input, type: $type) {
|
|
249
251
|
url
|
|
@@ -252,7 +254,7 @@ const Rs = new J(
|
|
|
252
254
|
}
|
|
253
255
|
}
|
|
254
256
|
}
|
|
255
|
-
`), Ls = new
|
|
257
|
+
`), Ls = new _(`
|
|
256
258
|
query GetCategories($input: JSON!, $type: SchemaType!) {
|
|
257
259
|
schema(input: $input, type: $type) {
|
|
258
260
|
url
|
|
@@ -261,7 +263,7 @@ const Rs = new J(
|
|
|
261
263
|
}
|
|
262
264
|
}
|
|
263
265
|
}
|
|
264
|
-
`), qs = new
|
|
266
|
+
`), qs = new _(`
|
|
265
267
|
query GetOperations($input: JSON!, $type: SchemaType!, $tag: String) {
|
|
266
268
|
schema(input: $input, type: $type) {
|
|
267
269
|
operations(tag: $tag) {
|
|
@@ -403,7 +405,7 @@ const ye = (t) => Math.abs(
|
|
|
403
405
|
onClick: i
|
|
404
406
|
}) => {
|
|
405
407
|
const l = G(null), m = n == null ? void 0 : n.replace(/[{}]/g, ""), d = t.replace(/[{}]/g, ""), { text: c, background: g } = Fs(d), w = `hsl(${c} / 100%)`, v = `hsl(${g} / 10%)`, h = `hsl(${g} / 50%)`;
|
|
406
|
-
return
|
|
408
|
+
return oe(() => {
|
|
407
409
|
if (!m || !l.current) return;
|
|
408
410
|
const j = () => {
|
|
409
411
|
document.querySelectorAll(`[${ve}="${m}"]`).forEach((f) => {
|
|
@@ -464,7 +466,7 @@ const ye = (t) => Math.abs(
|
|
|
464
466
|
...a,
|
|
465
467
|
children: [
|
|
466
468
|
n,
|
|
467
|
-
/* @__PURE__ */ e.jsx(
|
|
469
|
+
/* @__PURE__ */ e.jsx(W, { className: "ml-auto h-4 w-4" })
|
|
468
470
|
]
|
|
469
471
|
}
|
|
470
472
|
));
|
|
@@ -525,7 +527,7 @@ const Gs = y.forwardRef(({ className: t, children: s, checked: n, ...a }, r) =>
|
|
|
525
527
|
}
|
|
526
528
|
));
|
|
527
529
|
Gs.displayName = b.CheckboxItem.displayName;
|
|
528
|
-
const
|
|
530
|
+
const _s = y.forwardRef(({ className: t, children: s, ...n }, a) => /* @__PURE__ */ e.jsxs(
|
|
529
531
|
b.RadioItem,
|
|
530
532
|
{
|
|
531
533
|
ref: a,
|
|
@@ -540,7 +542,7 @@ const Js = y.forwardRef(({ className: t, children: s, ...n }, a) => /* @__PURE__
|
|
|
540
542
|
]
|
|
541
543
|
}
|
|
542
544
|
));
|
|
543
|
-
|
|
545
|
+
_s.displayName = b.RadioItem.displayName;
|
|
544
546
|
const Pt = y.forwardRef(({ className: t, inset: s, ...n }, a) => /* @__PURE__ */ e.jsx(
|
|
545
547
|
b.Label,
|
|
546
548
|
{
|
|
@@ -563,7 +565,7 @@ const It = y.forwardRef(({ className: t, ...s }, n) => /* @__PURE__ */ e.jsx(
|
|
|
563
565
|
}
|
|
564
566
|
));
|
|
565
567
|
It.displayName = b.Separator.displayName;
|
|
566
|
-
const
|
|
568
|
+
const Js = ({
|
|
567
569
|
examples: t,
|
|
568
570
|
onSelect: s
|
|
569
571
|
}) => /* @__PURE__ */ e.jsxs(Tt, { children: [
|
|
@@ -590,7 +592,7 @@ const Us = ({
|
|
|
590
592
|
)) })
|
|
591
593
|
] }, n.mediaType);
|
|
592
594
|
}) })
|
|
593
|
-
] }),
|
|
595
|
+
] }), K = y.forwardRef(({ className: t, ...s }, n) => /* @__PURE__ */ e.jsx(
|
|
594
596
|
"div",
|
|
595
597
|
{
|
|
596
598
|
ref: n,
|
|
@@ -601,8 +603,8 @@ const Us = ({
|
|
|
601
603
|
...s
|
|
602
604
|
}
|
|
603
605
|
));
|
|
604
|
-
|
|
605
|
-
const
|
|
606
|
+
K.displayName = "Card";
|
|
607
|
+
const Us = y.forwardRef(({ className: t, ...s }, n) => /* @__PURE__ */ e.jsx(
|
|
606
608
|
"div",
|
|
607
609
|
{
|
|
608
610
|
ref: n,
|
|
@@ -610,7 +612,7 @@ const _s = y.forwardRef(({ className: t, ...s }, n) => /* @__PURE__ */ e.jsx(
|
|
|
610
612
|
...s
|
|
611
613
|
}
|
|
612
614
|
));
|
|
613
|
-
|
|
615
|
+
Us.displayName = "CardHeader";
|
|
614
616
|
const Qs = y.forwardRef(({ className: t, ...s }, n) => /* @__PURE__ */ e.jsx(
|
|
615
617
|
"h3",
|
|
616
618
|
{
|
|
@@ -640,7 +642,7 @@ const Xs = y.forwardRef(({ className: t, ...s }, n) => /* @__PURE__ */ e.jsx(
|
|
|
640
642
|
}
|
|
641
643
|
));
|
|
642
644
|
Xs.displayName = "CardFooter";
|
|
643
|
-
const
|
|
645
|
+
const ue = y.forwardRef(({ className: t, ...s }, n) => /* @__PURE__ */ e.jsx(
|
|
644
646
|
Te.Root,
|
|
645
647
|
{
|
|
646
648
|
ref: n,
|
|
@@ -659,9 +661,9 @@ const me = y.forwardRef(({ className: t, ...s }, n) => /* @__PURE__ */ e.jsx(
|
|
|
659
661
|
)
|
|
660
662
|
}
|
|
661
663
|
));
|
|
662
|
-
|
|
663
|
-
const Ks =
|
|
664
|
-
|
|
664
|
+
ue.displayName = Te.Root.displayName;
|
|
665
|
+
const Ks = ie.Root, Rt = y.forwardRef(({ className: t, align: s = "center", sideOffset: n = 4, ...a }, r) => /* @__PURE__ */ e.jsx(ie.Portal, { children: /* @__PURE__ */ e.jsx(
|
|
666
|
+
ie.Content,
|
|
665
667
|
{
|
|
666
668
|
ref: r,
|
|
667
669
|
align: s,
|
|
@@ -673,7 +675,7 @@ const Ks = oe.Root, Rt = y.forwardRef(({ className: t, align: s = "center", side
|
|
|
673
675
|
...a
|
|
674
676
|
}
|
|
675
677
|
) }));
|
|
676
|
-
Rt.displayName =
|
|
678
|
+
Rt.displayName = ie.Content.displayName;
|
|
677
679
|
const Ys = ({
|
|
678
680
|
value: t,
|
|
679
681
|
options: s,
|
|
@@ -737,7 +739,7 @@ const Ys = ({
|
|
|
737
739
|
}
|
|
738
740
|
)
|
|
739
741
|
] });
|
|
740
|
-
},
|
|
742
|
+
}, le = ({ shouldFilter: t, ...s }) => /* @__PURE__ */ e.jsx(gs, { className: "bg-transparent", shouldFilter: t, children: /* @__PURE__ */ e.jsx(Ys, { ...s }) }), ze = (t, s) => {
|
|
741
743
|
const n = y.forwardRef(({ className: a, asChild: r, ...i }, l) => {
|
|
742
744
|
const m = r ? bs : t;
|
|
743
745
|
return y.createElement(m, {
|
|
@@ -790,7 +792,7 @@ const Ys = ({
|
|
|
790
792
|
}), { setValue: i, watch: l } = qe(), m = G([]), d = G([]), c = l("headers"), g = as(() => {
|
|
791
793
|
a({ name: "", value: "", active: !1 });
|
|
792
794
|
}, [a]);
|
|
793
|
-
|
|
795
|
+
oe(() => {
|
|
794
796
|
c.length === 0 && g();
|
|
795
797
|
}, [c, g]);
|
|
796
798
|
const w = (j) => {
|
|
@@ -803,7 +805,7 @@ const Ys = ({
|
|
|
803
805
|
});
|
|
804
806
|
}, h = s.filter((j) => !c.some((u) => u.name === j.name)).map(({ name: j }) => j);
|
|
805
807
|
return /* @__PURE__ */ e.jsxs("div", { className: "flex flex-col gap-2", children: [
|
|
806
|
-
/* @__PURE__ */ e.jsx(
|
|
808
|
+
/* @__PURE__ */ e.jsx(K, { className: "overflow-hidden", children: /* @__PURE__ */ e.jsx(He, { children: n.map((j, u) => {
|
|
807
809
|
const x = s.find(
|
|
808
810
|
(f) => f.name === l(`headers.${u}.name`)
|
|
809
811
|
);
|
|
@@ -815,7 +817,7 @@ const Ys = ({
|
|
|
815
817
|
control: t,
|
|
816
818
|
name: `headers.${u}.active`,
|
|
817
819
|
render: ({ field: f }) => /* @__PURE__ */ e.jsx(
|
|
818
|
-
|
|
820
|
+
ue,
|
|
819
821
|
{
|
|
820
822
|
id: `headers.${u}.active`,
|
|
821
823
|
checked: f.value,
|
|
@@ -832,7 +834,7 @@ const Ys = ({
|
|
|
832
834
|
control: t,
|
|
833
835
|
name: `headers.${u}.name`,
|
|
834
836
|
render: ({ field: f }) => /* @__PURE__ */ e.jsx(
|
|
835
|
-
|
|
837
|
+
le,
|
|
836
838
|
{
|
|
837
839
|
...f,
|
|
838
840
|
placeholder: "Name",
|
|
@@ -857,7 +859,7 @@ const Ys = ({
|
|
|
857
859
|
control: t,
|
|
858
860
|
name: `headers.${u}.value`,
|
|
859
861
|
render: ({ field: f }) => (x == null ? void 0 : x.enum) && x.enum.length > 0 ? /* @__PURE__ */ e.jsx(
|
|
860
|
-
|
|
862
|
+
le,
|
|
861
863
|
{
|
|
862
864
|
shouldFilter: !1,
|
|
863
865
|
value: f.value,
|
|
@@ -885,7 +887,7 @@ const Ys = ({
|
|
|
885
887
|
}
|
|
886
888
|
),
|
|
887
889
|
/* @__PURE__ */ e.jsx(
|
|
888
|
-
|
|
890
|
+
Z,
|
|
889
891
|
{
|
|
890
892
|
size: "icon",
|
|
891
893
|
variant: "ghost",
|
|
@@ -899,7 +901,7 @@ const Ys = ({
|
|
|
899
901
|
] }, j.id);
|
|
900
902
|
}) }) }),
|
|
901
903
|
/* @__PURE__ */ e.jsx("div", { className: "text-end", children: /* @__PURE__ */ e.jsx(
|
|
902
|
-
|
|
904
|
+
Z,
|
|
903
905
|
{
|
|
904
906
|
className: "",
|
|
905
907
|
onClick: g,
|
|
@@ -921,16 +923,16 @@ const Ys = ({
|
|
|
921
923
|
));
|
|
922
924
|
M.displayName = bt.Root.displayName;
|
|
923
925
|
const Be = y.forwardRef(({ className: t, ...s }, n) => /* @__PURE__ */ e.jsx(
|
|
924
|
-
|
|
926
|
+
X.Root,
|
|
925
927
|
{
|
|
926
928
|
className: p("grid gap-2", t),
|
|
927
929
|
...s,
|
|
928
930
|
ref: n
|
|
929
931
|
}
|
|
930
932
|
));
|
|
931
|
-
Be.displayName =
|
|
932
|
-
const
|
|
933
|
-
|
|
933
|
+
Be.displayName = X.Root.displayName;
|
|
934
|
+
const de = y.forwardRef(({ className: t, ...s }, n) => /* @__PURE__ */ e.jsx(
|
|
935
|
+
X.Item,
|
|
934
936
|
{
|
|
935
937
|
ref: n,
|
|
936
938
|
className: p(
|
|
@@ -938,15 +940,15 @@ const le = y.forwardRef(({ className: t, ...s }, n) => /* @__PURE__ */ e.jsx(
|
|
|
938
940
|
t
|
|
939
941
|
),
|
|
940
942
|
...s,
|
|
941
|
-
children: /* @__PURE__ */ e.jsx(
|
|
943
|
+
children: /* @__PURE__ */ e.jsx(X.Indicator, { className: "flex items-center justify-center", children: /* @__PURE__ */ e.jsx(_t, { className: "h-2.5 w-2.5 fill-current text-current" }) })
|
|
942
944
|
}
|
|
943
945
|
));
|
|
944
|
-
|
|
946
|
+
de.displayName = X.Item.displayName;
|
|
945
947
|
const kt = ({
|
|
946
948
|
identities: t,
|
|
947
949
|
setValue: s,
|
|
948
950
|
value: n
|
|
949
|
-
}) => /* @__PURE__ */ e.jsx(
|
|
951
|
+
}) => /* @__PURE__ */ e.jsx(K, { className: "w-full overflow-hidden", children: /* @__PURE__ */ e.jsxs(
|
|
950
952
|
Be,
|
|
951
953
|
{
|
|
952
954
|
onValueChange: (a) => s(a),
|
|
@@ -961,7 +963,7 @@ const kt = ({
|
|
|
961
963
|
className: "h-12 border-b items-center flex p-4 cursor-pointer hover:bg-accent",
|
|
962
964
|
htmlFor: "none",
|
|
963
965
|
children: [
|
|
964
|
-
/* @__PURE__ */ e.jsx(
|
|
966
|
+
/* @__PURE__ */ e.jsx(de, { value: B, id: "none", children: "None" }),
|
|
965
967
|
/* @__PURE__ */ e.jsx(M, { htmlFor: "none", className: "ml-2", children: "None" })
|
|
966
968
|
]
|
|
967
969
|
}
|
|
@@ -971,7 +973,7 @@ const kt = ({
|
|
|
971
973
|
{
|
|
972
974
|
className: "h-12 border-b items-center flex p-4 cursor-pointer hover:bg-accent",
|
|
973
975
|
children: [
|
|
974
|
-
/* @__PURE__ */ e.jsx(
|
|
976
|
+
/* @__PURE__ */ e.jsx(de, { value: a.id, id: a.id, children: a.label }),
|
|
975
977
|
/* @__PURE__ */ e.jsx(M, { htmlFor: a.id, className: "ml-2", children: a.label })
|
|
976
978
|
]
|
|
977
979
|
},
|
|
@@ -1000,7 +1002,7 @@ const kt = ({
|
|
|
1000
1002
|
/* @__PURE__ */ e.jsxs(ft, { className: "flex flex-col gap-2", children: [
|
|
1001
1003
|
/* @__PURE__ */ e.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
1002
1004
|
/* @__PURE__ */ e.jsx(
|
|
1003
|
-
|
|
1005
|
+
ue,
|
|
1004
1006
|
{
|
|
1005
1007
|
id: "remember",
|
|
1006
1008
|
checked: l,
|
|
@@ -1030,7 +1032,7 @@ const kt = ({
|
|
|
1030
1032
|
}), a = [...n].sort(
|
|
1031
1033
|
(r, i) => s.indexOf(`{${r.name}}`) - s.indexOf(`{${i.name}}`)
|
|
1032
1034
|
);
|
|
1033
|
-
return /* @__PURE__ */ e.jsx(
|
|
1035
|
+
return /* @__PURE__ */ e.jsx(K, { className: "rounded-lg", children: /* @__PURE__ */ e.jsx(He, { children: a.map((r, i) => /* @__PURE__ */ e.jsxs(Me, { children: [
|
|
1034
1036
|
/* @__PURE__ */ e.jsx(
|
|
1035
1037
|
A,
|
|
1036
1038
|
{
|
|
@@ -1074,7 +1076,7 @@ const kt = ({
|
|
|
1074
1076
|
control: t,
|
|
1075
1077
|
name: "queryParams"
|
|
1076
1078
|
}), a = qe(), r = s.map((i) => !!i.isRequired);
|
|
1077
|
-
return /* @__PURE__ */ e.jsx(
|
|
1079
|
+
return /* @__PURE__ */ e.jsx(K, { className: "rounded-lg", children: /* @__PURE__ */ e.jsx("div", { className: "w-full ", children: /* @__PURE__ */ e.jsx(He, { children: n.map((i, l) => {
|
|
1078
1080
|
const m = s.find(
|
|
1079
1081
|
(d) => d.name === a.watch(`queryParams.${l}.name`)
|
|
1080
1082
|
);
|
|
@@ -1086,7 +1088,7 @@ const kt = ({
|
|
|
1086
1088
|
control: t,
|
|
1087
1089
|
name: `queryParams.${l}.active`,
|
|
1088
1090
|
render: ({ field: d }) => /* @__PURE__ */ e.jsx(
|
|
1089
|
-
|
|
1091
|
+
ue,
|
|
1090
1092
|
{
|
|
1091
1093
|
id: `queryParams.${l}.active`,
|
|
1092
1094
|
className: "mr-2",
|
|
@@ -1112,7 +1114,7 @@ const kt = ({
|
|
|
1112
1114
|
]
|
|
1113
1115
|
}
|
|
1114
1116
|
) }) : /* @__PURE__ */ e.jsx(
|
|
1115
|
-
|
|
1117
|
+
le,
|
|
1116
1118
|
{
|
|
1117
1119
|
value: d.value,
|
|
1118
1120
|
options: s.map((c) => c.name),
|
|
@@ -1131,7 +1133,7 @@ const kt = ({
|
|
|
1131
1133
|
{
|
|
1132
1134
|
control: t,
|
|
1133
1135
|
render: ({ field: d }) => (m == null ? void 0 : m.enum) && m.enum.length > 0 ? /* @__PURE__ */ e.jsx(
|
|
1134
|
-
|
|
1136
|
+
le,
|
|
1135
1137
|
{
|
|
1136
1138
|
value: d.value,
|
|
1137
1139
|
options: m.enum ?? [],
|
|
@@ -1218,7 +1220,7 @@ const kt = ({
|
|
|
1218
1220
|
/* @__PURE__ */ e.jsxs("div", { className: "mx-1.5 flex flex-col gap-3", children: [
|
|
1219
1221
|
/* @__PURE__ */ e.jsxs(rt, { defaultOpen: !0, children: [
|
|
1220
1222
|
/* @__PURE__ */ e.jsxs(ot, { className: "flex items-center gap-2 hover:text-primary group", children: [
|
|
1221
|
-
/* @__PURE__ */ e.jsx(
|
|
1223
|
+
/* @__PURE__ */ e.jsx(W, { className: "h-4 w-4 transition-transform duration-200 group-data-[state=open]:rotate-[90deg]" }),
|
|
1222
1224
|
/* @__PURE__ */ e.jsx("span", { className: "font-semibold", children: "Headers" })
|
|
1223
1225
|
] }),
|
|
1224
1226
|
/* @__PURE__ */ e.jsx(it, { children: /* @__PURE__ */ e.jsx("div", { className: "grid grid-cols-[auto,1fr] gap-x-8 gap-y-1 pl-1.5 pt-2", children: n.map(([r, i]) => /* @__PURE__ */ e.jsxs(O, { children: [
|
|
@@ -1228,7 +1230,7 @@ const kt = ({
|
|
|
1228
1230
|
] }),
|
|
1229
1231
|
/* @__PURE__ */ e.jsxs(rt, { defaultOpen: !0, children: [
|
|
1230
1232
|
/* @__PURE__ */ e.jsxs(ot, { className: "flex items-center gap-2 hover:text-primary group", children: [
|
|
1231
|
-
/* @__PURE__ */ e.jsx(
|
|
1233
|
+
/* @__PURE__ */ e.jsx(W, { className: "h-4 w-4 transition-transform duration-200 group-data-[state=open]:rotate-[90deg]" }),
|
|
1232
1234
|
/* @__PURE__ */ e.jsx("span", { className: "font-semibold", children: "Body" })
|
|
1233
1235
|
] }),
|
|
1234
1236
|
/* @__PURE__ */ e.jsx(it, { children: /* @__PURE__ */ e.jsx("div", { className: "pl-0 pt-2", children: /* @__PURE__ */ e.jsx(
|
|
@@ -1337,7 +1339,7 @@ const xn = {
|
|
|
1337
1339
|
return /* @__PURE__ */ e.jsxs("div", { className: "flex flex-col gap-2 h-full overflow-auto max-h-[calc(100vh-220px)] ", children: [
|
|
1338
1340
|
/* @__PURE__ */ e.jsxs(dt, { defaultOpen: !0, children: [
|
|
1339
1341
|
/* @__PURE__ */ e.jsxs(ct, { className: "flex items-center gap-2 hover:text-primary group", children: [
|
|
1340
|
-
/* @__PURE__ */ e.jsx(
|
|
1342
|
+
/* @__PURE__ */ e.jsx(W, { className: "h-4 w-4 transition-transform duration-200 group-data-[state=open]:rotate-[90deg]" }),
|
|
1341
1343
|
/* @__PURE__ */ e.jsx("span", { className: "font-semibold", children: "Headers" })
|
|
1342
1344
|
] }),
|
|
1343
1345
|
/* @__PURE__ */ e.jsx(mt, { children: /* @__PURE__ */ e.jsxs("div", { className: "grid grid-cols-[auto,1fr] gap-x-8 gap-y-1 pl-1.5 pt-2 font-mono text-xs", children: [
|
|
@@ -1347,7 +1349,7 @@ const xn = {
|
|
|
1347
1349
|
] }, u)),
|
|
1348
1350
|
v.length > 5 && /* @__PURE__ */ e.jsxs(dt, { className: "col-span-full grid-cols-subgrid grid", children: [
|
|
1349
1351
|
/* @__PURE__ */ e.jsxs(ct, { className: "col-span-2 text-xs text-muted-foreground hover:text-primary flex items-center gap-1 py-1", children: [
|
|
1350
|
-
/* @__PURE__ */ e.jsx(
|
|
1352
|
+
/* @__PURE__ */ e.jsx(W, { className: "h-3 w-3 transition-transform duration-200 group-data-[state=open]:rotate-[90deg]" }),
|
|
1351
1353
|
"Show ",
|
|
1352
1354
|
v.length - 5,
|
|
1353
1355
|
" more headers"
|
|
@@ -1482,7 +1484,7 @@ const xn = {
|
|
|
1482
1484
|
children: [
|
|
1483
1485
|
"Looks like the request is taking longer than expected.",
|
|
1484
1486
|
/* @__PURE__ */ e.jsx(
|
|
1485
|
-
|
|
1487
|
+
Z,
|
|
1486
1488
|
{
|
|
1487
1489
|
onClick: a,
|
|
1488
1490
|
size: "sm",
|
|
@@ -1521,7 +1523,7 @@ const xn = {
|
|
|
1521
1523
|
disabled: n,
|
|
1522
1524
|
className: "rounded-l-none border-l border-border/40 inset-shadow-sm w-6",
|
|
1523
1525
|
size: "icon",
|
|
1524
|
-
children: /* @__PURE__ */ e.jsx(
|
|
1526
|
+
children: /* @__PURE__ */ e.jsx(Jt, { className: "w-4 h-4" })
|
|
1525
1527
|
}
|
|
1526
1528
|
) }),
|
|
1527
1529
|
/* @__PURE__ */ e.jsx(Be, { value: r, children: /* @__PURE__ */ e.jsx(Ve, { className: "w-56", align: "end", alignOffset: -150, children: [{ id: B, label: "None" }, ...t].map(
|
|
@@ -1535,7 +1537,7 @@ const xn = {
|
|
|
1535
1537
|
onMouseEnter: () => i(l.id),
|
|
1536
1538
|
onMouseLeave: () => i(void 0),
|
|
1537
1539
|
children: [
|
|
1538
|
-
/* @__PURE__ */ e.jsx(
|
|
1540
|
+
/* @__PURE__ */ e.jsx(de, { value: l.id, className: "mr-2" }),
|
|
1539
1541
|
l.label
|
|
1540
1542
|
]
|
|
1541
1543
|
},
|
|
@@ -1567,7 +1569,7 @@ const xn = {
|
|
|
1567
1569
|
var Xe, Ke;
|
|
1568
1570
|
const { selectedServer: v, setSelectedServer: h } = Yt(
|
|
1569
1571
|
s.map((o) => ({ url: o }))
|
|
1570
|
-
), [j, u] = I(!1), x = es(), { setRememberedIdentity: f, getRememberedIdentity: $ } = ln(), [, T] = rs(), [
|
|
1572
|
+
), [j, u] = I(!1), x = es(), { setRememberedIdentity: f, getRememberedIdentity: $ } = ln(), [, T] = rs(), [Y, ee] = I(!1), [te, D] = I(!1), se = G(void 0), _e = cs(f), { register: Je, control: ne, handleSubmit: Ue, watch: Qe, setValue: E, ...pe } = ls({
|
|
1571
1573
|
defaultValues: {
|
|
1572
1574
|
body: m,
|
|
1573
1575
|
bodyContentType: "JSON",
|
|
@@ -1604,10 +1606,10 @@ const xn = {
|
|
|
1604
1606
|
)
|
|
1605
1607
|
}
|
|
1606
1608
|
}), C = Qe(), We = G(null);
|
|
1607
|
-
|
|
1608
|
-
C.identity &&
|
|
1609
|
-
}, [
|
|
1610
|
-
const
|
|
1609
|
+
oe(() => {
|
|
1610
|
+
C.identity && _e.current(C.identity);
|
|
1611
|
+
}, [_e, C.identity]);
|
|
1612
|
+
const he = is({
|
|
1611
1613
|
mutationFn: async (o) => {
|
|
1612
1614
|
var Ye, et;
|
|
1613
1615
|
const S = performance.now(), k = !o.headers.some(
|
|
@@ -1628,10 +1630,10 @@ const xn = {
|
|
|
1628
1630
|
() => D(!0),
|
|
1629
1631
|
3210
|
|
1630
1632
|
);
|
|
1631
|
-
|
|
1633
|
+
se.current = new AbortController();
|
|
1632
1634
|
try {
|
|
1633
1635
|
const N = await fetch(P, {
|
|
1634
|
-
signal:
|
|
1636
|
+
signal: se.current.signal
|
|
1635
1637
|
});
|
|
1636
1638
|
clearTimeout(F), D(!1);
|
|
1637
1639
|
const Dt = performance.now() - S, tt = await N.text(), Et = new URL(P.url);
|
|
@@ -1659,9 +1661,9 @@ const xn = {
|
|
|
1659
1661
|
}
|
|
1660
1662
|
}
|
|
1661
1663
|
});
|
|
1662
|
-
|
|
1664
|
+
oe(() => () => {
|
|
1663
1665
|
var o;
|
|
1664
|
-
(o =
|
|
1666
|
+
(o = se.current) == null || o.abort();
|
|
1665
1667
|
}, []);
|
|
1666
1668
|
const At = /* @__PURE__ */ e.jsx(
|
|
1667
1669
|
Vs,
|
|
@@ -1678,7 +1680,7 @@ const xn = {
|
|
|
1678
1680
|
name: o,
|
|
1679
1681
|
backgroundOpacity: "0",
|
|
1680
1682
|
slug: o,
|
|
1681
|
-
onClick: () =>
|
|
1683
|
+
onClick: () => pe.setFocus(`pathParams.${k}.value`),
|
|
1682
1684
|
children: V || S
|
|
1683
1685
|
}
|
|
1684
1686
|
);
|
|
@@ -1703,24 +1705,24 @@ const xn = {
|
|
|
1703
1705
|
/* @__PURE__ */ e.jsx(Se, { children: s.map((o) => /* @__PURE__ */ e.jsx(U, { value: o, children: o.replace(/^https?:\/\//, "").replace(/\/$/, "") }, o)) })
|
|
1704
1706
|
]
|
|
1705
1707
|
}
|
|
1706
|
-
) }), qt = c && !
|
|
1708
|
+
) }), qt = c && !Y, ae = ["POST", "PUT", "PATCH", "DELETE"].includes(
|
|
1707
1709
|
a.toUpperCase()
|
|
1708
1710
|
);
|
|
1709
1711
|
return /* @__PURE__ */ e.jsx(
|
|
1710
1712
|
ds,
|
|
1711
1713
|
{
|
|
1712
|
-
register:
|
|
1713
|
-
control:
|
|
1714
|
-
handleSubmit:
|
|
1714
|
+
register: Je,
|
|
1715
|
+
control: ne,
|
|
1716
|
+
handleSubmit: Ue,
|
|
1715
1717
|
watch: Qe,
|
|
1716
1718
|
setValue: E,
|
|
1717
|
-
...
|
|
1719
|
+
...pe,
|
|
1718
1720
|
children: /* @__PURE__ */ e.jsxs(
|
|
1719
1721
|
"form",
|
|
1720
1722
|
{
|
|
1721
|
-
onSubmit:
|
|
1723
|
+
onSubmit: Ue((o) => {
|
|
1722
1724
|
var S;
|
|
1723
|
-
((S = x.data) == null ? void 0 : S.length) === 0 || o.identity ?
|
|
1725
|
+
((S = x.data) == null ? void 0 : S.length) === 0 || o.identity ? he.mutate(o) : u(!0);
|
|
1724
1726
|
}),
|
|
1725
1727
|
ref: We,
|
|
1726
1728
|
className: "relative",
|
|
@@ -1732,7 +1734,7 @@ const xn = {
|
|
|
1732
1734
|
open: j,
|
|
1733
1735
|
onOpenChange: u,
|
|
1734
1736
|
onSubmit: ({ rememberedIdentity: o, identity: S }) => {
|
|
1735
|
-
o && E("identity", S ?? B), u(!1),
|
|
1737
|
+
o && E("identity", S ?? B), u(!1), he.mutate({ ...C, identity: S });
|
|
1736
1738
|
}
|
|
1737
1739
|
}
|
|
1738
1740
|
),
|
|
@@ -1740,7 +1742,7 @@ const xn = {
|
|
|
1740
1742
|
dn,
|
|
1741
1743
|
{
|
|
1742
1744
|
open: qt,
|
|
1743
|
-
setOpen: (o) =>
|
|
1745
|
+
setOpen: (o) => ee(!o),
|
|
1744
1746
|
onSignUp: w,
|
|
1745
1747
|
onLogin: g
|
|
1746
1748
|
}
|
|
@@ -1762,7 +1764,7 @@ const xn = {
|
|
|
1762
1764
|
{
|
|
1763
1765
|
identities: x.data ?? [],
|
|
1764
1766
|
formRef: We,
|
|
1765
|
-
disabled: x.isLoading ||
|
|
1767
|
+
disabled: x.isLoading || pe.formState.isSubmitting
|
|
1766
1768
|
}
|
|
1767
1769
|
)
|
|
1768
1770
|
] }),
|
|
@@ -1785,15 +1787,15 @@ const xn = {
|
|
|
1785
1787
|
C.body && /* @__PURE__ */ e.jsx("div", { className: "w-2 h-2 rounded-full bg-blue-400 ml-2" })
|
|
1786
1788
|
] })
|
|
1787
1789
|
] }) }),
|
|
1788
|
-
/* @__PURE__ */ e.jsx(H, { value: "headers", children: /* @__PURE__ */ e.jsx(tn, { control:
|
|
1790
|
+
/* @__PURE__ */ e.jsx(H, { value: "headers", children: /* @__PURE__ */ e.jsx(tn, { control: ne, headers: r }) }),
|
|
1789
1791
|
/* @__PURE__ */ e.jsxs(H, { value: "parameters", children: [
|
|
1790
1792
|
l.length > 0 && /* @__PURE__ */ e.jsxs("div", { className: "flex flex-col gap-4 my-4", children: [
|
|
1791
1793
|
/* @__PURE__ */ e.jsx("span", { className: "font-semibold", children: "Path Parameters" }),
|
|
1792
|
-
/* @__PURE__ */ e.jsx(an, { url: n, control:
|
|
1794
|
+
/* @__PURE__ */ e.jsx(an, { url: n, control: ne })
|
|
1793
1795
|
] }),
|
|
1794
1796
|
/* @__PURE__ */ e.jsxs("div", { className: "flex flex-col gap-4 my-4", children: [
|
|
1795
1797
|
/* @__PURE__ */ e.jsx("span", { className: "font-semibold", children: "Query Parameters" }),
|
|
1796
|
-
/* @__PURE__ */ e.jsx(on, { control:
|
|
1798
|
+
/* @__PURE__ */ e.jsx(on, { control: ne, queryParams: i })
|
|
1797
1799
|
] })
|
|
1798
1800
|
] }),
|
|
1799
1801
|
/* @__PURE__ */ e.jsxs(H, { value: "body", children: [
|
|
@@ -1807,16 +1809,16 @@ const xn = {
|
|
|
1807
1809
|
/* @__PURE__ */ e.jsx(
|
|
1808
1810
|
Ct,
|
|
1809
1811
|
{
|
|
1810
|
-
...
|
|
1812
|
+
...Je("body"),
|
|
1811
1813
|
className: p(
|
|
1812
1814
|
"border w-full rounded-lg bg-muted/40 p-2 h-64 font-mono text-[13px]",
|
|
1813
|
-
!
|
|
1815
|
+
!ae && "h-20 bg-muted"
|
|
1814
1816
|
),
|
|
1815
|
-
placeholder:
|
|
1816
|
-
disabled: !
|
|
1817
|
+
placeholder: ae ? void 0 : "This request does not support a body",
|
|
1818
|
+
disabled: !ae
|
|
1817
1819
|
}
|
|
1818
1820
|
),
|
|
1819
|
-
|
|
1821
|
+
ae && /* @__PURE__ */ e.jsxs("div", { className: "flex items-center gap-2 mt-2 justify-between", children: [
|
|
1820
1822
|
/* @__PURE__ */ e.jsxs(
|
|
1821
1823
|
Ne,
|
|
1822
1824
|
{
|
|
@@ -1832,7 +1834,7 @@ const xn = {
|
|
|
1832
1834
|
}
|
|
1833
1835
|
),
|
|
1834
1836
|
d && d.length > 0 && /* @__PURE__ */ e.jsx(
|
|
1835
|
-
|
|
1837
|
+
Js,
|
|
1836
1838
|
{
|
|
1837
1839
|
examples: d,
|
|
1838
1840
|
onSelect: (o, S) => {
|
|
@@ -1870,14 +1872,14 @@ const xn = {
|
|
|
1870
1872
|
/* @__PURE__ */ e.jsx(
|
|
1871
1873
|
bn,
|
|
1872
1874
|
{
|
|
1873
|
-
queryMutation:
|
|
1875
|
+
queryMutation: he,
|
|
1874
1876
|
showPathParamsWarning: C.pathParams.some(
|
|
1875
1877
|
(o) => o.value === ""
|
|
1876
1878
|
),
|
|
1877
|
-
showLongRunningWarning:
|
|
1879
|
+
showLongRunningWarning: te,
|
|
1878
1880
|
onCancel: () => {
|
|
1879
1881
|
var o;
|
|
1880
|
-
(o =
|
|
1882
|
+
(o = se.current) == null || o.abort(
|
|
1881
1883
|
"Request cancelled by the user"
|
|
1882
1884
|
), D(!1);
|
|
1883
1885
|
}
|
|
@@ -1975,7 +1977,7 @@ const xn = {
|
|
|
1975
1977
|
}), xt = (t) => ({
|
|
1976
1978
|
path: t.routePath,
|
|
1977
1979
|
async lazy() {
|
|
1978
|
-
const { OasProvider: s } = await import("./OasProvider-
|
|
1980
|
+
const { OasProvider: s } = await import("./OasProvider-CwhKwrwl.js");
|
|
1979
1981
|
return {
|
|
1980
1982
|
element: /* @__PURE__ */ e.jsx(
|
|
1981
1983
|
s,
|
|
@@ -1996,13 +1998,13 @@ const xn = {
|
|
|
1996
1998
|
}) => ({
|
|
1997
1999
|
path: t,
|
|
1998
2000
|
async lazy() {
|
|
1999
|
-
const { OperationList: a } = await import("./OperationList-
|
|
2001
|
+
const { OperationList: a } = await import("./OperationList-DGYoFitT.js");
|
|
2000
2002
|
return { element: /* @__PURE__ */ e.jsx(a, { tag: s, untagged: n }) };
|
|
2001
2003
|
}
|
|
2002
2004
|
}), $n = (t, s) => {
|
|
2003
2005
|
const n = q(
|
|
2004
2006
|
t,
|
|
2005
|
-
s[0] ?
|
|
2007
|
+
s[0] ? re(s[0]) : Q
|
|
2006
2008
|
);
|
|
2007
2009
|
return [
|
|
2008
2010
|
// Redirect to first tag on the index route
|
|
@@ -2010,13 +2012,13 @@ const xn = {
|
|
|
2010
2012
|
// Create routes for each tag
|
|
2011
2013
|
...s.map(
|
|
2012
2014
|
(a) => Re({
|
|
2013
|
-
path: q(t,
|
|
2015
|
+
path: q(t, re(a)),
|
|
2014
2016
|
tag: a
|
|
2015
2017
|
})
|
|
2016
2018
|
),
|
|
2017
2019
|
// Category without tagged operations
|
|
2018
2020
|
Re({
|
|
2019
|
-
path: q(t,
|
|
2021
|
+
path: q(t, Q),
|
|
2020
2022
|
untagged: !0
|
|
2021
2023
|
})
|
|
2022
2024
|
];
|
|
@@ -2081,7 +2083,7 @@ const xn = {
|
|
|
2081
2083
|
}
|
|
2082
2084
|
}
|
|
2083
2085
|
}
|
|
2084
|
-
`),
|
|
2086
|
+
`), Q = "~endpoints", ia = (t) => {
|
|
2085
2087
|
const s = q(t.navigationId ?? "/reference"), n = new Is(t);
|
|
2086
2088
|
return {
|
|
2087
2089
|
getHead: () => {
|
|
@@ -2111,14 +2113,14 @@ const xn = {
|
|
|
2111
2113
|
if (!r)
|
|
2112
2114
|
throw new Error("Server is required");
|
|
2113
2115
|
return a && !c.isAuthenticated ? /* @__PURE__ */ e.jsxs(
|
|
2114
|
-
|
|
2116
|
+
Z,
|
|
2115
2117
|
{
|
|
2116
2118
|
className: "gap-2 items-center",
|
|
2117
2119
|
variant: "outline",
|
|
2118
2120
|
onClick: c.login,
|
|
2119
2121
|
children: [
|
|
2120
2122
|
"Login to open in Playground ",
|
|
2121
|
-
/* @__PURE__ */ e.jsx(
|
|
2123
|
+
/* @__PURE__ */ e.jsx(Ut, { size: 16 })
|
|
2122
2124
|
]
|
|
2123
2125
|
}
|
|
2124
2126
|
) : /* @__PURE__ */ e.jsx(
|
|
@@ -2128,7 +2130,7 @@ const xn = {
|
|
|
2128
2130
|
method: i ?? "get",
|
|
2129
2131
|
server: r,
|
|
2130
2132
|
...d,
|
|
2131
|
-
children: /* @__PURE__ */ e.jsx(
|
|
2133
|
+
children: /* @__PURE__ */ e.jsx(Z, { className: "gap-2 items-center", variant: "outline", children: m ?? /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
2132
2134
|
"Open in Playground ",
|
|
2133
2135
|
/* @__PURE__ */ e.jsx(Qt, { size: 16 })
|
|
2134
2136
|
] }) })
|
|
@@ -2146,7 +2148,7 @@ const xn = {
|
|
|
2146
2148
|
);
|
|
2147
2149
|
try {
|
|
2148
2150
|
const l = r == null ? void 0 : r.params.version, m = l ?? Ot(t).at(0), { type: d, options: c } = t, g = d === "file" ? t.input[m] : t.input, w = (c == null ? void 0 : c.loadTags) === !0 || t.type === "url", v = !(c != null && c.loadTags) && t.type !== "url", h = (i = t.tagPages) == null ? void 0 : i.find(
|
|
2149
|
-
(f) =>
|
|
2151
|
+
(f) => re(f) === (r == null ? void 0 : r.params.tag)
|
|
2150
2152
|
), [j, u] = await Promise.all([
|
|
2151
2153
|
n.fetch(In, { type: d, input: g }),
|
|
2152
2154
|
n.fetch(Rn, {
|
|
@@ -2158,17 +2160,17 @@ const xn = {
|
|
|
2158
2160
|
const $ = q(
|
|
2159
2161
|
s,
|
|
2160
2162
|
l,
|
|
2161
|
-
|
|
2163
|
+
re(f.name)
|
|
2162
2164
|
), T = u.schema.operations.filter(
|
|
2163
|
-
(
|
|
2164
|
-
var
|
|
2165
|
-
return ((
|
|
2165
|
+
(Y) => {
|
|
2166
|
+
var ee, te;
|
|
2167
|
+
return ((ee = Y.tags) == null ? void 0 : ee.length) !== 0 && ((te = Y.tags) == null ? void 0 : te.map((D) => D.name).includes(f.name));
|
|
2166
2168
|
}
|
|
2167
2169
|
);
|
|
2168
2170
|
return c != null && c.loadTags && T.length === 0 ? [] : ht({
|
|
2169
2171
|
label: f.name,
|
|
2170
2172
|
path: $,
|
|
2171
|
-
operations: (r == null ? void 0 : r.params.tag) !==
|
|
2173
|
+
operations: (r == null ? void 0 : r.params.tag) !== Q || c != null && c.loadTags ? T : [],
|
|
2172
2174
|
collapsible: w,
|
|
2173
2175
|
collapsed: v
|
|
2174
2176
|
});
|
|
@@ -2176,8 +2178,8 @@ const xn = {
|
|
|
2176
2178
|
return u.schema.untagged.length > 0 && x.push(
|
|
2177
2179
|
ht({
|
|
2178
2180
|
label: "Other endpoints",
|
|
2179
|
-
path: q(s, l,
|
|
2180
|
-
operations: (r == null ? void 0 : r.params.tag) ===
|
|
2181
|
+
path: q(s, l, Q),
|
|
2182
|
+
operations: (r == null ? void 0 : r.params.tag) === Q || c != null && c.loadTags ? u.schema.untagged : [],
|
|
2181
2183
|
collapsible: w,
|
|
2182
2184
|
collapsed: v
|
|
2183
2185
|
})
|
|
@@ -2192,7 +2194,7 @@ const xn = {
|
|
|
2192
2194
|
export {
|
|
2193
2195
|
St as C,
|
|
2194
2196
|
Sn as P,
|
|
2195
|
-
|
|
2197
|
+
Q as U,
|
|
2196
2198
|
wt as a,
|
|
2197
2199
|
dt as b,
|
|
2198
2200
|
mt as c,
|
|
@@ -2202,4 +2204,4 @@ export {
|
|
|
2202
2204
|
mn as m,
|
|
2203
2205
|
ia as o
|
|
2204
2206
|
};
|
|
2205
|
-
//# sourceMappingURL=index-
|
|
2207
|
+
//# sourceMappingURL=index-Dm1QJHVl.js.map
|