zudoku 0.33.0 → 0.33.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lib/authentication/state.js +8 -2
- package/dist/lib/authentication/state.js.map +1 -1
- package/dist/lib/components/index.d.ts +1 -1
- package/dist/lib/core/RouteGuard.d.ts +1 -1
- package/dist/lib/core/RouteGuard.js +23 -18
- package/dist/lib/core/RouteGuard.js.map +1 -1
- package/dist/lib/plugins/openapi/Sidecar.js +1 -1
- package/dist/lib/plugins/openapi/Sidecar.js.map +1 -1
- package/lib/{AuthenticationPlugin-_gUMnGxb.js → AuthenticationPlugin-CiO1FM6Q.js} +2 -2
- package/lib/{AuthenticationPlugin-_gUMnGxb.js.map → AuthenticationPlugin-CiO1FM6Q.js.map} +1 -1
- package/lib/Dialog-DIKGQxQc.js +83 -0
- package/lib/Dialog-DIKGQxQc.js.map +1 -0
- package/lib/{MdxPage-DM9mE-G-.js → MdxPage-DZTt9ld7.js} +3 -3
- package/lib/{MdxPage-DM9mE-G-.js.map → MdxPage-DZTt9ld7.js.map} +1 -1
- package/lib/{OasProvider-Bvu4dDpX.js → OasProvider-SzD9mHJc.js} +3 -3
- package/lib/{OasProvider-Bvu4dDpX.js.map → OasProvider-SzD9mHJc.js.map} +1 -1
- package/lib/{OperationList-DWnNbwVg.js → OperationList-DDs9NblY.js} +5 -5
- package/lib/{OperationList-DWnNbwVg.js.map → OperationList-DDs9NblY.js.map} +1 -1
- package/lib/{Select-BmoX1iTH.js → Select-Dqtcn53H.js} +3 -3
- package/lib/{Select-BmoX1iTH.js.map → Select-Dqtcn53H.js.map} +1 -1
- package/lib/{hook-4_6pQSo4.js → hook-CN__aZIt.js} +39 -35
- package/lib/{hook-4_6pQSo4.js.map → hook-CN__aZIt.js.map} +1 -1
- package/lib/{index-DVBlM15k.js → index-CibzSNks.js} +27 -26
- package/lib/{index-DVBlM15k.js.map → index-CibzSNks.js.map} +1 -1
- package/lib/index-gQD2h1wX.js +447 -0
- package/lib/index-gQD2h1wX.js.map +1 -0
- package/lib/{mutation-DTunCQKB.js → mutation-EclmI0is.js} +2 -2
- package/lib/{mutation-DTunCQKB.js.map → mutation-EclmI0is.js.map} +1 -1
- package/lib/ui/Command.js +21 -20
- package/lib/ui/Command.js.map +1 -1
- package/lib/{useScrollToAnchor-BW8y_cwU.js → useScrollToAnchor-C7ilRSts.js} +2 -2
- package/lib/{useScrollToAnchor-BW8y_cwU.js.map → useScrollToAnchor-C7ilRSts.js.map} +1 -1
- package/lib/zudoku.auth-auth0.js +1 -1
- package/lib/zudoku.auth-clerk.js +2 -2
- package/lib/zudoku.auth-openid.js +2 -2
- package/lib/zudoku.components.js +475 -464
- package/lib/zudoku.components.js.map +1 -1
- package/lib/zudoku.hooks.js +1 -1
- package/lib/zudoku.plugin-api-catalog.js +1 -1
- package/lib/zudoku.plugin-api-keys.js +2 -2
- package/lib/zudoku.plugin-markdown.js +1 -1
- package/lib/zudoku.plugin-openapi.js +2 -2
- package/package.json +1 -1
- package/src/lib/authentication/state.ts +8 -2
- package/src/lib/core/RouteGuard.tsx +43 -18
- package/src/lib/plugins/openapi/Sidecar.tsx +1 -1
- package/lib/index-Du5aNddU.js +0 -509
- package/lib/index-Du5aNddU.js.map +0 -1
|
@@ -9,28 +9,29 @@ import { j as e } from "./jsx-runtime-CYK1ROHF.js";
|
|
|
9
9
|
import { s as W } from "./index-LNp6rxyU.js";
|
|
10
10
|
import { Circle as bt, ChevronRightIcon as B, CheckIcon as Nt, DotIcon as wt, Check as Ct, Search as Tt, XIcon as $t, ChevronDownIcon as St, InfoIcon as Le, LogInIcon as Pt, CirclePlayIcon as Rt } from "lucide-react";
|
|
11
11
|
import { r as kt, m as Ve } from "./chunk-IR6S3I6Y-D_3UmFIn.js";
|
|
12
|
-
import { m as It, o as Ot, p as Et, k as At } from "./hook-
|
|
12
|
+
import { m as It, o as Ot, p as Et, k as At } from "./hook-CN__aZIt.js";
|
|
13
13
|
import { Button as K } from "./ui/Button.js";
|
|
14
14
|
import { j as O } from "./joinUrl-10po2Jdj.js";
|
|
15
15
|
import { Z as qt } from "./invariant-Caa8-XvF.js";
|
|
16
16
|
import { VisuallyHidden as Dt } from "@radix-ui/react-visually-hidden";
|
|
17
17
|
import * as x from "react";
|
|
18
18
|
import { Fragment as k, useRef as q, useEffect as fe, useState as U, useCallback as Lt, useTransition as Vt } from "react";
|
|
19
|
-
import {
|
|
20
|
-
import { S as Qe, a as Ze, b as We, c as Ke, e as Q, u as
|
|
21
|
-
import { b as ge, u as ye, C as I, a as
|
|
19
|
+
import { D as Ft, b as zt, a as Ht, c as Gt } from "./Dialog-DIKGQxQc.js";
|
|
20
|
+
import { S as Qe, a as Ze, b as We, c as Ke, e as Q, u as Bt } from "./Select-Dqtcn53H.js";
|
|
21
|
+
import { b as ge, u as ye, C as I, a as Ut, F as Mt } from "./index.esm--gIChbWs.js";
|
|
22
22
|
import { c as ve } from "./index-CPNSgwSb.js";
|
|
23
23
|
import { c as m } from "./cn-qaFjX9_3.js";
|
|
24
24
|
import * as Xe from "@radix-ui/react-label";
|
|
25
25
|
import * as M from "@radix-ui/react-radio-group";
|
|
26
|
-
import { Card as je, CardHeader as
|
|
26
|
+
import { Card as je, CardHeader as _t, CardTitle as Jt, CardContent as Qt } from "./ui/Card.js";
|
|
27
27
|
import { Tabs as Ye, TabsList as et, TabsTrigger as E, TabsContent as A } from "./ui/Tabs.js";
|
|
28
|
-
import { z as
|
|
29
|
-
import { B as Z, S as
|
|
28
|
+
import { z as Zt } from "./index-DwT-v3zK.js";
|
|
29
|
+
import { B as Z, S as Wt } from "./Spinner-1KrEmx1V.js";
|
|
30
30
|
import * as j from "@radix-ui/react-dropdown-menu";
|
|
31
31
|
import * as me from "@radix-ui/react-checkbox";
|
|
32
32
|
import * as X from "@radix-ui/react-popover";
|
|
33
|
-
import { PopoverAnchor as
|
|
33
|
+
import { PopoverAnchor as Kt } from "@radix-ui/react-popover";
|
|
34
|
+
import { V as $, T as Xt } from "./index-gQD2h1wX.js";
|
|
34
35
|
import { Input as be } from "./ui/Input.js";
|
|
35
36
|
import { Slot as Yt } from "@radix-ui/react-slot";
|
|
36
37
|
import { Callout as ea } from "./ui/Callout.js";
|
|
@@ -406,7 +407,7 @@ const le = (t) => Math.abs(
|
|
|
406
407
|
const s = (3 * de(t) + 2 * de(t) + de(t)) % 360, { saturation: n = 75, lightness: r = 60 } = a;
|
|
407
408
|
return `${s}deg ${n}% ${r}%`;
|
|
408
409
|
}, ce = "data-linked-param", ha = (t) => {
|
|
409
|
-
const { resolvedTheme: a } =
|
|
410
|
+
const { resolvedTheme: a } = Zt();
|
|
410
411
|
return {
|
|
411
412
|
text: Ge(
|
|
412
413
|
t,
|
|
@@ -806,9 +807,9 @@ const Ea = ({
|
|
|
806
807
|
onEnterPress: i,
|
|
807
808
|
ref: l
|
|
808
809
|
}) => {
|
|
809
|
-
const [c, d] = U(!1), [u, g] = U(!1), C =
|
|
810
|
+
const [c, d] = U(!1), [u, g] = U(!1), C = Xt((p) => p.filtered.count), b = q(null);
|
|
810
811
|
return /* @__PURE__ */ e.jsxs(Oa, { open: c, children: [
|
|
811
|
-
/* @__PURE__ */ e.jsx(
|
|
812
|
+
/* @__PURE__ */ e.jsx(Kt, { children: /* @__PURE__ */ e.jsx(
|
|
812
813
|
dt,
|
|
813
814
|
{
|
|
814
815
|
ref: (p) => {
|
|
@@ -1394,8 +1395,8 @@ const Ua = {
|
|
|
1394
1395
|
return /* @__PURE__ */ e.jsx("div", { className: "min-w-0 p-8 bg-muted/70 overflow-y-auto", children: t.error ? /* @__PURE__ */ e.jsxs("div", { className: "flex flex-col gap-2", children: [
|
|
1395
1396
|
a && /* @__PURE__ */ e.jsx(ea, { type: "caution", children: "Some path parameters are missing values. Please fill them in to ensure the request is sent correctly." }),
|
|
1396
1397
|
/* @__PURE__ */ e.jsxs(je, { children: [
|
|
1397
|
-
/* @__PURE__ */ e.jsx(
|
|
1398
|
-
/* @__PURE__ */ e.jsxs(
|
|
1398
|
+
/* @__PURE__ */ e.jsx(_t, { children: /* @__PURE__ */ e.jsx(Jt, { children: "Request failed" }) }),
|
|
1399
|
+
/* @__PURE__ */ e.jsxs(Qt, { children: [
|
|
1399
1400
|
"Error:",
|
|
1400
1401
|
" ",
|
|
1401
1402
|
t.error.message || String(t.error) || "Unexpected error"
|
|
@@ -1437,7 +1438,7 @@ const Ua = {
|
|
|
1437
1438
|
url: t.data.request.url
|
|
1438
1439
|
}
|
|
1439
1440
|
) })
|
|
1440
|
-
] }) }) : /* @__PURE__ */ e.jsx("div", { className: "grid place-items-center h-full", children: /* @__PURE__ */ e.jsx("span", { className: "text-[16px] font-semibold text-muted-foreground", children: t.isPending ? /* @__PURE__ */ e.jsx(
|
|
1441
|
+
] }) }) : /* @__PURE__ */ e.jsx("div", { className: "grid place-items-center h-full", children: /* @__PURE__ */ e.jsx("span", { className: "text-[16px] font-semibold text-muted-foreground", children: t.isPending ? /* @__PURE__ */ e.jsx(Wt, {}) : "Send a request first to see the response here" }) }) });
|
|
1441
1442
|
}, Ka = ({
|
|
1442
1443
|
identities: t,
|
|
1443
1444
|
formRef: a,
|
|
@@ -1501,7 +1502,7 @@ const Ua = {
|
|
|
1501
1502
|
var Oe, Ee, Ae;
|
|
1502
1503
|
const { selectedServer: u, setSelectedServer: g } = Ot(
|
|
1503
1504
|
a.map((o) => ({ url: o }))
|
|
1504
|
-
), [, C] = Vt(), { register: b, control: p, handleSubmit: f, watch: h, setValue: v, ...y } =
|
|
1505
|
+
), [, C] = Vt(), { register: b, control: p, handleSubmit: f, watch: h, setValue: v, ...y } = Ut({
|
|
1505
1506
|
defaultValues: {
|
|
1506
1507
|
body: c,
|
|
1507
1508
|
queryParams: i.map((o) => ({
|
|
@@ -1541,7 +1542,7 @@ const Ua = {
|
|
|
1541
1542
|
const o = (R = w.data) == null ? void 0 : R.at(0);
|
|
1542
1543
|
o && (v("identity", o.id), L.current = !0);
|
|
1543
1544
|
}, [v, w.data]);
|
|
1544
|
-
const V = q(null), _ =
|
|
1545
|
+
const V = q(null), _ = Bt({
|
|
1545
1546
|
mutationFn: async (o) => {
|
|
1546
1547
|
var J, F;
|
|
1547
1548
|
const R = performance.now(), S = new Request(
|
|
@@ -1624,7 +1625,7 @@ const Ua = {
|
|
|
1624
1625
|
}
|
|
1625
1626
|
) });
|
|
1626
1627
|
return /* @__PURE__ */ e.jsx(
|
|
1627
|
-
|
|
1628
|
+
Mt,
|
|
1628
1629
|
{
|
|
1629
1630
|
register: b,
|
|
1630
1631
|
control: p,
|
|
@@ -1806,8 +1807,8 @@ const Ua = {
|
|
|
1806
1807
|
}
|
|
1807
1808
|
), es = (t) => {
|
|
1808
1809
|
const [a, s] = U(!1);
|
|
1809
|
-
return /* @__PURE__ */ e.jsxs(
|
|
1810
|
-
/* @__PURE__ */ e.jsx(
|
|
1810
|
+
return /* @__PURE__ */ e.jsxs(Ft, { onOpenChange: (n) => s(n), children: [
|
|
1811
|
+
/* @__PURE__ */ e.jsx(zt, { asChild: !0, children: t.children ?? /* @__PURE__ */ e.jsxs(
|
|
1811
1812
|
"button",
|
|
1812
1813
|
{
|
|
1813
1814
|
type: "button",
|
|
@@ -1819,12 +1820,12 @@ const Ua = {
|
|
|
1819
1820
|
}
|
|
1820
1821
|
) }),
|
|
1821
1822
|
/* @__PURE__ */ e.jsxs(
|
|
1822
|
-
|
|
1823
|
+
Ht,
|
|
1823
1824
|
{
|
|
1824
1825
|
className: "max-w-screen-xl w-full h-5/6 overflow-hidden p-0",
|
|
1825
1826
|
"aria-describedby": void 0,
|
|
1826
1827
|
children: [
|
|
1827
|
-
/* @__PURE__ */ e.jsx(Dt, { children: /* @__PURE__ */ e.jsx(
|
|
1828
|
+
/* @__PURE__ */ e.jsx(Dt, { children: /* @__PURE__ */ e.jsx(Gt, { children: "Playground" }) }),
|
|
1828
1829
|
a && /* @__PURE__ */ e.jsx(Xa, { ...t })
|
|
1829
1830
|
]
|
|
1830
1831
|
}
|
|
@@ -1869,7 +1870,7 @@ const Ua = {
|
|
|
1869
1870
|
}), Je = (t) => ({
|
|
1870
1871
|
path: t.routePath,
|
|
1871
1872
|
async lazy() {
|
|
1872
|
-
const { OasProvider: a } = await import("./OasProvider-
|
|
1873
|
+
const { OasProvider: a } = await import("./OasProvider-SzD9mHJc.js");
|
|
1873
1874
|
return {
|
|
1874
1875
|
element: /* @__PURE__ */ e.jsx(
|
|
1875
1876
|
a,
|
|
@@ -1890,7 +1891,7 @@ const Ua = {
|
|
|
1890
1891
|
}) => ({
|
|
1891
1892
|
path: t,
|
|
1892
1893
|
async lazy() {
|
|
1893
|
-
const { OperationList: n } = await import("./OperationList-
|
|
1894
|
+
const { OperationList: n } = await import("./OperationList-DDs9NblY.js");
|
|
1894
1895
|
return { element: /* @__PURE__ */ e.jsx(n, { tag: a, untagged: s }) };
|
|
1895
1896
|
}
|
|
1896
1897
|
}), as = (t, a) => {
|
|
@@ -1975,7 +1976,7 @@ const Ua = {
|
|
|
1975
1976
|
}
|
|
1976
1977
|
}
|
|
1977
1978
|
}
|
|
1978
|
-
`), G = "~endpoints",
|
|
1979
|
+
`), G = "~endpoints", Es = (t) => {
|
|
1979
1980
|
const a = O(t.navigationId ?? "/reference"), s = new sa(t);
|
|
1980
1981
|
return {
|
|
1981
1982
|
getHead: () => {
|
|
@@ -2094,6 +2095,6 @@ export {
|
|
|
2094
2095
|
ua as e,
|
|
2095
2096
|
pt as g,
|
|
2096
2097
|
za as m,
|
|
2097
|
-
|
|
2098
|
+
Es as o
|
|
2098
2099
|
};
|
|
2099
|
-
//# sourceMappingURL=index-
|
|
2100
|
+
//# sourceMappingURL=index-CibzSNks.js.map
|