zudoku 0.66.2 → 0.66.3
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/config/validators/validate.d.ts +32 -3
- package/dist/config/validators/validate.js +1 -1
- package/dist/config/validators/validate.js.map +1 -1
- package/dist/flat-config.d.ts +1 -1
- package/dist/lib/auth/issuer.js +1 -1
- package/dist/lib/auth/issuer.js.map +1 -1
- package/dist/lib/authentication/authentication.d.ts +3 -2
- package/dist/lib/authentication/hook.d.ts +2 -0
- package/dist/lib/authentication/hook.js +10 -0
- package/dist/lib/authentication/hook.js.map +1 -1
- package/dist/lib/authentication/providers/firebase.js +67 -9
- package/dist/lib/authentication/providers/firebase.js.map +1 -1
- package/dist/lib/authentication/ui/EmailVerificationUi.d.ts +4 -0
- package/dist/lib/authentication/ui/EmailVerificationUi.js +34 -0
- package/dist/lib/authentication/ui/EmailVerificationUi.js.map +1 -0
- package/dist/lib/authentication/ui/ZudokuAuthUi.d.ts +7 -2
- package/dist/lib/authentication/ui/ZudokuAuthUi.js +43 -11
- package/dist/lib/authentication/ui/ZudokuAuthUi.js.map +1 -1
- package/dist/lib/authentication/utils/relativeRedirectUrl.d.ts +1 -0
- package/dist/lib/authentication/utils/relativeRedirectUrl.js +8 -0
- package/dist/lib/authentication/utils/relativeRedirectUrl.js.map +1 -0
- package/dist/lib/components/index.d.ts +2 -0
- package/dist/lib/errors/ErrorMessage.d.ts +3 -0
- package/dist/lib/errors/ErrorMessage.js +16 -0
- package/dist/lib/errors/ErrorMessage.js.map +1 -0
- package/dist/lib/hooks/index.d.ts +2 -0
- package/dist/lib/plugins/api-keys/SettingsApiKeys.js +9 -172
- package/dist/lib/plugins/api-keys/SettingsApiKeys.js.map +1 -1
- package/dist/lib/plugins/api-keys/index.d.ts +4 -1
- package/dist/lib/plugins/api-keys/index.js +19 -14
- package/dist/lib/plugins/api-keys/index.js.map +1 -1
- package/dist/lib/plugins/api-keys/settings/ApiKeyItem.d.ts +12 -0
- package/dist/lib/plugins/api-keys/settings/ApiKeyItem.js +133 -0
- package/dist/lib/plugins/api-keys/settings/ApiKeyItem.js.map +1 -0
- package/dist/lib/plugins/api-keys/settings/ApiKeyList.d.ts +4 -0
- package/dist/lib/plugins/api-keys/settings/ApiKeyList.js +30 -0
- package/dist/lib/plugins/api-keys/settings/ApiKeyList.js.map +1 -0
- package/dist/lib/plugins/api-keys/settings/RevealApiKey.d.ts +6 -0
- package/dist/lib/plugins/api-keys/settings/RevealApiKey.js +39 -0
- package/dist/lib/plugins/api-keys/settings/RevealApiKey.js.map +1 -0
- package/dist/vite/config.js +7 -0
- package/dist/vite/config.js.map +1 -1
- package/dist/vite/plugin-api-keys.js +4 -1
- package/dist/vite/plugin-api-keys.js.map +1 -1
- package/dist/vite/zuplo.d.ts +13 -0
- package/dist/vite/zuplo.js +15 -0
- package/dist/vite/zuplo.js.map +1 -0
- package/lib/{ClaudeLogo-CGRfGTk2.js → ClaudeLogo-BZslN9XF.js} +3 -3
- package/lib/{ClaudeLogo-CGRfGTk2.js.map → ClaudeLogo-BZslN9XF.js.map} +1 -1
- package/lib/{Drawer-Ci7XwhqT.js → Drawer-BRMcpfuF.js} +6 -6
- package/lib/{Drawer-Ci7XwhqT.js.map → Drawer-BRMcpfuF.js.map} +1 -1
- package/lib/Frame-DxlznfVd.js +205 -0
- package/lib/Frame-DxlznfVd.js.map +1 -0
- package/lib/{useMutation-C6RqWmTS.js → Input-D-kqEQ5M.js} +41 -23
- package/lib/Input-D-kqEQ5M.js.map +1 -0
- package/lib/{MdxPage-Bjf72BP3.js → MdxPage-B4zZq5aR.js} +8 -8
- package/lib/{MdxPage-Bjf72BP3.js.map → MdxPage-B4zZq5aR.js.map} +1 -1
- package/lib/{Mermaid-D_VSX7_Q.js → Mermaid-BjSczjLW.js} +3 -3
- package/lib/{Mermaid-D_VSX7_Q.js.map → Mermaid-BjSczjLW.js.map} +1 -1
- package/lib/{OAuthErrorPage-1Ekji0PK.js → OAuthErrorPage-DRY2hlga.js} +20 -21
- package/lib/{OAuthErrorPage-1Ekji0PK.js.map → OAuthErrorPage-DRY2hlga.js.map} +1 -1
- package/lib/{OasProvider-BZxmTyMM.js → OasProvider-lMwTD76Y.js} +4 -4
- package/lib/{OasProvider-BZxmTyMM.js.map → OasProvider-lMwTD76Y.js.map} +1 -1
- package/lib/{OperationList-B7nPIFB8.js → OperationList-Bm76b4vl.js} +23 -24
- package/lib/{OperationList-B7nPIFB8.js.map → OperationList-Bm76b4vl.js.map} +1 -1
- package/lib/{RouteGuard-9wjejsKm.js → RouteGuard-DGc32XJV.js} +4 -4
- package/lib/{RouteGuard-9wjejsKm.js.map → RouteGuard-DGc32XJV.js.map} +1 -1
- package/lib/{SchemaList-16_obkku.js → SchemaList-DX4FPogg.js} +7 -7
- package/lib/{SchemaList-16_obkku.js.map → SchemaList-DX4FPogg.js.map} +1 -1
- package/lib/SchemaView-CjXvSRxy.js +434 -0
- package/lib/SchemaView-CjXvSRxy.js.map +1 -0
- package/lib/{Select-CkxXP5I7.js → Secret-BxGpIhDP.js} +121 -121
- package/lib/Secret-BxGpIhDP.js.map +1 -0
- package/lib/{SignUp-D54_QWFy.js → SignUp-CntxjFGS.js} +4 -4
- package/lib/{SignUp-D54_QWFy.js.map → SignUp-CntxjFGS.js.map} +1 -1
- package/lib/{SyntaxHighlight-j_HRSPCU.js → SyntaxHighlight-Dgd0AaaX.js} +2 -2
- package/lib/{SyntaxHighlight-j_HRSPCU.js.map → SyntaxHighlight-Dgd0AaaX.js.map} +1 -1
- package/lib/{Toc-z05x698-.js → Toc-L1vGGHA1.js} +2 -2
- package/lib/{Toc-z05x698-.js.map → Toc-L1vGGHA1.js.map} +1 -1
- package/lib/{ZudokuContext-BXldanA8.js → ZudokuContext-DNHMZfcP.js} +33 -33
- package/lib/{ZudokuContext-BXldanA8.js.map → ZudokuContext-DNHMZfcP.js.map} +1 -1
- package/lib/{chunk-PVWAREVJ-dLIqswPy.js → chunk-PVWAREVJ-ClM0m2aJ.js} +19 -19
- package/lib/{chunk-PVWAREVJ-dLIqswPy.js.map → chunk-PVWAREVJ-ClM0m2aJ.js.map} +1 -1
- package/lib/{circular-D5sYCIWL.js → circular-BIN_WQ0c.js} +2 -2
- package/lib/{circular-D5sYCIWL.js.map → circular-BIN_WQ0c.js.map} +1 -1
- package/lib/{createServer-BlwU7lIr.js → createServer-BEl12QFw.js} +4 -4
- package/lib/{createServer-BlwU7lIr.js.map → createServer-BEl12QFw.js.map} +1 -1
- package/lib/createVariantComponent-CQVt-H3r.js +18 -0
- package/lib/createVariantComponent-CQVt-H3r.js.map +1 -0
- package/lib/{errors-BtC4Kn2j.js → errors-CtBbD47A.js} +2 -2
- package/lib/{errors-BtC4Kn2j.js.map → errors-CtBbD47A.js.map} +1 -1
- package/lib/{firebase-Ibm_tv3G.js → firebase-CT38ugg4.js} +1588 -1342
- package/lib/firebase-CT38ugg4.js.map +1 -0
- package/lib/hook-CHw_R_xu.js +52 -0
- package/lib/hook-CHw_R_xu.js.map +1 -0
- package/lib/{ErrorAlert-BUlG32M9.js → index-CG2v-T7-.js} +5373 -4335
- package/lib/index-CG2v-T7-.js.map +1 -0
- package/lib/{index-eKVhlB94.js → index-CISwSpdT.js} +2 -2
- package/lib/{index-eKVhlB94.js.map → index-CISwSpdT.js.map} +1 -1
- package/lib/{index-Css56y3F.js → index-DXXZDuSJ.js} +4 -4
- package/lib/{index-Css56y3F.js.map → index-DXXZDuSJ.js.map} +1 -1
- package/lib/{index-CeVTNcfF.js → index-jI2Fjpy-.js} +98 -99
- package/lib/{index-CeVTNcfF.js.map → index-jI2Fjpy-.js.map} +1 -1
- package/lib/{index.esm-BoKBnRoT.js → index.esm-Bu35TNgg.js} +16 -14
- package/lib/index.esm-Bu35TNgg.js.map +1 -0
- package/lib/{mutation-BoVlx8yA.js → mutation-DMHWqmFp.js} +2 -2
- package/lib/{mutation-BoVlx8yA.js.map → mutation-DMHWqmFp.js.map} +1 -1
- package/lib/ui/Drawer.js +2 -2
- package/lib/ui/SyntaxHighlight.js +2 -2
- package/lib/zudoku.__internal.js +507 -479
- package/lib/zudoku.__internal.js.map +1 -1
- package/lib/zudoku.auth-auth0.js +1 -1
- package/lib/zudoku.auth-azureb2c.js +4 -4
- package/lib/zudoku.auth-clerk.js +2 -2
- package/lib/zudoku.auth-firebase.js +6 -5
- package/lib/zudoku.auth-firebase.js.map +1 -1
- package/lib/zudoku.auth-openid.js +4 -4
- package/lib/zudoku.auth-supabase.js +5 -5
- package/lib/zudoku.components.js +20 -21
- package/lib/zudoku.components.js.map +1 -1
- package/lib/zudoku.hooks.js +3 -3
- package/lib/zudoku.mermaid.js +3 -3
- package/lib/zudoku.plugin-api-catalog.js +8 -9
- package/lib/zudoku.plugin-api-catalog.js.map +1 -1
- package/lib/zudoku.plugin-api-keys.js +580 -543
- package/lib/zudoku.plugin-api-keys.js.map +1 -1
- package/lib/zudoku.plugin-custom-pages.js +1 -1
- package/lib/zudoku.plugin-markdown.js +1 -1
- package/lib/zudoku.plugin-openapi.js +3 -3
- package/lib/zudoku.plugin-redirect.js +1 -1
- package/lib/zudoku.plugin-search-pagefind.js +3 -3
- package/lib/zudoku.router.js +2 -2
- package/package.json +4 -2
- package/src/lib/auth/issuer.ts +1 -1
- package/src/lib/authentication/authentication.ts +8 -2
- package/src/lib/authentication/hook.ts +16 -0
- package/src/lib/authentication/providers/firebase.tsx +98 -6
- package/src/lib/authentication/ui/EmailVerificationUi.tsx +129 -0
- package/src/lib/authentication/ui/ZudokuAuthUi.tsx +170 -38
- package/src/lib/authentication/utils/relativeRedirectUrl.ts +12 -0
- package/src/lib/errors/ErrorMessage.tsx +38 -0
- package/src/lib/plugins/api-keys/SettingsApiKeys.tsx +36 -476
- package/src/lib/plugins/api-keys/index.tsx +33 -18
- package/src/lib/plugins/api-keys/settings/ApiKeyItem.tsx +342 -0
- package/src/lib/plugins/api-keys/settings/ApiKeyList.tsx +64 -0
- package/src/lib/plugins/api-keys/settings/RevealApiKey.tsx +124 -0
- package/lib/ErrorAlert-BUlG32M9.js.map +0 -1
- package/lib/RouterError-DfTZblpv.js +0 -42
- package/lib/RouterError-DfTZblpv.js.map +0 -1
- package/lib/SchemaView-eyvR4bRt.js +0 -597
- package/lib/SchemaView-eyvR4bRt.js.map +0 -1
- package/lib/Select-CkxXP5I7.js.map +0 -1
- package/lib/createVariantComponent-B9_dVBvu.js +0 -35
- package/lib/createVariantComponent-B9_dVBvu.js.map +0 -1
- package/lib/firebase-Ibm_tv3G.js.map +0 -1
- package/lib/hook-BNxidGQq.js +0 -40
- package/lib/hook-BNxidGQq.js.map +0 -1
- package/lib/index-DSOi7zVM.js +0 -1059
- package/lib/index-DSOi7zVM.js.map +0 -1
- package/lib/index.esm-BoKBnRoT.js.map +0 -1
- package/lib/useMutation-C6RqWmTS.js.map +0 -1
|
@@ -1,36 +1,35 @@
|
|
|
1
1
|
import { j as t } from "./jsx-runtime-BzflLqGi.js";
|
|
2
|
-
import { ChevronsDownUpIcon as Ln, ChevronsUpDownIcon as kn, PlusCircleIcon as Je, XIcon as
|
|
3
|
-
import { r as es,
|
|
2
|
+
import { ChevronsDownUpIcon as Ln, ChevronsUpDownIcon as kn, PlusCircleIcon as Je, XIcon as Rt, CheckIcon as Dt, PaperclipIcon as ue, TrashIcon as En, FileInput as In, ScanTextIcon as yt, Grid2x2PlusIcon as vt, ChevronDownIcon as Rn, TableOfContentsIcon as Dn, LockIcon as Fn, CircleAlertIcon as zn, Circle as Vn, Unlink2Icon as Bn, CornerDownRightIcon as _n, MinusCircleIcon as bt, CornerDownLeftIcon as qn, SquareCodeIcon as Mn, DownloadIcon as Un, EyeOffIcon as Gn, EyeIcon as Hn, UnplugIcon as Qn, SendIcon as Jn, CopyIcon as Wn, IdCardLanyardIcon as Kn, ShapesIcon as Xn, PlayIcon as Zn, CirclePlayIcon as Yn } from "lucide-react";
|
|
3
|
+
import { r as es, d as ts, a as ns, N as ss, aL as rs, m as jt } from "./chunk-PVWAREVJ-ClM0m2aJ.js";
|
|
4
4
|
import { Button as Ft } from "./ui/Button.js";
|
|
5
|
-
import {
|
|
5
|
+
import { H as Ze, I as Ye, J as zt, f as as, K as os, L as is, j as V, e as ls } from "./ZudokuContext-DNHMZfcP.js";
|
|
6
6
|
import { Z as cs } from "./invariant-CGOLuIIz.js";
|
|
7
7
|
import * as xe from "react";
|
|
8
8
|
import { createContext as Vt, use as ds, useRef as k, useEffect as G, useMemo as Bt, useCallback as D, startTransition as us, useState as E, Fragment as ie, useLayoutEffect as ms, useTransition as ps, useContext as hs } from "react";
|
|
9
9
|
import { VisuallyHidden as fs } from "@radix-ui/react-visually-hidden";
|
|
10
|
-
import { z as gs, b as xs } from "./index-
|
|
10
|
+
import { z as gs, b as xs } from "./index-DXXZDuSJ.js";
|
|
11
11
|
import { B as q } from "./Button-CynVW1JV.js";
|
|
12
12
|
import { D as et, a as tt, c as nt, d as _t, e as qt, g as ys } from "./Dialog-BQciPiHN.js";
|
|
13
|
-
import { B as pe,
|
|
14
|
-
import { u as
|
|
15
|
-
import { u as ae, b as Mt, C as
|
|
13
|
+
import { B as pe, k as Ct, l as Nt, m as St, c as vs, S as bs, n as js, h as Cs } from "./index-CG2v-T7-.js";
|
|
14
|
+
import { I as Ns, u as Ss } from "./Input-D-kqEQ5M.js";
|
|
15
|
+
import { u as ae, b as Mt, C as wt, a as ws, F as Ts } from "./index.esm-BYObtETB.js";
|
|
16
16
|
import * as st from "@radix-ui/react-collapsible";
|
|
17
|
-
import { S as Ut, a as Gt, b as Ht, c as Qt, e as Te, g as
|
|
18
|
-
import { h as Nt, i as St, j as wt, k as ws, g as Ts } from "./ErrorAlert-BUlG32M9.js";
|
|
17
|
+
import { S as Ut, a as Gt, b as Ht, c as Qt, e as Te, g as As } from "./Secret-BxGpIhDP.js";
|
|
19
18
|
import { c as w } from "./cn-dYga0KKN.js";
|
|
20
|
-
import { u as
|
|
21
|
-
import { u as
|
|
22
|
-
import { D as Jt, a as Wt, b as Kt, d as
|
|
23
|
-
import { c as ye
|
|
19
|
+
import { u as $s } from "./useCopyToClipboard-B_085nfO.js";
|
|
20
|
+
import { u as Ps } from "./useLatest-hmRS46UF.js";
|
|
21
|
+
import { D as Jt, a as Wt, b as Kt, d as Os, e as Ls, f as ks, c as Ae } from "./DropdownMenu-C8SX_-S_.js";
|
|
22
|
+
import { c as ye } from "./createVariantComponent-CQVt-H3r.js";
|
|
24
23
|
import * as Tt from "@radix-ui/react-checkbox";
|
|
25
24
|
import * as $e from "@radix-ui/react-popover";
|
|
26
25
|
import { PopoverAnchor as Es } from "@radix-ui/react-popover";
|
|
27
|
-
import { P as
|
|
28
|
-
import { f as
|
|
26
|
+
import { P as Is } from "./index-CrcNWbel.js";
|
|
27
|
+
import { f as Rs, g as Ds, C as Fs, b as zs } from "./Command-BpT1iBE6.js";
|
|
29
28
|
import { C as Vs } from "./Card-KFniaZn5.js";
|
|
30
29
|
import * as Xt from "@radix-ui/react-label";
|
|
31
30
|
import { c as Bs } from "./index-DI5SPFK9.js";
|
|
32
31
|
import * as he from "@radix-ui/react-radio-group";
|
|
33
|
-
import { A as _s, a as qs, b as Ms } from "./Mermaid-
|
|
32
|
+
import { A as _s, a as qs, b as Ms } from "./Mermaid-BjSczjLW.js";
|
|
34
33
|
let _e;
|
|
35
34
|
const Us = (e) => {
|
|
36
35
|
if (e.errors?.[0])
|
|
@@ -42,7 +41,7 @@ class Gs {
|
|
|
42
41
|
constructor(n) {
|
|
43
42
|
this.config = n;
|
|
44
43
|
}
|
|
45
|
-
#e = async () => (_e || (_e = import("./createServer-
|
|
44
|
+
#e = async () => (_e || (_e = import("./createServer-BEl12QFw.js").then(
|
|
46
45
|
(n) => n.createServer(this.config)
|
|
47
46
|
)), _e);
|
|
48
47
|
#t = async (n) => this.config.server ? fetch(this.config.server, n) : (await this.#e()).fetch("http://localhost/graphql", n);
|
|
@@ -243,7 +242,7 @@ function F(e, n, s) {
|
|
|
243
242
|
positions: [n]
|
|
244
243
|
});
|
|
245
244
|
}
|
|
246
|
-
class
|
|
245
|
+
class Wa {
|
|
247
246
|
/**
|
|
248
247
|
* The character offset at which this Node begins.
|
|
249
248
|
*/
|
|
@@ -402,7 +401,7 @@ const Xs = {
|
|
|
402
401
|
DirectiveCoordinate: ["name"],
|
|
403
402
|
DirectiveArgumentCoordinate: ["name", "argumentName"]
|
|
404
403
|
}, Zs = new Set(Object.keys(Xs));
|
|
405
|
-
function
|
|
404
|
+
function Ka(e) {
|
|
406
405
|
const n = e?.kind;
|
|
407
406
|
return typeof n == "string" && Zs.has(n);
|
|
408
407
|
}
|
|
@@ -1022,7 +1021,7 @@ function Nr(e) {
|
|
|
1022
1021
|
}
|
|
1023
1022
|
const ln = Vt(
|
|
1024
1023
|
void 0
|
|
1025
|
-
),
|
|
1024
|
+
), Xa = ({
|
|
1026
1025
|
children: e,
|
|
1027
1026
|
client: n
|
|
1028
1027
|
}) => /* @__PURE__ */ t.jsx(ln.Provider, { value: n, children: e }), cn = (e, n, ...[s]) => ({
|
|
@@ -1317,7 +1316,7 @@ function _({
|
|
|
1317
1316
|
}
|
|
1318
1317
|
);
|
|
1319
1318
|
}
|
|
1320
|
-
function
|
|
1319
|
+
function Ir() {
|
|
1321
1320
|
const n = navigator.userAgent.toLowerCase();
|
|
1322
1321
|
if (n.indexOf("win") !== -1)
|
|
1323
1322
|
return "windows";
|
|
@@ -1328,8 +1327,8 @@ function Rr() {
|
|
|
1328
1327
|
if (n.indexOf("x11") !== -1)
|
|
1329
1328
|
return "unix";
|
|
1330
1329
|
}
|
|
1331
|
-
function
|
|
1332
|
-
return
|
|
1330
|
+
function Rr() {
|
|
1331
|
+
return Ir() === "apple";
|
|
1333
1332
|
}
|
|
1334
1333
|
const Dr = {
|
|
1335
1334
|
other: {
|
|
@@ -1360,7 +1359,7 @@ const Dr = {
|
|
|
1360
1359
|
}, [c, a, r, o, i]), {
|
|
1361
1360
|
trigger: () => l.current(),
|
|
1362
1361
|
label: s.map(
|
|
1363
|
-
(m) => m === "meta" || m === "ctrl" || m === "alt" || m === "shift" || m === "option" ? Dr[
|
|
1362
|
+
(m) => m === "meta" || m === "ctrl" || m === "alt" || m === "shift" || m === "option" ? Dr[Rr() ? "apple" : "other"][m] : m
|
|
1364
1363
|
)
|
|
1365
1364
|
};
|
|
1366
1365
|
}, zr = Ze()(
|
|
@@ -1455,9 +1454,9 @@ const ke = (e = 0) => {
|
|
|
1455
1454
|
}
|
|
1456
1455
|
) }),
|
|
1457
1456
|
/* @__PURE__ */ t.jsx(Kt, { className: "max-w-72", children: e.map((s) => /* @__PURE__ */ t.jsxs("div", { children: [
|
|
1458
|
-
/* @__PURE__ */ t.jsx(
|
|
1459
|
-
/* @__PURE__ */ t.jsx(
|
|
1460
|
-
/* @__PURE__ */ t.jsx(
|
|
1457
|
+
/* @__PURE__ */ t.jsx(Os, { children: s.mediaType }),
|
|
1458
|
+
/* @__PURE__ */ t.jsx(Ls, {}),
|
|
1459
|
+
/* @__PURE__ */ t.jsx(ks, { children: s.examples?.map((a) => /* @__PURE__ */ t.jsx(
|
|
1461
1460
|
Ae,
|
|
1462
1461
|
{
|
|
1463
1462
|
onSelect: () => n(a, s.mediaType),
|
|
@@ -1479,8 +1478,8 @@ const ke = (e = 0) => {
|
|
|
1479
1478
|
), ge = ye(
|
|
1480
1479
|
"div",
|
|
1481
1480
|
"group h-9 hover:bg-accent/75 ps-4 pe-2 grid col-span-full grid-cols-subgrid items-center border-b"
|
|
1482
|
-
),
|
|
1483
|
-
|
|
1481
|
+
), R = ye(
|
|
1482
|
+
Ns,
|
|
1484
1483
|
"w-full truncate border-0 p-0 m-0 shadow-none text-xs focus-visible:ring-0 font-mono"
|
|
1485
1484
|
), at = ({
|
|
1486
1485
|
onClick: e,
|
|
@@ -1497,7 +1496,7 @@ const ke = (e = 0) => {
|
|
|
1497
1496
|
onClick: e,
|
|
1498
1497
|
type: "button",
|
|
1499
1498
|
"data-slot": "remove-button",
|
|
1500
|
-
children: /* @__PURE__ */ t.jsx(
|
|
1499
|
+
children: /* @__PURE__ */ t.jsx(Rt, { size: 14 })
|
|
1501
1500
|
}
|
|
1502
1501
|
);
|
|
1503
1502
|
function ve({
|
|
@@ -1535,7 +1534,7 @@ const _r = ({ index: e, manager: n }) => {
|
|
|
1535
1534
|
}
|
|
1536
1535
|
),
|
|
1537
1536
|
/* @__PURE__ */ t.jsx(
|
|
1538
|
-
|
|
1537
|
+
R,
|
|
1539
1538
|
{
|
|
1540
1539
|
...n.getNameInputProps(e),
|
|
1541
1540
|
placeholder: "Key"
|
|
@@ -1567,7 +1566,7 @@ const _r = ({ index: e, manager: n }) => {
|
|
|
1567
1566
|
)
|
|
1568
1567
|
] }) : /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
1569
1568
|
/* @__PURE__ */ t.jsx(
|
|
1570
|
-
|
|
1569
|
+
R,
|
|
1571
1570
|
{
|
|
1572
1571
|
...n.getValueInputProps(e),
|
|
1573
1572
|
placeholder: "Value"
|
|
@@ -1625,7 +1624,7 @@ const _r = ({ index: e, manager: n }) => {
|
|
|
1625
1624
|
), S = D(
|
|
1626
1625
|
(g) => r ? r(g) : !g.name && !g.value,
|
|
1627
1626
|
[r]
|
|
1628
|
-
),
|
|
1627
|
+
), I = D(
|
|
1629
1628
|
(g) => o ? o(g) : !!(g.name || g.value),
|
|
1630
1629
|
[o]
|
|
1631
1630
|
);
|
|
@@ -1647,7 +1646,7 @@ const _r = ({ index: e, manager: n }) => {
|
|
|
1647
1646
|
const C = [];
|
|
1648
1647
|
for (let T = 0; T < h.length - 1; T++) {
|
|
1649
1648
|
const A = h[T];
|
|
1650
|
-
A && S(A) && !
|
|
1649
|
+
A && S(A) && !I(A) && C.push(T);
|
|
1651
1650
|
}
|
|
1652
1651
|
if (C.length > 0) {
|
|
1653
1652
|
const T = C[0];
|
|
@@ -1675,18 +1674,18 @@ const _r = ({ index: e, manager: n }) => {
|
|
|
1675
1674
|
S,
|
|
1676
1675
|
s,
|
|
1677
1676
|
l,
|
|
1678
|
-
|
|
1677
|
+
I
|
|
1679
1678
|
]), G(() => {
|
|
1680
1679
|
if (!h) return;
|
|
1681
1680
|
const g = [];
|
|
1682
1681
|
for (let C = 0; C < h.length; C++) {
|
|
1683
1682
|
const T = h[C];
|
|
1684
1683
|
if (!T) continue;
|
|
1685
|
-
const A =
|
|
1684
|
+
const A = I(T);
|
|
1686
1685
|
T.active !== A && g.push(() => y(C, "active", A));
|
|
1687
1686
|
}
|
|
1688
1687
|
g.length !== 0 && us(() => g.forEach((C) => C()));
|
|
1689
|
-
}, [h,
|
|
1688
|
+
}, [h, I, y]);
|
|
1690
1689
|
const N = D(
|
|
1691
1690
|
(g) => {
|
|
1692
1691
|
const C = h?.[g];
|
|
@@ -1727,7 +1726,7 @@ const _r = ({ index: e, manager: n }) => {
|
|
|
1727
1726
|
}
|
|
1728
1727
|
}),
|
|
1729
1728
|
[s, m, N, c, y]
|
|
1730
|
-
),
|
|
1729
|
+
), Re = D(
|
|
1731
1730
|
(g, C) => h?.[g]?.[C],
|
|
1732
1731
|
[h]
|
|
1733
1732
|
), ee = D(
|
|
@@ -1744,7 +1743,7 @@ const _r = ({ index: e, manager: n }) => {
|
|
|
1744
1743
|
getCheckboxProps: be,
|
|
1745
1744
|
getRemoveButtonProps: ee,
|
|
1746
1745
|
setValue: y,
|
|
1747
|
-
getValue:
|
|
1746
|
+
getValue: Re
|
|
1748
1747
|
};
|
|
1749
1748
|
}, qr = ({ content: e }) => {
|
|
1750
1749
|
const { register: n, setValue: s, watch: a, control: r } = ae(), o = (e ?? []).flatMap((j) => j.examples), [i, c, l, m, d] = a([
|
|
@@ -1767,7 +1766,7 @@ const _r = ({ index: e, manager: n }) => {
|
|
|
1767
1766
|
j.preventDefault(), j.stopPropagation(), h(!0);
|
|
1768
1767
|
}, S = (j) => {
|
|
1769
1768
|
j.preventDefault(), j.stopPropagation(), h(!1);
|
|
1770
|
-
},
|
|
1769
|
+
}, I = (j) => {
|
|
1771
1770
|
j.preventDefault(), j.stopPropagation(), h(!1);
|
|
1772
1771
|
const O = j.dataTransfer.files?.[0] ?? null;
|
|
1773
1772
|
v(O);
|
|
@@ -1779,7 +1778,7 @@ const _r = ({ index: e, manager: n }) => {
|
|
|
1779
1778
|
});
|
|
1780
1779
|
return /* @__PURE__ */ t.jsxs(B, { defaultOpen: !0, children: [
|
|
1781
1780
|
/* @__PURE__ */ t.jsxs(Z, { className: "items-center", children: [
|
|
1782
|
-
/* @__PURE__ */ t.jsx(
|
|
1781
|
+
/* @__PURE__ */ t.jsx(In, { size: 16 }),
|
|
1783
1782
|
/* @__PURE__ */ t.jsxs(H, { className: "flex items-center justify-between", children: [
|
|
1784
1783
|
"Body",
|
|
1785
1784
|
/* @__PURE__ */ t.jsxs("div", { className: "flex items-center", children: [
|
|
@@ -1801,7 +1800,7 @@ const _r = ({ index: e, manager: n }) => {
|
|
|
1801
1800
|
/* @__PURE__ */ t.jsx(vt, { size: 14 }),
|
|
1802
1801
|
"Multipart"
|
|
1803
1802
|
] }),
|
|
1804
|
-
/* @__PURE__ */ t.jsx(
|
|
1803
|
+
/* @__PURE__ */ t.jsx(Rn, { size: 14 })
|
|
1805
1804
|
]
|
|
1806
1805
|
}
|
|
1807
1806
|
) }),
|
|
@@ -1894,7 +1893,7 @@ const _r = ({ index: e, manager: n }) => {
|
|
|
1894
1893
|
),
|
|
1895
1894
|
onDragOver: y,
|
|
1896
1895
|
onDragLeave: S,
|
|
1897
|
-
onDrop:
|
|
1896
|
+
onDrop: I,
|
|
1898
1897
|
children: [
|
|
1899
1898
|
/* @__PURE__ */ t.jsx(
|
|
1900
1899
|
"button",
|
|
@@ -1935,7 +1934,7 @@ const _r = ({ index: e, manager: n }) => {
|
|
|
1935
1934
|
variant: "ghost",
|
|
1936
1935
|
size: "icon-xxs",
|
|
1937
1936
|
onClick: () => v(null),
|
|
1938
|
-
children: /* @__PURE__ */ t.jsx(
|
|
1937
|
+
children: /* @__PURE__ */ t.jsx(Rt, { size: 14 })
|
|
1939
1938
|
}
|
|
1940
1939
|
)
|
|
1941
1940
|
] }) : /* @__PURE__ */ t.jsx("span", { className: "text-lg font-semibold text-muted-foreground", children: "Select or drop a file" })
|
|
@@ -2004,7 +2003,7 @@ const Hr = ({
|
|
|
2004
2003
|
ref: c,
|
|
2005
2004
|
onSelect: l
|
|
2006
2005
|
}) => {
|
|
2007
|
-
const [m, d] = E(!1), [f, x] = E(!1), h =
|
|
2006
|
+
const [m, d] = E(!1), [f, x] = E(!1), h = Is((u) => u.filtered.count), v = k(null);
|
|
2008
2007
|
return /* @__PURE__ */ t.jsxs(Gr, { open: m, children: [
|
|
2009
2008
|
/* @__PURE__ */ t.jsx(Es, { children: /* @__PURE__ */ t.jsx(
|
|
2010
2009
|
Ds,
|
|
@@ -2058,7 +2057,7 @@ const Hr = ({
|
|
|
2058
2057
|
}
|
|
2059
2058
|
)
|
|
2060
2059
|
] });
|
|
2061
|
-
}, Pe = ({ shouldFilter: e, ...n }) => /* @__PURE__ */ t.jsx(
|
|
2060
|
+
}, Pe = ({ shouldFilter: e, ...n }) => /* @__PURE__ */ t.jsx(Rs, { className: "bg-transparent", shouldFilter: e, children: /* @__PURE__ */ t.jsx(Hr, { ...n }) }), Qr = Object.freeze([
|
|
2062
2061
|
"Accept",
|
|
2063
2062
|
"Accept-Encoding",
|
|
2064
2063
|
"Accept-Language",
|
|
@@ -2107,20 +2106,20 @@ const Hr = ({
|
|
|
2107
2106
|
/* @__PURE__ */ t.jsx(H, { children: "Headers" })
|
|
2108
2107
|
] }),
|
|
2109
2108
|
/* @__PURE__ */ t.jsx(_, { className: "CollapsibleContent", children: /* @__PURE__ */ t.jsx("div", { className: "flex flex-col gap-2", children: /* @__PURE__ */ t.jsx("div", { className: "overflow-hidden", children: /* @__PURE__ */ t.jsxs(Ee, { children: [
|
|
2110
|
-
m.map((d) => /* @__PURE__ */ t.jsxs(
|
|
2111
|
-
/* @__PURE__ */ t.jsx(
|
|
2109
|
+
m.map((d) => /* @__PURE__ */ t.jsxs(Ct, { children: [
|
|
2110
|
+
/* @__PURE__ */ t.jsx(Nt, { asChild: !0, children: /* @__PURE__ */ t.jsxs(
|
|
2112
2111
|
ge,
|
|
2113
2112
|
{
|
|
2114
2113
|
className: "opacity-50 cursor-not-allowed font-mono text-xs min-h-10",
|
|
2115
2114
|
children: [
|
|
2116
2115
|
/* @__PURE__ */ t.jsx(Fn, { size: 16 }),
|
|
2117
|
-
/* @__PURE__ */ t.jsx(
|
|
2116
|
+
/* @__PURE__ */ t.jsx(R, { value: d.name, disabled: !0 }),
|
|
2118
2117
|
/* @__PURE__ */ t.jsx("div", { children: d.value })
|
|
2119
2118
|
]
|
|
2120
2119
|
},
|
|
2121
2120
|
d.id
|
|
2122
2121
|
) }),
|
|
2123
|
-
/* @__PURE__ */ t.jsx(
|
|
2122
|
+
/* @__PURE__ */ t.jsx(St, { alignOffset: 10, side: "bottom", align: "start", children: /* @__PURE__ */ t.jsx("p", { children: "This header is set by the selected authentication." }) })
|
|
2124
2123
|
] }, d.id)),
|
|
2125
2124
|
i.fields.map((d, f) => {
|
|
2126
2125
|
const x = n.find(
|
|
@@ -2141,8 +2140,8 @@ const Hr = ({
|
|
|
2141
2140
|
...i.getCheckboxProps(f)
|
|
2142
2141
|
}
|
|
2143
2142
|
),
|
|
2144
|
-
/* @__PURE__ */ t.jsxs(
|
|
2145
|
-
/* @__PURE__ */ t.jsx(
|
|
2143
|
+
/* @__PURE__ */ t.jsxs(Ct, { children: [
|
|
2144
|
+
/* @__PURE__ */ t.jsx(Nt, { asChild: !0, children: /* @__PURE__ */ t.jsx(
|
|
2146
2145
|
zn,
|
|
2147
2146
|
{
|
|
2148
2147
|
className: w(
|
|
@@ -2153,7 +2152,7 @@ const Hr = ({
|
|
|
2153
2152
|
}
|
|
2154
2153
|
) }),
|
|
2155
2154
|
/* @__PURE__ */ t.jsx(
|
|
2156
|
-
|
|
2155
|
+
St,
|
|
2157
2156
|
{
|
|
2158
2157
|
alignOffset: 10,
|
|
2159
2158
|
side: "bottom",
|
|
@@ -2162,7 +2161,7 @@ const Hr = ({
|
|
|
2162
2161
|
}
|
|
2163
2162
|
)
|
|
2164
2163
|
] }),
|
|
2165
|
-
/* @__PURE__ */ t.jsx(
|
|
2164
|
+
/* @__PURE__ */ t.jsx(R, { asChild: !0, children: /* @__PURE__ */ t.jsx(
|
|
2166
2165
|
Pe,
|
|
2167
2166
|
{
|
|
2168
2167
|
...u,
|
|
@@ -2174,7 +2173,7 @@ const Hr = ({
|
|
|
2174
2173
|
}
|
|
2175
2174
|
) }),
|
|
2176
2175
|
/* @__PURE__ */ t.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
2177
|
-
h ? /* @__PURE__ */ t.jsx(
|
|
2176
|
+
h ? /* @__PURE__ */ t.jsx(R, { asChild: !0, children: /* @__PURE__ */ t.jsx(
|
|
2178
2177
|
Pe,
|
|
2179
2178
|
{
|
|
2180
2179
|
...y,
|
|
@@ -2185,7 +2184,7 @@ const Hr = ({
|
|
|
2185
2184
|
onSelect: (S) => i.setValue(f, "value", S, { focus: "next" })
|
|
2186
2185
|
}
|
|
2187
2186
|
) }) : /* @__PURE__ */ t.jsx(
|
|
2188
|
-
|
|
2187
|
+
R,
|
|
2189
2188
|
{
|
|
2190
2189
|
placeholder: "Value",
|
|
2191
2190
|
autoComplete: "off",
|
|
@@ -2208,7 +2207,7 @@ const Hr = ({
|
|
|
2208
2207
|
] });
|
|
2209
2208
|
}, Wr = Bs(
|
|
2210
2209
|
"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
|
|
2211
|
-
),
|
|
2210
|
+
), Ie = xe.forwardRef(({ className: e, ...n }, s) => /* @__PURE__ */ t.jsx(
|
|
2212
2211
|
Xt.Root,
|
|
2213
2212
|
{
|
|
2214
2213
|
ref: s,
|
|
@@ -2216,7 +2215,7 @@ const Hr = ({
|
|
|
2216
2215
|
...n
|
|
2217
2216
|
}
|
|
2218
2217
|
));
|
|
2219
|
-
|
|
2218
|
+
Ie.displayName = Xt.Root.displayName;
|
|
2220
2219
|
const mn = xe.forwardRef(({ className: e, ...n }, s) => /* @__PURE__ */ t.jsx(
|
|
2221
2220
|
he.Root,
|
|
2222
2221
|
{
|
|
@@ -2253,7 +2252,7 @@ const hn = ({
|
|
|
2253
2252
|
disabled: e?.length === 0,
|
|
2254
2253
|
children: [{ id: me, label: "None" }, ...e ?? []].map(
|
|
2255
2254
|
(a) => /* @__PURE__ */ t.jsxs(
|
|
2256
|
-
|
|
2255
|
+
Ie,
|
|
2257
2256
|
{
|
|
2258
2257
|
className: "h-10 items-center border-b font-normal flex gap-4 p-4 cursor-pointer hover:bg-accent/75",
|
|
2259
2258
|
children: [
|
|
@@ -2295,7 +2294,7 @@ const hn = ({
|
|
|
2295
2294
|
)
|
|
2296
2295
|
}
|
|
2297
2296
|
),
|
|
2298
|
-
/* @__PURE__ */ t.jsx(
|
|
2297
|
+
/* @__PURE__ */ t.jsx(Ie, { htmlFor: "remember", children: "Remember my choice" })
|
|
2299
2298
|
] }),
|
|
2300
2299
|
/* @__PURE__ */ t.jsx(
|
|
2301
2300
|
q,
|
|
@@ -2383,7 +2382,7 @@ const hn = ({
|
|
|
2383
2382
|
);
|
|
2384
2383
|
return /* @__PURE__ */ t.jsx(Ee, { children: a.map((r, o) => /* @__PURE__ */ t.jsxs(ge, { children: [
|
|
2385
2384
|
/* @__PURE__ */ t.jsx(
|
|
2386
|
-
|
|
2385
|
+
wt,
|
|
2387
2386
|
{
|
|
2388
2387
|
control: e,
|
|
2389
2388
|
name: `pathParams.${o}.name`,
|
|
@@ -2398,11 +2397,11 @@ const hn = ({
|
|
|
2398
2397
|
}
|
|
2399
2398
|
),
|
|
2400
2399
|
/* @__PURE__ */ t.jsx("div", { className: "flex justify-between items-center col-span-2", children: /* @__PURE__ */ t.jsx(
|
|
2401
|
-
|
|
2400
|
+
wt,
|
|
2402
2401
|
{
|
|
2403
2402
|
control: e,
|
|
2404
2403
|
name: `pathParams.${o}.value`,
|
|
2405
|
-
render: ({ field: i }) => /* @__PURE__ */ t.jsx(
|
|
2404
|
+
render: ({ field: i }) => /* @__PURE__ */ t.jsx(R, { ...i, required: !0, placeholder: "Value" })
|
|
2406
2405
|
}
|
|
2407
2406
|
) })
|
|
2408
2407
|
] }, r.id)) });
|
|
@@ -2428,7 +2427,7 @@ const hn = ({
|
|
|
2428
2427
|
), d = m?.enum && m.enum.length > 0, f = r.getNameInputProps(l), x = r.getValueInputProps(l);
|
|
2429
2428
|
return /* @__PURE__ */ t.jsxs(ge, { children: [
|
|
2430
2429
|
/* @__PURE__ */ t.jsx(ve, { ...r.getCheckboxProps(l) }),
|
|
2431
|
-
o[l] ? /* @__PURE__ */ t.jsx(
|
|
2430
|
+
o[l] ? /* @__PURE__ */ t.jsx(R, { asChild: !0, children: /* @__PURE__ */ t.jsxs(
|
|
2432
2431
|
"label",
|
|
2433
2432
|
{
|
|
2434
2433
|
className: "flex items-center cursor-pointer gap-1",
|
|
@@ -2439,7 +2438,7 @@ const hn = ({
|
|
|
2439
2438
|
o[l] && /* @__PURE__ */ t.jsx("sup", { children: " *" })
|
|
2440
2439
|
]
|
|
2441
2440
|
}
|
|
2442
|
-
) }) : i ? /* @__PURE__ */ t.jsx(
|
|
2441
|
+
) }) : i ? /* @__PURE__ */ t.jsx(R, { asChild: !0, children: /* @__PURE__ */ t.jsx(
|
|
2443
2442
|
Pe,
|
|
2444
2443
|
{
|
|
2445
2444
|
...f,
|
|
@@ -2449,9 +2448,9 @@ const hn = ({
|
|
|
2449
2448
|
onChange: (h) => r.setValue(l, "name", h),
|
|
2450
2449
|
onSelect: (h) => r.setValue(l, "name", h, { focus: "next" })
|
|
2451
2450
|
}
|
|
2452
|
-
) }) : /* @__PURE__ */ t.jsx(
|
|
2451
|
+
) }) : /* @__PURE__ */ t.jsx(R, { ...f, placeholder: "Name" }),
|
|
2453
2452
|
/* @__PURE__ */ t.jsxs("div", { className: "flex justify-between items-center", children: [
|
|
2454
|
-
d ? /* @__PURE__ */ t.jsx(
|
|
2453
|
+
d ? /* @__PURE__ */ t.jsx(R, { asChild: !0, children: /* @__PURE__ */ t.jsx(
|
|
2455
2454
|
Pe,
|
|
2456
2455
|
{
|
|
2457
2456
|
...x,
|
|
@@ -2462,7 +2461,7 @@ const hn = ({
|
|
|
2462
2461
|
onSelect: (h) => r.setValue(l, "value", h, { focus: "next" })
|
|
2463
2462
|
}
|
|
2464
2463
|
) }) : /* @__PURE__ */ t.jsx(
|
|
2465
|
-
|
|
2464
|
+
R,
|
|
2466
2465
|
{
|
|
2467
2466
|
placeholder: "Value",
|
|
2468
2467
|
"aria-label": "Query parameter value",
|
|
@@ -2492,7 +2491,7 @@ const hn = ({
|
|
|
2492
2491
|
return /* @__PURE__ */ t.jsx(et, { open: e, onOpenChange: n, children: /* @__PURE__ */ t.jsxs(tt, { children: [
|
|
2493
2492
|
/* @__PURE__ */ t.jsx(nt, { children: "Welcome to the Playground!" }),
|
|
2494
2493
|
/* @__PURE__ */ t.jsx(_t, { children: "The Playground is a tool for developers to test and explore our APIs. To use the Playground, you need to login." }),
|
|
2495
|
-
/* @__PURE__ */ t.jsxs(
|
|
2494
|
+
/* @__PURE__ */ t.jsxs(Ie, { className: "flex items-center gap-2 font-normal", children: [
|
|
2496
2495
|
/* @__PURE__ */ t.jsx(
|
|
2497
2496
|
ve,
|
|
2498
2497
|
{
|
|
@@ -2734,7 +2733,7 @@ const da = (e) => Object.entries({
|
|
|
2734
2733
|
a && o((i) => !i);
|
|
2735
2734
|
},
|
|
2736
2735
|
children: a ? /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
2737
|
-
/* @__PURE__ */ t.jsx(
|
|
2736
|
+
/* @__PURE__ */ t.jsx(As, { secret: e, previewChars: 0, revealed: r }),
|
|
2738
2737
|
r ? /* @__PURE__ */ t.jsx(Gn, { size: 14, className: w("hidden group-hover:block") }) : /* @__PURE__ */ t.jsx(Hn, { size: 14, className: w("hidden group-hover:block") })
|
|
2739
2738
|
] }) : e
|
|
2740
2739
|
}
|
|
@@ -2878,7 +2877,7 @@ const da = (e) => Object.entries({
|
|
|
2878
2877
|
}
|
|
2879
2878
|
)
|
|
2880
2879
|
] }) }) : /* @__PURE__ */ t.jsx(
|
|
2881
|
-
|
|
2880
|
+
vs,
|
|
2882
2881
|
{
|
|
2883
2882
|
className: "text-xs flex-1",
|
|
2884
2883
|
embedded: !0,
|
|
@@ -2923,7 +2922,7 @@ const da = (e) => Object.entries({
|
|
|
2923
2922
|
blob: e.data.blob
|
|
2924
2923
|
}
|
|
2925
2924
|
) : e.isPending ? /* @__PURE__ */ t.jsx("div", { className: "grid place-items-center h-full", children: /* @__PURE__ */ t.jsxs("div", { className: "flex flex-col gap-2 items-center mt-20", children: [
|
|
2926
|
-
/* @__PURE__ */ t.jsx(
|
|
2925
|
+
/* @__PURE__ */ t.jsx(bs, {}),
|
|
2927
2926
|
/* @__PURE__ */ t.jsxs(
|
|
2928
2927
|
"div",
|
|
2929
2928
|
{
|
|
@@ -2988,11 +2987,11 @@ const me = "__none", ga = ({
|
|
|
2988
2987
|
}) => {
|
|
2989
2988
|
const { selectedServer: x, setSelectedServer: h } = Vr(
|
|
2990
2989
|
n.map((p) => ({ url: p }))
|
|
2991
|
-
), [v, u] = E(!1), y = is(), { setRememberedIdentity: S, getRememberedIdentity:
|
|
2990
|
+
), [v, u] = E(!1), y = is(), { setRememberedIdentity: S, getRememberedIdentity: I } = ta(), [, N] = ps(), { skipLogin: j, setSkipLogin: O } = gn(), [Q, be] = E(!1), [Re, ee] = E(!1), g = k(void 0), C = Ps(S), T = k(null), { label: A } = Fr("meta+enter", () => {
|
|
2992
2991
|
T.current?.requestSubmit();
|
|
2993
2992
|
}), M = s.match(/\{([^}]+)\}/g)?.map((p) => p.slice(1, -1)) ?? [], L = [...i].sort(
|
|
2994
2993
|
(p, se) => M.indexOf(p.name) - M.indexOf(se.name)
|
|
2995
|
-
), { register: De, control: te, handleSubmit: je, watch: ct, setValue: Fe, ...ze } =
|
|
2994
|
+
), { register: De, control: te, handleSubmit: je, watch: ct, setValue: Fe, ...ze } = ws({
|
|
2996
2995
|
defaultValues: {
|
|
2997
2996
|
body: c,
|
|
2998
2997
|
bodyMode: "text",
|
|
@@ -3013,7 +3012,7 @@ const me = "__none", ga = ({
|
|
|
3013
3012
|
value: p.defaultValue ?? "",
|
|
3014
3013
|
active: p.defaultActive ?? !1
|
|
3015
3014
|
})) : [{ name: "", value: "", active: !1 }],
|
|
3016
|
-
identity:
|
|
3015
|
+
identity: I([
|
|
3017
3016
|
me,
|
|
3018
3017
|
...y.data?.map((p) => p.id) ?? []
|
|
3019
3018
|
])
|
|
@@ -3025,7 +3024,7 @@ const me = "__none", ga = ({
|
|
|
3025
3024
|
G(() => {
|
|
3026
3025
|
ne && C.current(ne);
|
|
3027
3026
|
}, [C, ne]);
|
|
3028
|
-
const J =
|
|
3027
|
+
const J = Ss({
|
|
3029
3028
|
gcTime: 0,
|
|
3030
3029
|
mutationFn: async (p) => {
|
|
3031
3030
|
const se = performance.now(), Ve = new window.Headers(
|
|
@@ -3121,7 +3120,7 @@ const me = "__none", ga = ({
|
|
|
3121
3120
|
const p = setTimeout(() => Nn(dt), 100);
|
|
3122
3121
|
return () => clearTimeout(p);
|
|
3123
3122
|
}, [dt]);
|
|
3124
|
-
const { isFinished: Sn, progress: wn } =
|
|
3123
|
+
const { isFinished: Sn, progress: wn } = js({ isAnimating: Cn });
|
|
3125
3124
|
G(() => () => {
|
|
3126
3125
|
g.current?.abort();
|
|
3127
3126
|
}, []);
|
|
@@ -3140,9 +3139,9 @@ const me = "__none", ga = ({
|
|
|
3140
3139
|
}
|
|
3141
3140
|
) }), An = m && !j && !Q, $n = ["POST", "PUT", "PATCH", "DELETE"].includes(
|
|
3142
3141
|
a.toUpperCase()
|
|
3143
|
-
), [ut, Pn] =
|
|
3142
|
+
), [ut, Pn] = $s();
|
|
3144
3143
|
return /* @__PURE__ */ t.jsx(
|
|
3145
|
-
|
|
3144
|
+
Ts,
|
|
3146
3145
|
{
|
|
3147
3146
|
register: De,
|
|
3148
3147
|
control: te,
|
|
@@ -3150,7 +3149,7 @@ const me = "__none", ga = ({
|
|
|
3150
3149
|
watch: ct,
|
|
3151
3150
|
setValue: Fe,
|
|
3152
3151
|
...ze,
|
|
3153
|
-
children: /* @__PURE__ */ t.jsx(
|
|
3152
|
+
children: /* @__PURE__ */ t.jsx(Cs, { delayDuration: 150, children: /* @__PURE__ */ t.jsxs(
|
|
3154
3153
|
"form",
|
|
3155
3154
|
{
|
|
3156
3155
|
ref: T,
|
|
@@ -3272,7 +3271,7 @@ const me = "__none", ga = ({
|
|
|
3272
3271
|
fa,
|
|
3273
3272
|
{
|
|
3274
3273
|
queryMutation: J,
|
|
3275
|
-
showLongRunningWarning:
|
|
3274
|
+
showLongRunningWarning: Re,
|
|
3276
3275
|
isFinished: Sn,
|
|
3277
3276
|
progress: wn,
|
|
3278
3277
|
tip: /* @__PURE__ */ t.jsx("div", { className: "text-xs w-full", children: /* @__PURE__ */ t.jsxs("span", { className: "text-muted-foreground", children: [
|
|
@@ -3365,7 +3364,7 @@ const me = "__none", ga = ({
|
|
|
3365
3364
|
}))
|
|
3366
3365
|
}), xn = Vt(
|
|
3367
3366
|
void 0
|
|
3368
|
-
),
|
|
3367
|
+
), Za = xn.Provider, va = () => {
|
|
3369
3368
|
const e = hs(xn);
|
|
3370
3369
|
if (!e)
|
|
3371
3370
|
throw new Error("useOasConfig must be used within a OasConfigProvider");
|
|
@@ -3373,7 +3372,7 @@ const me = "__none", ga = ({
|
|
|
3373
3372
|
}, Qe = (e) => ({
|
|
3374
3373
|
path: e.routePath,
|
|
3375
3374
|
async lazy() {
|
|
3376
|
-
const { OasProvider: n } = await import("./OasProvider-
|
|
3375
|
+
const { OasProvider: n } = await import("./OasProvider-lMwTD76Y.js");
|
|
3377
3376
|
return {
|
|
3378
3377
|
element: /* @__PURE__ */ t.jsx(
|
|
3379
3378
|
n,
|
|
@@ -3394,7 +3393,7 @@ const me = "__none", ga = ({
|
|
|
3394
3393
|
}) => ({
|
|
3395
3394
|
path: e,
|
|
3396
3395
|
async lazy() {
|
|
3397
|
-
const { OperationList: a } = await import("./OperationList-
|
|
3396
|
+
const { OperationList: a } = await import("./OperationList-Bm76b4vl.js");
|
|
3398
3397
|
return { element: /* @__PURE__ */ t.jsx(a, { tag: n, untagged: s }) };
|
|
3399
3398
|
}
|
|
3400
3399
|
}), ba = ({
|
|
@@ -3413,10 +3412,10 @@ const me = "__none", ga = ({
|
|
|
3413
3412
|
}
|
|
3414
3413
|
}
|
|
3415
3414
|
) : r && c.tags.some((m) => m.slug === r) ? e(r) : null;
|
|
3416
|
-
},
|
|
3415
|
+
}, It = ({ path: e }) => ({
|
|
3417
3416
|
path: e,
|
|
3418
3417
|
async lazy() {
|
|
3419
|
-
const { OperationList: n } = await import("./OperationList-
|
|
3418
|
+
const { OperationList: n } = await import("./OperationList-Bm76b4vl.js");
|
|
3420
3419
|
return {
|
|
3421
3420
|
element: /* @__PURE__ */ t.jsx(
|
|
3422
3421
|
ba,
|
|
@@ -3437,7 +3436,7 @@ const me = "__none", ga = ({
|
|
|
3437
3436
|
{
|
|
3438
3437
|
path: V(e, "~schemas"),
|
|
3439
3438
|
lazy: async () => {
|
|
3440
|
-
const { SchemaList: n } = await import("./SchemaList-
|
|
3439
|
+
const { SchemaList: n } = await import("./SchemaList-DX4FPogg.js");
|
|
3441
3440
|
return { element: /* @__PURE__ */ t.jsx(n, {}) };
|
|
3442
3441
|
}
|
|
3443
3442
|
}
|
|
@@ -3483,7 +3482,7 @@ const me = "__none", ga = ({
|
|
|
3483
3482
|
version: c,
|
|
3484
3483
|
routePath: l,
|
|
3485
3484
|
routes: [
|
|
3486
|
-
|
|
3485
|
+
It({ path: `${l}/:tag?` }),
|
|
3487
3486
|
...Xe(l)
|
|
3488
3487
|
],
|
|
3489
3488
|
client: s,
|
|
@@ -3494,7 +3493,7 @@ const me = "__none", ga = ({
|
|
|
3494
3493
|
basePath: e,
|
|
3495
3494
|
routePath: e,
|
|
3496
3495
|
routes: [
|
|
3497
|
-
|
|
3496
|
+
It({ path: `${e}/:tag?` }),
|
|
3498
3497
|
...Xe(e)
|
|
3499
3498
|
],
|
|
3500
3499
|
client: s,
|
|
@@ -3524,7 +3523,7 @@ const me = "__none", ga = ({
|
|
|
3524
3523
|
}
|
|
3525
3524
|
}
|
|
3526
3525
|
}
|
|
3527
|
-
`), lt = "~endpoints",
|
|
3526
|
+
`), lt = "~endpoints", Ya = (e) => {
|
|
3528
3527
|
const n = V(e.path), s = new Gs(e);
|
|
3529
3528
|
return {
|
|
3530
3529
|
getHead: () => {
|
|
@@ -3614,14 +3613,14 @@ const me = "__none", ga = ({
|
|
|
3614
3613
|
}
|
|
3615
3614
|
),
|
|
3616
3615
|
...Array.from(h.entries()).filter(([N]) => !u.has(N)).map(([, N]) => N)
|
|
3617
|
-
],
|
|
3616
|
+
], I = x.schema.tags.find(
|
|
3618
3617
|
(N) => !N.name
|
|
3619
3618
|
)?.operations;
|
|
3620
|
-
return
|
|
3619
|
+
return I && I.length > 0 && S.push(
|
|
3621
3620
|
Et({
|
|
3622
3621
|
label: S.length === 0 ? "Endpoints" : "Other endpoints",
|
|
3623
3622
|
path: V(n, i, lt),
|
|
3624
|
-
operations:
|
|
3623
|
+
operations: I,
|
|
3625
3624
|
collapsed: !e.options?.expandAllTags
|
|
3626
3625
|
})
|
|
3627
3626
|
), x.schema.components?.schemas?.length && S.push({
|
|
@@ -3638,9 +3637,9 @@ const me = "__none", ga = ({
|
|
|
3638
3637
|
};
|
|
3639
3638
|
export {
|
|
3640
3639
|
B as C,
|
|
3641
|
-
|
|
3640
|
+
Xa as G,
|
|
3642
3641
|
sr as L,
|
|
3643
|
-
|
|
3642
|
+
Za as O,
|
|
3644
3643
|
xa as P,
|
|
3645
3644
|
Xs as Q,
|
|
3646
3645
|
on as S,
|
|
@@ -3654,7 +3653,7 @@ export {
|
|
|
3654
3653
|
fn as f,
|
|
3655
3654
|
vn as g,
|
|
3656
3655
|
na as h,
|
|
3657
|
-
|
|
3656
|
+
Ka as i,
|
|
3658
3657
|
qe as j,
|
|
3659
3658
|
an as k,
|
|
3660
3659
|
rt as l,
|
|
@@ -3667,10 +3666,10 @@ export {
|
|
|
3667
3666
|
F as s,
|
|
3668
3667
|
Pt as t,
|
|
3669
3668
|
va as u,
|
|
3670
|
-
|
|
3669
|
+
Wa as v,
|
|
3671
3670
|
rr as w,
|
|
3672
3671
|
Qs as x,
|
|
3673
3672
|
bn as y,
|
|
3674
|
-
|
|
3673
|
+
Ya as z
|
|
3675
3674
|
};
|
|
3676
|
-
//# sourceMappingURL=index-
|
|
3675
|
+
//# sourceMappingURL=index-jI2Fjpy-.js.map
|