zudoku 0.37.0 → 0.38.0
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/app/main.js +2 -0
- package/dist/app/main.js.map +1 -1
- package/dist/config/validators/common.d.ts +287 -18
- package/dist/config/validators/common.js +2 -0
- package/dist/config/validators/common.js.map +1 -1
- package/dist/config/validators/validate.d.ts +107 -7
- package/dist/lib/authentication/authentication.d.ts +1 -0
- package/dist/lib/authentication/providers/clerk.js +19 -0
- package/dist/lib/authentication/providers/clerk.js.map +1 -1
- package/dist/lib/authentication/providers/openid.d.ts +1 -0
- package/dist/lib/authentication/providers/openid.js +5 -0
- package/dist/lib/authentication/providers/openid.js.map +1 -1
- package/dist/lib/authentication/providers/supabase.js +5 -0
- package/dist/lib/authentication/providers/supabase.js.map +1 -1
- package/dist/lib/authentication/state.d.ts +0 -26
- package/dist/lib/authentication/state.js +1 -16
- package/dist/lib/authentication/state.js.map +1 -1
- package/dist/lib/components/Layout.js +5 -3
- package/dist/lib/components/Layout.js.map +1 -1
- package/dist/lib/components/Zudoku.js +3 -2
- package/dist/lib/components/Zudoku.js.map +1 -1
- package/dist/lib/core/ZudokuContext.d.ts +7 -0
- package/dist/lib/core/ZudokuContext.js +8 -3
- package/dist/lib/core/ZudokuContext.js.map +1 -1
- package/dist/lib/core/plugins.d.ts +8 -6
- package/dist/lib/plugins/markdown/MdxPage.js +2 -8
- package/dist/lib/plugins/markdown/MdxPage.js.map +1 -1
- package/dist/lib/plugins/openapi/Endpoint.js +1 -1
- package/dist/lib/plugins/openapi/Endpoint.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/Sidecar.js +29 -5
- package/dist/lib/plugins/openapi/Sidecar.js.map +1 -1
- package/dist/lib/plugins/openapi/interfaces.d.ts +26 -0
- package/dist/lib/plugins/openapi/playground/Playground.js +1 -1
- package/dist/lib/plugins/openapi/playground/Playground.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.js +2 -2
- package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.js.map +1 -1
- package/dist/lib/plugins/openapi/state.d.ts +25 -0
- package/dist/lib/plugins/openapi/state.js +18 -0
- package/dist/lib/plugins/openapi/state.js.map +1 -0
- package/dist/lib/plugins/search-pagefind/PagefindSearch.js +13 -4
- package/dist/lib/plugins/search-pagefind/PagefindSearch.js.map +1 -1
- package/dist/lib/plugins/search-pagefind/ResultList.js +19 -12
- package/dist/lib/plugins/search-pagefind/ResultList.js.map +1 -1
- package/dist/lib/plugins/search-pagefind/get-results.d.ts +8 -1
- package/dist/lib/plugins/search-pagefind/get-results.js +9 -4
- package/dist/lib/plugins/search-pagefind/get-results.js.map +1 -1
- package/dist/lib/util/traverse.d.ts +2 -8
- package/dist/lib/util/traverse.js.map +1 -1
- package/dist/lib/util/types.d.ts +7 -0
- package/dist/lib/util/types.js +2 -0
- package/dist/lib/util/types.js.map +1 -0
- package/dist/lib/util/useScrollToAnchor.js +18 -12
- package/dist/lib/util/useScrollToAnchor.js.map +1 -1
- package/dist/vite/api/schema-codegen.d.ts +1 -1
- package/dist/vite/api/schema-codegen.js +8 -4
- package/dist/vite/api/schema-codegen.js.map +1 -1
- package/dist/vite/plugin-api.js +5 -2
- package/dist/vite/plugin-api.js.map +1 -1
- package/lib/{AuthenticationPlugin-Cij2tPWa.js → AuthenticationPlugin-Duy_R1TU.js} +3 -3
- package/lib/{AuthenticationPlugin-Cij2tPWa.js.map → AuthenticationPlugin-Duy_R1TU.js.map} +1 -1
- package/lib/{Markdown-DT5Rrq8_.js → Markdown-DIZ8nBVC.js} +742 -738
- package/lib/{Markdown-DT5Rrq8_.js.map → Markdown-DIZ8nBVC.js.map} +1 -1
- package/lib/{MdxPage-D2rD1vC4.js → MdxPage-JEdbfW-f.js} +42 -47
- package/lib/MdxPage-JEdbfW-f.js.map +1 -0
- package/lib/{OasProvider-DdEBf2qS.js → OasProvider-D1A10JeA.js} +4 -4
- package/lib/{OasProvider-DdEBf2qS.js.map → OasProvider-D1A10JeA.js.map} +1 -1
- package/lib/{OperationList-DT4-gm_S.js → OperationList-yOmYzMIp.js} +1128 -1112
- package/lib/OperationList-yOmYzMIp.js.map +1 -0
- package/lib/{Select-z1Lwl0-J.js → Select-fAYcJ0OU.js} +8 -8
- package/lib/{Select-z1Lwl0-J.js.map → Select-fAYcJ0OU.js.map} +1 -1
- package/lib/{SlotletProvider-D8OBnr77.js → SlotletProvider-BEwNY8q0.js} +4 -4
- package/lib/{SlotletProvider-D8OBnr77.js.map → SlotletProvider-BEwNY8q0.js.map} +1 -1
- package/lib/{chunk-HA7DTUK3-ZGg2W6yV.js → chunk-HA7DTUK3-C4gP41vD.js} +5 -5
- package/lib/{chunk-HA7DTUK3-ZGg2W6yV.js.map → chunk-HA7DTUK3-C4gP41vD.js.map} +1 -1
- package/lib/hook-Cge6LiTK.js +1483 -0
- package/lib/hook-Cge6LiTK.js.map +1 -0
- package/lib/{index-DdQSV2RF.js → index-B0y3fTg-.js} +261 -243
- package/lib/index-B0y3fTg-.js.map +1 -0
- package/lib/{mutation-_Z5C2wFZ.js → mutation-EChriCeF.js} +2 -2
- package/lib/{mutation-_Z5C2wFZ.js.map → mutation-EChriCeF.js.map} +1 -1
- package/lib/post-processors/traverse.js.map +1 -1
- package/lib/{useExposedProps-BslIn-FE.js → useExposedProps-B9qXJedG.js} +2 -2
- package/lib/{useExposedProps-BslIn-FE.js.map → useExposedProps-B9qXJedG.js.map} +1 -1
- package/lib/zudoku.auth-auth0.js +1 -1
- package/lib/zudoku.auth-clerk.js +59 -41
- package/lib/zudoku.auth-clerk.js.map +1 -1
- package/lib/zudoku.auth-openid.js +76 -73
- package/lib/zudoku.auth-openid.js.map +1 -1
- package/lib/zudoku.components.js +370 -354
- package/lib/zudoku.components.js.map +1 -1
- package/lib/zudoku.hooks.js +1 -1
- package/lib/zudoku.plugin-api-catalog.js +23 -24
- package/lib/zudoku.plugin-api-catalog.js.map +1 -1
- package/lib/zudoku.plugin-api-keys.js +15 -16
- package/lib/zudoku.plugin-api-keys.js.map +1 -1
- package/lib/zudoku.plugin-custom-pages.js +2 -2
- package/lib/zudoku.plugin-markdown.js +1 -1
- package/lib/zudoku.plugin-openapi.js +5 -6
- package/lib/zudoku.plugin-openapi.js.map +1 -1
- package/lib/zudoku.plugin-redirect.js +1 -1
- package/lib/zudoku.plugin-search-pagefind.js +133 -98
- package/lib/zudoku.plugin-search-pagefind.js.map +1 -1
- package/lib/zudoku.plugins.js.map +1 -1
- package/package.json +2 -2
- package/src/app/main.tsx +2 -0
- package/src/lib/authentication/authentication.ts +2 -0
- package/src/lib/authentication/providers/clerk.tsx +20 -0
- package/src/lib/authentication/providers/openid.tsx +6 -0
- package/src/lib/authentication/providers/supabase.tsx +6 -0
- package/src/lib/authentication/state.ts +1 -35
- package/src/lib/components/Layout.tsx +14 -2
- package/src/lib/components/Zudoku.tsx +5 -2
- package/src/lib/core/ZudokuContext.ts +13 -6
- package/src/lib/core/plugins.ts +9 -9
- package/src/lib/plugins/markdown/MdxPage.tsx +1 -8
- package/src/lib/plugins/openapi/Endpoint.tsx +1 -1
- package/src/lib/plugins/openapi/OperationList.tsx +1 -1
- package/src/lib/plugins/openapi/Sidecar.tsx +36 -7
- package/src/lib/plugins/openapi/interfaces.ts +29 -0
- package/src/lib/plugins/openapi/playground/Playground.tsx +1 -1
- package/src/lib/plugins/openapi/playground/result-panel/ResultPanel.tsx +2 -1
- package/src/lib/plugins/openapi/state.ts +36 -0
- package/src/lib/plugins/search-pagefind/PagefindSearch.tsx +26 -4
- package/src/lib/plugins/search-pagefind/ResultList.tsx +59 -47
- package/src/lib/plugins/search-pagefind/get-results.tsx +31 -10
- package/src/lib/util/traverse.ts +2 -6
- package/src/lib/util/types.ts +7 -0
- package/src/lib/util/useScrollToAnchor.ts +20 -12
- package/lib/MdxPage-D2rD1vC4.js.map +0 -1
- package/lib/OperationList-DT4-gm_S.js.map +0 -1
- package/lib/hook-DzQC8PzJ.js +0 -355
- package/lib/hook-DzQC8PzJ.js.map +0 -1
- package/lib/index-DdQSV2RF.js.map +0 -1
- package/lib/joinUrl-BjDooT-T.js +0 -1154
- package/lib/joinUrl-BjDooT-T.js.map +0 -1
|
@@ -1,42 +1,41 @@
|
|
|
1
|
-
var
|
|
1
|
+
var Ft = Object.defineProperty;
|
|
2
2
|
var et = (t) => {
|
|
3
3
|
throw TypeError(t);
|
|
4
4
|
};
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
var ue = (t, s, n) => (
|
|
5
|
+
var zt = (t, s, n) => s in t ? Ft(t, s, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[s] = n;
|
|
6
|
+
var J = (t, s, n) => zt(t, typeof s != "symbol" ? s + "" : s, n), Mt = (t, s, n) => s.has(t) || et("Cannot " + n);
|
|
7
|
+
var ue = (t, s, n) => (Mt(t, s, "read from private field"), n ? n.call(t) : s.get(t)), pe = (t, s, n) => s.has(t) ? et("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 { ChevronRightIcon as U, CheckIcon as
|
|
10
|
-
import { r as
|
|
11
|
-
import {
|
|
9
|
+
import { ChevronRightIcon as U, CheckIcon as Ht, DotIcon as Bt, Check as _t, XIcon as Jt, Circle as Gt, ChevronDownIcon as Ut, InfoIcon as tt, LogInIcon as Qt, CirclePlayIcon as Wt } from "lucide-react";
|
|
10
|
+
import { r as Zt, m as st } from "./chunk-HA7DTUK3-C4gP41vD.js";
|
|
11
|
+
import { J as xt, K as ft, L as Xt, m as Kt, M as Yt, d as A, l as es } from "./hook-Cge6LiTK.js";
|
|
12
12
|
import { Button as Q } from "./ui/Button.js";
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import { VisuallyHidden as ns } from "@radix-ui/react-visually-hidden";
|
|
13
|
+
import { Z as ts } from "./invariant-Caa8-XvF.js";
|
|
14
|
+
import { VisuallyHidden as ss } from "@radix-ui/react-visually-hidden";
|
|
16
15
|
import * as y from "react";
|
|
17
|
-
import { Fragment as O, useRef as B, useEffect as ne, useState as k, useCallback as as, useTransition as rs } from "react";
|
|
18
|
-
import { D as ke, a as Ie, b as Re, d as
|
|
19
|
-
import { S as
|
|
16
|
+
import { Fragment as O, useRef as B, useEffect as ne, useMemo as ns, useState as k, useCallback as as, useTransition as rs } from "react";
|
|
17
|
+
import { D as ke, a as Ie, b as Re, d as gt, e as yt, f as os } from "./Dialog-sbgekbjb.js";
|
|
18
|
+
import { S as ve, a as je, b as be, c as Ne, e as G, u as is } from "./Select-fAYcJ0OU.js";
|
|
20
19
|
import { b as Oe, u as qe, C as q, a as ls, F as ds } from "./index.esm--gIChbWs.js";
|
|
21
|
-
import { c as
|
|
20
|
+
import { c as vt } from "./index-CPNSgwSb.js";
|
|
22
21
|
import { c as u } from "./cn-qaFjX9_3.js";
|
|
23
|
-
import { Tabs as
|
|
22
|
+
import { Tabs as jt, TabsList as bt, TabsTrigger as F, TabsContent as z } from "./ui/Tabs.js";
|
|
24
23
|
import { u as cs, o as ms } from "./objectEntries-BS7aAgOm.js";
|
|
25
24
|
import { z as us } from "./index-DwT-v3zK.js";
|
|
26
25
|
import { B as L } from "./Button-Fp19CMUr.js";
|
|
27
|
-
import * as
|
|
26
|
+
import * as j from "@radix-ui/react-dropdown-menu";
|
|
28
27
|
import * as we from "@radix-ui/react-checkbox";
|
|
29
28
|
import * as ae from "@radix-ui/react-popover";
|
|
30
29
|
import { PopoverAnchor as ps } from "@radix-ui/react-popover";
|
|
31
30
|
import { T as hs } from "./index-gQD2h1wX.js";
|
|
32
|
-
import { g as xs, h as fs, C as gs, b as ys, f as
|
|
31
|
+
import { g as xs, h as fs, C as gs, b as ys, f as vs } from "./Callout-B2vsR09t.js";
|
|
33
32
|
import { Input as Le } from "./ui/Input.js";
|
|
34
|
-
import { Slot as
|
|
35
|
-
import * as
|
|
33
|
+
import { Slot as js } from "@radix-ui/react-slot";
|
|
34
|
+
import * as Nt from "@radix-ui/react-label";
|
|
36
35
|
import * as W from "@radix-ui/react-radio-group";
|
|
37
36
|
import { S as bs } from "./Spinner-CE68iCm0.js";
|
|
38
37
|
import { Callout as Ns } from "./ui/Callout.js";
|
|
39
|
-
import { Card as
|
|
38
|
+
import { Card as wt, CardHeader as ws, CardTitle as Cs, CardContent as Ss } from "./ui/Card.js";
|
|
40
39
|
import { Collapsible as nt, CollapsibleTrigger as at, CollapsibleContent as rt } from "./ui/Collapsible.js";
|
|
41
40
|
import * as Ae from "@radix-ui/react-collapsible";
|
|
42
41
|
import { S as Ts } from "./SyntaxHighlight-BEoSoPEo.js";
|
|
@@ -45,7 +44,7 @@ let he;
|
|
|
45
44
|
const $s = (t) => {
|
|
46
45
|
var s;
|
|
47
46
|
if ((s = t.errors) != null && s[0])
|
|
48
|
-
throw new
|
|
47
|
+
throw new ts(t.errors[0].message, {
|
|
49
48
|
developerHint: "Check your configuration value `apis.type` and `apis.input` in the Zudoku config."
|
|
50
49
|
});
|
|
51
50
|
};
|
|
@@ -56,7 +55,7 @@ class Ps {
|
|
|
56
55
|
(s) => s.createServer(this.config)
|
|
57
56
|
)), he));
|
|
58
57
|
pe(this, le, async (s) => this.config.server ? fetch(this.config.server, s) : (await ue(this, ie).call(this)).fetch("http://localhost/graphql", s));
|
|
59
|
-
|
|
58
|
+
J(this, "fetch", async (s, ...[n]) => {
|
|
60
59
|
var l;
|
|
61
60
|
const a = (l = s.match(/query (\w+)/)) == null ? void 0 : l[1], r = await ue(this, le).call(this, {
|
|
62
61
|
method: "POST",
|
|
@@ -75,9 +74,9 @@ ie = new WeakMap(), le = new WeakMap();
|
|
|
75
74
|
class _ extends String {
|
|
76
75
|
constructor(n, a) {
|
|
77
76
|
super(n);
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
77
|
+
J(this, "__apiType");
|
|
78
|
+
J(this, "value");
|
|
79
|
+
J(this, "__meta__");
|
|
81
80
|
this.value = n, this.__meta__ = a;
|
|
82
81
|
}
|
|
83
82
|
toString() {
|
|
@@ -288,7 +287,7 @@ const ks = new _(
|
|
|
288
287
|
function Es(t) {
|
|
289
288
|
return As[t] ?? {};
|
|
290
289
|
}
|
|
291
|
-
const Ds =
|
|
290
|
+
const Ds = vt(
|
|
292
291
|
"relative w-full rounded-lg border p-4 [&>svg~*]:pl-7 [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground",
|
|
293
292
|
{
|
|
294
293
|
variants: {
|
|
@@ -340,12 +339,12 @@ const Vs = ({
|
|
|
340
339
|
return l.forEach((h) => {
|
|
341
340
|
const [x, w] = h;
|
|
342
341
|
if (!w) return;
|
|
343
|
-
const
|
|
344
|
-
|
|
345
|
-
/* @__PURE__ */ e.jsx(O, { children: a.slice(d,
|
|
342
|
+
const v = h.index;
|
|
343
|
+
v > d && m.push(
|
|
344
|
+
/* @__PURE__ */ e.jsx(O, { children: a.slice(d, v) }, `text-${d}-${v}`)
|
|
346
345
|
), m.push(
|
|
347
346
|
/* @__PURE__ */ e.jsx(O, { children: s({ name: w, originalValue: x, index: n++ }) }, `param-${w}`)
|
|
348
|
-
), d =
|
|
347
|
+
), d = v + x.length;
|
|
349
348
|
}), d < a.length && m.push(
|
|
350
349
|
/* @__PURE__ */ e.jsx(O, { children: a.slice(d) }, `text-${d}-${a.length}`)
|
|
351
350
|
), // eslint-disable-next-line react/no-array-index-key
|
|
@@ -355,7 +354,7 @@ const Vs = ({
|
|
|
355
354
|
/* @__PURE__ */ e.jsx("wbr", {})
|
|
356
355
|
] }, `${a}-${r}`);
|
|
357
356
|
});
|
|
358
|
-
},
|
|
357
|
+
}, Ct = y.forwardRef(
|
|
359
358
|
({ className: t, ...s }, n) => /* @__PURE__ */ e.jsx(
|
|
360
359
|
"textarea",
|
|
361
360
|
{
|
|
@@ -368,7 +367,7 @@ const Vs = ({
|
|
|
368
367
|
}
|
|
369
368
|
)
|
|
370
369
|
);
|
|
371
|
-
|
|
370
|
+
Ct.displayName = "Textarea";
|
|
372
371
|
const xe = (t) => Math.abs(
|
|
373
372
|
isNaN(parseInt(t)) ? t.toLowerCase().charCodeAt(0) - 96 : isNaN(parseInt(t)) ? 0 : parseInt(t)
|
|
374
373
|
), fe = (t) => t.length > 1 ? parseInt(t.split("").reduce((s, n) => `${xe(s) + xe(n)}`)) : xe(t), it = (t, s = {}) => {
|
|
@@ -386,7 +385,7 @@ const xe = (t) => Math.abs(
|
|
|
386
385
|
s === "light" ? { saturation: 85, lightness: 40 } : {}
|
|
387
386
|
)
|
|
388
387
|
};
|
|
389
|
-
},
|
|
388
|
+
}, St = ({
|
|
390
389
|
name: t,
|
|
391
390
|
className: s,
|
|
392
391
|
slug: n,
|
|
@@ -394,7 +393,7 @@ const xe = (t) => Math.abs(
|
|
|
394
393
|
children: r,
|
|
395
394
|
onClick: i
|
|
396
395
|
}) => {
|
|
397
|
-
const l = B(null), m = n == null ? void 0 : n.replace(/[{}]/g, ""), d = t.replace(/[{}]/g, ""), { text: h, background: x } = Fs(d), w = `hsl(${h} / 100%)`,
|
|
396
|
+
const l = B(null), m = n == null ? void 0 : n.replace(/[{}]/g, ""), d = t.replace(/[{}]/g, ""), { text: h, background: x } = Fs(d), w = `hsl(${h} / 100%)`, v = `hsl(${x} / 10%)`, p = `hsl(${x} / 50%)`;
|
|
398
397
|
return ne(() => {
|
|
399
398
|
if (!m || !l.current) return;
|
|
400
399
|
const f = () => {
|
|
@@ -427,12 +426,29 @@ const xe = (t) => Math.abs(
|
|
|
427
426
|
style: {
|
|
428
427
|
"--param-color": w,
|
|
429
428
|
"--border-color": p,
|
|
430
|
-
"--background-color":
|
|
429
|
+
"--background-color": v
|
|
431
430
|
},
|
|
432
431
|
children: r ?? t
|
|
433
432
|
}
|
|
434
433
|
);
|
|
435
|
-
}, zs = (
|
|
434
|
+
}, zs = xt()(
|
|
435
|
+
ft(
|
|
436
|
+
(t) => ({
|
|
437
|
+
selectedServer: void 0,
|
|
438
|
+
setSelectedServer: (s) => t({ selectedServer: s })
|
|
439
|
+
}),
|
|
440
|
+
{ name: "zudoku-selected-server" }
|
|
441
|
+
)
|
|
442
|
+
), Ms = (t) => {
|
|
443
|
+
const { selectedServer: s, setSelectedServer: n } = zs();
|
|
444
|
+
return { selectedServer: ns(
|
|
445
|
+
() => {
|
|
446
|
+
var r;
|
|
447
|
+
return s && t.some((i) => i.url === s) ? s : ((r = t.at(0)) == null ? void 0 : r.url) ?? "";
|
|
448
|
+
},
|
|
449
|
+
[s, t]
|
|
450
|
+
), setSelectedServer: n };
|
|
451
|
+
}, Hs = (t, s, n) => {
|
|
436
452
|
const a = s.replace(/(:\w+|\{\w+})/g, (i) => {
|
|
437
453
|
var d;
|
|
438
454
|
const l = i.replace(/[:{}]/g, "");
|
|
@@ -444,8 +460,8 @@ const xe = (t) => Math.abs(
|
|
|
444
460
|
return n.queryParams.filter((i) => i.active).forEach((i) => {
|
|
445
461
|
r.searchParams.set(i.name, i.value);
|
|
446
462
|
}), r;
|
|
447
|
-
},
|
|
448
|
-
|
|
463
|
+
}, Tt = j.Root, $t = j.Trigger, Bs = j.Group, _s = y.forwardRef(({ className: t, inset: s, children: n, ...a }, r) => /* @__PURE__ */ e.jsxs(
|
|
464
|
+
j.SubTrigger,
|
|
449
465
|
{
|
|
450
466
|
ref: r,
|
|
451
467
|
className: u(
|
|
@@ -460,9 +476,9 @@ const xe = (t) => Math.abs(
|
|
|
460
476
|
]
|
|
461
477
|
}
|
|
462
478
|
));
|
|
463
|
-
|
|
464
|
-
const
|
|
465
|
-
|
|
479
|
+
_s.displayName = j.SubTrigger.displayName;
|
|
480
|
+
const Js = y.forwardRef(({ className: t, ...s }, n) => /* @__PURE__ */ e.jsx(
|
|
481
|
+
j.SubContent,
|
|
466
482
|
{
|
|
467
483
|
ref: n,
|
|
468
484
|
className: u(
|
|
@@ -472,9 +488,9 @@ const Bs = y.forwardRef(({ className: t, ...s }, n) => /* @__PURE__ */ e.jsx(
|
|
|
472
488
|
...s
|
|
473
489
|
}
|
|
474
490
|
));
|
|
475
|
-
|
|
476
|
-
const Ee = y.forwardRef(({ className: t, sideOffset: s = 4, ...n }, a) => /* @__PURE__ */ e.jsx(
|
|
477
|
-
|
|
491
|
+
Js.displayName = j.SubContent.displayName;
|
|
492
|
+
const Ee = y.forwardRef(({ className: t, sideOffset: s = 4, ...n }, a) => /* @__PURE__ */ e.jsx(j.Portal, { children: /* @__PURE__ */ e.jsx(
|
|
493
|
+
j.Content,
|
|
478
494
|
{
|
|
479
495
|
ref: a,
|
|
480
496
|
sideOffset: s,
|
|
@@ -486,9 +502,9 @@ const Ee = y.forwardRef(({ className: t, sideOffset: s = 4, ...n }, a) => /* @__
|
|
|
486
502
|
...n
|
|
487
503
|
}
|
|
488
504
|
) }));
|
|
489
|
-
Ee.displayName =
|
|
505
|
+
Ee.displayName = j.Content.displayName;
|
|
490
506
|
const De = y.forwardRef(({ className: t, inset: s, ...n }, a) => /* @__PURE__ */ e.jsx(
|
|
491
|
-
|
|
507
|
+
j.Item,
|
|
492
508
|
{
|
|
493
509
|
ref: a,
|
|
494
510
|
className: u(
|
|
@@ -499,9 +515,9 @@ const De = y.forwardRef(({ className: t, inset: s, ...n }, a) => /* @__PURE__ */
|
|
|
499
515
|
...n
|
|
500
516
|
}
|
|
501
517
|
));
|
|
502
|
-
De.displayName =
|
|
503
|
-
const
|
|
504
|
-
|
|
518
|
+
De.displayName = j.Item.displayName;
|
|
519
|
+
const Gs = y.forwardRef(({ className: t, children: s, checked: n, ...a }, r) => /* @__PURE__ */ e.jsxs(
|
|
520
|
+
j.CheckboxItem,
|
|
505
521
|
{
|
|
506
522
|
ref: r,
|
|
507
523
|
className: u(
|
|
@@ -511,14 +527,14 @@ const _s = y.forwardRef(({ className: t, children: s, checked: n, ...a }, r) =>
|
|
|
511
527
|
checked: n,
|
|
512
528
|
...a,
|
|
513
529
|
children: [
|
|
514
|
-
/* @__PURE__ */ e.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ e.jsx(
|
|
530
|
+
/* @__PURE__ */ e.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ e.jsx(j.ItemIndicator, { children: /* @__PURE__ */ e.jsx(Ht, { className: "h-4 w-4" }) }) }),
|
|
515
531
|
s
|
|
516
532
|
]
|
|
517
533
|
}
|
|
518
534
|
));
|
|
519
|
-
|
|
520
|
-
const
|
|
521
|
-
|
|
535
|
+
Gs.displayName = j.CheckboxItem.displayName;
|
|
536
|
+
const Us = y.forwardRef(({ className: t, children: s, ...n }, a) => /* @__PURE__ */ e.jsxs(
|
|
537
|
+
j.RadioItem,
|
|
522
538
|
{
|
|
523
539
|
ref: a,
|
|
524
540
|
className: u(
|
|
@@ -527,14 +543,14 @@ const Gs = y.forwardRef(({ className: t, children: s, ...n }, a) => /* @__PURE__
|
|
|
527
543
|
),
|
|
528
544
|
...n,
|
|
529
545
|
children: [
|
|
530
|
-
/* @__PURE__ */ e.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ e.jsx(
|
|
546
|
+
/* @__PURE__ */ e.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ e.jsx(j.ItemIndicator, { children: /* @__PURE__ */ e.jsx(Bt, { className: "h-4 w-4 fill-current" }) }) }),
|
|
531
547
|
s
|
|
532
548
|
]
|
|
533
549
|
}
|
|
534
550
|
));
|
|
535
|
-
|
|
536
|
-
const
|
|
537
|
-
|
|
551
|
+
Us.displayName = j.RadioItem.displayName;
|
|
552
|
+
const Pt = y.forwardRef(({ className: t, inset: s, ...n }, a) => /* @__PURE__ */ e.jsx(
|
|
553
|
+
j.Label,
|
|
538
554
|
{
|
|
539
555
|
ref: a,
|
|
540
556
|
className: u(
|
|
@@ -545,27 +561,27 @@ const Tt = y.forwardRef(({ className: t, inset: s, ...n }, a) => /* @__PURE__ */
|
|
|
545
561
|
...n
|
|
546
562
|
}
|
|
547
563
|
));
|
|
548
|
-
|
|
549
|
-
const
|
|
550
|
-
|
|
564
|
+
Pt.displayName = j.Label.displayName;
|
|
565
|
+
const kt = y.forwardRef(({ className: t, ...s }, n) => /* @__PURE__ */ e.jsx(
|
|
566
|
+
j.Separator,
|
|
551
567
|
{
|
|
552
568
|
ref: n,
|
|
553
569
|
className: u("-mx-1 my-1 h-px bg-muted", t),
|
|
554
570
|
...s
|
|
555
571
|
}
|
|
556
572
|
));
|
|
557
|
-
|
|
558
|
-
const
|
|
573
|
+
kt.displayName = j.Separator.displayName;
|
|
574
|
+
const Qs = ({
|
|
559
575
|
examples: t,
|
|
560
576
|
onSelect: s
|
|
561
|
-
}) => /* @__PURE__ */ e.jsxs(
|
|
562
|
-
/* @__PURE__ */ e.jsx(
|
|
577
|
+
}) => /* @__PURE__ */ e.jsxs(Tt, { children: [
|
|
578
|
+
/* @__PURE__ */ e.jsx($t, { asChild: !0, children: /* @__PURE__ */ e.jsx(L, { variant: "outline", children: "Use Example" }) }),
|
|
563
579
|
/* @__PURE__ */ e.jsx(Ee, { className: "max-w-72", children: t.map((n) => {
|
|
564
580
|
var a;
|
|
565
581
|
return /* @__PURE__ */ e.jsxs("div", { children: [
|
|
566
|
-
/* @__PURE__ */ e.jsx(
|
|
567
|
-
/* @__PURE__ */ e.jsx(
|
|
568
|
-
/* @__PURE__ */ e.jsx(
|
|
582
|
+
/* @__PURE__ */ e.jsx(Pt, { children: n.mediaType }),
|
|
583
|
+
/* @__PURE__ */ e.jsx(kt, {}),
|
|
584
|
+
/* @__PURE__ */ e.jsx(Bs, { children: (a = n.examples) == null ? void 0 : a.map((r) => /* @__PURE__ */ e.jsx(
|
|
569
585
|
De,
|
|
570
586
|
{
|
|
571
587
|
onSelect: () => s(r, n.mediaType),
|
|
@@ -594,7 +610,7 @@ const Js = ({
|
|
|
594
610
|
}
|
|
595
611
|
));
|
|
596
612
|
Z.displayName = "Card";
|
|
597
|
-
const
|
|
613
|
+
const Ws = y.forwardRef(({ className: t, ...s }, n) => /* @__PURE__ */ e.jsx(
|
|
598
614
|
"div",
|
|
599
615
|
{
|
|
600
616
|
ref: n,
|
|
@@ -602,8 +618,8 @@ const Us = y.forwardRef(({ className: t, ...s }, n) => /* @__PURE__ */ e.jsx(
|
|
|
602
618
|
...s
|
|
603
619
|
}
|
|
604
620
|
));
|
|
605
|
-
|
|
606
|
-
const
|
|
621
|
+
Ws.displayName = "CardHeader";
|
|
622
|
+
const Zs = y.forwardRef(({ className: t, ...s }, n) => /* @__PURE__ */ e.jsx(
|
|
607
623
|
"h3",
|
|
608
624
|
{
|
|
609
625
|
ref: n,
|
|
@@ -611,8 +627,8 @@ const Qs = y.forwardRef(({ className: t, ...s }, n) => /* @__PURE__ */ e.jsx(
|
|
|
611
627
|
...s
|
|
612
628
|
}
|
|
613
629
|
));
|
|
614
|
-
|
|
615
|
-
const
|
|
630
|
+
Zs.displayName = "CardTitle";
|
|
631
|
+
const Xs = y.forwardRef(({ className: t, ...s }, n) => /* @__PURE__ */ e.jsx(
|
|
616
632
|
"p",
|
|
617
633
|
{
|
|
618
634
|
ref: n,
|
|
@@ -620,10 +636,10 @@ const Ws = y.forwardRef(({ className: t, ...s }, n) => /* @__PURE__ */ e.jsx(
|
|
|
620
636
|
...s
|
|
621
637
|
}
|
|
622
638
|
));
|
|
623
|
-
|
|
624
|
-
const
|
|
625
|
-
|
|
626
|
-
const
|
|
639
|
+
Xs.displayName = "CardDescription";
|
|
640
|
+
const Ks = y.forwardRef(({ className: t, ...s }, n) => /* @__PURE__ */ e.jsx("div", { ref: n, className: u("p-6 pt-0", t), ...s }));
|
|
641
|
+
Ks.displayName = "CardContent";
|
|
642
|
+
const Ys = y.forwardRef(({ className: t, ...s }, n) => /* @__PURE__ */ e.jsx(
|
|
627
643
|
"div",
|
|
628
644
|
{
|
|
629
645
|
ref: n,
|
|
@@ -631,7 +647,7 @@ const Xs = y.forwardRef(({ className: t, ...s }, n) => /* @__PURE__ */ e.jsx(
|
|
|
631
647
|
...s
|
|
632
648
|
}
|
|
633
649
|
));
|
|
634
|
-
|
|
650
|
+
Ys.displayName = "CardFooter";
|
|
635
651
|
const de = y.forwardRef(({ className: t, ...s }, n) => /* @__PURE__ */ e.jsx(
|
|
636
652
|
we.Root,
|
|
637
653
|
{
|
|
@@ -646,13 +662,13 @@ const de = y.forwardRef(({ className: t, ...s }, n) => /* @__PURE__ */ e.jsx(
|
|
|
646
662
|
we.Indicator,
|
|
647
663
|
{
|
|
648
664
|
className: u("flex items-center justify-center text-current"),
|
|
649
|
-
children: /* @__PURE__ */ e.jsx(
|
|
665
|
+
children: /* @__PURE__ */ e.jsx(_t, { className: "h-4 w-4" })
|
|
650
666
|
}
|
|
651
667
|
)
|
|
652
668
|
}
|
|
653
669
|
));
|
|
654
670
|
de.displayName = we.Root.displayName;
|
|
655
|
-
const
|
|
671
|
+
const en = ae.Root, It = y.forwardRef(({ className: t, align: s = "center", sideOffset: n = 4, ...a }, r) => /* @__PURE__ */ e.jsx(ae.Portal, { children: /* @__PURE__ */ e.jsx(
|
|
656
672
|
ae.Content,
|
|
657
673
|
{
|
|
658
674
|
ref: r,
|
|
@@ -665,8 +681,8 @@ const Ks = ae.Root, Pt = y.forwardRef(({ className: t, align: s = "center", side
|
|
|
665
681
|
...a
|
|
666
682
|
}
|
|
667
683
|
) }));
|
|
668
|
-
|
|
669
|
-
const
|
|
684
|
+
It.displayName = ae.Content.displayName;
|
|
685
|
+
const tn = ({
|
|
670
686
|
value: t,
|
|
671
687
|
options: s,
|
|
672
688
|
onChange: n,
|
|
@@ -675,13 +691,13 @@ const Ys = ({
|
|
|
675
691
|
onEnterPress: i,
|
|
676
692
|
ref: l
|
|
677
693
|
}) => {
|
|
678
|
-
const [m, d] = k(!1), [h, x] = k(!1), w = hs((p) => p.filtered.count),
|
|
679
|
-
return /* @__PURE__ */ e.jsxs(
|
|
694
|
+
const [m, d] = k(!1), [h, x] = k(!1), w = hs((p) => p.filtered.count), v = B(null);
|
|
695
|
+
return /* @__PURE__ */ e.jsxs(en, { open: m, children: [
|
|
680
696
|
/* @__PURE__ */ e.jsx(ps, { children: /* @__PURE__ */ e.jsx(
|
|
681
697
|
fs,
|
|
682
698
|
{
|
|
683
699
|
ref: (p) => {
|
|
684
|
-
|
|
700
|
+
v.current = p, typeof l == "function" ? l(p) : l && (l.current = p);
|
|
685
701
|
},
|
|
686
702
|
value: t,
|
|
687
703
|
placeholder: r,
|
|
@@ -692,13 +708,13 @@ const Ys = ({
|
|
|
692
708
|
},
|
|
693
709
|
onKeyDown: (p) => {
|
|
694
710
|
var f;
|
|
695
|
-
p.key === "Enter" && (d(!1), (f =
|
|
711
|
+
p.key === "Enter" && (d(!1), (f = v.current) == null || f.blur(), i == null || i(p));
|
|
696
712
|
},
|
|
697
713
|
onValueChange: (p) => n(p)
|
|
698
714
|
}
|
|
699
715
|
) }),
|
|
700
716
|
/* @__PURE__ */ e.jsx(
|
|
701
|
-
|
|
717
|
+
It,
|
|
702
718
|
{
|
|
703
719
|
onMouseEnter: () => x(!0),
|
|
704
720
|
onMouseLeave: () => x(!1),
|
|
@@ -729,9 +745,9 @@ const Ys = ({
|
|
|
729
745
|
}
|
|
730
746
|
)
|
|
731
747
|
] });
|
|
732
|
-
}, re = ({ shouldFilter: t, ...s }) => /* @__PURE__ */ e.jsx(xs, { className: "bg-transparent", shouldFilter: t, children: /* @__PURE__ */ e.jsx(
|
|
748
|
+
}, re = ({ shouldFilter: t, ...s }) => /* @__PURE__ */ e.jsx(xs, { className: "bg-transparent", shouldFilter: t, children: /* @__PURE__ */ e.jsx(tn, { ...s }) }), Ve = (t, s) => {
|
|
733
749
|
const n = y.forwardRef(({ className: a, asChild: r, ...i }, l) => {
|
|
734
|
-
const m = r ?
|
|
750
|
+
const m = r ? js : t;
|
|
735
751
|
return y.createElement(m, {
|
|
736
752
|
...i,
|
|
737
753
|
ref: l,
|
|
@@ -745,7 +761,7 @@ const Ys = ({
|
|
|
745
761
|
), ze = Ve(
|
|
746
762
|
"div",
|
|
747
763
|
"group hover:bg-accent px-3 grid col-span-full grid-cols-subgrid"
|
|
748
|
-
),
|
|
764
|
+
), sn = Object.freeze([
|
|
749
765
|
"Accept",
|
|
750
766
|
"Accept-Encoding",
|
|
751
767
|
"Accept-Language",
|
|
@@ -772,7 +788,7 @@ const Ys = ({
|
|
|
772
788
|
"Set-Cookie",
|
|
773
789
|
"User-Agent",
|
|
774
790
|
"X-Requested-With"
|
|
775
|
-
]),
|
|
791
|
+
]), nn = ({
|
|
776
792
|
control: t,
|
|
777
793
|
headers: s
|
|
778
794
|
}) => {
|
|
@@ -788,7 +804,7 @@ const Ys = ({
|
|
|
788
804
|
const w = (f) => {
|
|
789
805
|
var c;
|
|
790
806
|
(c = m.current[f]) == null || c.focus();
|
|
791
|
-
},
|
|
807
|
+
}, v = (f) => {
|
|
792
808
|
x(), requestAnimationFrame(() => {
|
|
793
809
|
var c;
|
|
794
810
|
return (c = d.current[f + 1]) == null ? void 0 : c.focus();
|
|
@@ -829,7 +845,7 @@ const Ys = ({
|
|
|
829
845
|
...b,
|
|
830
846
|
placeholder: "Name",
|
|
831
847
|
className: "border-0 shadow-none bg-transparent text-xs font-mono",
|
|
832
|
-
options: [...p, ...
|
|
848
|
+
options: [...p, ...sn],
|
|
833
849
|
onEnterPress: () => w(c),
|
|
834
850
|
onChange: ($) => {
|
|
835
851
|
b.onChange($), i(`headers.${c}.active`, !0);
|
|
@@ -869,7 +885,7 @@ const Ys = ({
|
|
|
869
885
|
m.current[c] = T;
|
|
870
886
|
},
|
|
871
887
|
onKeyDown: (T) => {
|
|
872
|
-
T.key === "Enter" && T.currentTarget.value.trim() &&
|
|
888
|
+
T.key === "Enter" && T.currentTarget.value.trim() && v(c);
|
|
873
889
|
},
|
|
874
890
|
autoComplete: "off"
|
|
875
891
|
}
|
|
@@ -884,7 +900,7 @@ const Ys = ({
|
|
|
884
900
|
className: "text-muted-foreground opacity-0 group-hover:opacity-100 rounded-full w-8 h-7",
|
|
885
901
|
onClick: () => r(c),
|
|
886
902
|
type: "button",
|
|
887
|
-
children: /* @__PURE__ */ e.jsx(
|
|
903
|
+
children: /* @__PURE__ */ e.jsx(Jt, { size: 16 })
|
|
888
904
|
}
|
|
889
905
|
)
|
|
890
906
|
] })
|
|
@@ -901,18 +917,18 @@ const Ys = ({
|
|
|
901
917
|
}
|
|
902
918
|
) })
|
|
903
919
|
] });
|
|
904
|
-
},
|
|
920
|
+
}, an = vt(
|
|
905
921
|
"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
|
|
906
|
-
),
|
|
907
|
-
|
|
922
|
+
), M = y.forwardRef(({ className: t, ...s }, n) => /* @__PURE__ */ e.jsx(
|
|
923
|
+
Nt.Root,
|
|
908
924
|
{
|
|
909
925
|
ref: n,
|
|
910
|
-
className: u(
|
|
926
|
+
className: u(an(), t),
|
|
911
927
|
...s
|
|
912
928
|
}
|
|
913
929
|
));
|
|
914
|
-
|
|
915
|
-
const
|
|
930
|
+
M.displayName = Nt.Root.displayName;
|
|
931
|
+
const Me = y.forwardRef(({ className: t, ...s }, n) => /* @__PURE__ */ e.jsx(
|
|
916
932
|
W.Root,
|
|
917
933
|
{
|
|
918
934
|
className: u("grid gap-2", t),
|
|
@@ -920,7 +936,7 @@ const He = y.forwardRef(({ className: t, ...s }, n) => /* @__PURE__ */ e.jsx(
|
|
|
920
936
|
ref: n
|
|
921
937
|
}
|
|
922
938
|
));
|
|
923
|
-
|
|
939
|
+
Me.displayName = W.Root.displayName;
|
|
924
940
|
const oe = y.forwardRef(({ className: t, ...s }, n) => /* @__PURE__ */ e.jsx(
|
|
925
941
|
W.Item,
|
|
926
942
|
{
|
|
@@ -930,48 +946,48 @@ const oe = y.forwardRef(({ className: t, ...s }, n) => /* @__PURE__ */ e.jsx(
|
|
|
930
946
|
t
|
|
931
947
|
),
|
|
932
948
|
...s,
|
|
933
|
-
children: /* @__PURE__ */ e.jsx(W.Indicator, { className: "flex items-center justify-center", children: /* @__PURE__ */ e.jsx(
|
|
949
|
+
children: /* @__PURE__ */ e.jsx(W.Indicator, { className: "flex items-center justify-center", children: /* @__PURE__ */ e.jsx(Gt, { className: "h-2.5 w-2.5 fill-current text-current" }) })
|
|
934
950
|
}
|
|
935
951
|
));
|
|
936
952
|
oe.displayName = W.Item.displayName;
|
|
937
|
-
const
|
|
953
|
+
const Rt = ({
|
|
938
954
|
identities: t,
|
|
939
955
|
setValue: s,
|
|
940
956
|
value: n
|
|
941
957
|
}) => /* @__PURE__ */ e.jsx(Z, { className: "w-full overflow-hidden", children: /* @__PURE__ */ e.jsxs(
|
|
942
|
-
|
|
958
|
+
Me,
|
|
943
959
|
{
|
|
944
960
|
onValueChange: (a) => s(a),
|
|
945
961
|
value: n,
|
|
946
|
-
defaultValue:
|
|
962
|
+
defaultValue: H,
|
|
947
963
|
className: "gap-0",
|
|
948
964
|
disabled: (t == null ? void 0 : t.length) === 0,
|
|
949
965
|
children: [
|
|
950
966
|
/* @__PURE__ */ e.jsxs(
|
|
951
|
-
|
|
967
|
+
M,
|
|
952
968
|
{
|
|
953
969
|
className: "h-12 border-b items-center flex p-4 cursor-pointer hover:bg-accent",
|
|
954
970
|
htmlFor: "none",
|
|
955
971
|
children: [
|
|
956
|
-
/* @__PURE__ */ e.jsx(oe, { value:
|
|
957
|
-
/* @__PURE__ */ e.jsx(
|
|
972
|
+
/* @__PURE__ */ e.jsx(oe, { value: H, id: "none", children: "None" }),
|
|
973
|
+
/* @__PURE__ */ e.jsx(M, { htmlFor: "none", className: "ml-2", children: "None" })
|
|
958
974
|
]
|
|
959
975
|
}
|
|
960
976
|
),
|
|
961
977
|
t == null ? void 0 : t.map((a) => /* @__PURE__ */ e.jsxs(
|
|
962
|
-
|
|
978
|
+
M,
|
|
963
979
|
{
|
|
964
980
|
className: "h-12 border-b items-center flex p-4 cursor-pointer hover:bg-accent",
|
|
965
981
|
children: [
|
|
966
982
|
/* @__PURE__ */ e.jsx(oe, { value: a.id, id: a.id, children: a.label }),
|
|
967
|
-
/* @__PURE__ */ e.jsx(
|
|
983
|
+
/* @__PURE__ */ e.jsx(M, { htmlFor: a.id, className: "ml-2", children: a.label })
|
|
968
984
|
]
|
|
969
985
|
},
|
|
970
986
|
a.id
|
|
971
987
|
))
|
|
972
988
|
]
|
|
973
989
|
}
|
|
974
|
-
) }),
|
|
990
|
+
) }), rn = ({
|
|
975
991
|
onSubmit: t,
|
|
976
992
|
identities: s,
|
|
977
993
|
open: n,
|
|
@@ -980,16 +996,16 @@ const kt = ({
|
|
|
980
996
|
const [r, i] = k(void 0), [l, m] = k(!1);
|
|
981
997
|
return /* @__PURE__ */ e.jsx(ke, { open: n, onOpenChange: a, children: /* @__PURE__ */ e.jsxs(Ie, { children: [
|
|
982
998
|
/* @__PURE__ */ e.jsx(Re, { children: "Select an auth identity" }),
|
|
983
|
-
/* @__PURE__ */ e.jsx(
|
|
999
|
+
/* @__PURE__ */ e.jsx(gt, { children: "Please select an identity for this request." }),
|
|
984
1000
|
/* @__PURE__ */ e.jsx("div", { className: "max-h-80 overflow-auto", children: /* @__PURE__ */ e.jsx(
|
|
985
|
-
|
|
1001
|
+
Rt,
|
|
986
1002
|
{
|
|
987
1003
|
identities: s,
|
|
988
1004
|
setValue: i,
|
|
989
1005
|
value: r
|
|
990
1006
|
}
|
|
991
1007
|
) }),
|
|
992
|
-
/* @__PURE__ */ e.jsxs(
|
|
1008
|
+
/* @__PURE__ */ e.jsxs(yt, { className: "flex flex-col gap-2", children: [
|
|
993
1009
|
/* @__PURE__ */ e.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
994
1010
|
/* @__PURE__ */ e.jsx(
|
|
995
1011
|
de,
|
|
@@ -1001,7 +1017,7 @@ const kt = ({
|
|
|
1001
1017
|
)
|
|
1002
1018
|
}
|
|
1003
1019
|
),
|
|
1004
|
-
/* @__PURE__ */ e.jsx(
|
|
1020
|
+
/* @__PURE__ */ e.jsx(M, { htmlFor: "remember", children: "Remember my choice" })
|
|
1005
1021
|
] }),
|
|
1006
1022
|
/* @__PURE__ */ e.jsx(
|
|
1007
1023
|
L,
|
|
@@ -1012,7 +1028,7 @@ const kt = ({
|
|
|
1012
1028
|
)
|
|
1013
1029
|
] })
|
|
1014
1030
|
] }) });
|
|
1015
|
-
},
|
|
1031
|
+
}, on = ({
|
|
1016
1032
|
control: t,
|
|
1017
1033
|
url: s
|
|
1018
1034
|
}) => {
|
|
@@ -1029,7 +1045,7 @@ const kt = ({
|
|
|
1029
1045
|
control: t,
|
|
1030
1046
|
name: `pathParams.${i}.name`,
|
|
1031
1047
|
render: () => /* @__PURE__ */ e.jsx("div", { className: "flex items-center", children: /* @__PURE__ */ e.jsx(
|
|
1032
|
-
|
|
1048
|
+
St,
|
|
1033
1049
|
{
|
|
1034
1050
|
slug: r.name,
|
|
1035
1051
|
name: r.name,
|
|
@@ -1055,10 +1071,10 @@ const kt = ({
|
|
|
1055
1071
|
}
|
|
1056
1072
|
) })
|
|
1057
1073
|
] }, r.id)) }) });
|
|
1058
|
-
},
|
|
1074
|
+
}, ln = Ve(
|
|
1059
1075
|
"input",
|
|
1060
1076
|
"px-2 bg-transparent h-6 font-mono text-xs m-2"
|
|
1061
|
-
),
|
|
1077
|
+
), dn = ({
|
|
1062
1078
|
control: t,
|
|
1063
1079
|
queryParams: s
|
|
1064
1080
|
}) => {
|
|
@@ -1092,7 +1108,7 @@ const kt = ({
|
|
|
1092
1108
|
q,
|
|
1093
1109
|
{
|
|
1094
1110
|
control: t,
|
|
1095
|
-
render: ({ field: d }) => r[l] ? /* @__PURE__ */ e.jsx(
|
|
1111
|
+
render: ({ field: d }) => r[l] ? /* @__PURE__ */ e.jsx(ln, { asChild: !0, children: /* @__PURE__ */ e.jsxs(
|
|
1096
1112
|
"label",
|
|
1097
1113
|
{
|
|
1098
1114
|
className: "flex items-center cursor-pointer gap-1",
|
|
@@ -1148,8 +1164,8 @@ const kt = ({
|
|
|
1148
1164
|
) })
|
|
1149
1165
|
] }, i.id);
|
|
1150
1166
|
}) }) }) });
|
|
1151
|
-
},
|
|
1152
|
-
|
|
1167
|
+
}, cn = xt()(
|
|
1168
|
+
ft(
|
|
1153
1169
|
(t, s) => ({
|
|
1154
1170
|
rememberedIdentity: null,
|
|
1155
1171
|
setRememberedIdentity: (n) => t({ rememberedIdentity: n }),
|
|
@@ -1162,15 +1178,15 @@ const kt = ({
|
|
|
1162
1178
|
storage: Xt(() => sessionStorage)
|
|
1163
1179
|
}
|
|
1164
1180
|
)
|
|
1165
|
-
),
|
|
1181
|
+
), mn = ({
|
|
1166
1182
|
open: t,
|
|
1167
1183
|
setOpen: s,
|
|
1168
1184
|
onSignUp: n,
|
|
1169
1185
|
onLogin: a
|
|
1170
1186
|
}) => /* @__PURE__ */ e.jsx(ke, { open: t, onOpenChange: s, children: /* @__PURE__ */ e.jsxs(Ie, { children: [
|
|
1171
1187
|
/* @__PURE__ */ e.jsx(Re, { children: "Welcome to the Playground!" }),
|
|
1172
|
-
/* @__PURE__ */ e.jsx(
|
|
1173
|
-
/* @__PURE__ */ e.jsxs(
|
|
1188
|
+
/* @__PURE__ */ e.jsx(gt, { children: "The Playground is a tool for developers to test and explore our APIs. To use the Playground, you need to login." }),
|
|
1189
|
+
/* @__PURE__ */ e.jsxs(yt, { className: "flex gap-2 sm:justify-between", children: [
|
|
1174
1190
|
/* @__PURE__ */ e.jsx(L, { type: "button", variant: "ghost", onClick: () => s(!1), children: "Skip" }),
|
|
1175
1191
|
/* @__PURE__ */ e.jsxs("div", { className: "flex gap-2", children: [
|
|
1176
1192
|
n && /* @__PURE__ */ e.jsx(L, { type: "button", variant: "outline", onClick: n, children: "Sign Up" }),
|
|
@@ -1185,7 +1201,7 @@ const kt = ({
|
|
|
1185
1201
|
purple: "text-purple-600",
|
|
1186
1202
|
indigo: "text-indigo-600",
|
|
1187
1203
|
gray: "text-gray-600"
|
|
1188
|
-
},
|
|
1204
|
+
}, un = {
|
|
1189
1205
|
get: I.green,
|
|
1190
1206
|
post: I.blue,
|
|
1191
1207
|
put: I.yellow,
|
|
@@ -1194,14 +1210,14 @@ const kt = ({
|
|
|
1194
1210
|
options: I.indigo,
|
|
1195
1211
|
head: I.gray,
|
|
1196
1212
|
trace: I.gray
|
|
1197
|
-
},
|
|
1213
|
+
}, pn = (t) => un[t.toLocaleLowerCase()] ?? I.gray, hn = ({
|
|
1198
1214
|
method: t,
|
|
1199
1215
|
url: s,
|
|
1200
1216
|
headers: n,
|
|
1201
1217
|
body: a
|
|
1202
1218
|
}) => /* @__PURE__ */ e.jsxs("div", { className: "flex flex-col gap-2 font-mono text-xs", children: [
|
|
1203
1219
|
/* @__PURE__ */ e.jsxs("div", { className: "gap-2 p-2 bg-muted rounded-md", children: [
|
|
1204
|
-
/* @__PURE__ */ e.jsx("span", { className: u(
|
|
1220
|
+
/* @__PURE__ */ e.jsx("span", { className: u(pn(t), "font-semibold"), children: t }),
|
|
1205
1221
|
" ",
|
|
1206
1222
|
/* @__PURE__ */ e.jsx("span", { className: "break-all", children: s }),
|
|
1207
1223
|
" ",
|
|
@@ -1236,28 +1252,28 @@ const kt = ({
|
|
|
1236
1252
|
] })
|
|
1237
1253
|
] })
|
|
1238
1254
|
] }), lt = Ae.Root, dt = Ae.CollapsibleTrigger, ct = Ae.CollapsibleContent;
|
|
1239
|
-
function
|
|
1255
|
+
function He(t) {
|
|
1240
1256
|
if (t === null) return "null";
|
|
1241
1257
|
if (Array.isArray(t)) {
|
|
1242
1258
|
if (t.length === 0) return "any[]";
|
|
1243
1259
|
const s = t[0];
|
|
1244
|
-
return s === void 0 ? "any[]" : `${
|
|
1260
|
+
return s === void 0 ? "any[]" : `${He(s)}[]`;
|
|
1245
1261
|
}
|
|
1246
|
-
return typeof t == "object" ?
|
|
1262
|
+
return typeof t == "object" ? xn(t) : typeof t;
|
|
1247
1263
|
}
|
|
1248
|
-
function
|
|
1264
|
+
function xn(t, s = "") {
|
|
1249
1265
|
const n = ["{"];
|
|
1250
1266
|
for (const [a, r] of Object.entries(t)) {
|
|
1251
|
-
const i =
|
|
1267
|
+
const i = He(r);
|
|
1252
1268
|
n.push(` ${a}: ${i};`);
|
|
1253
1269
|
}
|
|
1254
1270
|
return n.push("}"), n.join(`
|
|
1255
1271
|
`);
|
|
1256
1272
|
}
|
|
1257
|
-
function
|
|
1258
|
-
return { lines: [`type GeneratedType = ${
|
|
1273
|
+
function fn(t) {
|
|
1274
|
+
return { lines: [`type GeneratedType = ${He(t)};`] };
|
|
1259
1275
|
}
|
|
1260
|
-
const
|
|
1276
|
+
const gn = {
|
|
1261
1277
|
200: "OK",
|
|
1262
1278
|
201: "Created",
|
|
1263
1279
|
202: "Accepted",
|
|
@@ -1273,7 +1289,7 @@ const xn = {
|
|
|
1273
1289
|
return `${(t / Math.pow(1e3, s)).toFixed(
|
|
1274
1290
|
s ? 2 : 0
|
|
1275
1291
|
)} ${s ? `${"kMGTPEZY"[s - 1]}B` : "B"}`;
|
|
1276
|
-
},
|
|
1292
|
+
}, yn = (t) => {
|
|
1277
1293
|
var n;
|
|
1278
1294
|
return (n = Object.entries({
|
|
1279
1295
|
"application/json": "json",
|
|
@@ -1286,17 +1302,17 @@ const xn = {
|
|
|
1286
1302
|
}).find(
|
|
1287
1303
|
([a]) => t.includes(a)
|
|
1288
1304
|
)) == null ? void 0 : n[1];
|
|
1289
|
-
},
|
|
1305
|
+
}, vn = (t) => {
|
|
1290
1306
|
var n;
|
|
1291
1307
|
const s = ((n = t.find(([a, r]) => a === "Content-Type")) == null ? void 0 : n[1]) || "";
|
|
1292
|
-
return
|
|
1293
|
-
},
|
|
1308
|
+
return yn(s);
|
|
1309
|
+
}, jn = (t) => {
|
|
1294
1310
|
try {
|
|
1295
1311
|
return JSON.stringify(JSON.parse(t), null, 2);
|
|
1296
1312
|
} catch {
|
|
1297
1313
|
return null;
|
|
1298
1314
|
}
|
|
1299
|
-
},
|
|
1315
|
+
}, bn = (t) => {
|
|
1300
1316
|
const s = [
|
|
1301
1317
|
"Content-Type",
|
|
1302
1318
|
"Content-Length",
|
|
@@ -1310,7 +1326,7 @@ const xn = {
|
|
|
1310
1326
|
const r = s.indexOf(n.toLowerCase()), i = s.indexOf(a.toLowerCase());
|
|
1311
1327
|
return r === i ? 0 : r === -1 ? 1 : i === -1 ? -1 : r - i;
|
|
1312
1328
|
});
|
|
1313
|
-
}, ut = 64e3,
|
|
1329
|
+
}, ut = 64e3, Nn = ({
|
|
1314
1330
|
body: t = "",
|
|
1315
1331
|
headers: s,
|
|
1316
1332
|
status: n,
|
|
@@ -1319,13 +1335,13 @@ const xn = {
|
|
|
1319
1335
|
url: i
|
|
1320
1336
|
}) => {
|
|
1321
1337
|
var f;
|
|
1322
|
-
const l =
|
|
1338
|
+
const l = vn(s), m = jn(t), d = m || t, [h, x] = k(
|
|
1323
1339
|
m ? "formatted" : "raw"
|
|
1324
|
-
), w =
|
|
1340
|
+
), w = Kt({
|
|
1325
1341
|
queryKey: ["types", d],
|
|
1326
|
-
queryFn: async () =>
|
|
1342
|
+
queryFn: async () => fn(JSON.parse(d)),
|
|
1327
1343
|
enabled: h === "types"
|
|
1328
|
-
}),
|
|
1344
|
+
}), v = bn([...s]), p = r > ut;
|
|
1329
1345
|
return /* @__PURE__ */ e.jsxs("div", { className: "flex flex-col gap-2 h-full overflow-auto max-h-[calc(100vh-220px)] ", children: [
|
|
1330
1346
|
/* @__PURE__ */ e.jsxs(lt, { defaultOpen: !0, children: [
|
|
1331
1347
|
/* @__PURE__ */ e.jsxs(dt, { className: "flex items-center gap-2 hover:text-primary group", children: [
|
|
@@ -1333,26 +1349,26 @@ const xn = {
|
|
|
1333
1349
|
/* @__PURE__ */ e.jsx("span", { className: "font-semibold", children: "Headers" })
|
|
1334
1350
|
] }),
|
|
1335
1351
|
/* @__PURE__ */ e.jsx(ct, { 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: [
|
|
1336
|
-
|
|
1352
|
+
v.slice(0, 5).map(([c, g]) => /* @__PURE__ */ e.jsxs(O, { children: [
|
|
1337
1353
|
/* @__PURE__ */ e.jsx("div", { className: "text-primary whitespace-pre", children: c }),
|
|
1338
1354
|
/* @__PURE__ */ e.jsx("div", { className: "break-all", children: g })
|
|
1339
1355
|
] }, c)),
|
|
1340
|
-
|
|
1356
|
+
v.length > 5 && /* @__PURE__ */ e.jsxs(lt, { className: "col-span-full grid-cols-subgrid grid", children: [
|
|
1341
1357
|
/* @__PURE__ */ e.jsxs(dt, { className: "col-span-2 text-xs text-muted-foreground hover:text-primary flex items-center gap-1 py-1", children: [
|
|
1342
1358
|
/* @__PURE__ */ e.jsx(U, { className: "h-3 w-3 transition-transform duration-200 group-data-[state=open]:rotate-[90deg]" }),
|
|
1343
1359
|
"Show ",
|
|
1344
|
-
|
|
1360
|
+
v.length - 5,
|
|
1345
1361
|
" more headers"
|
|
1346
1362
|
] }),
|
|
1347
|
-
/* @__PURE__ */ e.jsx(ct, { className: "col-span-full grid grid-cols-subgrid gap-x-8 gap-y-1 ", children:
|
|
1363
|
+
/* @__PURE__ */ e.jsx(ct, { className: "col-span-full grid grid-cols-subgrid gap-x-8 gap-y-1 ", children: v.slice(5).map(([c, g]) => /* @__PURE__ */ e.jsxs(O, { children: [
|
|
1348
1364
|
/* @__PURE__ */ e.jsx("div", { className: "text-primary whitespace-pre", children: c }),
|
|
1349
1365
|
/* @__PURE__ */ e.jsx("div", { className: "break-all", children: g })
|
|
1350
1366
|
] }, c)) })
|
|
1351
1367
|
] })
|
|
1352
1368
|
] }) })
|
|
1353
1369
|
] }),
|
|
1354
|
-
/* @__PURE__ */ e.jsxs(
|
|
1355
|
-
p && /* @__PURE__ */ e.jsxs(
|
|
1370
|
+
/* @__PURE__ */ e.jsxs(wt, { className: "shadow-none", children: [
|
|
1371
|
+
p && /* @__PURE__ */ e.jsxs(vs, { type: "info", className: "my-0 p-2", children: [
|
|
1356
1372
|
"Code highlight is disabled for responses larger than",
|
|
1357
1373
|
" ",
|
|
1358
1374
|
mt(ut)
|
|
@@ -1377,7 +1393,7 @@ const xn = {
|
|
|
1377
1393
|
" ",
|
|
1378
1394
|
n,
|
|
1379
1395
|
" ",
|
|
1380
|
-
|
|
1396
|
+
gn[n] ?? ""
|
|
1381
1397
|
] }),
|
|
1382
1398
|
/* @__PURE__ */ e.jsxs("div", { children: [
|
|
1383
1399
|
/* @__PURE__ */ e.jsx("span", { className: "text-muted-foreground", children: "Time" }),
|
|
@@ -1392,23 +1408,23 @@ const xn = {
|
|
|
1392
1408
|
] })
|
|
1393
1409
|
] }),
|
|
1394
1410
|
m && /* @__PURE__ */ e.jsx("div", { children: /* @__PURE__ */ e.jsxs(
|
|
1395
|
-
|
|
1411
|
+
ve,
|
|
1396
1412
|
{
|
|
1397
1413
|
value: h,
|
|
1398
1414
|
onValueChange: (c) => x(c),
|
|
1399
1415
|
children: [
|
|
1400
|
-
/* @__PURE__ */ e.jsx(
|
|
1416
|
+
/* @__PURE__ */ e.jsx(je, { className: "min-w-32", children: /* @__PURE__ */ e.jsx(be, { placeholder: "View" }) }),
|
|
1401
1417
|
/* @__PURE__ */ e.jsxs(Ne, { children: [
|
|
1402
|
-
/* @__PURE__ */ e.jsx(
|
|
1403
|
-
/* @__PURE__ */ e.jsx(
|
|
1404
|
-
/* @__PURE__ */ e.jsx(
|
|
1418
|
+
/* @__PURE__ */ e.jsx(G, { value: "formatted", children: "Formatted" }),
|
|
1419
|
+
/* @__PURE__ */ e.jsx(G, { value: "raw", children: "Raw" }),
|
|
1420
|
+
/* @__PURE__ */ e.jsx(G, { value: "types", children: "Types" })
|
|
1405
1421
|
] })
|
|
1406
1422
|
]
|
|
1407
1423
|
}
|
|
1408
1424
|
) })
|
|
1409
1425
|
] })
|
|
1410
1426
|
] });
|
|
1411
|
-
},
|
|
1427
|
+
}, wn = ({
|
|
1412
1428
|
queryMutation: t,
|
|
1413
1429
|
showPathParamsWarning: s,
|
|
1414
1430
|
showLongRunningWarning: n,
|
|
@@ -1416,9 +1432,9 @@ const xn = {
|
|
|
1416
1432
|
}) => {
|
|
1417
1433
|
var i;
|
|
1418
1434
|
const r = ((((i = t.data) == null ? void 0 : i.status) ?? 0) / 100).toFixed(0);
|
|
1419
|
-
return /* @__PURE__ */ e.jsx("div", { className: "min-w-0 p-4 bg-muted/50", children: t.error ? /* @__PURE__ */ e.jsxs("div", { className: "flex flex-col gap-2", children: [
|
|
1435
|
+
return /* @__PURE__ */ e.jsx("div", { className: "min-w-0 p-4 py-8 bg-muted/50", children: t.error ? /* @__PURE__ */ e.jsxs("div", { className: "flex flex-col gap-2", children: [
|
|
1420
1436
|
s && /* @__PURE__ */ e.jsx(Ns, { type: "caution", children: "Some path parameters are missing values. Please fill them in to ensure the request is sent correctly." }),
|
|
1421
|
-
/* @__PURE__ */ e.jsxs(
|
|
1437
|
+
/* @__PURE__ */ e.jsxs(wt, { children: [
|
|
1422
1438
|
/* @__PURE__ */ e.jsx(ws, { children: /* @__PURE__ */ e.jsx(Cs, { children: "Request failed" }) }),
|
|
1423
1439
|
/* @__PURE__ */ e.jsxs(Ss, { children: [
|
|
1424
1440
|
"Error:",
|
|
@@ -1426,8 +1442,8 @@ const xn = {
|
|
|
1426
1442
|
t.error.message || String(t.error) || "Unexpected error"
|
|
1427
1443
|
] })
|
|
1428
1444
|
] })
|
|
1429
|
-
] }) : t.data ? /* @__PURE__ */ e.jsxs(
|
|
1430
|
-
/* @__PURE__ */ e.jsxs(
|
|
1445
|
+
] }) : t.data ? /* @__PURE__ */ e.jsxs(jt, { defaultValue: "response", children: [
|
|
1446
|
+
/* @__PURE__ */ e.jsxs(bt, { children: [
|
|
1431
1447
|
/* @__PURE__ */ e.jsx(F, { value: "request", children: "Request" }),
|
|
1432
1448
|
/* @__PURE__ */ e.jsxs(F, { value: "response", children: [
|
|
1433
1449
|
"Response",
|
|
@@ -1450,9 +1466,9 @@ const xn = {
|
|
|
1450
1466
|
)
|
|
1451
1467
|
] })
|
|
1452
1468
|
] }),
|
|
1453
|
-
/* @__PURE__ */ e.jsx(z, { value: "request", children: /* @__PURE__ */ e.jsx(
|
|
1469
|
+
/* @__PURE__ */ e.jsx(z, { value: "request", children: /* @__PURE__ */ e.jsx(hn, { ...t.data.request }) }),
|
|
1454
1470
|
/* @__PURE__ */ e.jsx(z, { value: "response", children: /* @__PURE__ */ e.jsx(
|
|
1455
|
-
|
|
1471
|
+
Nn,
|
|
1456
1472
|
{
|
|
1457
1473
|
status: t.data.status,
|
|
1458
1474
|
time: t.data.time,
|
|
@@ -1476,6 +1492,7 @@ const xn = {
|
|
|
1476
1492
|
/* @__PURE__ */ e.jsx(
|
|
1477
1493
|
Q,
|
|
1478
1494
|
{
|
|
1495
|
+
type: "button",
|
|
1479
1496
|
onClick: a,
|
|
1480
1497
|
size: "sm",
|
|
1481
1498
|
className: "w-fit",
|
|
@@ -1487,7 +1504,7 @@ const xn = {
|
|
|
1487
1504
|
}
|
|
1488
1505
|
)
|
|
1489
1506
|
] }) : /* @__PURE__ */ e.jsx("span", { className: "text-[16px] font-semibold text-muted-foreground", children: "Send a request first to see the response here" }) }) });
|
|
1490
|
-
},
|
|
1507
|
+
}, Cn = ({
|
|
1491
1508
|
identities: t,
|
|
1492
1509
|
formRef: s,
|
|
1493
1510
|
disabled: n
|
|
@@ -1506,17 +1523,17 @@ const xn = {
|
|
|
1506
1523
|
children: "Send"
|
|
1507
1524
|
}
|
|
1508
1525
|
),
|
|
1509
|
-
/* @__PURE__ */ e.jsxs(
|
|
1510
|
-
/* @__PURE__ */ e.jsx(
|
|
1526
|
+
/* @__PURE__ */ e.jsxs(Tt, { children: [
|
|
1527
|
+
/* @__PURE__ */ e.jsx($t, { asChild: !0, children: /* @__PURE__ */ e.jsx(
|
|
1511
1528
|
L,
|
|
1512
1529
|
{
|
|
1513
1530
|
disabled: n,
|
|
1514
1531
|
className: "rounded-l-none border-l border-border/40 inset-shadow-sm w-6",
|
|
1515
1532
|
size: "icon",
|
|
1516
|
-
children: /* @__PURE__ */ e.jsx(
|
|
1533
|
+
children: /* @__PURE__ */ e.jsx(Ut, { className: "w-4 h-4" })
|
|
1517
1534
|
}
|
|
1518
1535
|
) }),
|
|
1519
|
-
/* @__PURE__ */ e.jsx(
|
|
1536
|
+
/* @__PURE__ */ e.jsx(Me, { value: r, children: /* @__PURE__ */ e.jsx(Ee, { className: "w-56", align: "end", alignOffset: -150, children: [{ id: H, label: "None" }, ...t].map(
|
|
1520
1537
|
(l) => /* @__PURE__ */ e.jsxs(
|
|
1521
1538
|
De,
|
|
1522
1539
|
{
|
|
@@ -1536,13 +1553,13 @@ const xn = {
|
|
|
1536
1553
|
) }) })
|
|
1537
1554
|
] })
|
|
1538
1555
|
] });
|
|
1539
|
-
},
|
|
1556
|
+
}, H = "__none", ye = {
|
|
1540
1557
|
Plain: "text/plain",
|
|
1541
1558
|
JSON: "application/json",
|
|
1542
1559
|
XML: "application/xml",
|
|
1543
1560
|
YAML: "application/yaml",
|
|
1544
1561
|
CSV: "text/csv"
|
|
1545
|
-
},
|
|
1562
|
+
}, Sn = ({
|
|
1546
1563
|
server: t,
|
|
1547
1564
|
servers: s = [],
|
|
1548
1565
|
url: n,
|
|
@@ -1557,9 +1574,9 @@ const xn = {
|
|
|
1557
1574
|
onSignUp: w
|
|
1558
1575
|
}) => {
|
|
1559
1576
|
var We, Ze;
|
|
1560
|
-
const { selectedServer:
|
|
1577
|
+
const { selectedServer: v, setSelectedServer: p } = Ms(
|
|
1561
1578
|
s.map((o) => ({ url: o }))
|
|
1562
|
-
), [f, c] = k(!1), g = Yt(), { setRememberedIdentity: b, getRememberedIdentity: $ } =
|
|
1579
|
+
), [f, c] = k(!1), g = Yt(), { setRememberedIdentity: b, getRememberedIdentity: $ } = cn(), [, T] = rs(), [X, K] = k(!1), [qt, Y] = k(!1), ee = B(void 0), Be = cs(b), { register: _e, control: te, handleSubmit: Je, watch: Ge, setValue: E, ...ce } = ls({
|
|
1563
1580
|
defaultValues: {
|
|
1564
1581
|
body: m,
|
|
1565
1582
|
bodyContentType: "JSON",
|
|
@@ -1595,7 +1612,7 @@ const xn = {
|
|
|
1595
1612
|
((We = g.data) == null ? void 0 : We.map((o) => o.id)) ?? []
|
|
1596
1613
|
)
|
|
1597
1614
|
}
|
|
1598
|
-
}), C =
|
|
1615
|
+
}), C = Ge(), Ue = B(null);
|
|
1599
1616
|
ne(() => {
|
|
1600
1617
|
C.identity && Be.current(C.identity);
|
|
1601
1618
|
}, [Be, C.identity]);
|
|
@@ -1608,14 +1625,14 @@ const xn = {
|
|
|
1608
1625
|
...o.headers.filter((N) => N.name && N.active).map((N) => [N.name, N.value]),
|
|
1609
1626
|
...R ? [["content-type", ye[o.bodyContentType]]] : []
|
|
1610
1627
|
]), P = new Request(
|
|
1611
|
-
|
|
1628
|
+
Hs(t ?? v, n, o),
|
|
1612
1629
|
{
|
|
1613
1630
|
method: a.toUpperCase(),
|
|
1614
1631
|
headers: D,
|
|
1615
1632
|
body: o.body ? o.body : void 0
|
|
1616
1633
|
}
|
|
1617
1634
|
);
|
|
1618
|
-
o.identity !==
|
|
1635
|
+
o.identity !== H && await ((Ke = (Xe = g.data) == null ? void 0 : Xe.find((N) => N.id === o.identity)) == null ? void 0 : Ke.authorizeRequest(P));
|
|
1619
1636
|
const V = setTimeout(
|
|
1620
1637
|
() => Y(!0),
|
|
1621
1638
|
3210
|
|
@@ -1626,18 +1643,18 @@ const xn = {
|
|
|
1626
1643
|
signal: ee.current.signal
|
|
1627
1644
|
});
|
|
1628
1645
|
clearTimeout(V), Y(!1);
|
|
1629
|
-
const
|
|
1646
|
+
const Dt = performance.now() - S, Ye = await N.text(), Vt = new URL(P.url);
|
|
1630
1647
|
return {
|
|
1631
1648
|
status: N.status,
|
|
1632
1649
|
headers: Array.from(N.headers.entries()),
|
|
1633
1650
|
size: Ye.length,
|
|
1634
1651
|
body: Ye,
|
|
1635
|
-
time:
|
|
1652
|
+
time: Dt,
|
|
1636
1653
|
request: {
|
|
1637
1654
|
method: P.method.toUpperCase(),
|
|
1638
1655
|
url: P.url,
|
|
1639
1656
|
headers: [
|
|
1640
|
-
["Host",
|
|
1657
|
+
["Host", Vt.host],
|
|
1641
1658
|
["User-Agent", "Zudoku Playground"],
|
|
1642
1659
|
...Array.from(P.headers.entries())
|
|
1643
1660
|
],
|
|
@@ -1655,7 +1672,7 @@ const xn = {
|
|
|
1655
1672
|
var o;
|
|
1656
1673
|
(o = ee.current) == null || o.abort();
|
|
1657
1674
|
}, []);
|
|
1658
|
-
const
|
|
1675
|
+
const Lt = /* @__PURE__ */ e.jsx(
|
|
1659
1676
|
Vs,
|
|
1660
1677
|
{
|
|
1661
1678
|
path: n,
|
|
@@ -1665,7 +1682,7 @@ const xn = {
|
|
|
1665
1682
|
(V) => V.name === o
|
|
1666
1683
|
)) == null ? void 0 : P.value;
|
|
1667
1684
|
return /* @__PURE__ */ e.jsx(
|
|
1668
|
-
|
|
1685
|
+
St,
|
|
1669
1686
|
{
|
|
1670
1687
|
name: o,
|
|
1671
1688
|
backgroundOpacity: "0",
|
|
@@ -1682,20 +1699,20 @@ const xn = {
|
|
|
1682
1699
|
encodeURIComponent(o.value).replaceAll("%20", "+"),
|
|
1683
1700
|
S < R.length - 1 && "&",
|
|
1684
1701
|
/* @__PURE__ */ e.jsx("wbr", {})
|
|
1685
|
-
] }, o.name)),
|
|
1686
|
-
|
|
1702
|
+
] }, o.name)), At = /* @__PURE__ */ e.jsx("div", { className: "inline-block opacity-50 hover:opacity-100 transition", children: t ? /* @__PURE__ */ e.jsx("span", { children: t.replace(/^https?:\/\//, "").replace(/\/$/, "") }) : s.length > 1 && /* @__PURE__ */ e.jsxs(
|
|
1703
|
+
ve,
|
|
1687
1704
|
{
|
|
1688
1705
|
onValueChange: (o) => {
|
|
1689
1706
|
T(() => p(o));
|
|
1690
1707
|
},
|
|
1691
|
-
value:
|
|
1692
|
-
defaultValue:
|
|
1708
|
+
value: v,
|
|
1709
|
+
defaultValue: v,
|
|
1693
1710
|
children: [
|
|
1694
|
-
/* @__PURE__ */ e.jsx(
|
|
1695
|
-
/* @__PURE__ */ e.jsx(Ne, { children: s.map((o) => /* @__PURE__ */ e.jsx(
|
|
1711
|
+
/* @__PURE__ */ e.jsx(je, { className: "p-0 border-none flex-row-reverse bg-transparent text-xs gap-0.5 h-auto translate-y-[4px]", children: /* @__PURE__ */ e.jsx(be, {}) }),
|
|
1712
|
+
/* @__PURE__ */ e.jsx(Ne, { children: s.map((o) => /* @__PURE__ */ e.jsx(G, { value: o, children: o.replace(/^https?:\/\//, "").replace(/\/$/, "") }, o)) })
|
|
1696
1713
|
]
|
|
1697
1714
|
}
|
|
1698
|
-
) }),
|
|
1715
|
+
) }), Et = h && !X, se = ["POST", "PUT", "PATCH", "DELETE"].includes(
|
|
1699
1716
|
a.toUpperCase()
|
|
1700
1717
|
);
|
|
1701
1718
|
return /* @__PURE__ */ e.jsx(
|
|
@@ -1703,14 +1720,14 @@ const xn = {
|
|
|
1703
1720
|
{
|
|
1704
1721
|
register: _e,
|
|
1705
1722
|
control: te,
|
|
1706
|
-
handleSubmit:
|
|
1707
|
-
watch:
|
|
1723
|
+
handleSubmit: Je,
|
|
1724
|
+
watch: Ge,
|
|
1708
1725
|
setValue: E,
|
|
1709
1726
|
...ce,
|
|
1710
1727
|
children: /* @__PURE__ */ e.jsxs(
|
|
1711
1728
|
"form",
|
|
1712
1729
|
{
|
|
1713
|
-
onSubmit:
|
|
1730
|
+
onSubmit: Je((o) => {
|
|
1714
1731
|
var S;
|
|
1715
1732
|
((S = g.data) == null ? void 0 : S.length) === 0 || o.identity ? me.mutate(o) : c(!0);
|
|
1716
1733
|
}),
|
|
@@ -1718,20 +1735,20 @@ const xn = {
|
|
|
1718
1735
|
className: "relative",
|
|
1719
1736
|
children: [
|
|
1720
1737
|
/* @__PURE__ */ e.jsx(
|
|
1721
|
-
|
|
1738
|
+
rn,
|
|
1722
1739
|
{
|
|
1723
1740
|
identities: g.data ?? [],
|
|
1724
1741
|
open: f,
|
|
1725
1742
|
onOpenChange: c,
|
|
1726
1743
|
onSubmit: ({ rememberedIdentity: o, identity: S }) => {
|
|
1727
|
-
o && E("identity", S ??
|
|
1744
|
+
o && E("identity", S ?? H), c(!1), me.mutate({ ...C, identity: S });
|
|
1728
1745
|
}
|
|
1729
1746
|
}
|
|
1730
1747
|
),
|
|
1731
1748
|
/* @__PURE__ */ e.jsx(
|
|
1732
|
-
|
|
1749
|
+
mn,
|
|
1733
1750
|
{
|
|
1734
|
-
open:
|
|
1751
|
+
open: Et,
|
|
1735
1752
|
setOpen: (o) => K(!o),
|
|
1736
1753
|
onSignUp: w,
|
|
1737
1754
|
onLogin: x
|
|
@@ -1743,14 +1760,14 @@ const xn = {
|
|
|
1743
1760
|
/* @__PURE__ */ e.jsxs("div", { className: "flex flex-1 items-center w-full border rounded-md", children: [
|
|
1744
1761
|
/* @__PURE__ */ e.jsx("div", { className: "border-r p-2 bg-muted rounded-l-md self-stretch font-semibold font-mono flex items-center", children: a.toUpperCase() }),
|
|
1745
1762
|
/* @__PURE__ */ e.jsxs("div", { className: "items-center px-2 py-0.5 font-mono text-xs break-all leading-6", children: [
|
|
1746
|
-
|
|
1747
|
-
|
|
1763
|
+
At,
|
|
1764
|
+
Lt,
|
|
1748
1765
|
Qe.length > 0 ? "?" : "",
|
|
1749
1766
|
Qe
|
|
1750
1767
|
] })
|
|
1751
1768
|
] }),
|
|
1752
1769
|
/* @__PURE__ */ e.jsx(
|
|
1753
|
-
|
|
1770
|
+
Cn,
|
|
1754
1771
|
{
|
|
1755
1772
|
identities: g.data ?? [],
|
|
1756
1773
|
formRef: Ue,
|
|
@@ -1758,8 +1775,8 @@ const xn = {
|
|
|
1758
1775
|
}
|
|
1759
1776
|
)
|
|
1760
1777
|
] }),
|
|
1761
|
-
/* @__PURE__ */ e.jsxs(
|
|
1762
|
-
/* @__PURE__ */ e.jsx("div", { className: "flex flex-wrap gap-1 justify-between", children: /* @__PURE__ */ e.jsxs(
|
|
1778
|
+
/* @__PURE__ */ e.jsxs(jt, { defaultValue: "parameters", children: [
|
|
1779
|
+
/* @__PURE__ */ e.jsx("div", { className: "flex flex-wrap gap-1 justify-between", children: /* @__PURE__ */ e.jsxs(bt, { children: [
|
|
1763
1780
|
/* @__PURE__ */ e.jsxs(F, { value: "parameters", children: [
|
|
1764
1781
|
"Parameters",
|
|
1765
1782
|
(C.pathParams.some((o) => o.value !== "") || C.queryParams.some((o) => o.active)) && /* @__PURE__ */ e.jsx("div", { className: "w-2 h-2 rounded-full bg-blue-400 ml-2" })
|
|
@@ -1770,22 +1787,22 @@ const xn = {
|
|
|
1770
1787
|
] }),
|
|
1771
1788
|
/* @__PURE__ */ e.jsxs(F, { value: "auth", children: [
|
|
1772
1789
|
"Auth",
|
|
1773
|
-
C.identity !==
|
|
1790
|
+
C.identity !== H && /* @__PURE__ */ e.jsx("div", { className: "w-2 h-2 rounded-full bg-blue-400 ml-2" })
|
|
1774
1791
|
] }),
|
|
1775
1792
|
/* @__PURE__ */ e.jsxs(F, { value: "body", children: [
|
|
1776
1793
|
"Body",
|
|
1777
1794
|
C.body && /* @__PURE__ */ e.jsx("div", { className: "w-2 h-2 rounded-full bg-blue-400 ml-2" })
|
|
1778
1795
|
] })
|
|
1779
1796
|
] }) }),
|
|
1780
|
-
/* @__PURE__ */ e.jsx(z, { value: "headers", children: /* @__PURE__ */ e.jsx(
|
|
1797
|
+
/* @__PURE__ */ e.jsx(z, { value: "headers", children: /* @__PURE__ */ e.jsx(nn, { control: te, headers: r }) }),
|
|
1781
1798
|
/* @__PURE__ */ e.jsxs(z, { value: "parameters", children: [
|
|
1782
1799
|
l.length > 0 && /* @__PURE__ */ e.jsxs("div", { className: "flex flex-col gap-4 my-4", children: [
|
|
1783
1800
|
/* @__PURE__ */ e.jsx("span", { className: "font-semibold", children: "Path Parameters" }),
|
|
1784
|
-
/* @__PURE__ */ e.jsx(
|
|
1801
|
+
/* @__PURE__ */ e.jsx(on, { url: n, control: te })
|
|
1785
1802
|
] }),
|
|
1786
1803
|
/* @__PURE__ */ e.jsxs("div", { className: "flex flex-col gap-4 my-4", children: [
|
|
1787
1804
|
/* @__PURE__ */ e.jsx("span", { className: "font-semibold", children: "Query Parameters" }),
|
|
1788
|
-
/* @__PURE__ */ e.jsx(
|
|
1805
|
+
/* @__PURE__ */ e.jsx(dn, { control: te, queryParams: i })
|
|
1789
1806
|
] })
|
|
1790
1807
|
] }),
|
|
1791
1808
|
/* @__PURE__ */ e.jsxs(z, { value: "body", children: [
|
|
@@ -1797,7 +1814,7 @@ const xn = {
|
|
|
1797
1814
|
/* @__PURE__ */ e.jsx(Te, { children: "Body is only supported for POST, PUT, PATCH, and DELETE requests" })
|
|
1798
1815
|
] }),
|
|
1799
1816
|
/* @__PURE__ */ e.jsx(
|
|
1800
|
-
|
|
1817
|
+
Ct,
|
|
1801
1818
|
{
|
|
1802
1819
|
..._e("body"),
|
|
1803
1820
|
className: u(
|
|
@@ -1810,7 +1827,7 @@ const xn = {
|
|
|
1810
1827
|
),
|
|
1811
1828
|
se && /* @__PURE__ */ e.jsxs("div", { className: "flex items-center gap-2 mt-2 justify-between", children: [
|
|
1812
1829
|
/* @__PURE__ */ e.jsxs(
|
|
1813
|
-
|
|
1830
|
+
ve,
|
|
1814
1831
|
{
|
|
1815
1832
|
value: C.bodyContentType,
|
|
1816
1833
|
onValueChange: (o) => E(
|
|
@@ -1818,13 +1835,13 @@ const xn = {
|
|
|
1818
1835
|
o
|
|
1819
1836
|
),
|
|
1820
1837
|
children: [
|
|
1821
|
-
/* @__PURE__ */ e.jsx(
|
|
1822
|
-
/* @__PURE__ */ e.jsx(Ne, { children: Object.keys(ye).map((o) => /* @__PURE__ */ e.jsx(
|
|
1838
|
+
/* @__PURE__ */ e.jsx(je, { className: "w-[100px]", children: /* @__PURE__ */ e.jsx(be, {}) }),
|
|
1839
|
+
/* @__PURE__ */ e.jsx(Ne, { children: Object.keys(ye).map((o) => /* @__PURE__ */ e.jsx(G, { value: o, children: o }, o)) })
|
|
1823
1840
|
]
|
|
1824
1841
|
}
|
|
1825
1842
|
),
|
|
1826
1843
|
d && d.length > 0 && /* @__PURE__ */ e.jsx(
|
|
1827
|
-
|
|
1844
|
+
Qs,
|
|
1828
1845
|
{
|
|
1829
1846
|
examples: d,
|
|
1830
1847
|
onSelect: (o, S) => {
|
|
@@ -1849,7 +1866,7 @@ const xn = {
|
|
|
1849
1866
|
/* @__PURE__ */ e.jsx(Te, { children: "No identities found. Please create an identity first." })
|
|
1850
1867
|
] }),
|
|
1851
1868
|
/* @__PURE__ */ e.jsx("div", { className: "flex flex-col items-center gap-2", children: /* @__PURE__ */ e.jsx(
|
|
1852
|
-
|
|
1869
|
+
Rt,
|
|
1853
1870
|
{
|
|
1854
1871
|
value: C.identity,
|
|
1855
1872
|
identities: g.data ?? [],
|
|
@@ -1860,13 +1877,13 @@ const xn = {
|
|
|
1860
1877
|
] })
|
|
1861
1878
|
] }),
|
|
1862
1879
|
/* @__PURE__ */ e.jsx(
|
|
1863
|
-
|
|
1880
|
+
wn,
|
|
1864
1881
|
{
|
|
1865
1882
|
queryMutation: me,
|
|
1866
1883
|
showPathParamsWarning: C.pathParams.some(
|
|
1867
1884
|
(o) => o.value === ""
|
|
1868
1885
|
),
|
|
1869
|
-
showLongRunningWarning:
|
|
1886
|
+
showLongRunningWarning: qt,
|
|
1870
1887
|
onCancel: () => {
|
|
1871
1888
|
var o;
|
|
1872
1889
|
(o = ee.current) == null || o.abort(
|
|
@@ -1881,7 +1898,7 @@ const xn = {
|
|
|
1881
1898
|
)
|
|
1882
1899
|
}
|
|
1883
1900
|
);
|
|
1884
|
-
},
|
|
1901
|
+
}, Tn = ({
|
|
1885
1902
|
className: t,
|
|
1886
1903
|
size: s = 16
|
|
1887
1904
|
}) => /* @__PURE__ */ e.jsx(
|
|
@@ -1902,7 +1919,7 @@ const xn = {
|
|
|
1902
1919
|
}
|
|
1903
1920
|
)
|
|
1904
1921
|
}
|
|
1905
|
-
),
|
|
1922
|
+
), $n = (t) => {
|
|
1906
1923
|
const [s, n] = k(!1);
|
|
1907
1924
|
return /* @__PURE__ */ e.jsxs(ke, { onOpenChange: (a) => n(a), children: [
|
|
1908
1925
|
/* @__PURE__ */ e.jsx(os, { asChild: !0, children: t.children ?? /* @__PURE__ */ e.jsxs(
|
|
@@ -1912,7 +1929,7 @@ const xn = {
|
|
|
1912
1929
|
className: "flex gap-1 items-center px-2 py-1 rounded-md transition text-xs bg-primary text-primary-foreground shadow-sm hover:bg-primary/80",
|
|
1913
1930
|
children: [
|
|
1914
1931
|
"Test",
|
|
1915
|
-
/* @__PURE__ */ e.jsx(
|
|
1932
|
+
/* @__PURE__ */ e.jsx(Tn, { size: 14 })
|
|
1916
1933
|
]
|
|
1917
1934
|
}
|
|
1918
1935
|
) }),
|
|
@@ -1922,13 +1939,13 @@ const xn = {
|
|
|
1922
1939
|
className: "max-w-screen-xl w-full h-5/6 overflow-hidden p-0",
|
|
1923
1940
|
"aria-describedby": void 0,
|
|
1924
1941
|
children: [
|
|
1925
|
-
/* @__PURE__ */ e.jsx(
|
|
1926
|
-
s && /* @__PURE__ */ e.jsx(
|
|
1942
|
+
/* @__PURE__ */ e.jsx(ss, { children: /* @__PURE__ */ e.jsx(Re, { children: "Playground" }) }),
|
|
1943
|
+
s && /* @__PURE__ */ e.jsx(Sn, { ...t })
|
|
1927
1944
|
]
|
|
1928
1945
|
}
|
|
1929
1946
|
)
|
|
1930
1947
|
] });
|
|
1931
|
-
},
|
|
1948
|
+
}, Pn = {
|
|
1932
1949
|
get: "green",
|
|
1933
1950
|
post: "blue",
|
|
1934
1951
|
put: "yellow",
|
|
@@ -1958,14 +1975,14 @@ const xn = {
|
|
|
1958
1975
|
href: `${s}#${i.slug}`,
|
|
1959
1976
|
badge: {
|
|
1960
1977
|
label: i.method,
|
|
1961
|
-
color:
|
|
1978
|
+
color: Pn[i.method.toLowerCase()],
|
|
1962
1979
|
invert: !0
|
|
1963
1980
|
}
|
|
1964
1981
|
}))
|
|
1965
1982
|
}), ht = (t) => ({
|
|
1966
1983
|
path: t.routePath,
|
|
1967
1984
|
async lazy() {
|
|
1968
|
-
const { OasProvider: s } = await import("./OasProvider-
|
|
1985
|
+
const { OasProvider: s } = await import("./OasProvider-D1A10JeA.js");
|
|
1969
1986
|
return {
|
|
1970
1987
|
element: /* @__PURE__ */ e.jsx(
|
|
1971
1988
|
s,
|
|
@@ -1986,17 +2003,17 @@ const xn = {
|
|
|
1986
2003
|
}) => ({
|
|
1987
2004
|
path: t,
|
|
1988
2005
|
async lazy() {
|
|
1989
|
-
const { OperationList: a } = await import("./OperationList-
|
|
2006
|
+
const { OperationList: a } = await import("./OperationList-yOmYzMIp.js");
|
|
1990
2007
|
return { element: /* @__PURE__ */ e.jsx(a, { tag: s, untagged: n }) };
|
|
1991
2008
|
}
|
|
1992
|
-
}),
|
|
2009
|
+
}), kn = (t, s) => {
|
|
1993
2010
|
const n = A(
|
|
1994
2011
|
t,
|
|
1995
2012
|
s[0] ? ot(s[0]) : Pe
|
|
1996
2013
|
);
|
|
1997
2014
|
return [
|
|
1998
2015
|
// Redirect to first tag on the index route
|
|
1999
|
-
{ index: !0, loader: () =>
|
|
2016
|
+
{ index: !0, loader: () => Zt(n) },
|
|
2000
2017
|
// Create routes for each tag
|
|
2001
2018
|
...s.map(
|
|
2002
2019
|
(a) => $e({
|
|
@@ -2010,7 +2027,7 @@ const xn = {
|
|
|
2010
2027
|
untagged: !0
|
|
2011
2028
|
})
|
|
2012
2029
|
];
|
|
2013
|
-
},
|
|
2030
|
+
}, Ot = (t) => t.type === "file" ? Object.keys(t.input) : [], In = ({
|
|
2014
2031
|
basePath: t,
|
|
2015
2032
|
config: s,
|
|
2016
2033
|
client: n
|
|
@@ -2026,19 +2043,19 @@ const xn = {
|
|
|
2026
2043
|
config: s
|
|
2027
2044
|
})
|
|
2028
2045
|
];
|
|
2029
|
-
const r =
|
|
2046
|
+
const r = Ot(s);
|
|
2030
2047
|
return (r.length > 1 ? [void 0, ...r] : [void 0]).map((l) => {
|
|
2031
2048
|
const m = A(t, l);
|
|
2032
2049
|
return ht({
|
|
2033
2050
|
basePath: t,
|
|
2034
2051
|
version: l,
|
|
2035
2052
|
routePath: m,
|
|
2036
|
-
routes:
|
|
2053
|
+
routes: kn(m, a),
|
|
2037
2054
|
client: n,
|
|
2038
2055
|
config: s
|
|
2039
2056
|
});
|
|
2040
2057
|
});
|
|
2041
|
-
},
|
|
2058
|
+
}, Rn = Es(`
|
|
2042
2059
|
query GetSidebarOperations($input: JSON!, $type: SchemaType!) {
|
|
2043
2060
|
schema(input: $input, type: $type) {
|
|
2044
2061
|
tags {
|
|
@@ -2055,7 +2072,7 @@ const xn = {
|
|
|
2055
2072
|
}
|
|
2056
2073
|
}
|
|
2057
2074
|
}
|
|
2058
|
-
`), Pe = "~endpoints",
|
|
2075
|
+
`), Pe = "~endpoints", ia = (t) => {
|
|
2059
2076
|
const s = A(t.navigationId ?? "/reference"), n = new Ps(t);
|
|
2060
2077
|
return {
|
|
2061
2078
|
getHead: () => {
|
|
@@ -2092,11 +2109,11 @@ const xn = {
|
|
|
2092
2109
|
onClick: h.login,
|
|
2093
2110
|
children: [
|
|
2094
2111
|
"Login to open in Playground ",
|
|
2095
|
-
/* @__PURE__ */ e.jsx(
|
|
2112
|
+
/* @__PURE__ */ e.jsx(Qt, { size: 16 })
|
|
2096
2113
|
]
|
|
2097
2114
|
}
|
|
2098
2115
|
) : /* @__PURE__ */ e.jsx(
|
|
2099
|
-
|
|
2116
|
+
$n,
|
|
2100
2117
|
{
|
|
2101
2118
|
url: l ?? "/",
|
|
2102
2119
|
method: i ?? "get",
|
|
@@ -2104,7 +2121,7 @@ const xn = {
|
|
|
2104
2121
|
...d,
|
|
2105
2122
|
children: /* @__PURE__ */ e.jsx(Q, { className: "gap-2 items-center", variant: "outline", children: m ?? /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
2106
2123
|
"Open in Playground ",
|
|
2107
|
-
/* @__PURE__ */ e.jsx(
|
|
2124
|
+
/* @__PURE__ */ e.jsx(Wt, { size: 16 })
|
|
2108
2125
|
] }) })
|
|
2109
2126
|
}
|
|
2110
2127
|
);
|
|
@@ -2119,10 +2136,10 @@ const xn = {
|
|
|
2119
2136
|
a
|
|
2120
2137
|
);
|
|
2121
2138
|
try {
|
|
2122
|
-
const d = i == null ? void 0 : i.params.version, h = d ??
|
|
2139
|
+
const d = i == null ? void 0 : i.params.version, h = d ?? Ot(t).at(0), { type: x } = t, w = x === "file" ? t.input[h] : t.input, v = await r.queryClient.ensureQueryData({
|
|
2123
2140
|
queryKey: ["sidebar-operations-query", w],
|
|
2124
|
-
queryFn: () => n.fetch(
|
|
2125
|
-
}), p =
|
|
2141
|
+
queryFn: () => n.fetch(Rn, { type: x, input: w })
|
|
2142
|
+
}), p = v.schema.tags.flatMap((c) => {
|
|
2126
2143
|
var T, X, K;
|
|
2127
2144
|
if (!c.name || c.operations.length === 0) return [];
|
|
2128
2145
|
const g = A(s, d, c.slug), b = ((T = c.extensions) == null ? void 0 : T["x-zudoku-collapsed"]) ?? !((X = t.options) != null && X.expandAllTags), $ = ((K = c.extensions) == null ? void 0 : K["x-zudoku-collapsible"]) ?? !0;
|
|
@@ -2133,7 +2150,7 @@ const xn = {
|
|
|
2133
2150
|
collapsed: b,
|
|
2134
2151
|
collapsible: $
|
|
2135
2152
|
});
|
|
2136
|
-
}), f = (l =
|
|
2153
|
+
}), f = (l = v.schema.tags.find(
|
|
2137
2154
|
(c) => !c.name
|
|
2138
2155
|
)) == null ? void 0 : l.operations;
|
|
2139
2156
|
return f && p.push(
|
|
@@ -2148,20 +2165,21 @@ const xn = {
|
|
|
2148
2165
|
return [];
|
|
2149
2166
|
}
|
|
2150
2167
|
},
|
|
2151
|
-
getRoutes: () =>
|
|
2168
|
+
getRoutes: () => In({ basePath: s, config: t, client: n })
|
|
2152
2169
|
};
|
|
2153
2170
|
};
|
|
2154
2171
|
export {
|
|
2155
|
-
|
|
2156
|
-
|
|
2172
|
+
St as C,
|
|
2173
|
+
$n as P,
|
|
2157
2174
|
Pe as U,
|
|
2158
2175
|
Es as a,
|
|
2159
2176
|
lt as b,
|
|
2160
2177
|
ct as c,
|
|
2161
2178
|
dt as d,
|
|
2162
2179
|
Vs as e,
|
|
2163
|
-
|
|
2164
|
-
|
|
2165
|
-
|
|
2180
|
+
Ot as g,
|
|
2181
|
+
pn as m,
|
|
2182
|
+
ia as o,
|
|
2183
|
+
Ms as u
|
|
2166
2184
|
};
|
|
2167
|
-
//# sourceMappingURL=index-
|
|
2185
|
+
//# sourceMappingURL=index-B0y3fTg-.js.map
|