zudoku 0.0.0-fb7d300 → 0.0.0-fc5c03b
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/client.d.ts +7 -0
- package/dist/app/entry.client.d.ts +1 -0
- package/dist/app/entry.client.js +13 -0
- package/dist/app/entry.client.js.map +1 -1
- package/dist/app/entry.server.d.ts +1 -0
- package/dist/app/entry.server.js +1 -0
- package/dist/app/entry.server.js.map +1 -1
- package/dist/app/main.js +2 -1
- package/dist/app/main.js.map +1 -1
- package/dist/app/sentry.d.ts +3 -0
- package/dist/app/sentry.js +19 -0
- package/dist/app/sentry.js.map +1 -0
- package/dist/app/tailwind.d.ts +2 -1
- package/dist/app/tailwind.js +64 -52
- package/dist/app/tailwind.js.map +1 -1
- package/dist/cli/cli.js +0 -2
- package/dist/cli/cli.js.map +1 -1
- package/dist/cli/common/logger.js +9 -0
- package/dist/cli/common/logger.js.map +1 -1
- package/dist/cli/common/outdated.js +2 -1
- package/dist/cli/common/outdated.js.map +1 -1
- package/dist/config/common.d.ts +8 -0
- package/dist/config/common.js +2 -0
- package/dist/config/common.js.map +1 -0
- package/dist/config/config.d.ts +3 -2
- package/dist/config/loader.d.ts +20 -0
- package/dist/config/loader.js +154 -0
- package/dist/config/loader.js.map +1 -0
- package/dist/config/validators/InputSidebarSchema.d.ts +14 -13
- package/dist/config/validators/InputSidebarSchema.js.map +1 -1
- package/dist/config/validators/common.d.ts +4911 -0
- package/dist/config/validators/common.js +276 -0
- package/dist/config/validators/common.js.map +1 -0
- package/dist/config/validators/icon-types.d.ts +1 -0
- package/dist/config/validators/icon-types.js +2 -0
- package/dist/config/validators/icon-types.js.map +1 -0
- package/dist/config/validators/validate.d.ts +777 -521
- package/dist/config/validators/validate.js +9 -228
- package/dist/config/validators/validate.js.map +1 -1
- package/dist/lib/authentication/providers/openid.js +7 -2
- package/dist/lib/authentication/providers/openid.js.map +1 -1
- package/dist/lib/components/Heading.d.ts +4 -4
- package/dist/lib/components/Heading.js +1 -1
- package/dist/lib/components/Heading.js.map +1 -1
- package/dist/lib/components/Layout.js +3 -2
- package/dist/lib/components/Layout.js.map +1 -1
- package/dist/lib/components/Markdown.js +1 -1
- package/dist/lib/components/Markdown.js.map +1 -1
- package/dist/lib/components/MobileTopNavigation.js +1 -1
- package/dist/lib/components/MobileTopNavigation.js.map +1 -1
- package/dist/lib/components/ReactMarkdown.d.ts +29 -0
- package/dist/lib/components/ReactMarkdown.js +182 -0
- package/dist/lib/components/ReactMarkdown.js.map +1 -0
- package/dist/lib/components/Search.d.ts +3 -1
- package/dist/lib/components/Search.js +3 -3
- package/dist/lib/components/Search.js.map +1 -1
- package/dist/lib/components/SyntaxHighlight.js +0 -4
- package/dist/lib/components/SyntaxHighlight.js.map +1 -1
- package/dist/lib/components/TopNavigation.d.ts +1 -1
- package/dist/lib/components/navigation/Sidebar.d.ts +3 -1
- package/dist/lib/components/navigation/Sidebar.js +2 -2
- package/dist/lib/components/navigation/Sidebar.js.map +1 -1
- package/dist/lib/components/navigation/SidebarCategory.d.ts +2 -2
- package/dist/lib/components/navigation/SidebarCategory.js +3 -4
- package/dist/lib/components/navigation/SidebarCategory.js.map +1 -1
- package/dist/lib/components/navigation/SidebarItem.d.ts +2 -4
- package/dist/lib/components/navigation/SidebarItem.js +5 -10
- package/dist/lib/components/navigation/SidebarItem.js.map +1 -1
- package/dist/lib/components/navigation/SidebarWrapper.js +1 -1
- package/dist/lib/components/navigation/SidebarWrapper.js.map +1 -1
- package/dist/lib/core/ZudokuContext.d.ts +1 -1
- package/dist/lib/oas/graphql/index.js +4 -1
- package/dist/lib/oas/graphql/index.js.map +1 -1
- package/dist/lib/oas/parser/upgrade/index.d.ts +2 -2
- package/dist/lib/oas/parser/upgrade/index.js +3 -20
- package/dist/lib/oas/parser/upgrade/index.js.map +1 -1
- package/dist/lib/plugins/api-catalog/Catalog.d.ts +6 -0
- package/dist/lib/plugins/api-catalog/Catalog.js +29 -0
- package/dist/lib/plugins/api-catalog/Catalog.js.map +1 -0
- package/dist/lib/plugins/api-catalog/index.d.ts +23 -0
- package/dist/lib/plugins/api-catalog/index.js +15 -0
- package/dist/lib/plugins/api-catalog/index.js.map +1 -0
- package/dist/lib/plugins/markdown/MdxPage.d.ts +9 -1
- package/dist/lib/plugins/markdown/MdxPage.js +15 -2
- package/dist/lib/plugins/markdown/MdxPage.js.map +1 -1
- package/dist/lib/plugins/markdown/index.d.ts +2 -1
- package/dist/lib/plugins/markdown/index.js +1 -1
- package/dist/lib/plugins/markdown/index.js.map +1 -1
- package/dist/lib/plugins/markdown/resolver.js.map +1 -1
- package/dist/lib/plugins/openapi/OperationList.js +47 -2
- package/dist/lib/plugins/openapi/OperationList.js.map +1 -1
- package/dist/lib/plugins/openapi/client/GraphQLClient.js +12 -0
- package/dist/lib/plugins/openapi/client/GraphQLClient.js.map +1 -1
- package/dist/lib/plugins/openapi/client/useCreateQuery.d.ts +1 -1
- package/dist/lib/plugins/openapi/client/useCreateQuery.js +4 -2
- package/dist/lib/plugins/openapi/client/useCreateQuery.js.map +1 -1
- package/dist/lib/plugins/openapi/graphql/gql.d.ts +1 -1
- package/dist/lib/plugins/openapi/graphql/gql.js +1 -1
- package/dist/lib/plugins/openapi/graphql/gql.js.map +1 -1
- package/dist/lib/plugins/openapi/graphql/graphql.d.ts +2 -0
- package/dist/lib/plugins/openapi/graphql/graphql.js +1 -0
- package/dist/lib/plugins/openapi/graphql/graphql.js.map +1 -1
- package/dist/lib/plugins/openapi/interfaces.d.ts +1 -1
- package/dist/lib/plugins/openapi/playground/PathParams.js +1 -1
- package/dist/lib/plugins/openapi/playground/PathParams.js.map +1 -1
- package/dist/lib/plugins/openapi/post-processors/removeExtensions.d.ts +6 -0
- package/dist/lib/plugins/openapi/post-processors/removeExtensions.js +14 -0
- package/dist/lib/plugins/openapi/post-processors/removeExtensions.js.map +1 -0
- package/dist/lib/plugins/openapi/post-processors/removeExtensions.test.d.ts +1 -0
- package/dist/lib/plugins/openapi/post-processors/removeExtensions.test.js +125 -0
- package/dist/lib/plugins/openapi/post-processors/removeExtensions.test.js.map +1 -0
- package/dist/lib/plugins/openapi/post-processors/removePaths.d.ts +11 -0
- package/dist/lib/plugins/openapi/post-processors/removePaths.js +33 -0
- package/dist/lib/plugins/openapi/post-processors/removePaths.js.map +1 -0
- package/dist/lib/plugins/openapi/post-processors/removePaths.test.d.ts +1 -0
- package/dist/lib/plugins/openapi/post-processors/removePaths.test.js +104 -0
- package/dist/lib/plugins/openapi/post-processors/removePaths.test.js.map +1 -0
- package/dist/lib/plugins/openapi/post-processors/traverse.d.ts +1 -0
- package/dist/lib/plugins/openapi/post-processors/traverse.js +2 -0
- package/dist/lib/plugins/openapi/post-processors/traverse.js.map +1 -0
- package/dist/lib/plugins/redirect/index.d.ts +1 -1
- package/dist/lib/ui/Button.d.ts +1 -1
- package/dist/lib/ui/Command.d.ts +1 -1
- package/dist/lib/util/MdxComponents.d.ts +2 -3
- package/dist/lib/util/MdxComponents.js.map +1 -1
- package/dist/lib/util/traverse.d.ts +2 -0
- package/dist/lib/util/traverse.js +18 -0
- package/dist/lib/util/traverse.js.map +1 -0
- package/dist/vite/build.js +15 -3
- package/dist/vite/build.js.map +1 -1
- package/dist/vite/config.d.ts +6 -4
- package/dist/vite/config.js +54 -15
- package/dist/vite/config.js.map +1 -1
- package/dist/vite/config.test.js +7 -5
- package/dist/vite/config.test.js.map +1 -1
- package/dist/vite/dev-server.js +12 -3
- package/dist/vite/dev-server.js.map +1 -1
- package/dist/vite/output.d.ts +1 -1
- package/dist/vite/output.js +39 -10
- package/dist/vite/output.js.map +1 -1
- package/dist/vite/plugin-api.js +67 -20
- package/dist/vite/plugin-api.js.map +1 -1
- package/dist/vite/plugin-component.js +15 -19
- package/dist/vite/plugin-component.js.map +1 -1
- package/dist/vite/plugin-config-reload.d.ts +1 -2
- package/dist/vite/plugin-config-reload.js.map +1 -1
- package/dist/vite/plugin-config.js +20 -0
- package/dist/vite/plugin-config.js.map +1 -1
- package/dist/vite/plugin-docs.test.js +15 -23
- package/dist/vite/plugin-docs.test.js.map +1 -1
- package/dist/vite/plugin-mdx.js +58 -4
- package/dist/vite/plugin-mdx.js.map +1 -1
- package/dist/vite/{plugin-custom-css.d.ts → plugin-theme-css.d.ts} +2 -2
- package/dist/vite/{plugin-custom-css.js → plugin-theme-css.js} +10 -3
- package/dist/vite/plugin-theme-css.js.map +1 -0
- package/dist/vite/plugin.d.ts +1 -2
- package/dist/vite/plugin.js +2 -2
- package/dist/vite/plugin.js.map +1 -1
- package/dist/vite/prerender.d.ts +2 -1
- package/dist/vite/prerender.js +2 -2
- package/dist/vite/prerender.js.map +1 -1
- package/dist/vite/sitemap.d.ts +1 -1
- package/dist/zuplo/env.d.ts +6 -0
- package/dist/zuplo/env.js +9 -0
- package/dist/zuplo/env.js.map +1 -0
- package/dist/zuplo/with-zuplo.d.ts +3 -0
- package/dist/zuplo/with-zuplo.js +28 -0
- package/dist/zuplo/with-zuplo.js.map +1 -0
- package/lib/AnchorLink-BR0MvI7n.js +35 -0
- package/lib/AnchorLink-BR0MvI7n.js.map +1 -0
- package/lib/{Markdown-ievDDhFT.js → Markdown-CRsmPPfY.js} +13084 -13096
- package/lib/Markdown-CRsmPPfY.js.map +1 -0
- package/lib/MdxPage-Wp8QU0-q.js +188 -0
- package/lib/MdxPage-Wp8QU0-q.js.map +1 -0
- package/lib/{OperationList-BwBl1xrD.js → OperationList-u8xHU9-b.js} +1031 -1016
- package/lib/OperationList-u8xHU9-b.js.map +1 -0
- package/lib/{SlotletProvider-DyomlzGx.js → SlotletProvider-BgvYIPQe.js} +2 -2
- package/lib/{SlotletProvider-DyomlzGx.js.map → SlotletProvider-BgvYIPQe.js.map} +1 -1
- package/lib/{SyntaxHighlight-DkLOsjHS.js → SyntaxHighlight-C31iouiO.js} +1 -3
- package/lib/{SyntaxHighlight-DkLOsjHS.js.map → SyntaxHighlight-C31iouiO.js.map} +1 -1
- package/lib/assets/{worker-CPsGZsve.js → worker-C_2va8B8.js} +8 -9
- package/lib/assets/worker-C_2va8B8.js.map +1 -0
- package/lib/{createServer-DK-g7kbB.js → createServer-BCAHdrpE.js} +4461 -5248
- package/lib/createServer-BCAHdrpE.js.map +1 -0
- package/lib/{index-DNxQ_rCt.js → index-CmdLGbbk.js} +53 -47
- package/lib/index-CmdLGbbk.js.map +1 -0
- package/lib/{AnchorLink-CDlhr8gL.js → index.esm-Bm8pj-bc.js} +223 -254
- package/lib/index.esm-Bm8pj-bc.js.map +1 -0
- package/lib/object_hash-CvlLgU-M.js +785 -0
- package/lib/object_hash-CvlLgU-M.js.map +1 -0
- package/lib/post-processors/removeExtensions.js +11 -0
- package/lib/post-processors/removeExtensions.js.map +1 -0
- package/lib/post-processors/removePaths.js +28 -0
- package/lib/post-processors/removePaths.js.map +1 -0
- package/lib/post-processors/traverse.js +12 -0
- package/lib/post-processors/traverse.js.map +1 -0
- package/lib/ui/Drawer.js +79 -79
- package/lib/ui/Drawer.js.map +1 -1
- package/lib/zudoku.auth-openid.js +42 -37
- package/lib/zudoku.auth-openid.js.map +1 -1
- package/lib/zudoku.components.js +386 -367
- package/lib/zudoku.components.js.map +1 -1
- package/lib/zudoku.openapi-worker.js +1 -1
- package/lib/zudoku.plugin-api-catalog.js +121 -0
- package/lib/zudoku.plugin-api-catalog.js.map +1 -0
- package/lib/zudoku.plugin-api-keys.js +1 -1
- package/lib/zudoku.plugin-custom-pages.js +1 -1
- package/lib/zudoku.plugin-markdown.js +15 -14
- package/lib/zudoku.plugin-markdown.js.map +1 -1
- package/lib/zudoku.plugin-openapi.js +1 -1
- package/lib/zudoku.plugin-redirect.js.map +1 -1
- package/package.json +32 -9
- package/src/app/entry.client.tsx +15 -0
- package/src/app/entry.server.tsx +1 -0
- package/src/app/main.tsx +5 -1
- package/src/app/sentry.ts +24 -0
- package/src/app/tailwind.ts +67 -52
- package/src/lib/authentication/providers/openid.tsx +7 -2
- package/src/lib/components/Heading.tsx +13 -13
- package/src/lib/components/Layout.tsx +8 -3
- package/src/lib/components/Markdown.tsx +1 -1
- package/src/lib/components/MobileTopNavigation.tsx +18 -18
- package/src/lib/components/ReactMarkdown.license.txt +21 -0
- package/src/lib/components/ReactMarkdown.tsx +264 -0
- package/src/lib/components/Search.tsx +3 -3
- package/src/lib/components/SyntaxHighlight.tsx +0 -4
- package/src/lib/components/TopNavigation.tsx +1 -1
- package/src/lib/components/navigation/Sidebar.tsx +18 -8
- package/src/lib/components/navigation/SidebarCategory.tsx +10 -9
- package/src/lib/components/navigation/SidebarItem.tsx +10 -13
- package/src/lib/components/navigation/SidebarWrapper.tsx +1 -1
- package/src/lib/core/ZudokuContext.ts +1 -1
- package/src/lib/oas/graphql/index.ts +4 -1
- package/src/lib/oas/parser/upgrade/index.ts +4 -27
- package/src/lib/plugins/api-catalog/Catalog.tsx +124 -0
- package/src/lib/plugins/api-catalog/index.tsx +50 -0
- package/src/lib/plugins/markdown/MdxPage.tsx +27 -1
- package/src/lib/plugins/markdown/index.tsx +3 -1
- package/src/lib/plugins/markdown/resolver.ts +2 -4
- package/src/lib/plugins/openapi/OperationList.tsx +64 -3
- package/src/lib/plugins/openapi/client/GraphQLClient.tsx +17 -0
- package/src/lib/plugins/openapi/client/useCreateQuery.ts +5 -2
- package/src/lib/plugins/openapi/graphql/gql.ts +2 -2
- package/src/lib/plugins/openapi/graphql/graphql.ts +3 -0
- package/src/lib/plugins/openapi/interfaces.ts +1 -1
- package/src/lib/plugins/openapi/playground/PathParams.tsx +1 -0
- package/src/lib/plugins/openapi/post-processors/removeExtensions.test.ts +144 -0
- package/src/lib/plugins/openapi/post-processors/removeExtensions.ts +24 -0
- package/src/lib/plugins/openapi/post-processors/removePaths.test.ts +126 -0
- package/src/lib/plugins/openapi/post-processors/removePaths.ts +55 -0
- package/src/lib/plugins/openapi/post-processors/traverse.ts +1 -0
- package/src/lib/plugins/redirect/index.tsx +1 -1
- package/src/lib/util/MdxComponents.tsx +2 -5
- package/src/lib/util/traverse.ts +25 -0
- package/dist/vite/plugin-custom-css.js.map +0 -1
- package/lib/AnchorLink-CDlhr8gL.js.map +0 -1
- package/lib/Markdown-ievDDhFT.js.map +0 -1
- package/lib/MdxPage-Bwn-VSsH.js +0 -174
- package/lib/MdxPage-Bwn-VSsH.js.map +0 -1
- package/lib/OperationList-BwBl1xrD.js.map +0 -1
- package/lib/assets/worker-CPsGZsve.js.map +0 -1
- package/lib/createServer-DK-g7kbB.js.map +0 -1
- package/lib/index-DNxQ_rCt.js.map +0 -1
- package/lib/prism-markup-templating-DZrrEs0A.js +0 -62
- package/lib/prism-markup-templating-DZrrEs0A.js.map +0 -1
- package/lib/prism-php.min-o7FpoMP_.js +0 -11
- package/lib/prism-php.min-o7FpoMP_.js.map +0 -1
|
@@ -23,7 +23,7 @@ import { S as ve } from "./Spinner-3cQDBVGr.js";
|
|
|
23
23
|
import { Callout as tt } from "./ui/Callout.js";
|
|
24
24
|
import { Card as ae, CardHeader as nt, CardTitle as st, CardContent as rt } from "./ui/Card.js";
|
|
25
25
|
import { Tabs as je, TabsList as be, TabsTrigger as A, TabsContent as V } from "./ui/Tabs.js";
|
|
26
|
-
import { z as at, S as ot } from "./SyntaxHighlight-
|
|
26
|
+
import { z as at, S as ot } from "./SyntaxHighlight-C31iouiO.js";
|
|
27
27
|
import { c as P } from "./cn-BmFQLtkS.js";
|
|
28
28
|
import { Input as H } from "./ui/Input.js";
|
|
29
29
|
import { Slot as it } from "@radix-ui/react-slot";
|
|
@@ -116,6 +116,7 @@ const ct = new L(
|
|
|
116
116
|
query AllOperations($input: JSON!, $type: SchemaType!) {
|
|
117
117
|
schema(input: $input, type: $type) {
|
|
118
118
|
description
|
|
119
|
+
summary
|
|
119
120
|
title
|
|
120
121
|
url
|
|
121
122
|
version
|
|
@@ -220,7 +221,7 @@ const ct = new L(
|
|
|
220
221
|
`), ht = {
|
|
221
222
|
"\n query ServersQuery($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n url\n servers {\n url\n }\n }\n }\n": dt,
|
|
222
223
|
"\n fragment OperationsFragment on OperationItem {\n slug\n summary\n method\n description\n operationId\n contentTypes\n path\n parameters {\n name\n in\n description\n required\n schema\n style\n examples {\n name\n description\n externalValue\n value\n summary\n }\n }\n requestBody {\n content {\n mediaType\n encoding {\n name\n }\n examples {\n name\n description\n externalValue\n value\n summary\n }\n schema\n }\n description\n required\n }\n responses {\n statusCode\n links\n description\n content {\n examples {\n name\n description\n externalValue\n value\n summary\n }\n mediaType\n encoding {\n name\n }\n schema\n }\n }\n }\n": ct,
|
|
223
|
-
"\n query AllOperations($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n description\n title\n url\n version\n tags {\n name\n description\n operations {\n slug\n ...OperationsFragment\n }\n }\n }\n }\n": ut,
|
|
224
|
+
"\n query AllOperations($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n description\n summary\n title\n url\n version\n tags {\n name\n description\n operations {\n slug\n ...OperationsFragment\n }\n }\n }\n }\n": ut,
|
|
224
225
|
"\n query getServerQuery($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n url\n servers {\n url\n }\n }\n }\n": mt,
|
|
225
226
|
"\n query GetCategories($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n url\n tags {\n __typename\n name\n operations {\n __typename\n slug\n deprecated\n method\n summary\n operationId\n path\n }\n }\n }\n }\n": pt
|
|
226
227
|
};
|
|
@@ -363,7 +364,9 @@ function Pt(t, n) {
|
|
|
363
364
|
return $t(r, bt) + Ct(Nt, s);
|
|
364
365
|
}
|
|
365
366
|
let Y, ee;
|
|
366
|
-
const
|
|
367
|
+
const Ot = async (t) => {
|
|
368
|
+
t && typeof t == "object" && "type" in t && t.type === "file" && "input" in t && typeof t.input == "function" && (t.input = await t.input());
|
|
369
|
+
}, te = (t) => {
|
|
367
370
|
var n;
|
|
368
371
|
if ((n = t.errors) != null && n[0])
|
|
369
372
|
throw new Ge(t.errors[0].message, {
|
|
@@ -371,15 +374,17 @@ const te = (t) => {
|
|
|
371
374
|
});
|
|
372
375
|
};
|
|
373
376
|
var T, O, N, Q;
|
|
374
|
-
class
|
|
377
|
+
class _t {
|
|
375
378
|
constructor(n) {
|
|
376
379
|
R(this, T);
|
|
377
380
|
R(this, O, /* @__PURE__ */ new Map());
|
|
378
381
|
R(this, N);
|
|
379
|
-
R(this, Q, () => import("./createServer-
|
|
382
|
+
R(this, Q, () => import("./createServer-BCAHdrpE.js").then((n) => n.createServer()));
|
|
380
383
|
W(this, "fetch", async (n, ...[s]) => {
|
|
381
384
|
var l;
|
|
382
|
-
const r = (l = n.match(/query (\w+)/)) == null ? void 0 : l[1]
|
|
385
|
+
const r = (l = n.match(/query (\w+)/)) == null ? void 0 : l[1];
|
|
386
|
+
await Ot(s);
|
|
387
|
+
const o = JSON.stringify({ query: n, variables: s, operationName: r });
|
|
383
388
|
switch (x(this, T)) {
|
|
384
389
|
case "remote": {
|
|
385
390
|
const i = await fetch(this.config.server, {
|
|
@@ -435,12 +440,12 @@ class Ot {
|
|
|
435
440
|
T = new WeakMap(), O = new WeakMap(), N = new WeakMap(), Q = new WeakMap();
|
|
436
441
|
const ne = (t) => Math.abs(
|
|
437
442
|
isNaN(parseInt(t)) ? t.toLowerCase().charCodeAt(0) - 96 : isNaN(parseInt(t)) ? 0 : parseInt(t)
|
|
438
|
-
), se = (t) => t.length > 1 ? parseInt(t.split("").reduce((n, s) => `${ne(n) + ne(s)}`)) : ne(t),
|
|
443
|
+
), se = (t) => t.length > 1 ? parseInt(t.split("").reduce((n, s) => `${ne(n) + ne(s)}`)) : ne(t), kt = (t, n = {}) => {
|
|
439
444
|
const s = (3 * se(t) + 2 * se(t) + se(t)) % 360, { saturation: r = 75, lightness: o = 60 } = n;
|
|
440
445
|
return `${s}deg ${r}% ${o}%`;
|
|
441
|
-
}, re = "data-linked-param",
|
|
446
|
+
}, re = "data-linked-param", It = (t) => {
|
|
442
447
|
const { resolvedTheme: n } = at();
|
|
443
|
-
return
|
|
448
|
+
return kt(
|
|
444
449
|
t,
|
|
445
450
|
n === "light" ? { saturation: 85, lightness: 50 } : void 0
|
|
446
451
|
);
|
|
@@ -453,7 +458,7 @@ const ne = (t) => Math.abs(
|
|
|
453
458
|
children: l,
|
|
454
459
|
onClick: i
|
|
455
460
|
}) => {
|
|
456
|
-
const c = Ce(null), u = t.replace(/[{}]/g, ""), d = o == null ? void 0 : o.replace(/[{}]/g, ""), h =
|
|
461
|
+
const c = Ce(null), u = t.replace(/[{}]/g, ""), d = o == null ? void 0 : o.replace(/[{}]/g, ""), h = It(u), g = `hsl(${h} / ${r})`, j = `hsl(${h} / ${s})`;
|
|
457
462
|
return $e(() => {
|
|
458
463
|
if (!d || !c.current) return;
|
|
459
464
|
const b = () => {
|
|
@@ -487,7 +492,7 @@ const ne = (t) => Math.abs(
|
|
|
487
492
|
children: l ?? t
|
|
488
493
|
}
|
|
489
494
|
);
|
|
490
|
-
},
|
|
495
|
+
}, qt = (t, n, s) => {
|
|
491
496
|
const r = n.replace(/(:\w+|\{\w+})/g, (l) => {
|
|
492
497
|
var u;
|
|
493
498
|
const i = l.replace(/[:{}]/g, "");
|
|
@@ -499,7 +504,7 @@ const ne = (t) => Math.abs(
|
|
|
499
504
|
return s.queryParams.filter((l) => l.active).forEach((l) => {
|
|
500
505
|
o.searchParams.set(l.name, l.value);
|
|
501
506
|
}), o;
|
|
502
|
-
},
|
|
507
|
+
}, Rt = ({
|
|
503
508
|
control: t,
|
|
504
509
|
register: n
|
|
505
510
|
}) => {
|
|
@@ -560,7 +565,7 @@ const ne = (t) => Math.abs(
|
|
|
560
565
|
}
|
|
561
566
|
) })
|
|
562
567
|
] });
|
|
563
|
-
},
|
|
568
|
+
}, Mt = ({
|
|
564
569
|
control: t
|
|
565
570
|
}) => {
|
|
566
571
|
const { fields: n } = oe({
|
|
@@ -601,6 +606,7 @@ const ne = (t) => Math.abs(
|
|
|
601
606
|
H,
|
|
602
607
|
{
|
|
603
608
|
...o,
|
|
609
|
+
required: !0,
|
|
604
610
|
placeholder: "Enter value",
|
|
605
611
|
className: "border-0 shadow-none ring-0 font-mono text-xs"
|
|
606
612
|
}
|
|
@@ -632,7 +638,7 @@ const ne = (t) => Math.abs(
|
|
|
632
638
|
)
|
|
633
639
|
] }) })
|
|
634
640
|
] }, s.id)) }) });
|
|
635
|
-
},
|
|
641
|
+
}, At = (t, n) => {
|
|
636
642
|
const s = he.forwardRef(({ className: r, asChild: o, ...l }, i) => {
|
|
637
643
|
const c = o ? it : t;
|
|
638
644
|
return he.createElement(c, {
|
|
@@ -642,10 +648,10 @@ const ne = (t) => Math.abs(
|
|
|
642
648
|
});
|
|
643
649
|
});
|
|
644
650
|
return s.displayName = `VariantComponent(${t})`, s;
|
|
645
|
-
},
|
|
651
|
+
}, Vt = At(
|
|
646
652
|
"input",
|
|
647
653
|
"px-2 bg-transparent h-6 font-mono text-xs m-2"
|
|
648
|
-
),
|
|
654
|
+
), zt = ({
|
|
649
655
|
control: t,
|
|
650
656
|
queryParams: n
|
|
651
657
|
}) => {
|
|
@@ -677,7 +683,7 @@ const ne = (t) => Math.abs(
|
|
|
677
683
|
$,
|
|
678
684
|
{
|
|
679
685
|
control: t,
|
|
680
|
-
render: ({ field: d }) => /* @__PURE__ */ e.jsx(
|
|
686
|
+
render: ({ field: d }) => /* @__PURE__ */ e.jsx(Vt, { asChild: !0, children: /* @__PURE__ */ e.jsxs(
|
|
681
687
|
"label",
|
|
682
688
|
{
|
|
683
689
|
className: "flex items-center cursor-pointer",
|
|
@@ -736,7 +742,7 @@ const ne = (t) => Math.abs(
|
|
|
736
742
|
)
|
|
737
743
|
] }) })
|
|
738
744
|
] }, c.id)) }) }) });
|
|
739
|
-
},
|
|
745
|
+
}, Ft = ({
|
|
740
746
|
value: t,
|
|
741
747
|
onChange: n,
|
|
742
748
|
className: s,
|
|
@@ -766,7 +772,7 @@ const ne = (t) => Math.abs(
|
|
|
766
772
|
children: /* @__PURE__ */ e.jsx(Ve, { size: 14 })
|
|
767
773
|
}
|
|
768
774
|
)
|
|
769
|
-
] }),
|
|
775
|
+
] }), Lt = (t) => {
|
|
770
776
|
var s;
|
|
771
777
|
return (s = Object.entries({
|
|
772
778
|
"application/json": "json",
|
|
@@ -779,20 +785,20 @@ const ne = (t) => Math.abs(
|
|
|
779
785
|
}).find(
|
|
780
786
|
([r]) => t.includes(r)
|
|
781
787
|
)) == null ? void 0 : s[1];
|
|
782
|
-
}, Lt = (t) => {
|
|
783
|
-
const n = t.get("Content-Type") || "";
|
|
784
|
-
return Ft(n);
|
|
785
788
|
}, Dt = (t) => {
|
|
789
|
+
const n = t.get("Content-Type") || "";
|
|
790
|
+
return Lt(n);
|
|
791
|
+
}, Gt = (t) => {
|
|
786
792
|
try {
|
|
787
793
|
return JSON.stringify(JSON.parse(t), null, 2);
|
|
788
794
|
} catch {
|
|
789
795
|
return null;
|
|
790
796
|
}
|
|
791
|
-
},
|
|
797
|
+
}, Bt = ({
|
|
792
798
|
body: t = "",
|
|
793
799
|
headers: n
|
|
794
800
|
}) => {
|
|
795
|
-
const s =
|
|
801
|
+
const s = Dt(n), r = Gt(t), o = r || t, [l, i] = Te(
|
|
796
802
|
r ? "formatted" : "raw"
|
|
797
803
|
);
|
|
798
804
|
return /* @__PURE__ */ e.jsxs("div", { className: "flex flex-col gap-2", children: [
|
|
@@ -806,7 +812,7 @@ const ne = (t) => Math.abs(
|
|
|
806
812
|
}
|
|
807
813
|
) }),
|
|
808
814
|
r && /* @__PURE__ */ e.jsx("div", { className: "flex justify-end", children: /* @__PURE__ */ e.jsx(
|
|
809
|
-
|
|
815
|
+
Ft,
|
|
810
816
|
{
|
|
811
817
|
value: l,
|
|
812
818
|
onChange: (c) => i(c.target.value),
|
|
@@ -817,7 +823,7 @@ const ne = (t) => Math.abs(
|
|
|
817
823
|
}
|
|
818
824
|
) })
|
|
819
825
|
] });
|
|
820
|
-
}, J = "__none",
|
|
826
|
+
}, J = "__none", Jt = {
|
|
821
827
|
200: "OK",
|
|
822
828
|
201: "Created",
|
|
823
829
|
202: "Accepted",
|
|
@@ -828,7 +834,7 @@ const ne = (t) => Math.abs(
|
|
|
828
834
|
404: "Not Found",
|
|
829
835
|
405: "Method Not Allowed",
|
|
830
836
|
500: "Internal Server Error"
|
|
831
|
-
},
|
|
837
|
+
}, Ht = ({
|
|
832
838
|
server: t,
|
|
833
839
|
servers: n,
|
|
834
840
|
url: s,
|
|
@@ -867,7 +873,7 @@ const ne = (t) => Math.abs(
|
|
|
867
873
|
const p = Ze({
|
|
868
874
|
mutationFn: async (a) => {
|
|
869
875
|
var I, q;
|
|
870
|
-
const f =
|
|
876
|
+
const f = qt(u ?? t, s, a), k = performance.now(), D = new Request(f, {
|
|
871
877
|
method: r.toUpperCase(),
|
|
872
878
|
headers: Object.fromEntries(
|
|
873
879
|
a.headers.filter((m) => m.name).map((m) => [m.name, m.value])
|
|
@@ -997,15 +1003,15 @@ const ne = (t) => Math.abs(
|
|
|
997
1003
|
)
|
|
998
1004
|
] })
|
|
999
1005
|
] }),
|
|
1000
|
-
/* @__PURE__ */ e.jsx(V, { value: "headers", children: /* @__PURE__ */ e.jsx(
|
|
1006
|
+
/* @__PURE__ */ e.jsx(V, { value: "headers", children: /* @__PURE__ */ e.jsx(Rt, { control: j, register: g }) }),
|
|
1001
1007
|
/* @__PURE__ */ e.jsxs(V, { value: "parameters", children: [
|
|
1002
1008
|
i.length > 0 && /* @__PURE__ */ e.jsxs("div", { className: "flex flex-col gap-4 my-4", children: [
|
|
1003
1009
|
/* @__PURE__ */ e.jsx("span", { className: "font-semibold", children: "Path Parameters" }),
|
|
1004
|
-
/* @__PURE__ */ e.jsx(
|
|
1010
|
+
/* @__PURE__ */ e.jsx(Mt, { control: j })
|
|
1005
1011
|
] }),
|
|
1006
1012
|
l.length > 0 && /* @__PURE__ */ e.jsxs("div", { className: "flex flex-col gap-4 my-4", children: [
|
|
1007
1013
|
/* @__PURE__ */ e.jsx("span", { className: "font-semibold", children: "Query Parameters" }),
|
|
1008
|
-
/* @__PURE__ */ e.jsx(
|
|
1014
|
+
/* @__PURE__ */ e.jsx(zt, { control: j, queryParams: l })
|
|
1009
1015
|
] })
|
|
1010
1016
|
] }),
|
|
1011
1017
|
/* @__PURE__ */ e.jsx(V, { value: "body", children: /* @__PURE__ */ e.jsx(
|
|
@@ -1035,7 +1041,7 @@ const ne = (t) => Math.abs(
|
|
|
1035
1041
|
"Status: ",
|
|
1036
1042
|
p.data.status,
|
|
1037
1043
|
" ",
|
|
1038
|
-
|
|
1044
|
+
Jt[p.data.status] ?? ""
|
|
1039
1045
|
] }),
|
|
1040
1046
|
/* @__PURE__ */ e.jsxs("div", { children: [
|
|
1041
1047
|
"Time: ",
|
|
@@ -1054,7 +1060,7 @@ const ne = (t) => Math.abs(
|
|
|
1054
1060
|
/* @__PURE__ */ e.jsx(A, { value: "headers", children: U.length ? `Headers (${U.length})` : "No headers" })
|
|
1055
1061
|
] }),
|
|
1056
1062
|
/* @__PURE__ */ e.jsx(V, { value: "response", children: /* @__PURE__ */ e.jsx(
|
|
1057
|
-
|
|
1063
|
+
Bt,
|
|
1058
1064
|
{
|
|
1059
1065
|
headers: p.data.headers,
|
|
1060
1066
|
body: p.data.body
|
|
@@ -1079,7 +1085,7 @@ const ne = (t) => Math.abs(
|
|
|
1079
1085
|
] }) })
|
|
1080
1086
|
}
|
|
1081
1087
|
);
|
|
1082
|
-
},
|
|
1088
|
+
}, Qt = ({
|
|
1083
1089
|
className: t,
|
|
1084
1090
|
size: n = 16
|
|
1085
1091
|
}) => /* @__PURE__ */ e.jsx(
|
|
@@ -1100,12 +1106,12 @@ const ne = (t) => Math.abs(
|
|
|
1100
1106
|
}
|
|
1101
1107
|
)
|
|
1102
1108
|
}
|
|
1103
|
-
),
|
|
1109
|
+
), Ut = (t) => {
|
|
1104
1110
|
const [n, s] = Te(!1);
|
|
1105
1111
|
return /* @__PURE__ */ e.jsxs(He, { onOpenChange: (r) => s(r), children: [
|
|
1106
1112
|
/* @__PURE__ */ e.jsx(Qe, { asChild: !0, children: t.children ?? /* @__PURE__ */ e.jsxs("button", { className: "flex gap-1 items-center px-2 py-1 rounded-md bg-primary/80 hover:bg-primary transition text-primary-foreground text-xs", children: [
|
|
1107
1113
|
"Test",
|
|
1108
|
-
/* @__PURE__ */ e.jsx(
|
|
1114
|
+
/* @__PURE__ */ e.jsx(Qt, { className: "", size: 14 })
|
|
1109
1115
|
] }) }),
|
|
1110
1116
|
/* @__PURE__ */ e.jsxs(
|
|
1111
1117
|
Ue,
|
|
@@ -1114,7 +1120,7 @@ const ne = (t) => Math.abs(
|
|
|
1114
1120
|
"aria-describedby": void 0,
|
|
1115
1121
|
children: [
|
|
1116
1122
|
/* @__PURE__ */ e.jsx(Be, { children: /* @__PURE__ */ e.jsx(We, { children: "Playground" }) }),
|
|
1117
|
-
n && /* @__PURE__ */ e.jsx(
|
|
1123
|
+
n && /* @__PURE__ */ e.jsx(Ht, { ...t })
|
|
1118
1124
|
]
|
|
1119
1125
|
}
|
|
1120
1126
|
)
|
|
@@ -1138,7 +1144,7 @@ const ne = (t) => Math.abs(
|
|
|
1138
1144
|
}
|
|
1139
1145
|
}
|
|
1140
1146
|
}
|
|
1141
|
-
`),
|
|
1147
|
+
`), Wt = {
|
|
1142
1148
|
get: "green",
|
|
1143
1149
|
post: "blue",
|
|
1144
1150
|
put: "yellow",
|
|
@@ -1146,8 +1152,8 @@ const ne = (t) => Math.abs(
|
|
|
1146
1152
|
patch: "purple",
|
|
1147
1153
|
options: "gray",
|
|
1148
1154
|
head: "gray"
|
|
1149
|
-
},
|
|
1150
|
-
const n = Re(t.navigationId ?? "/reference"), s = new
|
|
1155
|
+
}, jn = (t) => {
|
|
1156
|
+
const n = Re(t.navigationId ?? "/reference"), s = new _t(t);
|
|
1151
1157
|
return {
|
|
1152
1158
|
getHead: () => {
|
|
1153
1159
|
if (t.type === "url" && !t.skipPreload)
|
|
@@ -1192,7 +1198,7 @@ const ne = (t) => Math.abs(
|
|
|
1192
1198
|
]
|
|
1193
1199
|
}
|
|
1194
1200
|
) : /* @__PURE__ */ e.jsx(
|
|
1195
|
-
|
|
1201
|
+
Ut,
|
|
1196
1202
|
{
|
|
1197
1203
|
url: i ?? "/",
|
|
1198
1204
|
method: l ?? "get",
|
|
@@ -1224,7 +1230,7 @@ const ne = (t) => Math.abs(
|
|
|
1224
1230
|
href: `#${c.slug}`,
|
|
1225
1231
|
badge: {
|
|
1226
1232
|
label: c.method,
|
|
1227
|
-
color:
|
|
1233
|
+
color: Wt[c.method.toLowerCase()]
|
|
1228
1234
|
}
|
|
1229
1235
|
}))
|
|
1230
1236
|
}));
|
|
@@ -1252,7 +1258,7 @@ const ne = (t) => Math.abs(
|
|
|
1252
1258
|
{
|
|
1253
1259
|
index: !0,
|
|
1254
1260
|
async lazy() {
|
|
1255
|
-
const { OperationList: r } = await import("./OperationList-
|
|
1261
|
+
const { OperationList: r } = await import("./OperationList-u8xHU9-b.js");
|
|
1256
1262
|
return { element: /* @__PURE__ */ e.jsx(r, {}) };
|
|
1257
1263
|
}
|
|
1258
1264
|
}
|
|
@@ -1265,9 +1271,9 @@ const ne = (t) => Math.abs(
|
|
|
1265
1271
|
};
|
|
1266
1272
|
export {
|
|
1267
1273
|
Pe as C,
|
|
1268
|
-
|
|
1269
|
-
|
|
1274
|
+
Ut as P,
|
|
1275
|
+
Ft as S,
|
|
1270
1276
|
ft as g,
|
|
1271
|
-
|
|
1277
|
+
jn as o
|
|
1272
1278
|
};
|
|
1273
|
-
//# sourceMappingURL=index-
|
|
1279
|
+
//# sourceMappingURL=index-CmdLGbbk.js.map
|