zudoku 0.3.0-dev.78 → 0.3.0-dev.79
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.d.ts +1 -1
- package/dist/lib/authentication/providers/openid.js +1 -1
- package/dist/lib/authentication/providers/openid.js.map +1 -1
- package/dist/lib/plugins/openapi/index.js +3 -5
- package/dist/lib/plugins/openapi/index.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/Playground.js +3 -3
- package/dist/lib/plugins/openapi/playground/Playground.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/PlaygroundDialog.d.ts +2 -1
- package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/ResponseTab.d.ts +4 -0
- package/dist/lib/plugins/openapi/playground/ResponseTab.js +40 -0
- package/dist/lib/plugins/openapi/playground/ResponseTab.js.map +1 -0
- package/dist/lib/ui/Button.d.ts +5 -1
- package/dist/lib/ui/Button.js +24 -1
- package/dist/lib/ui/Button.js.map +1 -1
- package/lib/{Combination-BIdpLnWg.js → Combination-CS4rK8IJ.js} +8 -8
- package/lib/Combination-CS4rK8IJ.js.map +1 -0
- package/lib/{Input-qyZciIJp.js → Input-GFpPXs5b.js} +2 -2
- package/lib/{Input-qyZciIJp.js.map → Input-GFpPXs5b.js.map} +1 -1
- package/lib/{OperationList-qfNEBPAx.js → OperationList-C-M33Hxu.js} +691 -720
- package/lib/OperationList-C-M33Hxu.js.map +1 -0
- package/lib/{Spinner-yPSFgoZ8.js → Spinner-oNQQyp-I.js} +2 -2
- package/lib/{Spinner-yPSFgoZ8.js.map → Spinner-oNQQyp-I.js.map} +1 -1
- package/lib/{index-BpO_SgPQ.js → index-D4bOMg7f.js} +3 -3
- package/lib/{index-BpO_SgPQ.js.map → index-D4bOMg7f.js.map} +1 -1
- package/lib/{index-DccqEFTy.js → index-Uqja2h2M.js} +264 -182
- package/lib/index-Uqja2h2M.js.map +1 -0
- package/lib/zudoku.auth-openid.js +1 -1
- package/lib/zudoku.auth-openid.js.map +1 -1
- package/lib/zudoku.components.js +3 -3
- package/lib/zudoku.plugin-api-keys.js +2 -2
- package/lib/zudoku.plugin-openapi.js +2 -2
- package/package.json +1 -1
- package/src/app/main.css +1 -1
- package/src/lib/authentication/providers/openid.tsx +1 -1
- package/src/lib/plugins/openapi/index.tsx +13 -7
- package/src/lib/plugins/openapi/playground/Playground.tsx +7 -11
- package/src/lib/plugins/openapi/playground/PlaygroundDialog.tsx +3 -1
- package/src/lib/plugins/openapi/playground/ResponseTab.tsx +76 -0
- package/src/lib/ui/Button.tsx +32 -2
- package/dist/lib/ui/button-variants.d.ts +0 -4
- package/dist/lib/ui/button-variants.js +0 -25
- package/dist/lib/ui/button-variants.js.map +0 -1
- package/lib/Combination-BIdpLnWg.js.map +0 -1
- package/lib/OperationList-qfNEBPAx.js.map +0 -1
- package/lib/index-DccqEFTy.js.map +0 -1
- package/src/lib/ui/button-variants.ts +0 -32
|
@@ -1,23 +1,33 @@
|
|
|
1
1
|
import { j as e, e as cn } from "./jsx-runtime-CJBdjYYx.js";
|
|
2
|
-
import { c as
|
|
2
|
+
import { c as L, a as g, P as mn, H as un, u as pn, g as vn, S as pe } from "./Markdown-QsZ-PHET.js";
|
|
3
3
|
import { C as gn, c as fn, f as hn } from "./urql-DrBfkb92.js";
|
|
4
|
-
import { createClient as
|
|
5
|
-
import { L as
|
|
4
|
+
import { createClient as xn } from "zudoku/openapi-worker";
|
|
5
|
+
import { L as kn } from "./index-Dt-pU7Vu.js";
|
|
6
6
|
import { C as Nn } from "./CategoryHeading-DCmchnA1.js";
|
|
7
|
-
import { a as ve, u as
|
|
8
|
-
import { g as
|
|
7
|
+
import { a as ve, u as K, P as b, d as S, R as yn, S as ge, h as bn, e as jn, F as Sn, D as Fn, p as Cn, m as Tn, o as fe, n as V, k as wn, B as I } from "./Combination-CS4rK8IJ.js";
|
|
8
|
+
import { g as X, h as de, C as F, I as he, i as Dn, u as Pn, a as Rn, F as _n, S as En, b as In, c as An, d as On, f as ce, V as $n } from "./Input-GFpPXs5b.js";
|
|
9
9
|
import * as c from "react";
|
|
10
|
-
import { useRef as
|
|
11
|
-
import { P as
|
|
12
|
-
import { A as
|
|
13
|
-
import { m as
|
|
10
|
+
import { useRef as xe, useEffect as ke, useState as Ne, Fragment as B } from "react";
|
|
11
|
+
import { P as z, c as ye, R as Mn, I as Vn, S as me } from "./Spinner-oNQQyp-I.js";
|
|
12
|
+
import { A as qn } from "./DevPortalProvider-BTFqdAEL.js";
|
|
13
|
+
import { m as Ln } from "./router-BiRCp01d.js";
|
|
14
14
|
/**
|
|
15
15
|
* @license lucide-react v0.378.0 - ISC
|
|
16
16
|
*
|
|
17
17
|
* This source code is licensed under the ISC license.
|
|
18
18
|
* See the LICENSE file in the root directory of this source tree.
|
|
19
19
|
*/
|
|
20
|
-
const
|
|
20
|
+
const zn = L("ChevronsUpDown", [
|
|
21
|
+
["path", { d: "m7 15 5 5 5-5", key: "1hf1tw" }],
|
|
22
|
+
["path", { d: "m7 9 5-5 5 5", key: "sgt6xg" }]
|
|
23
|
+
]);
|
|
24
|
+
/**
|
|
25
|
+
* @license lucide-react v0.378.0 - ISC
|
|
26
|
+
*
|
|
27
|
+
* This source code is licensed under the ISC license.
|
|
28
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
29
|
+
*/
|
|
30
|
+
const be = L("CirclePlay", [
|
|
21
31
|
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
22
32
|
["polygon", { points: "10 8 16 12 10 16 10 8", key: "1cimsy" }]
|
|
23
33
|
]);
|
|
@@ -27,7 +37,7 @@ const ye = K("CirclePlay", [
|
|
|
27
37
|
* This source code is licensed under the ISC license.
|
|
28
38
|
* See the LICENSE file in the root directory of this source tree.
|
|
29
39
|
*/
|
|
30
|
-
const
|
|
40
|
+
const je = L("Eraser", [
|
|
31
41
|
[
|
|
32
42
|
"path",
|
|
33
43
|
{
|
|
@@ -44,10 +54,10 @@ const be = K("Eraser", [
|
|
|
44
54
|
* This source code is licensed under the ISC license.
|
|
45
55
|
* See the LICENSE file in the root directory of this source tree.
|
|
46
56
|
*/
|
|
47
|
-
const
|
|
57
|
+
const Se = L("X", [
|
|
48
58
|
["path", { d: "M18 6 6 18", key: "1bl5f8" }],
|
|
49
59
|
["path", { d: "m6 6 12 12", key: "d8bk6v" }]
|
|
50
|
-
]),
|
|
60
|
+
]), Za = {
|
|
51
61
|
get: "text-green-600",
|
|
52
62
|
post: "text-sky-600",
|
|
53
63
|
put: "text-yellow-600",
|
|
@@ -662,9 +672,9 @@ const Xn = ({
|
|
|
662
672
|
t && /* @__PURE__ */ e.jsx(Nn, { children: t }),
|
|
663
673
|
n && /* @__PURE__ */ e.jsx(un, { level: 1, className: "flex gap-3.5 items-center", children: n }),
|
|
664
674
|
/* @__PURE__ */ e.jsx("p", { children: a }),
|
|
665
|
-
/* @__PURE__ */ e.jsx(
|
|
675
|
+
/* @__PURE__ */ e.jsx(kn, { to: "/", children: "Go back home" })
|
|
666
676
|
] });
|
|
667
|
-
var
|
|
677
|
+
var Y = "Dialog", [Fe, et] = ve(Y), [Yn, k] = Fe(Y), Ce = (n) => {
|
|
668
678
|
const {
|
|
669
679
|
__scopeDialog: a,
|
|
670
680
|
children: t,
|
|
@@ -694,10 +704,10 @@ var Z = "Dialog", [Se, Qa] = ve(Z), [Yn, x] = Se(Z), Fe = (n) => {
|
|
|
694
704
|
}
|
|
695
705
|
);
|
|
696
706
|
};
|
|
697
|
-
|
|
698
|
-
var
|
|
707
|
+
Ce.displayName = Y;
|
|
708
|
+
var Te = "DialogTrigger", we = c.forwardRef(
|
|
699
709
|
(n, a) => {
|
|
700
|
-
const { __scopeDialog: t, ...i } = n, s =
|
|
710
|
+
const { __scopeDialog: t, ...i } = n, s = k(Te, t), r = K(a, s.triggerRef);
|
|
701
711
|
return /* @__PURE__ */ e.jsx(
|
|
702
712
|
b.button,
|
|
703
713
|
{
|
|
@@ -705,7 +715,7 @@ var Ce = "DialogTrigger", Te = c.forwardRef(
|
|
|
705
715
|
"aria-haspopup": "dialog",
|
|
706
716
|
"aria-expanded": s.open,
|
|
707
717
|
"aria-controls": s.contentId,
|
|
708
|
-
"data-state":
|
|
718
|
+
"data-state": ne(s.open),
|
|
709
719
|
...i,
|
|
710
720
|
ref: r,
|
|
711
721
|
onClick: S(n.onClick, s.onOpenToggle)
|
|
@@ -713,31 +723,31 @@ var Ce = "DialogTrigger", Te = c.forwardRef(
|
|
|
713
723
|
);
|
|
714
724
|
}
|
|
715
725
|
);
|
|
716
|
-
|
|
717
|
-
var
|
|
726
|
+
we.displayName = Te;
|
|
727
|
+
var Z = "DialogPortal", [Zn, De] = Fe(Z, {
|
|
718
728
|
forceMount: void 0
|
|
719
|
-
}),
|
|
720
|
-
const { __scopeDialog: a, forceMount: t, children: i, container: s } = n, r =
|
|
721
|
-
return /* @__PURE__ */ e.jsx(Zn, { scope: a, forceMount: t, children: c.Children.map(i, (l) => /* @__PURE__ */ e.jsx(
|
|
729
|
+
}), Pe = (n) => {
|
|
730
|
+
const { __scopeDialog: a, forceMount: t, children: i, container: s } = n, r = k(Z, a);
|
|
731
|
+
return /* @__PURE__ */ e.jsx(Zn, { scope: a, forceMount: t, children: c.Children.map(i, (l) => /* @__PURE__ */ e.jsx(z, { present: t || r.open, children: /* @__PURE__ */ e.jsx(Tn, { asChild: !0, container: s, children: l }) })) });
|
|
722
732
|
};
|
|
723
|
-
|
|
724
|
-
var q = "DialogOverlay",
|
|
733
|
+
Pe.displayName = Z;
|
|
734
|
+
var q = "DialogOverlay", Re = c.forwardRef(
|
|
725
735
|
(n, a) => {
|
|
726
|
-
const t = De(q, n.__scopeDialog), { forceMount: i = t.forceMount, ...s } = n, r =
|
|
727
|
-
return r.modal ? /* @__PURE__ */ e.jsx(
|
|
736
|
+
const t = De(q, n.__scopeDialog), { forceMount: i = t.forceMount, ...s } = n, r = k(q, n.__scopeDialog);
|
|
737
|
+
return r.modal ? /* @__PURE__ */ e.jsx(z, { present: i || r.open, children: /* @__PURE__ */ e.jsx(ea, { ...s, ref: a }) }) : null;
|
|
728
738
|
}
|
|
729
739
|
);
|
|
730
|
-
|
|
740
|
+
Re.displayName = q;
|
|
731
741
|
var ea = c.forwardRef(
|
|
732
742
|
(n, a) => {
|
|
733
|
-
const { __scopeDialog: t, ...i } = n, s =
|
|
743
|
+
const { __scopeDialog: t, ...i } = n, s = k(q, t);
|
|
734
744
|
return (
|
|
735
745
|
// Make sure `Content` is scrollable even when it doesn't live inside `RemoveScroll`
|
|
736
746
|
// ie. when `Overlay` and `Content` are siblings
|
|
737
747
|
/* @__PURE__ */ e.jsx(yn, { as: ge, allowPinchZoom: !0, shards: [s.contentRef], children: /* @__PURE__ */ e.jsx(
|
|
738
748
|
b.div,
|
|
739
749
|
{
|
|
740
|
-
"data-state":
|
|
750
|
+
"data-state": ne(s.open),
|
|
741
751
|
...i,
|
|
742
752
|
ref: a,
|
|
743
753
|
style: { pointerEvents: "auto", ...i.style }
|
|
@@ -745,21 +755,21 @@ var ea = c.forwardRef(
|
|
|
745
755
|
) })
|
|
746
756
|
);
|
|
747
757
|
}
|
|
748
|
-
), C = "DialogContent",
|
|
758
|
+
), C = "DialogContent", _e = c.forwardRef(
|
|
749
759
|
(n, a) => {
|
|
750
|
-
const t = De(C, n.__scopeDialog), { forceMount: i = t.forceMount, ...s } = n, r =
|
|
751
|
-
return /* @__PURE__ */ e.jsx(
|
|
760
|
+
const t = De(C, n.__scopeDialog), { forceMount: i = t.forceMount, ...s } = n, r = k(C, n.__scopeDialog);
|
|
761
|
+
return /* @__PURE__ */ e.jsx(z, { present: i || r.open, children: r.modal ? /* @__PURE__ */ e.jsx(na, { ...s, ref: a }) : /* @__PURE__ */ e.jsx(aa, { ...s, ref: a }) });
|
|
752
762
|
}
|
|
753
763
|
);
|
|
754
|
-
|
|
764
|
+
_e.displayName = C;
|
|
755
765
|
var na = c.forwardRef(
|
|
756
766
|
(n, a) => {
|
|
757
|
-
const t =
|
|
767
|
+
const t = k(C, n.__scopeDialog), i = c.useRef(null), s = K(a, t.contentRef, i);
|
|
758
768
|
return c.useEffect(() => {
|
|
759
769
|
const r = i.current;
|
|
760
770
|
if (r) return bn(r);
|
|
761
771
|
}, []), /* @__PURE__ */ e.jsx(
|
|
762
|
-
|
|
772
|
+
Ee,
|
|
763
773
|
{
|
|
764
774
|
...n,
|
|
765
775
|
ref: s,
|
|
@@ -782,9 +792,9 @@ var na = c.forwardRef(
|
|
|
782
792
|
}
|
|
783
793
|
), aa = c.forwardRef(
|
|
784
794
|
(n, a) => {
|
|
785
|
-
const t =
|
|
795
|
+
const t = k(C, n.__scopeDialog), i = c.useRef(!1), s = c.useRef(!1);
|
|
786
796
|
return /* @__PURE__ */ e.jsx(
|
|
787
|
-
|
|
797
|
+
Ee,
|
|
788
798
|
{
|
|
789
799
|
...n,
|
|
790
800
|
ref: a,
|
|
@@ -803,9 +813,9 @@ var na = c.forwardRef(
|
|
|
803
813
|
}
|
|
804
814
|
);
|
|
805
815
|
}
|
|
806
|
-
),
|
|
816
|
+
), Ee = c.forwardRef(
|
|
807
817
|
(n, a) => {
|
|
808
|
-
const { __scopeDialog: t, trapFocus: i, onOpenAutoFocus: s, onCloseAutoFocus: r, ...l } = n, o =
|
|
818
|
+
const { __scopeDialog: t, trapFocus: i, onOpenAutoFocus: s, onCloseAutoFocus: r, ...l } = n, o = k(C, t), u = c.useRef(null), m = K(a, u);
|
|
809
819
|
return jn(), /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
810
820
|
/* @__PURE__ */ e.jsx(
|
|
811
821
|
Sn,
|
|
@@ -822,7 +832,7 @@ var na = c.forwardRef(
|
|
|
822
832
|
id: o.contentId,
|
|
823
833
|
"aria-describedby": o.descriptionId,
|
|
824
834
|
"aria-labelledby": o.titleId,
|
|
825
|
-
"data-state":
|
|
835
|
+
"data-state": ne(o.open),
|
|
826
836
|
...l,
|
|
827
837
|
ref: m,
|
|
828
838
|
onDismiss: () => o.onOpenChange(!1)
|
|
@@ -836,23 +846,23 @@ var na = c.forwardRef(
|
|
|
836
846
|
] })
|
|
837
847
|
] });
|
|
838
848
|
}
|
|
839
|
-
),
|
|
849
|
+
), ee = "DialogTitle", Ie = c.forwardRef(
|
|
840
850
|
(n, a) => {
|
|
841
|
-
const { __scopeDialog: t, ...i } = n, s =
|
|
851
|
+
const { __scopeDialog: t, ...i } = n, s = k(ee, t);
|
|
842
852
|
return /* @__PURE__ */ e.jsx(b.h2, { id: s.titleId, ...i, ref: a });
|
|
843
853
|
}
|
|
844
854
|
);
|
|
845
|
-
|
|
846
|
-
var
|
|
855
|
+
Ie.displayName = ee;
|
|
856
|
+
var Ae = "DialogDescription", Oe = c.forwardRef(
|
|
847
857
|
(n, a) => {
|
|
848
|
-
const { __scopeDialog: t, ...i } = n, s =
|
|
858
|
+
const { __scopeDialog: t, ...i } = n, s = k(Ae, t);
|
|
849
859
|
return /* @__PURE__ */ e.jsx(b.p, { id: s.descriptionId, ...i, ref: a });
|
|
850
860
|
}
|
|
851
861
|
);
|
|
852
|
-
|
|
853
|
-
var
|
|
862
|
+
Oe.displayName = Ae;
|
|
863
|
+
var $e = "DialogClose", Me = c.forwardRef(
|
|
854
864
|
(n, a) => {
|
|
855
|
-
const { __scopeDialog: t, ...i } = n, s =
|
|
865
|
+
const { __scopeDialog: t, ...i } = n, s = k($e, t);
|
|
856
866
|
return /* @__PURE__ */ e.jsx(
|
|
857
867
|
b.button,
|
|
858
868
|
{
|
|
@@ -864,16 +874,16 @@ var Oe = "DialogClose", $e = c.forwardRef(
|
|
|
864
874
|
);
|
|
865
875
|
}
|
|
866
876
|
);
|
|
867
|
-
|
|
868
|
-
function
|
|
877
|
+
Me.displayName = $e;
|
|
878
|
+
function ne(n) {
|
|
869
879
|
return n ? "open" : "closed";
|
|
870
880
|
}
|
|
871
|
-
var
|
|
881
|
+
var Ve = "DialogTitleWarning", [nt, qe] = Cn(Ve, {
|
|
872
882
|
contentName: C,
|
|
873
|
-
titleName:
|
|
883
|
+
titleName: ee,
|
|
874
884
|
docsSlug: "dialog"
|
|
875
885
|
}), ta = ({ titleId: n }) => {
|
|
876
|
-
const a = Ve
|
|
886
|
+
const a = qe(Ve), t = `\`${a.contentName}\` requires a \`${a.titleName}\` for the component to be accessible for screen reader users.
|
|
877
887
|
|
|
878
888
|
If you want to hide the \`${a.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
879
889
|
|
|
@@ -882,15 +892,15 @@ For more information, see https://radix-ui.com/primitives/docs/components/${a.do
|
|
|
882
892
|
n && (document.getElementById(n) || console.error(t));
|
|
883
893
|
}, [t, n]), null;
|
|
884
894
|
}, ia = "DialogDescriptionWarning", sa = ({ contentRef: n, descriptionId: a }) => {
|
|
885
|
-
const i = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${
|
|
895
|
+
const i = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${qe(ia).contentName}}.`;
|
|
886
896
|
return c.useEffect(() => {
|
|
887
897
|
var r;
|
|
888
898
|
const s = (r = n.current) == null ? void 0 : r.getAttribute("aria-describedby");
|
|
889
899
|
a && s && (document.getElementById(a) || console.warn(i));
|
|
890
900
|
}, [i, n, a]), null;
|
|
891
|
-
}, ra =
|
|
892
|
-
const ca = ra, ma = oa, ua = la,
|
|
893
|
-
|
|
901
|
+
}, ra = Ce, oa = we, la = Pe, Le = Re, ze = _e, Ge = Ie, Be = Oe, da = Me;
|
|
902
|
+
const ca = ra, ma = oa, ua = la, He = c.forwardRef(({ className: n, ...a }, t) => /* @__PURE__ */ e.jsx(
|
|
903
|
+
Le,
|
|
894
904
|
{
|
|
895
905
|
ref: t,
|
|
896
906
|
className: g(
|
|
@@ -900,11 +910,11 @@ const ca = ra, ma = oa, ua = la, Be = c.forwardRef(({ className: n, ...a }, t) =
|
|
|
900
910
|
...a
|
|
901
911
|
}
|
|
902
912
|
));
|
|
903
|
-
|
|
904
|
-
const
|
|
905
|
-
/* @__PURE__ */ e.jsx(
|
|
913
|
+
He.displayName = Le.displayName;
|
|
914
|
+
const We = c.forwardRef(({ className: n, children: a, ...t }, i) => /* @__PURE__ */ e.jsxs(ua, { children: [
|
|
915
|
+
/* @__PURE__ */ e.jsx(He, {}),
|
|
906
916
|
/* @__PURE__ */ e.jsxs(
|
|
907
|
-
|
|
917
|
+
ze,
|
|
908
918
|
{
|
|
909
919
|
ref: i,
|
|
910
920
|
className: g(
|
|
@@ -915,16 +925,16 @@ const He = c.forwardRef(({ className: n, children: a, ...t }, i) => /* @__PURE__
|
|
|
915
925
|
children: [
|
|
916
926
|
a,
|
|
917
927
|
/* @__PURE__ */ e.jsxs(da, { className: "absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground", children: [
|
|
918
|
-
/* @__PURE__ */ e.jsx(
|
|
928
|
+
/* @__PURE__ */ e.jsx(Se, { className: "h-4 w-4" }),
|
|
919
929
|
/* @__PURE__ */ e.jsx("span", { className: "sr-only", children: "Close" })
|
|
920
930
|
] })
|
|
921
931
|
]
|
|
922
932
|
}
|
|
923
933
|
)
|
|
924
934
|
] }));
|
|
925
|
-
|
|
926
|
-
const
|
|
927
|
-
|
|
935
|
+
We.displayName = ze.displayName;
|
|
936
|
+
const Ue = c.forwardRef(({ className: n, ...a }, t) => /* @__PURE__ */ e.jsx(
|
|
937
|
+
Ge,
|
|
928
938
|
{
|
|
929
939
|
ref: t,
|
|
930
940
|
className: g(
|
|
@@ -934,17 +944,17 @@ const We = c.forwardRef(({ className: n, ...a }, t) => /* @__PURE__ */ e.jsx(
|
|
|
934
944
|
...a
|
|
935
945
|
}
|
|
936
946
|
));
|
|
937
|
-
|
|
947
|
+
Ue.displayName = Ge.displayName;
|
|
938
948
|
const pa = c.forwardRef(({ className: n, ...a }, t) => /* @__PURE__ */ e.jsx(
|
|
939
|
-
|
|
949
|
+
Be,
|
|
940
950
|
{
|
|
941
951
|
ref: t,
|
|
942
952
|
className: g("text-sm text-muted-foreground", n),
|
|
943
953
|
...a
|
|
944
954
|
}
|
|
945
955
|
));
|
|
946
|
-
pa.displayName =
|
|
947
|
-
const
|
|
956
|
+
pa.displayName = Be.displayName;
|
|
957
|
+
const ae = c.forwardRef(({ className: n, ...a }, t) => /* @__PURE__ */ e.jsx(
|
|
948
958
|
"div",
|
|
949
959
|
{
|
|
950
960
|
ref: t,
|
|
@@ -955,7 +965,7 @@ const U = c.forwardRef(({ className: n, ...a }, t) => /* @__PURE__ */ e.jsx(
|
|
|
955
965
|
...a
|
|
956
966
|
}
|
|
957
967
|
));
|
|
958
|
-
|
|
968
|
+
ae.displayName = "Card";
|
|
959
969
|
const va = c.forwardRef(({ className: n, ...a }, t) => /* @__PURE__ */ e.jsx(
|
|
960
970
|
"div",
|
|
961
971
|
{
|
|
@@ -985,7 +995,7 @@ const fa = c.forwardRef(({ className: n, ...a }, t) => /* @__PURE__ */ e.jsx(
|
|
|
985
995
|
fa.displayName = "CardDescription";
|
|
986
996
|
const ha = c.forwardRef(({ className: n, ...a }, t) => /* @__PURE__ */ e.jsx("div", { ref: t, className: g("p-6 pt-0", n), ...a }));
|
|
987
997
|
ha.displayName = "CardContent";
|
|
988
|
-
const
|
|
998
|
+
const xa = c.forwardRef(({ className: n, ...a }, t) => /* @__PURE__ */ e.jsx(
|
|
989
999
|
"div",
|
|
990
1000
|
{
|
|
991
1001
|
ref: t,
|
|
@@ -993,10 +1003,10 @@ const ka = c.forwardRef(({ className: n, ...a }, t) => /* @__PURE__ */ e.jsx(
|
|
|
993
1003
|
...a
|
|
994
1004
|
}
|
|
995
1005
|
));
|
|
996
|
-
|
|
997
|
-
var te = "Tabs", [
|
|
998
|
-
|
|
999
|
-
]),
|
|
1006
|
+
xa.displayName = "CardFooter";
|
|
1007
|
+
var te = "Tabs", [ka, at] = ve(te, [
|
|
1008
|
+
ye
|
|
1009
|
+
]), Je = ye(), [Na, ie] = ka(te), Qe = c.forwardRef(
|
|
1000
1010
|
(n, a) => {
|
|
1001
1011
|
const {
|
|
1002
1012
|
__scopeTabs: t,
|
|
@@ -1007,7 +1017,7 @@ var te = "Tabs", [xa, Xa] = ve(te, [
|
|
|
1007
1017
|
dir: o,
|
|
1008
1018
|
activationMode: u = "automatic",
|
|
1009
1019
|
...m
|
|
1010
|
-
} = n, p =
|
|
1020
|
+
} = n, p = wn(o), [v, N] = fe({
|
|
1011
1021
|
prop: i,
|
|
1012
1022
|
onChange: s,
|
|
1013
1023
|
defaultProp: r
|
|
@@ -1035,12 +1045,12 @@ var te = "Tabs", [xa, Xa] = ve(te, [
|
|
|
1035
1045
|
);
|
|
1036
1046
|
}
|
|
1037
1047
|
);
|
|
1038
|
-
|
|
1039
|
-
var
|
|
1048
|
+
Qe.displayName = te;
|
|
1049
|
+
var Ke = "TabsList", Xe = c.forwardRef(
|
|
1040
1050
|
(n, a) => {
|
|
1041
|
-
const { __scopeTabs: t, loop: i = !0, ...s } = n, r = ie(
|
|
1051
|
+
const { __scopeTabs: t, loop: i = !0, ...s } = n, r = ie(Ke, t), l = Je(t);
|
|
1042
1052
|
return /* @__PURE__ */ e.jsx(
|
|
1043
|
-
|
|
1053
|
+
Mn,
|
|
1044
1054
|
{
|
|
1045
1055
|
asChild: !0,
|
|
1046
1056
|
...l,
|
|
@@ -1060,12 +1070,12 @@ var Qe = "TabsList", Ke = c.forwardRef(
|
|
|
1060
1070
|
);
|
|
1061
1071
|
}
|
|
1062
1072
|
);
|
|
1063
|
-
|
|
1064
|
-
var
|
|
1073
|
+
Xe.displayName = Ke;
|
|
1074
|
+
var Ye = "TabsTrigger", Ze = c.forwardRef(
|
|
1065
1075
|
(n, a) => {
|
|
1066
|
-
const { __scopeTabs: t, value: i, disabled: s = !1, ...r } = n, l = ie(
|
|
1076
|
+
const { __scopeTabs: t, value: i, disabled: s = !1, ...r } = n, l = ie(Ye, t), o = Je(t), u = an(l.baseId, i), m = tn(l.baseId, i), p = i === l.value;
|
|
1067
1077
|
return /* @__PURE__ */ e.jsx(
|
|
1068
|
-
|
|
1078
|
+
Vn,
|
|
1069
1079
|
{
|
|
1070
1080
|
asChild: !0,
|
|
1071
1081
|
...o,
|
|
@@ -1100,14 +1110,14 @@ var Xe = "TabsTrigger", Ye = c.forwardRef(
|
|
|
1100
1110
|
);
|
|
1101
1111
|
}
|
|
1102
1112
|
);
|
|
1103
|
-
|
|
1104
|
-
var
|
|
1113
|
+
Ze.displayName = Ye;
|
|
1114
|
+
var en = "TabsContent", nn = c.forwardRef(
|
|
1105
1115
|
(n, a) => {
|
|
1106
|
-
const { __scopeTabs: t, value: i, forceMount: s, children: r, ...l } = n, o = ie(
|
|
1116
|
+
const { __scopeTabs: t, value: i, forceMount: s, children: r, ...l } = n, o = ie(en, t), u = an(o.baseId, i), m = tn(o.baseId, i), p = i === o.value, v = c.useRef(p);
|
|
1107
1117
|
return c.useEffect(() => {
|
|
1108
1118
|
const N = requestAnimationFrame(() => v.current = !1);
|
|
1109
1119
|
return () => cancelAnimationFrame(N);
|
|
1110
|
-
}, []), /* @__PURE__ */ e.jsx(
|
|
1120
|
+
}, []), /* @__PURE__ */ e.jsx(z, { present: s || p, children: ({ present: N }) => /* @__PURE__ */ e.jsx(
|
|
1111
1121
|
b.div,
|
|
1112
1122
|
{
|
|
1113
1123
|
"data-state": p ? "active" : "inactive",
|
|
@@ -1128,16 +1138,16 @@ var Ze = "TabsContent", en = c.forwardRef(
|
|
|
1128
1138
|
) });
|
|
1129
1139
|
}
|
|
1130
1140
|
);
|
|
1131
|
-
|
|
1132
|
-
function
|
|
1141
|
+
nn.displayName = en;
|
|
1142
|
+
function an(n, a) {
|
|
1133
1143
|
return `${n}-trigger-${a}`;
|
|
1134
1144
|
}
|
|
1135
|
-
function
|
|
1145
|
+
function tn(n, a) {
|
|
1136
1146
|
return `${n}-content-${a}`;
|
|
1137
1147
|
}
|
|
1138
|
-
var ya =
|
|
1148
|
+
var ya = Qe, sn = Xe, rn = Ze, on = nn;
|
|
1139
1149
|
const ue = ya, J = c.forwardRef(({ className: n, ...a }, t) => /* @__PURE__ */ e.jsx(
|
|
1140
|
-
|
|
1150
|
+
sn,
|
|
1141
1151
|
{
|
|
1142
1152
|
ref: t,
|
|
1143
1153
|
className: g(
|
|
@@ -1147,9 +1157,9 @@ const ue = ya, J = c.forwardRef(({ className: n, ...a }, t) => /* @__PURE__ */ e
|
|
|
1147
1157
|
...a
|
|
1148
1158
|
}
|
|
1149
1159
|
));
|
|
1150
|
-
J.displayName =
|
|
1151
|
-
const
|
|
1152
|
-
|
|
1160
|
+
J.displayName = sn.displayName;
|
|
1161
|
+
const D = c.forwardRef(({ className: n, ...a }, t) => /* @__PURE__ */ e.jsx(
|
|
1162
|
+
rn,
|
|
1153
1163
|
{
|
|
1154
1164
|
ref: t,
|
|
1155
1165
|
className: g(
|
|
@@ -1159,9 +1169,9 @@ const w = c.forwardRef(({ className: n, ...a }, t) => /* @__PURE__ */ e.jsx(
|
|
|
1159
1169
|
...a
|
|
1160
1170
|
}
|
|
1161
1171
|
));
|
|
1162
|
-
|
|
1172
|
+
D.displayName = rn.displayName;
|
|
1163
1173
|
const P = c.forwardRef(({ className: n, ...a }, t) => /* @__PURE__ */ e.jsx(
|
|
1164
|
-
|
|
1174
|
+
on,
|
|
1165
1175
|
{
|
|
1166
1176
|
ref: t,
|
|
1167
1177
|
className: g(
|
|
@@ -1171,7 +1181,7 @@ const P = c.forwardRef(({ className: n, ...a }, t) => /* @__PURE__ */ e.jsx(
|
|
|
1171
1181
|
...a
|
|
1172
1182
|
}
|
|
1173
1183
|
));
|
|
1174
|
-
P.displayName =
|
|
1184
|
+
P.displayName = on.displayName;
|
|
1175
1185
|
const ba = async (n, a, t = 5e3) => {
|
|
1176
1186
|
const i = new AbortController(), s = i.signal, r = fetch(n, { ...a, signal: s }), l = new Promise((o, u) => {
|
|
1177
1187
|
const m = setTimeout(() => {
|
|
@@ -1180,18 +1190,18 @@ const ba = async (n, a, t = 5e3) => {
|
|
|
1180
1190
|
r.finally(() => clearTimeout(m));
|
|
1181
1191
|
});
|
|
1182
1192
|
return Promise.race([r, l]);
|
|
1183
|
-
},
|
|
1193
|
+
}, H = (n) => Math.abs(
|
|
1184
1194
|
isNaN(parseInt(n)) ? n.toLowerCase().charCodeAt(0) - 96 : isNaN(parseInt(n)) ? 0 : parseInt(n)
|
|
1185
|
-
),
|
|
1186
|
-
const t = (3 *
|
|
1195
|
+
), W = (n) => n.length > 1 ? parseInt(n.split("").reduce((a, t) => `${H(a) + H(t)}`)) : H(n), ja = (n, a = {}) => {
|
|
1196
|
+
const t = (3 * W(n) + 2 * W(n) + W(n)) % 360, { saturation: i = 75, lightness: s = 60 } = a;
|
|
1187
1197
|
return `${t}deg ${i}% ${s}%`;
|
|
1188
|
-
},
|
|
1198
|
+
}, U = "data-linked-param", Sa = (n) => {
|
|
1189
1199
|
const [a] = pn();
|
|
1190
1200
|
return ja(
|
|
1191
1201
|
n,
|
|
1192
1202
|
a ? void 0 : { saturation: 85, lightness: 50 }
|
|
1193
1203
|
);
|
|
1194
|
-
},
|
|
1204
|
+
}, ln = ({
|
|
1195
1205
|
name: n,
|
|
1196
1206
|
className: a,
|
|
1197
1207
|
backgroundOpacity: t = "100%",
|
|
@@ -1200,15 +1210,15 @@ const ba = async (n, a, t = 5e3) => {
|
|
|
1200
1210
|
children: r,
|
|
1201
1211
|
onClick: l
|
|
1202
1212
|
}) => {
|
|
1203
|
-
const o =
|
|
1204
|
-
return
|
|
1213
|
+
const o = xe(null), u = n.replace(/[{}]/g, ""), m = s == null ? void 0 : s.replace(/[{}]/g, ""), p = Sa(u), v = `hsl(${p} / ${i})`, N = `hsl(${p} / ${t})`;
|
|
1214
|
+
return ke(() => {
|
|
1205
1215
|
if (!m || !o.current) return;
|
|
1206
1216
|
const y = () => {
|
|
1207
|
-
document.querySelectorAll(`[${
|
|
1217
|
+
document.querySelectorAll(`[${U}="${m}"]`).forEach((h) => {
|
|
1208
1218
|
h instanceof HTMLElement && (h.dataset.active = "true");
|
|
1209
1219
|
});
|
|
1210
1220
|
}, j = () => {
|
|
1211
|
-
document.querySelectorAll(`[${
|
|
1221
|
+
document.querySelectorAll(`[${U}="${m}"]`).forEach((h) => {
|
|
1212
1222
|
h instanceof HTMLElement && (h.dataset.active = "false");
|
|
1213
1223
|
});
|
|
1214
1224
|
};
|
|
@@ -1220,7 +1230,7 @@ const ba = async (n, a, t = 5e3) => {
|
|
|
1220
1230
|
"span",
|
|
1221
1231
|
{
|
|
1222
1232
|
className: g("inline-flex relative rounded group", a),
|
|
1223
|
-
[
|
|
1233
|
+
[U]: m,
|
|
1224
1234
|
ref: o,
|
|
1225
1235
|
onClick: l,
|
|
1226
1236
|
children: [
|
|
@@ -1263,7 +1273,7 @@ const ba = async (n, a, t = 5e3) => {
|
|
|
1263
1273
|
control: n,
|
|
1264
1274
|
register: a
|
|
1265
1275
|
}) => {
|
|
1266
|
-
const { fields: t, append: i, remove: s } =
|
|
1276
|
+
const { fields: t, append: i, remove: s } = X({
|
|
1267
1277
|
control: n,
|
|
1268
1278
|
name: "headers"
|
|
1269
1279
|
}), r = de({ name: "identity", control: n }), l = de({ name: "headers", control: n }), o = r !== E;
|
|
@@ -1309,7 +1319,7 @@ const ba = async (n, a, t = 5e3) => {
|
|
|
1309
1319
|
s(m);
|
|
1310
1320
|
},
|
|
1311
1321
|
type: "button",
|
|
1312
|
-
children: /* @__PURE__ */ e.jsx(
|
|
1322
|
+
children: /* @__PURE__ */ e.jsx(Se, { size: 16 })
|
|
1313
1323
|
}
|
|
1314
1324
|
),
|
|
1315
1325
|
/* @__PURE__ */ e.jsx("div", { className: "col-span-full border-b border-border" })
|
|
@@ -1328,10 +1338,10 @@ const ba = async (n, a, t = 5e3) => {
|
|
|
1328
1338
|
}
|
|
1329
1339
|
)
|
|
1330
1340
|
] });
|
|
1331
|
-
},
|
|
1341
|
+
}, wa = ({
|
|
1332
1342
|
control: n
|
|
1333
1343
|
}) => {
|
|
1334
|
-
const { fields: a } =
|
|
1344
|
+
const { fields: a } = X({
|
|
1335
1345
|
control: n,
|
|
1336
1346
|
name: "pathParams"
|
|
1337
1347
|
});
|
|
@@ -1343,7 +1353,7 @@ const ba = async (n, a, t = 5e3) => {
|
|
|
1343
1353
|
name: `pathParams.${i}.value`,
|
|
1344
1354
|
render: ({ field: s }) => /* @__PURE__ */ e.jsxs("div", { children: [
|
|
1345
1355
|
/* @__PURE__ */ e.jsx(
|
|
1346
|
-
|
|
1356
|
+
ln,
|
|
1347
1357
|
{
|
|
1348
1358
|
slug: t.name,
|
|
1349
1359
|
name: t.name,
|
|
@@ -1395,21 +1405,21 @@ const ba = async (n, a, t = 5e3) => {
|
|
|
1395
1405
|
),
|
|
1396
1406
|
title: "Clear value",
|
|
1397
1407
|
onClick: () => s.onChange(""),
|
|
1398
|
-
children: /* @__PURE__ */ e.jsx(
|
|
1408
|
+
children: /* @__PURE__ */ e.jsx(je, { size: 16 })
|
|
1399
1409
|
}
|
|
1400
1410
|
)
|
|
1401
1411
|
}
|
|
1402
1412
|
)
|
|
1403
1413
|
] }) })
|
|
1404
1414
|
] }, t.id)) }) });
|
|
1405
|
-
},
|
|
1415
|
+
}, Da = ({
|
|
1406
1416
|
control: n,
|
|
1407
1417
|
queryParams: a
|
|
1408
1418
|
}) => {
|
|
1409
|
-
const { fields: t } =
|
|
1419
|
+
const { fields: t } = X({
|
|
1410
1420
|
control: n,
|
|
1411
1421
|
name: "queryParams"
|
|
1412
|
-
}), i =
|
|
1422
|
+
}), i = Dn(), s = a.map((o) => !!o.isRequired), l = i.watch("identity") !== E;
|
|
1413
1423
|
return /* @__PURE__ */ e.jsx("div", { className: "", children: /* @__PURE__ */ e.jsx("table", { className: "w-full [&_td]:border [&_td]:p-1.5 [&_td]:px-2", children: /* @__PURE__ */ e.jsx("tbody", { children: t.filter(
|
|
1414
1424
|
// TODO remove this hack for Accu or make it more generic
|
|
1415
1425
|
(o) => !(l && o.name === "apikey")
|
|
@@ -1485,7 +1495,7 @@ const ba = async (n, a, t = 5e3) => {
|
|
|
1485
1495
|
),
|
|
1486
1496
|
title: "Clear value",
|
|
1487
1497
|
onClick: () => m.onChange(""),
|
|
1488
|
-
children: /* @__PURE__ */ e.jsx(
|
|
1498
|
+
children: /* @__PURE__ */ e.jsx(je, { size: 16 })
|
|
1489
1499
|
}
|
|
1490
1500
|
),
|
|
1491
1501
|
name: `queryParams.${u}.value`
|
|
@@ -1493,8 +1503,79 @@ const ba = async (n, a, t = 5e3) => {
|
|
|
1493
1503
|
)
|
|
1494
1504
|
] }) })
|
|
1495
1505
|
] }, o.id)) }) }) });
|
|
1506
|
+
}, Pa = ({
|
|
1507
|
+
value: n,
|
|
1508
|
+
onChange: a,
|
|
1509
|
+
className: t,
|
|
1510
|
+
options: i
|
|
1511
|
+
}) => /* @__PURE__ */ e.jsxs("div", { className: g("grid", t), children: [
|
|
1512
|
+
/* @__PURE__ */ e.jsx(
|
|
1513
|
+
"select",
|
|
1514
|
+
{
|
|
1515
|
+
className: g(
|
|
1516
|
+
"row-start-1 col-start-1 border border-input text-foreground px-2 py-1 pe-6",
|
|
1517
|
+
"rounded-md appearance-none bg-zinc-50 hover:bg-white dark:bg-zinc-800 hover:dark:bg-zinc-800/75"
|
|
1518
|
+
),
|
|
1519
|
+
value: n,
|
|
1520
|
+
onChange: a,
|
|
1521
|
+
children: i.map((s) => /* @__PURE__ */ e.jsx("option", { value: s.value, children: s.label }, s.value))
|
|
1522
|
+
}
|
|
1523
|
+
),
|
|
1524
|
+
/* @__PURE__ */ e.jsx("div", { className: "row-start-1 col-start-1 self-center justify-self-end relative end-2 pointer-events-none", children: /* @__PURE__ */ e.jsx(zn, { size: 14 }) })
|
|
1525
|
+
] }), Ra = (n) => {
|
|
1526
|
+
var t;
|
|
1527
|
+
return (t = Object.entries({
|
|
1528
|
+
"application/json": "json",
|
|
1529
|
+
"text/json": "json",
|
|
1530
|
+
"text/html": "html",
|
|
1531
|
+
"text/css": "css",
|
|
1532
|
+
"text/javascript": "javascript",
|
|
1533
|
+
"application/xml": "xml",
|
|
1534
|
+
"application/xhtml+xml": "xhtml"
|
|
1535
|
+
}).find(
|
|
1536
|
+
([i]) => n.includes(i)
|
|
1537
|
+
)) == null ? void 0 : t[1];
|
|
1538
|
+
}, _a = (n) => {
|
|
1539
|
+
const a = n.get("Content-Type") || "";
|
|
1540
|
+
return Ra(a);
|
|
1541
|
+
}, Ea = (n) => {
|
|
1542
|
+
try {
|
|
1543
|
+
return JSON.stringify(JSON.parse(n), null, 2);
|
|
1544
|
+
} catch {
|
|
1545
|
+
return null;
|
|
1546
|
+
}
|
|
1547
|
+
}, Ia = ({
|
|
1548
|
+
body: n = "",
|
|
1549
|
+
headers: a
|
|
1550
|
+
}) => {
|
|
1551
|
+
const t = _a(a), i = Ea(n), s = i || n, [r, l] = Ne(
|
|
1552
|
+
i ? "formatted" : "raw"
|
|
1553
|
+
);
|
|
1554
|
+
return /* @__PURE__ */ e.jsxs("div", { className: "flex flex-col gap-2", children: [
|
|
1555
|
+
/* @__PURE__ */ e.jsx(ae, { className: "shadow-none", children: /* @__PURE__ */ e.jsx(
|
|
1556
|
+
pe,
|
|
1557
|
+
{
|
|
1558
|
+
language: r === "raw" ? i ? "plain" : t : "json",
|
|
1559
|
+
noBackground: !0,
|
|
1560
|
+
showLanguageIndicator: !0,
|
|
1561
|
+
className: "overflow-x-auto p-4 text-xs",
|
|
1562
|
+
code: r === "raw" ? n : s
|
|
1563
|
+
}
|
|
1564
|
+
) }),
|
|
1565
|
+
i && /* @__PURE__ */ e.jsx("div", { className: "flex justify-end", children: /* @__PURE__ */ e.jsx(
|
|
1566
|
+
Pa,
|
|
1567
|
+
{
|
|
1568
|
+
value: r,
|
|
1569
|
+
onChange: (o) => l(o.target.value),
|
|
1570
|
+
options: [
|
|
1571
|
+
{ value: "formatted", label: "Formatted" },
|
|
1572
|
+
{ value: "raw", label: "Raw" }
|
|
1573
|
+
]
|
|
1574
|
+
}
|
|
1575
|
+
) })
|
|
1576
|
+
] });
|
|
1496
1577
|
}, E = "__none";
|
|
1497
|
-
function
|
|
1578
|
+
function Aa(n) {
|
|
1498
1579
|
var t;
|
|
1499
1580
|
return (t = Object.entries({
|
|
1500
1581
|
"application/json": "json",
|
|
@@ -1507,9 +1588,9 @@ function Pa(n) {
|
|
|
1507
1588
|
"text/plain": "plain"
|
|
1508
1589
|
}).find(
|
|
1509
1590
|
([i]) => n.includes(i)
|
|
1510
|
-
)) == null ? void 0 : t[
|
|
1591
|
+
)) == null ? void 0 : t[1];
|
|
1511
1592
|
}
|
|
1512
|
-
const
|
|
1593
|
+
const Oa = {
|
|
1513
1594
|
200: "OK",
|
|
1514
1595
|
201: "Created",
|
|
1515
1596
|
202: "Accepted",
|
|
@@ -1520,7 +1601,7 @@ const Ra = {
|
|
|
1520
1601
|
404: "Not Found",
|
|
1521
1602
|
405: "Method Not Allowed",
|
|
1522
1603
|
500: "Internal Server Error"
|
|
1523
|
-
},
|
|
1604
|
+
}, $a = ({
|
|
1524
1605
|
server: n,
|
|
1525
1606
|
url: a,
|
|
1526
1607
|
method: t,
|
|
@@ -1548,23 +1629,23 @@ const Ra = {
|
|
|
1548
1629
|
})),
|
|
1549
1630
|
identity: E
|
|
1550
1631
|
}
|
|
1551
|
-
}), y = p(), j =
|
|
1552
|
-
|
|
1553
|
-
var
|
|
1632
|
+
}), y = p(), j = qn(), h = xe(!1);
|
|
1633
|
+
ke(() => {
|
|
1634
|
+
var x;
|
|
1554
1635
|
if (h.current) return;
|
|
1555
|
-
const d = (
|
|
1636
|
+
const d = (x = j.data) == null ? void 0 : x.at(0);
|
|
1556
1637
|
d && (v("identity", d.id), h.current = !0);
|
|
1557
1638
|
}, [v, j.data]);
|
|
1558
1639
|
const f = Rn({
|
|
1559
1640
|
mutationFn: async (d) => {
|
|
1560
1641
|
var _, M;
|
|
1561
|
-
const
|
|
1642
|
+
const x = Fa(n, a, d), R = performance.now(), A = new Request(x, {
|
|
1562
1643
|
method: t.toUpperCase(),
|
|
1563
1644
|
headers: Object.fromEntries(
|
|
1564
|
-
d.headers.filter((
|
|
1645
|
+
d.headers.filter((w) => w.name).map((w) => [w.name, w.value])
|
|
1565
1646
|
)
|
|
1566
1647
|
});
|
|
1567
|
-
d.identity !== E && ((M = (_ = j.data) == null ? void 0 : _.find((
|
|
1648
|
+
d.identity !== E && ((M = (_ = j.data) == null ? void 0 : _.find((w) => w.id === d.identity)) == null || M.authorizeRequest(A));
|
|
1568
1649
|
const T = await ba(A), O = performance.now() - R, $ = await T.text();
|
|
1569
1650
|
return {
|
|
1570
1651
|
status: T.status,
|
|
@@ -1574,9 +1655,9 @@ const Ra = {
|
|
|
1574
1655
|
time: O
|
|
1575
1656
|
};
|
|
1576
1657
|
}
|
|
1577
|
-
}),
|
|
1658
|
+
}), dn = a.split("/").map((d, x, R) => {
|
|
1578
1659
|
var _;
|
|
1579
|
-
const A = d.startsWith("{") && d.endsWith("}"), T = d.replace(/[{}]/g, ""), O = (_ = y.pathParams.find((M) => M.name === T)) == null ? void 0 : _.value, $ = O ? /* @__PURE__ */ e.jsx(
|
|
1660
|
+
const A = d.startsWith("{") && d.endsWith("}"), T = d.replace(/[{}]/g, ""), O = (_ = y.pathParams.find((M) => M.name === T)) == null ? void 0 : _.value, $ = O ? /* @__PURE__ */ e.jsx(ln, { backgroundOpacity: "25%", name: d, slug: d, children: encodeURIComponent(O) }) : /* @__PURE__ */ e.jsx(
|
|
1580
1661
|
"span",
|
|
1581
1662
|
{
|
|
1582
1663
|
className: "underline decoration-wavy decoration-red-500",
|
|
@@ -1586,19 +1667,21 @@ const Ra = {
|
|
|
1586
1667
|
);
|
|
1587
1668
|
return (
|
|
1588
1669
|
// eslint-disable-next-line react/no-array-index-key
|
|
1589
|
-
/* @__PURE__ */ e.jsxs(
|
|
1670
|
+
/* @__PURE__ */ e.jsxs(B, { children: [
|
|
1590
1671
|
A ? $ : d,
|
|
1591
|
-
|
|
1672
|
+
x < R.length - 1 && "/",
|
|
1592
1673
|
/* @__PURE__ */ e.jsx("wbr", {})
|
|
1593
|
-
] }, d +
|
|
1674
|
+
] }, d + x)
|
|
1594
1675
|
);
|
|
1595
|
-
})
|
|
1676
|
+
});
|
|
1677
|
+
Aa(
|
|
1596
1678
|
((re = f.data) == null ? void 0 : re.headers.get("Content-Type")) ?? ""
|
|
1597
|
-
)
|
|
1679
|
+
);
|
|
1680
|
+
const G = Array.from(((oe = f.data) == null ? void 0 : oe.headers.entries()) ?? []), se = y.queryParams.filter((d) => d.active).map((d, x, R) => /* @__PURE__ */ e.jsxs(B, { children: [
|
|
1598
1681
|
d.name,
|
|
1599
1682
|
"=",
|
|
1600
1683
|
encodeURIComponent(d.value).replaceAll("%20", "+"),
|
|
1601
|
-
|
|
1684
|
+
x < R.length - 1 && "&",
|
|
1602
1685
|
/* @__PURE__ */ e.jsx("wbr", {})
|
|
1603
1686
|
] }, d.name));
|
|
1604
1687
|
return /* @__PURE__ */ e.jsx(
|
|
@@ -1616,7 +1699,7 @@ const Ra = {
|
|
|
1616
1699
|
/* @__PURE__ */ e.jsxs("div", { className: "flex flex-1 items-center w-full border rounded-md border-border", children: [
|
|
1617
1700
|
/* @__PURE__ */ e.jsx("div", { className: "border-r p-2 bg-muted rounded-l-md self-stretch font-semibold font-mono", children: t.toUpperCase() }),
|
|
1618
1701
|
/* @__PURE__ */ e.jsxs("div", { className: "p-2 font-mono text-xs", children: [
|
|
1619
|
-
|
|
1702
|
+
dn,
|
|
1620
1703
|
se.length > 0 ? "?" : "",
|
|
1621
1704
|
se
|
|
1622
1705
|
] })
|
|
@@ -1630,14 +1713,14 @@ const Ra = {
|
|
|
1630
1713
|
children: [
|
|
1631
1714
|
/* @__PURE__ */ e.jsxs("div", { className: "flex justify-between", children: [
|
|
1632
1715
|
/* @__PURE__ */ e.jsxs(J, { children: [
|
|
1633
|
-
r.length > 0 && /* @__PURE__ */ e.jsx(
|
|
1634
|
-
/* @__PURE__ */ e.jsxs(
|
|
1716
|
+
r.length > 0 && /* @__PURE__ */ e.jsx(D, { value: "parameters", children: "Parameters" }),
|
|
1717
|
+
/* @__PURE__ */ e.jsxs(D, { value: "headers", children: [
|
|
1635
1718
|
"Headers",
|
|
1636
1719
|
" ",
|
|
1637
1720
|
y.headers.length > 0 && `(${y.headers.length})`
|
|
1638
1721
|
] }),
|
|
1639
1722
|
/* @__PURE__ */ e.jsx(
|
|
1640
|
-
|
|
1723
|
+
D,
|
|
1641
1724
|
{
|
|
1642
1725
|
value: "body",
|
|
1643
1726
|
disabled: !["POST", "PUT", "PATCH", "DELETE"].includes(
|
|
@@ -1670,11 +1753,11 @@ const Ra = {
|
|
|
1670
1753
|
/* @__PURE__ */ e.jsxs(P, { value: "parameters", children: [
|
|
1671
1754
|
r.length > 0 && /* @__PURE__ */ e.jsxs("div", { className: "flex flex-col gap-4 my-4", children: [
|
|
1672
1755
|
/* @__PURE__ */ e.jsx("span", { className: "font-semibold", children: "Path Parameters" }),
|
|
1673
|
-
/* @__PURE__ */ e.jsx(
|
|
1756
|
+
/* @__PURE__ */ e.jsx(wa, { control: u })
|
|
1674
1757
|
] }),
|
|
1675
1758
|
s.length > 0 && /* @__PURE__ */ e.jsxs("div", { className: "flex flex-col gap-4 my-4", children: [
|
|
1676
1759
|
/* @__PURE__ */ e.jsx("span", { className: "font-semibold", children: "Query Parameters" }),
|
|
1677
|
-
/* @__PURE__ */ e.jsx(
|
|
1760
|
+
/* @__PURE__ */ e.jsx(Da, { control: u, queryParams: s })
|
|
1678
1761
|
] })
|
|
1679
1762
|
] }),
|
|
1680
1763
|
/* @__PURE__ */ e.jsx(P, { value: "body", children: /* @__PURE__ */ e.jsx(
|
|
@@ -1698,7 +1781,7 @@ const Ra = {
|
|
|
1698
1781
|
"Status: ",
|
|
1699
1782
|
f.data.status,
|
|
1700
1783
|
" ",
|
|
1701
|
-
|
|
1784
|
+
Oa[f.data.status] ?? ""
|
|
1702
1785
|
] }),
|
|
1703
1786
|
/* @__PURE__ */ e.jsxs("div", { children: [
|
|
1704
1787
|
"Time: ",
|
|
@@ -1713,24 +1796,22 @@ const Ra = {
|
|
|
1713
1796
|
] }) }),
|
|
1714
1797
|
/* @__PURE__ */ e.jsxs(ue, { defaultValue: "response", children: [
|
|
1715
1798
|
/* @__PURE__ */ e.jsxs(J, { children: [
|
|
1716
|
-
/* @__PURE__ */ e.jsx(
|
|
1717
|
-
/* @__PURE__ */ e.jsx(
|
|
1799
|
+
/* @__PURE__ */ e.jsx(D, { value: "response", children: "Response" }),
|
|
1800
|
+
/* @__PURE__ */ e.jsx(D, { value: "headers", children: G.length ? `Headers (${G.length})` : "No headers" })
|
|
1718
1801
|
] }),
|
|
1719
|
-
/* @__PURE__ */ e.jsx(P, { value: "response", children: /* @__PURE__ */ e.jsx(
|
|
1720
|
-
|
|
1802
|
+
/* @__PURE__ */ e.jsx(P, { value: "response", children: /* @__PURE__ */ e.jsx(
|
|
1803
|
+
Ia,
|
|
1721
1804
|
{
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
className: "overflow-x-auto ",
|
|
1725
|
-
code: f.data.body ?? JSON.stringify("")
|
|
1805
|
+
headers: f.data.headers,
|
|
1806
|
+
body: f.data.body
|
|
1726
1807
|
}
|
|
1727
|
-
) })
|
|
1728
|
-
/* @__PURE__ */ e.jsx(P, { value: "headers", children: /* @__PURE__ */ e.jsxs(
|
|
1808
|
+
) }),
|
|
1809
|
+
/* @__PURE__ */ e.jsx(P, { value: "headers", children: /* @__PURE__ */ e.jsxs(ae, { className: "grid grid-cols-2 w-full gap-2.5 font-mono text-xs shadow-none p-4", children: [
|
|
1729
1810
|
/* @__PURE__ */ e.jsx("div", { className: "font-semibold", children: "Key" }),
|
|
1730
1811
|
/* @__PURE__ */ e.jsx("div", { className: "font-semibold", children: "Value" }),
|
|
1731
|
-
|
|
1812
|
+
G.map(([d, x]) => /* @__PURE__ */ e.jsxs(B, { children: [
|
|
1732
1813
|
/* @__PURE__ */ e.jsx("div", { children: d }),
|
|
1733
|
-
/* @__PURE__ */ e.jsx("div", { children:
|
|
1814
|
+
/* @__PURE__ */ e.jsx("div", { className: "break-words", children: x })
|
|
1734
1815
|
] }, d))
|
|
1735
1816
|
] }) })
|
|
1736
1817
|
] })
|
|
@@ -1738,29 +1819,29 @@ const Ra = {
|
|
|
1738
1819
|
] }) })
|
|
1739
1820
|
}
|
|
1740
1821
|
);
|
|
1741
|
-
},
|
|
1742
|
-
const [a, t] =
|
|
1822
|
+
}, Ma = (n) => {
|
|
1823
|
+
const [a, t] = Ne(!1);
|
|
1743
1824
|
return /* @__PURE__ */ e.jsxs(ca, { onOpenChange: (i) => t(i), children: [
|
|
1744
1825
|
/* @__PURE__ */ e.jsx(ma, { asChild: !0, children: n.children ?? /* @__PURE__ */ e.jsx(
|
|
1745
|
-
|
|
1826
|
+
be,
|
|
1746
1827
|
{
|
|
1747
1828
|
className: "cursor-pointer text-primary hover:text-primary/80",
|
|
1748
1829
|
size: 16
|
|
1749
1830
|
}
|
|
1750
1831
|
) }),
|
|
1751
1832
|
/* @__PURE__ */ e.jsxs(
|
|
1752
|
-
|
|
1833
|
+
We,
|
|
1753
1834
|
{
|
|
1754
1835
|
className: "max-w-screen-xl w-full h-5/6 overflow-auto p-0",
|
|
1755
1836
|
"aria-describedby": void 0,
|
|
1756
1837
|
children: [
|
|
1757
|
-
/* @__PURE__ */ e.jsx($n, { children: /* @__PURE__ */ e.jsx(
|
|
1758
|
-
a && /* @__PURE__ */ e.jsx(
|
|
1838
|
+
/* @__PURE__ */ e.jsx($n, { children: /* @__PURE__ */ e.jsx(Ue, { children: "Playground" }) }),
|
|
1839
|
+
a && /* @__PURE__ */ e.jsx($a, { ...n })
|
|
1759
1840
|
]
|
|
1760
1841
|
}
|
|
1761
1842
|
)
|
|
1762
1843
|
] });
|
|
1763
|
-
},
|
|
1844
|
+
}, Va = Kn(`
|
|
1764
1845
|
query GetCategories($input: JSON!, $type: SchemaType!) {
|
|
1765
1846
|
schema(input: $input, type: $type) {
|
|
1766
1847
|
tags {
|
|
@@ -1778,14 +1859,14 @@ const Ra = {
|
|
|
1778
1859
|
}
|
|
1779
1860
|
}
|
|
1780
1861
|
}
|
|
1781
|
-
`),
|
|
1862
|
+
`), qa = () => {
|
|
1782
1863
|
const n = cn(), a = n instanceof Error ? /* @__PURE__ */ e.jsx(pe, { code: n.message }) : "An unknown error occurred";
|
|
1783
1864
|
return /* @__PURE__ */ e.jsx(Xn, { category: "Error", title: "An error occurred", message: a });
|
|
1784
|
-
},
|
|
1865
|
+
}, tt = (n) => {
|
|
1785
1866
|
const a = n.path ?? "/reference", t = n.server ? new gn({
|
|
1786
1867
|
url: n.server,
|
|
1787
1868
|
exchanges: [fn, hn]
|
|
1788
|
-
}) :
|
|
1869
|
+
}) : xn({ useMemoryClient: n.inMemory ?? !1 });
|
|
1789
1870
|
return {
|
|
1790
1871
|
getHead: () => {
|
|
1791
1872
|
if (n.type === "url")
|
|
@@ -1802,15 +1883,15 @@ const Ra = {
|
|
|
1802
1883
|
return /* @__PURE__ */ e.jsx("link", { rel: "preconnect", href: n.server });
|
|
1803
1884
|
},
|
|
1804
1885
|
getMdxComponents: () => ({
|
|
1805
|
-
OpenPlaygroundButton: (i) => /* @__PURE__ */ e.jsx(
|
|
1886
|
+
OpenPlaygroundButton: (i) => /* @__PURE__ */ e.jsx("div", { children: /* @__PURE__ */ e.jsx(Ma, { ...i, children: /* @__PURE__ */ e.jsx(I, { className: "gap-2 items-center", variant: "outline", children: i.children ?? /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
1806
1887
|
"Open in Playground ",
|
|
1807
|
-
/* @__PURE__ */ e.jsx(
|
|
1808
|
-
] }) })
|
|
1888
|
+
/* @__PURE__ */ e.jsx(be, { size: 16 })
|
|
1889
|
+
] }) }) }) })
|
|
1809
1890
|
}),
|
|
1810
1891
|
getNavigation: async (i) => {
|
|
1811
|
-
if (!
|
|
1892
|
+
if (!Ln({ path: a, end: !1 }, i))
|
|
1812
1893
|
return [];
|
|
1813
|
-
const { data: s } = await t.query(
|
|
1894
|
+
const { data: s } = await t.query(Va, {
|
|
1814
1895
|
input: n.input,
|
|
1815
1896
|
type: n.type
|
|
1816
1897
|
});
|
|
@@ -1844,7 +1925,7 @@ const Ra = {
|
|
|
1844
1925
|
element: /* @__PURE__ */ e.jsx(i, { client: t, config: n })
|
|
1845
1926
|
};
|
|
1846
1927
|
},
|
|
1847
|
-
errorElement: /* @__PURE__ */ e.jsx(
|
|
1928
|
+
errorElement: /* @__PURE__ */ e.jsx(qa, {}),
|
|
1848
1929
|
children: [
|
|
1849
1930
|
{
|
|
1850
1931
|
path: a,
|
|
@@ -1852,7 +1933,7 @@ const Ra = {
|
|
|
1852
1933
|
{
|
|
1853
1934
|
index: !0,
|
|
1854
1935
|
async lazy() {
|
|
1855
|
-
const { OperationList: i } = await import("./OperationList-
|
|
1936
|
+
const { OperationList: i } = await import("./OperationList-C-M33Hxu.js");
|
|
1856
1937
|
return { element: /* @__PURE__ */ e.jsx(i, {}) };
|
|
1857
1938
|
}
|
|
1858
1939
|
}
|
|
@@ -1864,15 +1945,16 @@ const Ra = {
|
|
|
1864
1945
|
};
|
|
1865
1946
|
};
|
|
1866
1947
|
export {
|
|
1867
|
-
|
|
1948
|
+
ln as C,
|
|
1868
1949
|
Xn as E,
|
|
1869
|
-
|
|
1870
|
-
|
|
1950
|
+
Za as M,
|
|
1951
|
+
Ma as P,
|
|
1952
|
+
Pa as S,
|
|
1871
1953
|
ue as T,
|
|
1872
1954
|
J as a,
|
|
1873
|
-
|
|
1955
|
+
D as b,
|
|
1874
1956
|
P as c,
|
|
1875
1957
|
Kn as g,
|
|
1876
|
-
|
|
1958
|
+
tt as o
|
|
1877
1959
|
};
|
|
1878
|
-
//# sourceMappingURL=index-
|
|
1960
|
+
//# sourceMappingURL=index-Uqja2h2M.js.map
|