zudoku 0.47.2 → 0.48.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/ZuploBuildConfig.d.ts +4 -114
- package/dist/app/ZuploBuildConfig.js +1 -1
- package/dist/app/ZuploBuildConfig.js.map +1 -1
- package/dist/app/demo.js +4 -3
- package/dist/app/demo.js.map +1 -1
- package/dist/app/main.js +5 -5
- package/dist/app/main.js.map +1 -1
- package/dist/app/standalone.js +4 -3
- package/dist/app/standalone.js.map +1 -1
- package/dist/config/loader.js +1 -2
- package/dist/config/loader.js.map +1 -1
- package/dist/config/validators/BuildSchema.d.ts +20 -44
- package/dist/config/validators/BuildSchema.js +3 -14
- package/dist/config/validators/BuildSchema.js.map +1 -1
- package/dist/config/validators/InputNavigationSchema.d.ts +7217 -0
- package/dist/config/validators/InputNavigationSchema.js +74 -0
- package/dist/config/validators/InputNavigationSchema.js.map +1 -0
- package/dist/config/validators/InputNavigationSchema.test-d.d.ts +1 -0
- package/dist/config/validators/InputNavigationSchema.test-d.js +146 -0
- package/dist/config/validators/InputNavigationSchema.test-d.js.map +1 -0
- package/dist/config/validators/NavigationSchema.d.ts +44 -0
- package/dist/config/validators/NavigationSchema.js +95 -0
- package/dist/config/validators/NavigationSchema.js.map +1 -0
- package/dist/config/validators/icon-types.d.ts +2 -1
- package/dist/config/validators/icon-types.js +1775 -1
- package/dist/config/validators/icon-types.js.map +1 -1
- package/dist/config/validators/validate.d.ts +442 -5780
- package/dist/config/validators/validate.js +37 -55
- package/dist/config/validators/validate.js.map +1 -1
- package/dist/config/validators/validate.test.js +0 -2
- package/dist/config/validators/validate.test.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js.map +1 -1
- package/dist/lib/components/BuildCheck.js +1 -1
- package/dist/lib/components/BuildCheck.js.map +1 -1
- package/dist/lib/components/Header.js +10 -9
- package/dist/lib/components/Header.js.map +1 -1
- package/dist/lib/components/Heading.d.ts +6 -2
- package/dist/lib/components/Heading.js +2 -2
- package/dist/lib/components/Heading.js.map +1 -1
- package/dist/lib/components/Main.js +4 -4
- package/dist/lib/components/Main.js.map +1 -1
- package/dist/lib/components/MobileTopNavigation.js +5 -5
- package/dist/lib/components/MobileTopNavigation.js.map +1 -1
- package/dist/lib/components/PageProgress.d.ts +1 -0
- package/dist/lib/components/PageProgress.js +20 -0
- package/dist/lib/components/PageProgress.js.map +1 -0
- package/dist/lib/components/TopNavigation.d.ts +2 -3
- package/dist/lib/components/TopNavigation.js +45 -44
- package/dist/lib/components/TopNavigation.js.map +1 -1
- package/dist/lib/components/context/ZudokuContext.d.ts +3 -7
- package/dist/lib/components/context/ZudokuContext.js +44 -26
- package/dist/lib/components/context/ZudokuContext.js.map +1 -1
- package/dist/lib/components/navigation/Navigation.d.ts +5 -0
- package/dist/lib/components/navigation/Navigation.js +12 -0
- package/dist/lib/components/navigation/Navigation.js.map +1 -0
- package/dist/lib/components/navigation/{SidebarBadge.d.ts → NavigationBadge.d.ts} +1 -1
- package/dist/lib/components/navigation/{SidebarBadge.js → NavigationBadge.js} +2 -2
- package/dist/lib/components/navigation/NavigationBadge.js.map +1 -0
- package/dist/lib/components/navigation/NavigationCategory.d.ts +5 -0
- package/dist/lib/components/navigation/{SidebarCategory.js → NavigationCategory.js} +14 -12
- package/dist/lib/components/navigation/NavigationCategory.js.map +1 -0
- package/dist/lib/components/navigation/NavigationItem.d.ts +6 -0
- package/dist/lib/components/navigation/NavigationItem.js +47 -0
- package/dist/lib/components/navigation/NavigationItem.js.map +1 -0
- package/dist/lib/components/navigation/{SidebarWrapper.d.ts → NavigationWrapper.d.ts} +1 -1
- package/dist/lib/components/navigation/{SidebarWrapper.js → NavigationWrapper.js} +3 -3
- package/dist/lib/components/navigation/NavigationWrapper.js.map +1 -0
- package/dist/lib/components/navigation/utils.d.ts +7 -9
- package/dist/lib/components/navigation/utils.js +17 -17
- package/dist/lib/components/navigation/utils.js.map +1 -1
- package/dist/lib/core/ZudokuContext.d.ts +6 -8
- package/dist/lib/core/ZudokuContext.js +5 -7
- package/dist/lib/core/ZudokuContext.js.map +1 -1
- package/dist/lib/core/plugins.d.ts +2 -2
- package/dist/lib/hooks/useEvent.test.js +5 -3
- package/dist/lib/hooks/useEvent.test.js.map +1 -1
- package/dist/lib/plugins/api-catalog/Catalog.d.ts +1 -1
- package/dist/lib/plugins/api-catalog/index.d.ts +6 -6
- package/dist/lib/plugins/api-catalog/index.js +10 -10
- package/dist/lib/plugins/api-catalog/index.js.map +1 -1
- package/dist/lib/plugins/api-keys/SettingsApiKeys.js +4 -4
- package/dist/lib/plugins/api-keys/SettingsApiKeys.js.map +1 -1
- package/dist/lib/plugins/custom-pages/index.d.ts +3 -2
- package/dist/lib/plugins/custom-pages/index.js +15 -8
- package/dist/lib/plugins/custom-pages/index.js.map +1 -1
- package/dist/lib/plugins/markdown/MdxPage.js +6 -3
- 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 +9 -26
- package/dist/lib/plugins/markdown/index.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/OperationListItem.js +1 -1
- package/dist/lib/plugins/openapi/OperationListItem.js.map +1 -1
- package/dist/lib/plugins/openapi/SchemaList.js +1 -1
- package/dist/lib/plugins/openapi/SchemaList.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 +3 -3
- package/dist/lib/plugins/openapi/graphql/graphql.js +2 -2
- package/dist/lib/plugins/openapi/graphql/graphql.js.map +1 -1
- package/dist/lib/plugins/openapi/index.d.ts +3 -3
- package/dist/lib/plugins/openapi/index.js +9 -9
- package/dist/lib/plugins/openapi/index.js.map +1 -1
- package/dist/lib/plugins/openapi/interfaces.d.ts +3 -3
- package/dist/lib/plugins/openapi/util/createNavigationCategory.d.ts +9 -0
- package/dist/lib/plugins/openapi/util/{createSidebarCategory.js → createNavigationCategory.js} +5 -4
- package/dist/lib/plugins/openapi/util/createNavigationCategory.js.map +1 -0
- package/dist/lib/plugins/openapi/util/getRoutes.js +2 -2
- package/dist/lib/plugins/openapi/util/getRoutes.js.map +1 -1
- package/dist/lib/plugins/openapi/util/methodColorMap.d.ts +1 -1
- package/dist/lib/util/useScrollToAnchor.js +3 -3
- package/dist/lib/util/useScrollToAnchor.js.map +1 -1
- package/dist/vite/api/SchemaManager.d.ts +4 -4
- package/dist/vite/api/SchemaManager.js +19 -19
- package/dist/vite/api/SchemaManager.js.map +1 -1
- package/dist/vite/api/SchemaManager.test.js +4 -4
- package/dist/vite/api/SchemaManager.test.js.map +1 -1
- package/dist/vite/config.js +1 -0
- package/dist/vite/config.js.map +1 -1
- package/dist/vite/plugin-api.js +8 -8
- package/dist/vite/plugin-api.js.map +1 -1
- package/dist/vite/plugin-config-reload.js +2 -0
- package/dist/vite/plugin-config-reload.js.map +1 -1
- package/dist/vite/plugin-custom-pages.js +2 -2
- package/dist/vite/plugin-custom-pages.js.map +1 -1
- package/dist/vite/plugin-docs.js +61 -59
- package/dist/vite/plugin-docs.js.map +1 -1
- package/dist/vite/{plugin-sidebar.d.ts → plugin-navigation.d.ts} +1 -1
- package/dist/vite/{plugin-sidebar.js → plugin-navigation.js} +20 -19
- package/dist/vite/plugin-navigation.js.map +1 -0
- package/dist/vite/plugin.js +2 -2
- package/dist/vite/plugin.js.map +1 -1
- package/dist/vite/shadcn-registry.d.ts +4 -4
- package/lib/{Markdown-C5j8kKSX.js → Markdown-DCAIYXF5.js} +480 -475
- package/lib/Markdown-DCAIYXF5.js.map +1 -0
- package/lib/{MdxPage-CKTMf1cR.js → MdxPage-Cf9YXWoC.js} +30 -30
- package/lib/MdxPage-Cf9YXWoC.js.map +1 -0
- package/lib/OasProvider-JMVTfG6_.js +35 -0
- package/lib/OasProvider-JMVTfG6_.js.map +1 -0
- package/lib/{OperationList-BJAKaG5p.js → OperationList-m4tFCI4S.js} +8 -8
- package/lib/{OperationList-BJAKaG5p.js.map → OperationList-m4tFCI4S.js.map} +1 -1
- package/lib/{RouteGuard-B7GVW4oL.js → RouteGuard-gV7nvzi7.js} +2 -2
- package/lib/{RouteGuard-B7GVW4oL.js.map → RouteGuard-gV7nvzi7.js.map} +1 -1
- package/lib/{SchemaList-Dgc0A8x5.js → SchemaList-_wRy4aQ0.js} +20 -20
- package/lib/SchemaList-_wRy4aQ0.js.map +1 -0
- package/lib/{SchemaView-DVx-jFN4.js → SchemaView-CRl_cQYH.js} +3 -3
- package/lib/{SchemaView-DVx-jFN4.js.map → SchemaView-CRl_cQYH.js.map} +1 -1
- package/lib/{SignUp-CRIKdWt9.js → SignUp-B6w5AwHM.js} +2 -2
- package/lib/{SignUp-CRIKdWt9.js.map → SignUp-B6w5AwHM.js.map} +1 -1
- package/lib/{Slot-ITby_hMb.js → Slot-BkYrj_uC.js} +4 -4
- package/lib/{Slot-ITby_hMb.js.map → Slot-BkYrj_uC.js.map} +1 -1
- package/lib/{SyntaxHighlight-CqKHkyEy.js → SyntaxHighlight-CH9OUJre.js} +2 -2
- package/lib/{SyntaxHighlight-CqKHkyEy.js.map → SyntaxHighlight-CH9OUJre.js.map} +1 -1
- package/lib/{Toc-Csq3UNtW.js → Toc-DRxqEsFc.js} +2 -2
- package/lib/{Toc-Csq3UNtW.js.map → Toc-DRxqEsFc.js.map} +1 -1
- package/lib/{circular-BP4OrHFK.js → circular-wJaV4vh_.js} +2 -2
- package/lib/{circular-BP4OrHFK.js.map → circular-wJaV4vh_.js.map} +1 -1
- package/lib/{createServer-zu4cDiPe.js → createServer-DN5AJLcN.js} +3 -3
- package/lib/{createServer-zu4cDiPe.js.map → createServer-DN5AJLcN.js.map} +1 -1
- package/lib/{errors-CPPSp5F4.js → errors-D_5vKvUq.js} +3 -3
- package/lib/{errors-CPPSp5F4.js.map → errors-D_5vKvUq.js.map} +1 -1
- package/lib/hook-CHXroBFt.js +1503 -0
- package/lib/hook-CHXroBFt.js.map +1 -0
- package/lib/{index-jWXxqkni.js → index-DJVaRmzI.js} +63 -62
- package/lib/index-DJVaRmzI.js.map +1 -0
- package/lib/{mutation-C1XCQTQL.js → mutation-BpcyTgWI.js} +2 -2
- package/lib/{mutation-C1XCQTQL.js.map → mutation-BpcyTgWI.js.map} +1 -1
- package/lib/ui/SyntaxHighlight.js +2 -2
- package/lib/{useMutation-BKvPttRn.js → useMutation-N4ockVKi.js} +3 -3
- package/lib/{useMutation-BKvPttRn.js.map → useMutation-N4ockVKi.js.map} +1 -1
- package/lib/zudoku.auth-auth0.js +1 -1
- package/lib/zudoku.auth-azureb2c.js +2 -2
- package/lib/zudoku.auth-clerk.js +2 -2
- package/lib/zudoku.auth-openid.js +2 -2
- package/lib/zudoku.components.js +2756 -3424
- package/lib/zudoku.components.js.map +1 -1
- package/lib/zudoku.hooks.js +2 -2
- package/lib/zudoku.plugin-api-catalog.js +44 -44
- package/lib/zudoku.plugin-api-catalog.js.map +1 -1
- package/lib/zudoku.plugin-api-keys.js +42 -39
- package/lib/zudoku.plugin-api-keys.js.map +1 -1
- package/lib/zudoku.plugin-custom-pages.js +22 -16
- package/lib/zudoku.plugin-custom-pages.js.map +1 -1
- package/lib/zudoku.plugin-markdown.js +20 -69
- package/lib/zudoku.plugin-markdown.js.map +1 -1
- package/lib/zudoku.plugin-openapi.js +5 -5
- package/lib/zudoku.plugin-search-pagefind.js +2 -2
- package/lib/zudoku.plugins.js.map +1 -1
- package/package.json +12 -9
- package/src/app/ZuploBuildConfig.ts +1 -1
- package/src/app/demo.tsx +4 -3
- package/src/app/main.css +5 -0
- package/src/app/main.tsx +6 -5
- package/src/app/standalone.tsx +4 -3
- package/src/lib/components/BuildCheck.tsx +1 -1
- package/src/lib/components/Header.tsx +5 -3
- package/src/lib/components/Heading.tsx +7 -3
- package/src/lib/components/Main.tsx +8 -8
- package/src/lib/components/MobileTopNavigation.tsx +12 -11
- package/src/lib/components/PageProgress.tsx +28 -0
- package/src/lib/components/TopNavigation.tsx +57 -66
- package/src/lib/components/context/ZudokuContext.ts +50 -32
- package/src/lib/components/navigation/{Sidebar.tsx → Navigation.tsx} +18 -16
- package/src/lib/components/navigation/{SidebarBadge.tsx → NavigationBadge.tsx} +1 -1
- package/src/lib/components/navigation/{SidebarCategory.tsx → NavigationCategory.tsx} +16 -14
- package/src/lib/components/navigation/{SidebarItem.tsx → NavigationItem.tsx} +23 -17
- package/src/lib/components/navigation/{SidebarWrapper.tsx → NavigationWrapper.tsx} +2 -2
- package/src/lib/components/navigation/utils.ts +27 -28
- package/src/lib/core/ZudokuContext.ts +9 -15
- package/src/lib/core/plugins.ts +2 -2
- package/src/lib/hooks/useEvent.test.tsx +7 -5
- package/src/lib/plugins/api-catalog/Catalog.tsx +1 -1
- package/src/lib/plugins/api-catalog/index.tsx +19 -19
- package/src/lib/plugins/api-keys/SettingsApiKeys.tsx +6 -5
- package/src/lib/plugins/custom-pages/index.tsx +20 -11
- package/src/lib/plugins/markdown/MdxPage.tsx +6 -3
- package/src/lib/plugins/markdown/index.tsx +19 -40
- package/src/lib/plugins/openapi/OperationList.tsx +1 -1
- package/src/lib/plugins/openapi/OperationListItem.tsx +1 -1
- package/src/lib/plugins/openapi/SchemaList.tsx +2 -2
- package/src/lib/plugins/openapi/graphql/gql.ts +5 -5
- package/src/lib/plugins/openapi/graphql/graphql.ts +6 -6
- package/src/lib/plugins/openapi/index.tsx +11 -11
- package/src/lib/plugins/openapi/interfaces.ts +3 -3
- package/src/lib/plugins/openapi/util/{createSidebarCategory.tsx → createNavigationCategory.tsx} +6 -5
- package/src/lib/plugins/openapi/util/getRoutes.tsx +2 -2
- package/src/lib/plugins/openapi/util/methodColorMap.tsx +1 -1
- package/src/lib/util/useScrollToAnchor.ts +3 -3
- package/dist/config/validators/InputSidebarSchema.d.ts +0 -220
- package/dist/config/validators/InputSidebarSchema.js +0 -63
- package/dist/config/validators/InputSidebarSchema.js.map +0 -1
- package/dist/config/validators/SidebarSchema.d.ts +0 -46
- package/dist/config/validators/SidebarSchema.js +0 -118
- package/dist/config/validators/SidebarSchema.js.map +0 -1
- package/dist/lib/components/navigation/Sidebar.d.ts +0 -5
- package/dist/lib/components/navigation/Sidebar.js +0 -10
- package/dist/lib/components/navigation/Sidebar.js.map +0 -1
- package/dist/lib/components/navigation/SidebarBadge.js.map +0 -1
- package/dist/lib/components/navigation/SidebarCategory.d.ts +0 -5
- package/dist/lib/components/navigation/SidebarCategory.js.map +0 -1
- package/dist/lib/components/navigation/SidebarItem.d.ts +0 -6
- package/dist/lib/components/navigation/SidebarItem.js +0 -44
- package/dist/lib/components/navigation/SidebarItem.js.map +0 -1
- package/dist/lib/components/navigation/SidebarWrapper.js.map +0 -1
- package/dist/lib/plugins/markdown/resolver.d.ts +0 -32
- package/dist/lib/plugins/markdown/resolver.js +0 -46
- package/dist/lib/plugins/markdown/resolver.js.map +0 -1
- package/dist/lib/plugins/openapi/util/createSidebarCategory.d.ts +0 -9
- package/dist/lib/plugins/openapi/util/createSidebarCategory.js.map +0 -1
- package/dist/vite/plugin-sidebar.js.map +0 -1
- package/lib/Markdown-C5j8kKSX.js.map +0 -1
- package/lib/MdxPage-CKTMf1cR.js.map +0 -1
- package/lib/OasProvider-_GzmsbMg.js +0 -33
- package/lib/OasProvider-_GzmsbMg.js.map +0 -1
- package/lib/SchemaList-Dgc0A8x5.js.map +0 -1
- package/lib/hook-7wZANGJP.js +0 -1483
- package/lib/hook-7wZANGJP.js.map +0 -1
- package/lib/index-jWXxqkni.js.map +0 -1
- package/lib/joinPath-B7kNnUX4.js +0 -8
- package/lib/joinPath-B7kNnUX4.js.map +0 -1
- package/src/lib/plugins/markdown/resolver.ts +0 -59
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { j as n } from "./jsx-runtime-C5mzlN2N.js";
|
|
2
2
|
import { ChevronDown as xt, ChevronUp as pn, Check as gt, ChevronRightIcon as Q, CheckIcon as hn, DotIcon as fn, ChevronDownIcon as xn, XIcon as gn, Circle as yn, DownloadIcon as vn, LogInIcon as bn, CirclePlayIcon as jn } from "lucide-react";
|
|
3
3
|
import { r as Nn, c as wn, u as Cn, N as Sn, h as Tn, m as Ke } from "./chunk-DQRVZFIR-BblmKnHy.js";
|
|
4
|
-
import {
|
|
4
|
+
import { M as Ce, O as Se, P as yt, l as An, T as On, j as L, d as Rn, i as $n } from "./hook-CHXroBFt.js";
|
|
5
5
|
import { Button as J } from "./ui/Button.js";
|
|
6
|
-
import { Z as
|
|
6
|
+
import { Z as Pn } from "./invariant-DAFpPywt.js";
|
|
7
7
|
import * as N from "react";
|
|
8
|
-
import { createContext as vt, use as
|
|
8
|
+
import { createContext as vt, use as Ln, Fragment as D, useRef as W, useEffect as M, useMemo as En, useState as E, useCallback as In, useTransition as kn, useContext as Dn } from "react";
|
|
9
9
|
import { VisuallyHidden as Bn } from "@radix-ui/react-visually-hidden";
|
|
10
10
|
import { D as Te, a as Ae, c as Oe, d as bt, f as jt, e as Fn } from "./Dialog-BxpuVLh9.js";
|
|
11
11
|
import { u as Vn } from "./react-nprogress.esm-C2MPXjiJ.js";
|
|
12
|
-
import { u as qn } from "./useMutation-
|
|
12
|
+
import { u as qn } from "./useMutation-N4ockVKi.js";
|
|
13
13
|
import { u as Re, a as $e, C as B, b as zn, F as _n } from "./index.esm-Cp4wkyud.js";
|
|
14
14
|
import { B as F } from "./Button-BE9IVkWV.js";
|
|
15
15
|
import * as C from "@radix-ui/react-select";
|
|
@@ -23,7 +23,7 @@ import * as re from "@radix-ui/react-popover";
|
|
|
23
23
|
import { PopoverAnchor as Gn } from "@radix-ui/react-popover";
|
|
24
24
|
import { P as Hn } from "./index-CrcNWbel.js";
|
|
25
25
|
import { g as Qn, h as Jn, C as Wn, b as Xn, f as Zn } from "./Callout-CoVxYafP.js";
|
|
26
|
-
import { Input as
|
|
26
|
+
import { Input as Pe } from "./ui/Input.js";
|
|
27
27
|
import { Slot as Yn } from "@radix-ui/react-slot";
|
|
28
28
|
import * as Nt from "@radix-ui/react-label";
|
|
29
29
|
import { c as Kn } from "./index-DI5SPFK9.js";
|
|
@@ -33,12 +33,12 @@ import { Callout as ts } from "./ui/Callout.js";
|
|
|
33
33
|
import { Card as wt, CardHeader as ns, CardTitle as ss, CardContent as rs } from "./ui/Card.js";
|
|
34
34
|
import { Tabs as as, TabsList as os, TabsTrigger as et, TabsContent as tt } from "./ui/Tabs.js";
|
|
35
35
|
import { Collapsible as nt, CollapsibleTrigger as st, CollapsibleContent as rt } from "./ui/Collapsible.js";
|
|
36
|
-
import * as
|
|
37
|
-
import { S as is } from "./SyntaxHighlight-
|
|
36
|
+
import * as Le from "@radix-ui/react-collapsible";
|
|
37
|
+
import { S as is } from "./SyntaxHighlight-CH9OUJre.js";
|
|
38
38
|
let pe;
|
|
39
39
|
const ls = (e) => {
|
|
40
40
|
if (e.errors?.[0])
|
|
41
|
-
throw new
|
|
41
|
+
throw new Pn(e.errors[0].message, {
|
|
42
42
|
developerHint: "Check your configuration value `apis.type` and `apis.input` in the Zudoku config."
|
|
43
43
|
});
|
|
44
44
|
};
|
|
@@ -46,7 +46,7 @@ class cs {
|
|
|
46
46
|
constructor(t) {
|
|
47
47
|
this.config = t;
|
|
48
48
|
}
|
|
49
|
-
#e = async () => (pe || (pe = import("./createServer-
|
|
49
|
+
#e = async () => (pe || (pe = import("./createServer-DN5AJLcN.js").then(
|
|
50
50
|
(t) => t.createServer(this.config)
|
|
51
51
|
)), pe);
|
|
52
52
|
#t = async (t) => this.config.server ? fetch(this.config.server, t) : (await this.#e()).fetch("http://localhost/graphql", t);
|
|
@@ -609,7 +609,7 @@ function ws(e, t) {
|
|
|
609
609
|
if (Z(o) || o === 45)
|
|
610
610
|
return Ss(e, r, o);
|
|
611
611
|
if (At(o))
|
|
612
|
-
return
|
|
612
|
+
return Ps(e, r);
|
|
613
613
|
throw R(
|
|
614
614
|
e.source,
|
|
615
615
|
r,
|
|
@@ -868,7 +868,7 @@ function $s(e, t) {
|
|
|
868
868
|
}
|
|
869
869
|
throw R(e.source, o, "Unterminated string.");
|
|
870
870
|
}
|
|
871
|
-
function
|
|
871
|
+
function Ps(e, t) {
|
|
872
872
|
const s = e.source.body, a = s.length;
|
|
873
873
|
let r = t + 1;
|
|
874
874
|
for (; r < a; ) {
|
|
@@ -886,8 +886,8 @@ function Ls(e, t) {
|
|
|
886
886
|
s.slice(t, r)
|
|
887
887
|
);
|
|
888
888
|
}
|
|
889
|
-
const
|
|
890
|
-
function
|
|
889
|
+
const Ls = 10, $t = 2;
|
|
890
|
+
function Pt(e) {
|
|
891
891
|
return ce(e, []);
|
|
892
892
|
}
|
|
893
893
|
function ce(e, t) {
|
|
@@ -930,7 +930,7 @@ function Ds(e, t) {
|
|
|
930
930
|
return "[]";
|
|
931
931
|
if (t.length > $t)
|
|
932
932
|
return "[Array]";
|
|
933
|
-
const s = Math.min(
|
|
933
|
+
const s = Math.min(Ls, e.length), a = e.length - s, r = [];
|
|
934
934
|
for (let o = 0; o < s; ++o)
|
|
935
935
|
r.push(ce(e[o], t));
|
|
936
936
|
return a === 1 ? r.push("... 1 more item") : a > 1 && r.push(`... ${a} more items`), "[" + r.join(", ") + "]";
|
|
@@ -960,7 +960,7 @@ process.env.NODE_ENV === "production", Vs = (
|
|
|
960
960
|
Symbol.toStringTag in t ? t[Symbol.toStringTag] : (a = t.constructor) === null || a === void 0 ? void 0 : a.name
|
|
961
961
|
);
|
|
962
962
|
if (r === o) {
|
|
963
|
-
const i =
|
|
963
|
+
const i = Pt(t);
|
|
964
964
|
throw new Error(`Cannot use ${r} "${i}" from another module or realm.
|
|
965
965
|
|
|
966
966
|
Ensure that there is only one instance of "graphql" in the node_modules
|
|
@@ -978,12 +978,12 @@ spurious results.`);
|
|
|
978
978
|
return !1;
|
|
979
979
|
}
|
|
980
980
|
);
|
|
981
|
-
class
|
|
981
|
+
class Lt {
|
|
982
982
|
constructor(t, s = "GraphQL request", a = {
|
|
983
983
|
line: 1,
|
|
984
984
|
column: 1
|
|
985
985
|
}) {
|
|
986
|
-
typeof t == "string" || he(!1, `Body must be a string. Received: ${
|
|
986
|
+
typeof t == "string" || he(!1, `Body must be a string. Received: ${Pt(t)}.`), this.body = t, this.name = s, this.locationOffset = a, this.locationOffset.line > 0 || he(
|
|
987
987
|
!1,
|
|
988
988
|
"line in locationOffset is 1-indexed and must be positive."
|
|
989
989
|
), this.locationOffset.column > 0 || he(
|
|
@@ -996,10 +996,10 @@ class Pt {
|
|
|
996
996
|
}
|
|
997
997
|
}
|
|
998
998
|
function qs(e) {
|
|
999
|
-
return Vs(e,
|
|
999
|
+
return Vs(e, Lt);
|
|
1000
1000
|
}
|
|
1001
1001
|
function zs(e) {
|
|
1002
|
-
const t = qs(e) ? e : new
|
|
1002
|
+
const t = qs(e) ? e : new Lt(e), s = t.body, a = new js(t);
|
|
1003
1003
|
let r = "", o = !1;
|
|
1004
1004
|
for (; a.advance().kind !== h.EOF; ) {
|
|
1005
1005
|
const i = a.token, c = i.kind, l = !Ns(i.kind);
|
|
@@ -1020,7 +1020,7 @@ const Et = vt(
|
|
|
1020
1020
|
queryFn: () => e.fetch(t, s),
|
|
1021
1021
|
queryKey: [zs(t.toString()), s]
|
|
1022
1022
|
}), _s = (e, ...[t]) => {
|
|
1023
|
-
const s =
|
|
1023
|
+
const s = Ln(Et);
|
|
1024
1024
|
if (s === void 0)
|
|
1025
1025
|
throw new Error("useGraphQL must be used within a GraphQLProvider");
|
|
1026
1026
|
return It(s, e, ...t === void 0 ? [] : [t]);
|
|
@@ -1236,7 +1236,7 @@ const Us = new q(
|
|
|
1236
1236
|
}
|
|
1237
1237
|
}
|
|
1238
1238
|
`), Ws = new q(`
|
|
1239
|
-
query
|
|
1239
|
+
query GetNavigationOperations($input: JSON!, $type: SchemaType!) {
|
|
1240
1240
|
schema(input: $input, type: $type) {
|
|
1241
1241
|
tags {
|
|
1242
1242
|
slug
|
|
@@ -1264,7 +1264,7 @@ const Us = new q(
|
|
|
1264
1264
|
"\n query OperationsForTag(\n $input: JSON!\n $type: SchemaType!\n $tag: String\n $untagged: Boolean\n ) {\n schema(input: $input, type: $type) {\n servers {\n url\n }\n description\n summary\n title\n url\n version\n tag(slug: $tag, untagged: $untagged) {\n name\n description\n operations {\n slug\n ...OperationsFragment\n }\n next {\n name\n slug\n }\n prev {\n name\n slug\n }\n }\n }\n }\n": Hs,
|
|
1265
1265
|
"\n query GetSchemas($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n title\n description\n summary\n components {\n schemas {\n name\n schema\n extensions\n }\n }\n }\n }\n": Qs,
|
|
1266
1266
|
"\n query getServerQuery($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n url\n servers {\n url\n }\n }\n }\n": Js,
|
|
1267
|
-
"\n query
|
|
1267
|
+
"\n query GetNavigationOperations($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n tags {\n slug\n name\n extensions\n operations {\n summary\n slug\n method\n operationId\n path\n }\n }\n components {\n schemas {\n __typename\n }\n }\n }\n }\n": Ws
|
|
1268
1268
|
};
|
|
1269
1269
|
function Zs(e) {
|
|
1270
1270
|
return Xs[e] ?? {};
|
|
@@ -1931,7 +1931,7 @@ const gr = ({
|
|
|
1931
1931
|
className: "border-0 shadow-none focus-visible:ring-0 bg-transparent hover:bg-transparent text-xs font-mono"
|
|
1932
1932
|
}
|
|
1933
1933
|
) : /* @__PURE__ */ n.jsx(
|
|
1934
|
-
|
|
1934
|
+
Pe,
|
|
1935
1935
|
{
|
|
1936
1936
|
placeholder: "Value",
|
|
1937
1937
|
className: "w-full border-0 shadow-none text-xs font-mono focus-visible:ring-0",
|
|
@@ -2098,7 +2098,7 @@ const Qt = ({
|
|
|
2098
2098
|
control: e,
|
|
2099
2099
|
name: `pathParams.${o}.value`,
|
|
2100
2100
|
render: ({ field: i }) => /* @__PURE__ */ n.jsx(
|
|
2101
|
-
|
|
2101
|
+
Pe,
|
|
2102
2102
|
{
|
|
2103
2103
|
...i,
|
|
2104
2104
|
required: !0,
|
|
@@ -2187,7 +2187,7 @@ const Qt = ({
|
|
|
2187
2187
|
className: "border-0 shadow-none focus-visible:ring-0 bg-transparent hover:bg-transparent text-xs font-mono"
|
|
2188
2188
|
}
|
|
2189
2189
|
) : /* @__PURE__ */ n.jsx(
|
|
2190
|
-
|
|
2190
|
+
Pe,
|
|
2191
2191
|
{
|
|
2192
2192
|
...l,
|
|
2193
2193
|
onChange: (u) => {
|
|
@@ -2231,7 +2231,7 @@ const Qt = ({
|
|
|
2231
2231
|
a && /* @__PURE__ */ n.jsx(F, { type: "button", variant: "default", onClick: a, children: "Login" })
|
|
2232
2232
|
] })
|
|
2233
2233
|
] })
|
|
2234
|
-
] }) }),
|
|
2234
|
+
] }) }), P = {
|
|
2235
2235
|
green: "text-green-600",
|
|
2236
2236
|
blue: "text-sky-600",
|
|
2237
2237
|
yellow: "text-yellow-600",
|
|
@@ -2240,15 +2240,15 @@ const Qt = ({
|
|
|
2240
2240
|
indigo: "text-indigo-600",
|
|
2241
2241
|
gray: "text-gray-600"
|
|
2242
2242
|
}, Ar = {
|
|
2243
|
-
get:
|
|
2244
|
-
post:
|
|
2245
|
-
put:
|
|
2246
|
-
delete:
|
|
2247
|
-
patch:
|
|
2248
|
-
options:
|
|
2249
|
-
head:
|
|
2250
|
-
trace:
|
|
2251
|
-
}, Or = (e) => Ar[e.toLocaleLowerCase()] ??
|
|
2243
|
+
get: P.green,
|
|
2244
|
+
post: P.blue,
|
|
2245
|
+
put: P.yellow,
|
|
2246
|
+
delete: P.red,
|
|
2247
|
+
patch: P.purple,
|
|
2248
|
+
options: P.indigo,
|
|
2249
|
+
head: P.gray,
|
|
2250
|
+
trace: P.gray
|
|
2251
|
+
}, Or = (e) => Ar[e.toLocaleLowerCase()] ?? P.gray, Rr = ({
|
|
2252
2252
|
method: e,
|
|
2253
2253
|
url: t,
|
|
2254
2254
|
headers: s,
|
|
@@ -2289,7 +2289,7 @@ const Qt = ({
|
|
|
2289
2289
|
) }) })
|
|
2290
2290
|
] })
|
|
2291
2291
|
] })
|
|
2292
|
-
] }), dt =
|
|
2292
|
+
] }), dt = Le.Root, ut = Le.CollapsibleTrigger, mt = Le.CollapsibleContent, ve = (e = 0) => {
|
|
2293
2293
|
if (e === 0)
|
|
2294
2294
|
return "0 B";
|
|
2295
2295
|
const t = Math.floor(Math.log(e) / Math.log(1e3));
|
|
@@ -2315,10 +2315,10 @@ function $r(e, t = "") {
|
|
|
2315
2315
|
return s.push("}"), s.join(`
|
|
2316
2316
|
`);
|
|
2317
2317
|
}
|
|
2318
|
-
function
|
|
2318
|
+
function Pr(e) {
|
|
2319
2319
|
return { lines: [`type GeneratedType = ${Ve(e)};`] };
|
|
2320
2320
|
}
|
|
2321
|
-
const
|
|
2321
|
+
const Lr = {
|
|
2322
2322
|
200: "OK",
|
|
2323
2323
|
201: "Created",
|
|
2324
2324
|
202: "Accepted",
|
|
@@ -2377,7 +2377,7 @@ const Pr = {
|
|
|
2377
2377
|
u ? "formatted" : "raw"
|
|
2378
2378
|
), p = An({
|
|
2379
2379
|
queryKey: ["types", g],
|
|
2380
|
-
queryFn: async () =>
|
|
2380
|
+
queryFn: async () => Pr(JSON.parse(g)),
|
|
2381
2381
|
enabled: f === "types" && !i
|
|
2382
2382
|
}), y = () => {
|
|
2383
2383
|
if (l && c) {
|
|
@@ -2455,7 +2455,7 @@ const Pr = {
|
|
|
2455
2455
|
" ",
|
|
2456
2456
|
s,
|
|
2457
2457
|
" ",
|
|
2458
|
-
|
|
2458
|
+
Lr[s] ?? ""
|
|
2459
2459
|
] }),
|
|
2460
2460
|
/* @__PURE__ */ n.jsxs("div", { children: [
|
|
2461
2461
|
/* @__PURE__ */ n.jsx("span", { className: "text-muted-foreground", children: "Time" }),
|
|
@@ -2922,7 +2922,8 @@ const Pr = {
|
|
|
2922
2922
|
label: e,
|
|
2923
2923
|
link: {
|
|
2924
2924
|
type: "doc",
|
|
2925
|
-
|
|
2925
|
+
path: t,
|
|
2926
|
+
file: t,
|
|
2926
2927
|
label: e
|
|
2927
2928
|
},
|
|
2928
2929
|
collapsible: a,
|
|
@@ -2930,7 +2931,7 @@ const Pr = {
|
|
|
2930
2931
|
items: s.map((o) => ({
|
|
2931
2932
|
type: "link",
|
|
2932
2933
|
label: o.summary ?? o.path,
|
|
2933
|
-
|
|
2934
|
+
to: `${t}#${o.slug}`,
|
|
2934
2935
|
badge: {
|
|
2935
2936
|
label: o.method,
|
|
2936
2937
|
color: Ur[o.method.toLowerCase()],
|
|
@@ -2947,7 +2948,7 @@ const Pr = {
|
|
|
2947
2948
|
}, ft = (e) => ({
|
|
2948
2949
|
path: e.routePath,
|
|
2949
2950
|
async lazy() {
|
|
2950
|
-
const { OasProvider: t } = await import("./OasProvider-
|
|
2951
|
+
const { OasProvider: t } = await import("./OasProvider-JMVTfG6_.js");
|
|
2951
2952
|
return {
|
|
2952
2953
|
element: /* @__PURE__ */ n.jsx(
|
|
2953
2954
|
t,
|
|
@@ -2968,7 +2969,7 @@ const Pr = {
|
|
|
2968
2969
|
}) => ({
|
|
2969
2970
|
path: e,
|
|
2970
2971
|
async lazy() {
|
|
2971
|
-
const { OperationList: a } = await import("./OperationList-
|
|
2972
|
+
const { OperationList: a } = await import("./OperationList-m4tFCI4S.js");
|
|
2972
2973
|
return { element: /* @__PURE__ */ n.jsx(a, { tag: t, untagged: s }) };
|
|
2973
2974
|
}
|
|
2974
2975
|
}), Gr = ({
|
|
@@ -2990,7 +2991,7 @@ const Pr = {
|
|
|
2990
2991
|
}, Hr = ({ path: e }) => ({
|
|
2991
2992
|
path: e,
|
|
2992
2993
|
async lazy() {
|
|
2993
|
-
const { OperationList: t } = await import("./OperationList-
|
|
2994
|
+
const { OperationList: t } = await import("./OperationList-m4tFCI4S.js");
|
|
2994
2995
|
return {
|
|
2995
2996
|
element: /* @__PURE__ */ n.jsx(
|
|
2996
2997
|
Gr,
|
|
@@ -3004,26 +3005,26 @@ const Pr = {
|
|
|
3004
3005
|
}), Xt = (e) => [
|
|
3005
3006
|
// Category without tagged operations
|
|
3006
3007
|
Wt({
|
|
3007
|
-
path:
|
|
3008
|
+
path: L(e, qe),
|
|
3008
3009
|
untagged: !0
|
|
3009
3010
|
}),
|
|
3010
3011
|
// Schema list route
|
|
3011
3012
|
{
|
|
3012
|
-
path:
|
|
3013
|
+
path: L(e, "~schemas"),
|
|
3013
3014
|
lazy: async () => {
|
|
3014
|
-
const { SchemaList: t } = await import("./SchemaList-
|
|
3015
|
+
const { SchemaList: t } = await import("./SchemaList-_wRy4aQ0.js");
|
|
3015
3016
|
return { element: /* @__PURE__ */ n.jsx(t, {}) };
|
|
3016
3017
|
}
|
|
3017
3018
|
}
|
|
3018
3019
|
], Qr = (e, t) => {
|
|
3019
|
-
const s =
|
|
3020
|
+
const s = L(e, t.at(0) ?? qe);
|
|
3020
3021
|
return [
|
|
3021
3022
|
// Redirect to first tag on the index route
|
|
3022
3023
|
{ index: !0, loader: () => Nn(s) },
|
|
3023
3024
|
// Create routes for each tag
|
|
3024
3025
|
...t.map(
|
|
3025
3026
|
(a) => Wt({
|
|
3026
|
-
path:
|
|
3027
|
+
path: L(e, a),
|
|
3027
3028
|
tag: a
|
|
3028
3029
|
})
|
|
3029
3030
|
),
|
|
@@ -3050,7 +3051,7 @@ const Pr = {
|
|
|
3050
3051
|
];
|
|
3051
3052
|
const r = Zt(t);
|
|
3052
3053
|
return (r.length > 1 ? [void 0, ...r] : [void 0]).map((i) => {
|
|
3053
|
-
const c =
|
|
3054
|
+
const c = L(e, i);
|
|
3054
3055
|
return ft({
|
|
3055
3056
|
basePath: e,
|
|
3056
3057
|
version: i,
|
|
@@ -3061,7 +3062,7 @@ const Pr = {
|
|
|
3061
3062
|
});
|
|
3062
3063
|
});
|
|
3063
3064
|
}, Yt = Zs(`
|
|
3064
|
-
query
|
|
3065
|
+
query GetNavigationOperations($input: JSON!, $type: SchemaType!) {
|
|
3065
3066
|
schema(input: $input, type: $type) {
|
|
3066
3067
|
tags {
|
|
3067
3068
|
slug
|
|
@@ -3083,7 +3084,7 @@ const Pr = {
|
|
|
3083
3084
|
}
|
|
3084
3085
|
}
|
|
3085
3086
|
`), qe = "~endpoints", Oa = (e) => {
|
|
3086
|
-
const t =
|
|
3087
|
+
const t = L(e.path), s = new cs(e);
|
|
3087
3088
|
return {
|
|
3088
3089
|
getHead: () => {
|
|
3089
3090
|
if (e.type === "url" && !e.skipPreload)
|
|
@@ -3137,7 +3138,7 @@ const Pr = {
|
|
|
3137
3138
|
);
|
|
3138
3139
|
}
|
|
3139
3140
|
}),
|
|
3140
|
-
|
|
3141
|
+
getNavigation: async (a, r) => {
|
|
3141
3142
|
if (!Ke({ path: t, end: !1 }, a))
|
|
3142
3143
|
return [];
|
|
3143
3144
|
const o = Ke(
|
|
@@ -3150,7 +3151,7 @@ const Pr = {
|
|
|
3150
3151
|
input: m
|
|
3151
3152
|
}), g = await r.queryClient.ensureQueryData(u), f = g.schema.tags.flatMap((p) => {
|
|
3152
3153
|
if (!p.name || p.operations.length === 0) return [];
|
|
3153
|
-
const y =
|
|
3154
|
+
const y = L(t, i, p.slug), j = p.extensions?.["x-zudoku-collapsed"] ?? !e.options?.expandAllTags, b = p.extensions?.["x-zudoku-collapsible"] ?? !0;
|
|
3154
3155
|
return ht({
|
|
3155
3156
|
label: p.name,
|
|
3156
3157
|
path: y,
|
|
@@ -3164,14 +3165,14 @@ const Pr = {
|
|
|
3164
3165
|
return x && f.push(
|
|
3165
3166
|
ht({
|
|
3166
3167
|
label: "Other endpoints",
|
|
3167
|
-
path:
|
|
3168
|
+
path: L(t, i, qe),
|
|
3168
3169
|
operations: x,
|
|
3169
3170
|
collapsed: !e.options?.expandAllTags
|
|
3170
3171
|
})
|
|
3171
3172
|
), g.schema.components?.schemas?.length && f.push({
|
|
3172
3173
|
type: "link",
|
|
3173
3174
|
label: "Schemas",
|
|
3174
|
-
|
|
3175
|
+
to: L(t, i, "~schemas")
|
|
3175
3176
|
}), f;
|
|
3176
3177
|
} catch {
|
|
3177
3178
|
return [];
|
|
@@ -3199,10 +3200,10 @@ export {
|
|
|
3199
3200
|
_s as a,
|
|
3200
3201
|
ut as b,
|
|
3201
3202
|
mt as c,
|
|
3202
|
-
|
|
3203
|
+
Zt as d,
|
|
3203
3204
|
sr as e,
|
|
3204
3205
|
Vt as f,
|
|
3205
|
-
|
|
3206
|
+
Zs as g,
|
|
3206
3207
|
er as h,
|
|
3207
3208
|
Ie as i,
|
|
3208
3209
|
Dt as j,
|
|
@@ -3210,17 +3211,17 @@ export {
|
|
|
3210
3211
|
G as l,
|
|
3211
3212
|
Or as m,
|
|
3212
3213
|
qs as n,
|
|
3213
|
-
|
|
3214
|
+
Lt as o,
|
|
3214
3215
|
it as p,
|
|
3215
3216
|
Ca as q,
|
|
3216
3217
|
Ns as r,
|
|
3217
3218
|
R as s,
|
|
3218
3219
|
Ee as t,
|
|
3219
3220
|
Mr as u,
|
|
3220
|
-
|
|
3221
|
+
Pt as v,
|
|
3221
3222
|
ds as w,
|
|
3222
3223
|
Vs as x,
|
|
3223
3224
|
he as y,
|
|
3224
3225
|
us as z
|
|
3225
3226
|
};
|
|
3226
|
-
//# sourceMappingURL=index-
|
|
3227
|
+
//# sourceMappingURL=index-DJVaRmzI.js.map
|