zudoku 0.42.0 → 0.42.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/app/main.js +0 -6
- package/dist/app/main.js.map +1 -1
- package/dist/config/validators/common.d.ts +288 -420
- package/dist/config/validators/common.js +0 -10
- package/dist/config/validators/common.js.map +1 -1
- package/dist/config/validators/validate.d.ts +108 -161
- package/dist/index.d.ts +0 -1
- package/dist/index.js +0 -1
- package/dist/index.js.map +1 -1
- package/dist/lib/authentication/components/SignIn.d.ts +1 -1
- package/dist/lib/authentication/components/SignIn.js +5 -2
- package/dist/lib/authentication/components/SignIn.js.map +1 -1
- package/dist/lib/authentication/components/SignUp.d.ts +1 -1
- package/dist/lib/authentication/components/SignUp.js +4 -1
- package/dist/lib/authentication/components/SignUp.js.map +1 -1
- package/dist/lib/components/Markdown.d.ts +1 -3
- package/dist/lib/components/Markdown.js +14 -8
- package/dist/lib/components/Markdown.js.map +1 -1
- package/dist/lib/components/context/ZudokuContext.d.ts +1 -1
- package/dist/lib/components/index.d.ts +1 -2
- package/dist/lib/core/ZudokuContext.d.ts +0 -7
- package/dist/lib/core/ZudokuContext.js.map +1 -1
- package/dist/lib/errors/ErrorAlert.js +1 -1
- package/dist/lib/errors/ErrorAlert.js.map +1 -1
- package/dist/lib/plugins/openapi/CollapsibleCode.js +1 -1
- package/dist/lib/plugins/openapi/CollapsibleCode.js.map +1 -1
- package/dist/lib/plugins/openapi/ParameterListItem.js +8 -1
- package/dist/lib/plugins/openapi/ParameterListItem.js.map +1 -1
- package/dist/lib/plugins/openapi/Sidecar.js +1 -1
- package/dist/lib/plugins/openapi/Sidecar.js.map +1 -1
- package/dist/lib/plugins/openapi/SidecarExamples.js +1 -1
- package/dist/lib/plugins/openapi/SidecarExamples.js.map +1 -1
- package/dist/lib/plugins/openapi/schema/SchemaPropertyItem.js +5 -3
- package/dist/lib/plugins/openapi/schema/SchemaPropertyItem.js.map +1 -1
- package/dist/lib/plugins/openapi/schema/SchemaView.js +1 -1
- package/dist/lib/plugins/openapi/schema/SchemaView.js.map +1 -1
- package/dist/lib/plugins/openapi/schema/utils.d.ts +1 -0
- package/dist/lib/plugins/openapi/schema/utils.js +3 -0
- package/dist/lib/plugins/openapi/schema/utils.js.map +1 -1
- package/dist/lib/ui/Callout.js +1 -1
- package/dist/lib/ui/Callout.js.map +1 -1
- package/dist/lib/ui/SyntaxHighlight.d.ts +15 -10
- package/dist/lib/ui/SyntaxHighlight.js +60 -10
- package/dist/lib/ui/SyntaxHighlight.js.map +1 -1
- package/dist/lib/util/MdxComponents.d.ts +3 -9
- package/dist/lib/util/MdxComponents.js +10 -9
- package/dist/lib/util/MdxComponents.js.map +1 -1
- package/dist/vite/config.js +0 -34
- package/dist/vite/config.js.map +1 -1
- package/dist/vite/plugin-mdx.js +11 -4
- package/dist/vite/plugin-mdx.js.map +1 -1
- package/dist/vite/plugin.js +0 -2
- package/dist/vite/plugin.js.map +1 -1
- package/lib/AuthenticationPlugin-ByDF051g.js +99 -0
- package/lib/AuthenticationPlugin-ByDF051g.js.map +1 -0
- package/lib/{Button-Bdk_Ij3U.js → Button-BBNrKpQd.js} +3 -3
- package/lib/{Button-Bdk_Ij3U.js.map → Button-BBNrKpQd.js.map} +1 -1
- package/lib/{Callout-XadUe37J.js → Callout-D3Ja4OPX.js} +12 -12
- package/lib/{Callout-XadUe37J.js.map → Callout-D3Ja4OPX.js.map} +1 -1
- package/lib/Card-BtheiD7j.js +61 -0
- package/lib/Card-BtheiD7j.js.map +1 -0
- package/lib/{CategoryHeading-DZi-Szor.js → CategoryHeading-D06WK_Wo.js} +2 -2
- package/lib/{CategoryHeading-DZi-Szor.js.map → CategoryHeading-D06WK_Wo.js.map} +1 -1
- package/lib/{Dialog-CNf2oWXG.js → Dialog-ByYz4ABw.js} +2 -2
- package/lib/{Dialog-CNf2oWXG.js.map → Dialog-ByYz4ABw.js.map} +1 -1
- package/lib/{Drawer-BPBxzel2.js → Drawer-CEwbkLDb.js} +25 -25
- package/lib/{Drawer-BPBxzel2.js.map → Drawer-CEwbkLDb.js.map} +1 -1
- package/lib/Markdown-mFpg_n9p.js +17125 -0
- package/lib/Markdown-mFpg_n9p.js.map +1 -0
- package/lib/MdxPage-Cm7atiW3.js +85 -0
- package/lib/{MdxPage-Dxbq6lFr.js.map → MdxPage-Cm7atiW3.js.map} +1 -1
- package/lib/{OasProvider-DKpTJMH2.js → OasProvider-CDtbrUG_.js} +4 -4
- package/lib/{OasProvider-DKpTJMH2.js.map → OasProvider-CDtbrUG_.js.map} +1 -1
- package/lib/{OperationList-DVOyNeno.js → OperationList-DTyJIxKW.js} +1967 -1914
- package/lib/OperationList-DTyJIxKW.js.map +1 -0
- package/lib/{Pagination-COMmV-g9.js → Pagination-DLPL5z77.js} +4 -4
- package/lib/{Pagination-COMmV-g9.js.map → Pagination-DLPL5z77.js.map} +1 -1
- package/lib/RouteGuard-DRtEu9nh.js +744 -0
- package/lib/{RouteGuard-CGqivwrh.js.map → RouteGuard-DRtEu9nh.js.map} +1 -1
- package/lib/{SchemaList-BTWzXyYQ.js → SchemaList-B9lvArDe.js} +44 -43
- package/lib/{SchemaList-BTWzXyYQ.js.map → SchemaList-B9lvArDe.js.map} +1 -1
- package/lib/{SchemaView-DNKKW3nB.js → SchemaView-DXjql-Bl.js} +111 -108
- package/lib/SchemaView-DXjql-Bl.js.map +1 -0
- package/lib/Select-CT64Ou40.js +223 -0
- package/lib/{Select-m-ITdvFa.js.map → Select-CT64Ou40.js.map} +1 -1
- package/lib/SlotletProvider-CS_nO-XT.js +340 -0
- package/lib/SlotletProvider-CS_nO-XT.js.map +1 -0
- package/lib/SyntaxHighlight-CxhyyMkF.js +2890 -0
- package/lib/SyntaxHighlight-CxhyyMkF.js.map +1 -0
- package/lib/{Toc-CzMOgcPS.js → Toc-D_tV8_Ri.js} +3 -3
- package/lib/{Toc-CzMOgcPS.js.map → Toc-D_tV8_Ri.js.map} +1 -1
- package/lib/{chunk-BAXFHI7N-CFrZQ7Oh.js → chunk-BAXFHI7N-BVBOl9s0.js} +264 -257
- package/lib/{chunk-BAXFHI7N-CFrZQ7Oh.js.map → chunk-BAXFHI7N-BVBOl9s0.js.map} +1 -1
- package/lib/{circular-D__GEK2G.js → circular-ByJI6Mci.js} +47 -47
- package/lib/{circular-D__GEK2G.js.map → circular-ByJI6Mci.js.map} +1 -1
- package/lib/{cn-CwJPJKOE.js → cn-qaFjX9_3.js} +29 -28
- package/lib/{cn-CwJPJKOE.js.map → cn-qaFjX9_3.js.map} +1 -1
- package/lib/{createServer-B4l2NSkt.js → createServer-IW7v5hWm.js} +3868 -3724
- package/lib/{createServer-B4l2NSkt.js.map → createServer-IW7v5hWm.js.map} +1 -1
- package/lib/hook-CldJlP5c.js +1478 -0
- package/lib/{hook-CyNmcNr8.js.map → hook-CldJlP5c.js.map} +1 -1
- package/lib/{index-Z13x6tPX.js → index-CPNSgwSb.js} +5 -5
- package/lib/{index-Z13x6tPX.js.map → index-CPNSgwSb.js.map} +1 -1
- package/lib/{index-CCS3ifKs.js → index-Ckl3s_w-.js} +763 -769
- package/lib/index-Ckl3s_w-.js.map +1 -0
- package/lib/{index-CrcNWbel.js → index-CuBIgTKC.js} +9 -9
- package/lib/{index-CrcNWbel.js.map → index-CuBIgTKC.js.map} +1 -1
- package/lib/{index-zddirpDj.js → index-DcHeSvkE.js} +609 -581
- package/lib/{index-zddirpDj.js.map → index-DcHeSvkE.js.map} +1 -1
- package/lib/index-DnQftvP4.js +5031 -0
- package/lib/{index-BcMPFdRU.js.map → index-DnQftvP4.js.map} +1 -1
- package/lib/{index--oeBayMa.js → index-DwT-v3zK.js} +2 -2
- package/lib/{index--oeBayMa.js.map → index-DwT-v3zK.js.map} +1 -1
- package/lib/{index-BvvmIczU.js → index-LNp6rxyU.js} +2 -2
- package/lib/{index-BvvmIczU.js.map → index-LNp6rxyU.js.map} +1 -1
- package/lib/invariant-Caa8-XvF.js +26 -0
- package/lib/{invariant-D3QcI9fa.js.map → invariant-Caa8-XvF.js.map} +1 -1
- package/lib/mutation-DBQh7AOZ.js +211 -0
- package/lib/{mutation-narTVsCe.js.map → mutation-DBQh7AOZ.js.map} +1 -1
- package/lib/prism-bash.min-HHIMdNJ_.js +7 -0
- package/lib/prism-bash.min-HHIMdNJ_.js.map +1 -0
- package/lib/prism-csharp.min-C43x1RY2.js +63 -0
- package/lib/prism-csharp.min-C43x1RY2.js.map +1 -0
- package/lib/prism-java.min-CQzr40NQ.js +35 -0
- package/lib/prism-java.min-CQzr40NQ.js.map +1 -0
- package/lib/prism-javascript.min-CEqHqgbm.js +9 -0
- package/lib/prism-javascript.min-CEqHqgbm.js.map +1 -0
- package/lib/prism-json.min-B1GJqK1k.js +2 -0
- package/lib/prism-json.min-B1GJqK1k.js.map +1 -0
- package/lib/prism-jsstacktrace.min-BfobCF2F.js +2 -0
- package/lib/prism-jsstacktrace.min-BfobCF2F.js.map +1 -0
- package/lib/prism-markdown.min-C0Qn0m-5.js +61 -0
- package/lib/prism-markdown.min-C0Qn0m-5.js.map +1 -0
- package/lib/prism-markup-BNGj0Tvm.js +174 -0
- package/lib/prism-markup-BNGj0Tvm.js.map +1 -0
- package/lib/prism-objectivec.min-BXSWqpJJ.js +2 -0
- package/lib/prism-objectivec.min-BXSWqpJJ.js.map +1 -0
- package/lib/prism-ruby.min-L9OdQ6tU.js +38 -0
- package/lib/prism-ruby.min-L9OdQ6tU.js.map +1 -0
- package/lib/prism-typescript.min-qTySPvCh.js +34 -0
- package/lib/prism-typescript.min-qTySPvCh.js.map +1 -0
- package/lib/processors/removeParameters.js +28 -27
- package/lib/processors/removeParameters.js.map +1 -1
- package/lib/processors/removePaths.js +17 -17
- package/lib/processors/removePaths.js.map +1 -1
- package/lib/ui/Accordion.js +1 -1
- package/lib/ui/ActionButton.js +2 -2
- package/lib/ui/Alert.js +2 -2
- package/lib/ui/AlertDialog.js +1 -1
- package/lib/ui/Badge.js +2 -2
- package/lib/ui/Breadcrumb.js +1 -1
- package/lib/ui/Button.js +2 -2
- package/lib/ui/Callout.js +7 -7
- package/lib/ui/Callout.js.map +1 -1
- package/lib/ui/Card.js +1 -1
- package/lib/ui/Carousel.js +175 -175
- package/lib/ui/Carousel.js.map +1 -1
- package/lib/ui/Checkbox.js +1 -1
- package/lib/ui/Command.js +58 -58
- package/lib/ui/Command.js.map +1 -1
- package/lib/ui/Dialog.js +1 -1
- package/lib/ui/Drawer.js +2 -2
- package/lib/ui/DropdownMenu.js +1 -1
- package/lib/ui/Form.js +1 -1
- package/lib/ui/HoverCard.js +1 -1
- package/lib/ui/Input.js +1 -1
- package/lib/ui/Label.js +2 -2
- package/lib/ui/Pagination.js +1 -1
- package/lib/ui/Popover.js +1 -1
- package/lib/ui/Progress.js +1 -1
- package/lib/ui/RadioGroup.js +1 -1
- package/lib/ui/ScrollArea.js +1 -1
- package/lib/ui/Select.js +1 -1
- package/lib/ui/Skeleton.js +1 -1
- package/lib/ui/Slider.js +1 -1
- package/lib/ui/Switch.js +1 -1
- package/lib/ui/SyntaxHighlight.js +6 -4
- package/lib/ui/SyntaxHighlight.js.map +1 -1
- package/lib/ui/Tabs.js +1 -1
- package/lib/ui/Textarea.js +1 -1
- package/lib/ui/Toggle.js +2 -2
- package/lib/ui/ToggleGroup.js +1 -1
- package/lib/ui/Tooltip.js +1 -1
- package/lib/ui/util.js +1 -1
- package/lib/{useExposedProps-n1u49409.js → useExposedProps-DbIZXspi.js} +2 -2
- package/lib/{useExposedProps-n1u49409.js.map → useExposedProps-DbIZXspi.js.map} +1 -1
- package/lib/zudoku.auth-auth0.js +31 -28
- package/lib/zudoku.auth-auth0.js.map +1 -1
- package/lib/zudoku.auth-clerk.js +68 -62
- package/lib/zudoku.auth-clerk.js.map +1 -1
- package/lib/zudoku.auth-openid.js +483 -475
- package/lib/zudoku.auth-openid.js.map +1 -1
- package/lib/zudoku.components.js +7 -7
- package/lib/zudoku.hooks.js +2 -2
- package/lib/zudoku.plugin-api-catalog.js +45 -45
- package/lib/zudoku.plugin-api-catalog.js.map +1 -1
- package/lib/zudoku.plugin-api-keys.js +6 -6
- package/lib/zudoku.plugin-custom-pages.js +3 -3
- package/lib/zudoku.plugin-markdown.js +28 -25
- package/lib/zudoku.plugin-markdown.js.map +1 -1
- package/lib/zudoku.plugin-openapi.js +3 -3
- package/lib/zudoku.plugin-redirect.js +1 -1
- package/lib/zudoku.plugin-search-inkeep.js +27 -26
- package/lib/zudoku.plugin-search-inkeep.js.map +1 -1
- package/lib/zudoku.plugin-search-pagefind.js +110 -107
- package/lib/zudoku.plugin-search-pagefind.js.map +1 -1
- package/package.json +7 -17
- package/src/app/main.css +3 -53
- package/src/app/main.tsx +0 -7
- package/src/lib/authentication/components/SignIn.tsx +35 -2
- package/src/lib/authentication/components/SignUp.tsx +35 -1
- package/src/lib/components/Markdown.tsx +24 -29
- package/src/lib/core/ZudokuContext.ts +0 -4
- package/src/lib/errors/ErrorAlert.tsx +1 -1
- package/src/lib/plugins/openapi/CollapsibleCode.tsx +2 -5
- package/src/lib/plugins/openapi/ParameterListItem.tsx +30 -0
- package/src/lib/plugins/openapi/Sidecar.tsx +1 -1
- package/src/lib/plugins/openapi/SidecarExamples.tsx +2 -2
- package/src/lib/plugins/openapi/schema/SchemaPropertyItem.tsx +7 -4
- package/src/lib/plugins/openapi/schema/SchemaView.tsx +1 -6
- package/src/lib/plugins/openapi/schema/utils.ts +5 -0
- package/src/lib/ui/Callout.tsx +1 -1
- package/src/lib/ui/SyntaxHighlight.tsx +182 -18
- package/src/lib/util/MdxComponents.tsx +14 -27
- package/dist/lib/shiki.d.ts +0 -35
- package/dist/lib/shiki.js +0 -103
- package/dist/lib/shiki.js.map +0 -1
- package/dist/lib/ui/CodeBlock.d.ts +0 -16
- package/dist/lib/ui/CodeBlock.js +0 -18
- package/dist/lib/ui/CodeBlock.js.map +0 -1
- package/dist/vite/plugin-shiki-register.d.ts +0 -3
- package/dist/vite/plugin-shiki-register.js +0 -38
- package/dist/vite/plugin-shiki-register.js.map +0 -1
- package/lib/AuthenticationPlugin-EeQpQI3D.js +0 -55
- package/lib/AuthenticationPlugin-EeQpQI3D.js.map +0 -1
- package/lib/Markdown-1l-DtDbF.js +0 -7688
- package/lib/Markdown-1l-DtDbF.js.map +0 -1
- package/lib/MdxPage-Dxbq6lFr.js +0 -84
- package/lib/OperationList-DVOyNeno.js.map +0 -1
- package/lib/RouteGuard-CGqivwrh.js +0 -733
- package/lib/SchemaView-DNKKW3nB.js.map +0 -1
- package/lib/Select-m-ITdvFa.js +0 -211
- package/lib/SlotletProvider-DhK1Fmm9.js +0 -254
- package/lib/SlotletProvider-DhK1Fmm9.js.map +0 -1
- package/lib/SyntaxHighlight-CJ6FoYvt.js +0 -9104
- package/lib/SyntaxHighlight-CJ6FoYvt.js.map +0 -1
- package/lib/hook-CyNmcNr8.js +0 -1443
- package/lib/index-BcMPFdRU.js +0 -4975
- package/lib/index-CCS3ifKs.js.map +0 -1
- package/lib/invariant-D3QcI9fa.js +0 -22
- package/lib/mutation-narTVsCe.js +0 -196
- package/lib/ui/CodeBlock.js +0 -83
- package/lib/ui/CodeBlock.js.map +0 -1
- package/src/lib/shiki.ts +0 -129
- package/src/lib/ui/CodeBlock.tsx +0 -102
- package/src/shiki/langs/abap.js +0 -1
- package/src/shiki/langs/actionscript-3.js +0 -1
- package/src/shiki/langs/ada.js +0 -1
- package/src/shiki/langs/angular-expression.js +0 -1
- package/src/shiki/langs/angular-html.js +0 -1
- package/src/shiki/langs/angular-inline-style.js +0 -1
- package/src/shiki/langs/angular-inline-template.js +0 -1
- package/src/shiki/langs/angular-let-declaration.js +0 -1
- package/src/shiki/langs/angular-template-blocks.js +0 -1
- package/src/shiki/langs/angular-template.js +0 -1
- package/src/shiki/langs/angular-ts.js +0 -1
- package/src/shiki/langs/apache.js +0 -1
- package/src/shiki/langs/apex.js +0 -1
- package/src/shiki/langs/apl.js +0 -1
- package/src/shiki/langs/applescript.js +0 -1
- package/src/shiki/langs/ara.js +0 -1
- package/src/shiki/langs/asciidoc.js +0 -1
- package/src/shiki/langs/asm.js +0 -1
- package/src/shiki/langs/astro.js +0 -1
- package/src/shiki/langs/awk.js +0 -1
- package/src/shiki/langs/ballerina.js +0 -1
- package/src/shiki/langs/bat.js +0 -1
- package/src/shiki/langs/beancount.js +0 -1
- package/src/shiki/langs/berry.js +0 -1
- package/src/shiki/langs/bibtex.js +0 -1
- package/src/shiki/langs/bicep.js +0 -1
- package/src/shiki/langs/blade.js +0 -1
- package/src/shiki/langs/bsl.js +0 -1
- package/src/shiki/langs/c.js +0 -1
- package/src/shiki/langs/cadence.js +0 -1
- package/src/shiki/langs/cairo.js +0 -1
- package/src/shiki/langs/clarity.js +0 -1
- package/src/shiki/langs/clojure.js +0 -1
- package/src/shiki/langs/cmake.js +0 -1
- package/src/shiki/langs/cobol.js +0 -1
- package/src/shiki/langs/codeowners.js +0 -1
- package/src/shiki/langs/codeql.js +0 -1
- package/src/shiki/langs/coffee.js +0 -1
- package/src/shiki/langs/common-lisp.js +0 -1
- package/src/shiki/langs/coq.js +0 -1
- package/src/shiki/langs/cpp-macro.js +0 -1
- package/src/shiki/langs/cpp.js +0 -1
- package/src/shiki/langs/crystal.js +0 -1
- package/src/shiki/langs/csharp.js +0 -1
- package/src/shiki/langs/css.js +0 -1
- package/src/shiki/langs/csv.js +0 -1
- package/src/shiki/langs/cue.js +0 -1
- package/src/shiki/langs/cypher.js +0 -1
- package/src/shiki/langs/d.js +0 -1
- package/src/shiki/langs/dart.js +0 -1
- package/src/shiki/langs/dax.js +0 -1
- package/src/shiki/langs/desktop.js +0 -1
- package/src/shiki/langs/diff.js +0 -1
- package/src/shiki/langs/docker.js +0 -1
- package/src/shiki/langs/dotenv.js +0 -1
- package/src/shiki/langs/dream-maker.js +0 -1
- package/src/shiki/langs/edge.js +0 -1
- package/src/shiki/langs/elixir.js +0 -1
- package/src/shiki/langs/elm.js +0 -1
- package/src/shiki/langs/emacs-lisp.js +0 -1
- package/src/shiki/langs/erb.js +0 -1
- package/src/shiki/langs/erlang.js +0 -1
- package/src/shiki/langs/es-tag-css.js +0 -1
- package/src/shiki/langs/es-tag-glsl.js +0 -1
- package/src/shiki/langs/es-tag-html.js +0 -1
- package/src/shiki/langs/es-tag-sql.js +0 -1
- package/src/shiki/langs/es-tag-xml.js +0 -1
- package/src/shiki/langs/fennel.js +0 -1
- package/src/shiki/langs/fish.js +0 -1
- package/src/shiki/langs/fluent.js +0 -1
- package/src/shiki/langs/fortran-fixed-form.js +0 -1
- package/src/shiki/langs/fortran-free-form.js +0 -1
- package/src/shiki/langs/fsharp.js +0 -1
- package/src/shiki/langs/gdresource.js +0 -1
- package/src/shiki/langs/gdscript.js +0 -1
- package/src/shiki/langs/gdshader.js +0 -1
- package/src/shiki/langs/genie.js +0 -1
- package/src/shiki/langs/gherkin.js +0 -1
- package/src/shiki/langs/git-commit.js +0 -1
- package/src/shiki/langs/git-rebase.js +0 -1
- package/src/shiki/langs/gleam.js +0 -1
- package/src/shiki/langs/glimmer-js.js +0 -1
- package/src/shiki/langs/glimmer-ts.js +0 -1
- package/src/shiki/langs/glsl.js +0 -1
- package/src/shiki/langs/gnuplot.js +0 -1
- package/src/shiki/langs/go.js +0 -1
- package/src/shiki/langs/graphql.js +0 -1
- package/src/shiki/langs/groovy.js +0 -1
- package/src/shiki/langs/hack.js +0 -1
- package/src/shiki/langs/haml.js +0 -1
- package/src/shiki/langs/handlebars.js +0 -1
- package/src/shiki/langs/haskell.js +0 -1
- package/src/shiki/langs/haxe.js +0 -1
- package/src/shiki/langs/hcl.js +0 -1
- package/src/shiki/langs/hjson.js +0 -1
- package/src/shiki/langs/hlsl.js +0 -1
- package/src/shiki/langs/html-derivative.js +0 -1
- package/src/shiki/langs/html.js +0 -1
- package/src/shiki/langs/http.js +0 -1
- package/src/shiki/langs/hxml.js +0 -1
- package/src/shiki/langs/hy.js +0 -1
- package/src/shiki/langs/imba.js +0 -1
- package/src/shiki/langs/ini.js +0 -1
- package/src/shiki/langs/java.js +0 -1
- package/src/shiki/langs/javascript.js +0 -1
- package/src/shiki/langs/jinja-html.js +0 -1
- package/src/shiki/langs/jinja.js +0 -1
- package/src/shiki/langs/jison.js +0 -1
- package/src/shiki/langs/json.js +0 -1
- package/src/shiki/langs/json5.js +0 -1
- package/src/shiki/langs/jsonc.js +0 -1
- package/src/shiki/langs/jsonl.js +0 -1
- package/src/shiki/langs/jsonnet.js +0 -1
- package/src/shiki/langs/jssm.js +0 -1
- package/src/shiki/langs/jsx.js +0 -1
- package/src/shiki/langs/julia.js +0 -1
- package/src/shiki/langs/kotlin.js +0 -1
- package/src/shiki/langs/kusto.js +0 -1
- package/src/shiki/langs/latex.js +0 -1
- package/src/shiki/langs/lean.js +0 -1
- package/src/shiki/langs/less.js +0 -1
- package/src/shiki/langs/liquid.js +0 -1
- package/src/shiki/langs/llvm.js +0 -1
- package/src/shiki/langs/log.js +0 -1
- package/src/shiki/langs/logo.js +0 -1
- package/src/shiki/langs/lua.js +0 -1
- package/src/shiki/langs/luau.js +0 -1
- package/src/shiki/langs/make.js +0 -1
- package/src/shiki/langs/markdown-vue.js +0 -1
- package/src/shiki/langs/markdown.js +0 -1
- package/src/shiki/langs/marko.js +0 -1
- package/src/shiki/langs/matlab.js +0 -1
- package/src/shiki/langs/mdc.js +0 -1
- package/src/shiki/langs/mdx.js +0 -1
- package/src/shiki/langs/mermaid.js +0 -1
- package/src/shiki/langs/mipsasm.js +0 -1
- package/src/shiki/langs/mojo.js +0 -1
- package/src/shiki/langs/move.js +0 -1
- package/src/shiki/langs/narrat.js +0 -1
- package/src/shiki/langs/nextflow.js +0 -1
- package/src/shiki/langs/nginx.js +0 -1
- package/src/shiki/langs/nim.js +0 -1
- package/src/shiki/langs/nix.js +0 -1
- package/src/shiki/langs/nushell.js +0 -1
- package/src/shiki/langs/objective-c.js +0 -1
- package/src/shiki/langs/objective-cpp.js +0 -1
- package/src/shiki/langs/ocaml.js +0 -1
- package/src/shiki/langs/pascal.js +0 -1
- package/src/shiki/langs/perl.js +0 -1
- package/src/shiki/langs/php.js +0 -1
- package/src/shiki/langs/plsql.js +0 -1
- package/src/shiki/langs/po.js +0 -1
- package/src/shiki/langs/polar.js +0 -1
- package/src/shiki/langs/postcss.js +0 -1
- package/src/shiki/langs/powerquery.js +0 -1
- package/src/shiki/langs/powershell.js +0 -1
- package/src/shiki/langs/prisma.js +0 -1
- package/src/shiki/langs/prolog.js +0 -1
- package/src/shiki/langs/proto.js +0 -1
- package/src/shiki/langs/pug.js +0 -1
- package/src/shiki/langs/puppet.js +0 -1
- package/src/shiki/langs/purescript.js +0 -1
- package/src/shiki/langs/python.js +0 -1
- package/src/shiki/langs/qml.js +0 -1
- package/src/shiki/langs/qmldir.js +0 -1
- package/src/shiki/langs/qss.js +0 -1
- package/src/shiki/langs/r.js +0 -1
- package/src/shiki/langs/racket.js +0 -1
- package/src/shiki/langs/raku.js +0 -1
- package/src/shiki/langs/razor.js +0 -1
- package/src/shiki/langs/reg.js +0 -1
- package/src/shiki/langs/regexp.js +0 -1
- package/src/shiki/langs/rel.js +0 -1
- package/src/shiki/langs/riscv.js +0 -1
- package/src/shiki/langs/rst.js +0 -1
- package/src/shiki/langs/ruby.js +0 -1
- package/src/shiki/langs/rust.js +0 -1
- package/src/shiki/langs/sas.js +0 -1
- package/src/shiki/langs/sass.js +0 -1
- package/src/shiki/langs/scala.js +0 -1
- package/src/shiki/langs/scheme.js +0 -1
- package/src/shiki/langs/scss.js +0 -1
- package/src/shiki/langs/sdbl.js +0 -1
- package/src/shiki/langs/shaderlab.js +0 -1
- package/src/shiki/langs/shellscript.js +0 -1
- package/src/shiki/langs/shellsession.js +0 -1
- package/src/shiki/langs/smalltalk.js +0 -1
- package/src/shiki/langs/solidity.js +0 -1
- package/src/shiki/langs/soy.js +0 -1
- package/src/shiki/langs/sparql.js +0 -1
- package/src/shiki/langs/splunk.js +0 -1
- package/src/shiki/langs/sql.js +0 -1
- package/src/shiki/langs/ssh-config.js +0 -1
- package/src/shiki/langs/stata.js +0 -1
- package/src/shiki/langs/stylus.js +0 -1
- package/src/shiki/langs/svelte.js +0 -1
- package/src/shiki/langs/swift.js +0 -1
- package/src/shiki/langs/system-verilog.js +0 -1
- package/src/shiki/langs/systemd.js +0 -1
- package/src/shiki/langs/talonscript.js +0 -1
- package/src/shiki/langs/tasl.js +0 -1
- package/src/shiki/langs/tcl.js +0 -1
- package/src/shiki/langs/templ.js +0 -1
- package/src/shiki/langs/terraform.js +0 -1
- package/src/shiki/langs/tex.js +0 -1
- package/src/shiki/langs/toml.js +0 -1
- package/src/shiki/langs/ts-tags.js +0 -1
- package/src/shiki/langs/tsv.js +0 -1
- package/src/shiki/langs/tsx.js +0 -1
- package/src/shiki/langs/turtle.js +0 -1
- package/src/shiki/langs/twig.js +0 -1
- package/src/shiki/langs/typescript.js +0 -1
- package/src/shiki/langs/typespec.js +0 -1
- package/src/shiki/langs/typst.js +0 -1
- package/src/shiki/langs/v.js +0 -1
- package/src/shiki/langs/vala.js +0 -1
- package/src/shiki/langs/vb.js +0 -1
- package/src/shiki/langs/verilog.js +0 -1
- package/src/shiki/langs/vhdl.js +0 -1
- package/src/shiki/langs/viml.js +0 -1
- package/src/shiki/langs/vue-directives.js +0 -1
- package/src/shiki/langs/vue-html.js +0 -1
- package/src/shiki/langs/vue-interpolations.js +0 -1
- package/src/shiki/langs/vue-sfc-style-variable-injection.js +0 -1
- package/src/shiki/langs/vue.js +0 -1
- package/src/shiki/langs/vyper.js +0 -1
- package/src/shiki/langs/wasm.js +0 -1
- package/src/shiki/langs/wenyan.js +0 -1
- package/src/shiki/langs/wgsl.js +0 -1
- package/src/shiki/langs/wikitext.js +0 -1
- package/src/shiki/langs/wit.js +0 -1
- package/src/shiki/langs/wolfram.js +0 -1
- package/src/shiki/langs/xml.js +0 -1
- package/src/shiki/langs/xsl.js +0 -1
- package/src/shiki/langs/yaml.js +0 -1
- package/src/shiki/langs/zenscript.js +0 -1
- package/src/shiki/langs/zig.js +0 -1
- package/src/shiki/themes/andromeeda.js +0 -1
- package/src/shiki/themes/aurora-x.js +0 -1
- package/src/shiki/themes/ayu-dark.js +0 -1
- package/src/shiki/themes/catppuccin-frappe.js +0 -1
- package/src/shiki/themes/catppuccin-latte.js +0 -1
- package/src/shiki/themes/catppuccin-macchiato.js +0 -1
- package/src/shiki/themes/catppuccin-mocha.js +0 -1
- package/src/shiki/themes/dark-plus.js +0 -1
- package/src/shiki/themes/dracula-soft.js +0 -1
- package/src/shiki/themes/dracula.js +0 -1
- package/src/shiki/themes/everforest-dark.js +0 -1
- package/src/shiki/themes/everforest-light.js +0 -1
- package/src/shiki/themes/github-dark-default.js +0 -1
- package/src/shiki/themes/github-dark-dimmed.js +0 -1
- package/src/shiki/themes/github-dark-high-contrast.js +0 -1
- package/src/shiki/themes/github-dark.js +0 -1
- package/src/shiki/themes/github-light-default.js +0 -1
- package/src/shiki/themes/github-light-high-contrast.js +0 -1
- package/src/shiki/themes/github-light.js +0 -1
- package/src/shiki/themes/gruvbox-dark-hard.js +0 -1
- package/src/shiki/themes/gruvbox-dark-medium.js +0 -1
- package/src/shiki/themes/gruvbox-dark-soft.js +0 -1
- package/src/shiki/themes/gruvbox-light-hard.js +0 -1
- package/src/shiki/themes/gruvbox-light-medium.js +0 -1
- package/src/shiki/themes/gruvbox-light-soft.js +0 -1
- package/src/shiki/themes/houston.js +0 -1
- package/src/shiki/themes/kanagawa-dragon.js +0 -1
- package/src/shiki/themes/kanagawa-lotus.js +0 -1
- package/src/shiki/themes/kanagawa-wave.js +0 -1
- package/src/shiki/themes/laserwave.js +0 -1
- package/src/shiki/themes/light-plus.js +0 -1
- package/src/shiki/themes/material-theme-darker.js +0 -1
- package/src/shiki/themes/material-theme-lighter.js +0 -1
- package/src/shiki/themes/material-theme-ocean.js +0 -1
- package/src/shiki/themes/material-theme-palenight.js +0 -1
- package/src/shiki/themes/material-theme.js +0 -1
- package/src/shiki/themes/min-dark.js +0 -1
- package/src/shiki/themes/min-light.js +0 -1
- package/src/shiki/themes/monokai.js +0 -1
- package/src/shiki/themes/night-owl.js +0 -1
- package/src/shiki/themes/nord.js +0 -1
- package/src/shiki/themes/one-dark-pro.js +0 -1
- package/src/shiki/themes/one-light.js +0 -1
- package/src/shiki/themes/plastic.js +0 -1
- package/src/shiki/themes/poimandres.js +0 -1
- package/src/shiki/themes/red.js +0 -1
- package/src/shiki/themes/rose-pine-dawn.js +0 -1
- package/src/shiki/themes/rose-pine-moon.js +0 -1
- package/src/shiki/themes/rose-pine.js +0 -1
- package/src/shiki/themes/slack-dark.js +0 -1
- package/src/shiki/themes/slack-ochin.js +0 -1
- package/src/shiki/themes/snazzy-light.js +0 -1
- package/src/shiki/themes/solarized-dark.js +0 -1
- package/src/shiki/themes/solarized-light.js +0 -1
- package/src/shiki/themes/synthwave-84.js +0 -1
- package/src/shiki/themes/tokyo-night.js +0 -1
- package/src/shiki/themes/vesper.js +0 -1
- package/src/shiki/themes/vitesse-black.js +0 -1
- package/src/shiki/themes/vitesse-dark.js +0 -1
- package/src/shiki/themes/vitesse-light.js +0 -1
|
@@ -1,77 +1,90 @@
|
|
|
1
|
+
var Ft = Object.defineProperty;
|
|
2
|
+
var tt = (t) => {
|
|
3
|
+
throw TypeError(t);
|
|
4
|
+
};
|
|
5
|
+
var zt = (t, n, s) => n in t ? Ft(t, n, { enumerable: !0, configurable: !0, writable: !0, value: s }) : t[n] = s;
|
|
6
|
+
var J = (t, n, s) => zt(t, typeof n != "symbol" ? n + "" : n, s), Mt = (t, n, s) => n.has(t) || tt("Cannot " + s);
|
|
7
|
+
var pe = (t, n, s) => (Mt(t, n, "read from private field"), s ? s.call(t) : n.get(t)), he = (t, n, s) => n.has(t) ? tt("Cannot add the same private member more than once") : n instanceof WeakSet ? n.add(t) : n.set(t, s);
|
|
1
8
|
import { j as e } from "./jsx-runtime-C5mzlN2N.js";
|
|
2
|
-
import { ChevronRightIcon as
|
|
3
|
-
import { r as
|
|
4
|
-
import { p as
|
|
5
|
-
import { Button as
|
|
6
|
-
import { Z as
|
|
7
|
-
import { VisuallyHidden as
|
|
8
|
-
import * as
|
|
9
|
-
import { Fragment as q, useRef as
|
|
10
|
-
import { D as
|
|
11
|
-
import { S as
|
|
12
|
-
import { b as
|
|
13
|
-
import { c as
|
|
14
|
-
import { c as
|
|
15
|
-
import { Tabs as
|
|
16
|
-
import { o as
|
|
17
|
-
import { u as
|
|
18
|
-
import { z as
|
|
19
|
-
import { B as
|
|
20
|
-
import * as
|
|
21
|
-
import
|
|
22
|
-
import * as
|
|
23
|
-
import
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import
|
|
29
|
-
import * as
|
|
30
|
-
import
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import
|
|
35
|
-
import
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
9
|
+
import { ChevronRightIcon as Q, CheckIcon as Ht, DotIcon as _t, Check as Bt, XIcon as Gt, Circle as Jt, ChevronDownIcon as Ut, InfoIcon as nt, LogInIcon as Qt, CirclePlayIcon as Wt } from "lucide-react";
|
|
10
|
+
import { r as Zt, m as st } from "./chunk-BAXFHI7N-BVBOl9s0.js";
|
|
11
|
+
import { p as xt, q as gt, r as Xt, m as Kt, t as Yt, f as R, l as en } from "./hook-CldJlP5c.js";
|
|
12
|
+
import { Button as W } from "./ui/Button.js";
|
|
13
|
+
import { Z as tn } from "./invariant-Caa8-XvF.js";
|
|
14
|
+
import { VisuallyHidden as nn } from "@radix-ui/react-visually-hidden";
|
|
15
|
+
import * as b from "react";
|
|
16
|
+
import { Fragment as q, useRef as G, useEffect as ne, useMemo as sn, useState as k, useCallback as an, useTransition as rn } from "react";
|
|
17
|
+
import { D as Pe, a as ke, b as Ie, d as ft, e as yt, f as on } from "./Dialog-ByYz4ABw.js";
|
|
18
|
+
import { S as je, a as be, b as Ne, c as we, e as U, u as ln } from "./Select-CT64Ou40.js";
|
|
19
|
+
import { b as Re, u as Oe, C as L, a as cn, F as dn } from "./index.esm-D2ZUREQN.js";
|
|
20
|
+
import { c as vt } from "./index-CPNSgwSb.js";
|
|
21
|
+
import { c as g } from "./cn-qaFjX9_3.js";
|
|
22
|
+
import { Tabs as jt, TabsList as bt, TabsTrigger as M, TabsContent as H } from "./ui/Tabs.js";
|
|
23
|
+
import { o as mn } from "./objectEntries-yMIkr2mI.js";
|
|
24
|
+
import { u as un } from "./useLatest-hmRS46UF.js";
|
|
25
|
+
import { z as pn } from "./index-DwT-v3zK.js";
|
|
26
|
+
import { B as A } from "./Button-BBNrKpQd.js";
|
|
27
|
+
import * as j from "@radix-ui/react-dropdown-menu";
|
|
28
|
+
import { C as le } from "./Card-BtheiD7j.js";
|
|
29
|
+
import * as Ce from "@radix-ui/react-checkbox";
|
|
30
|
+
import * as se from "@radix-ui/react-popover";
|
|
31
|
+
import { PopoverAnchor as hn } from "@radix-ui/react-popover";
|
|
32
|
+
import { P as xn } from "./index-CuBIgTKC.js";
|
|
33
|
+
import { g as gn, h as fn, C as yn, b as vn, f as jn } from "./Callout-D3Ja4OPX.js";
|
|
34
|
+
import { Input as qe } from "./ui/Input.js";
|
|
35
|
+
import { Slot as bn } from "@radix-ui/react-slot";
|
|
36
|
+
import * as Nt from "@radix-ui/react-label";
|
|
37
|
+
import * as Z from "@radix-ui/react-radio-group";
|
|
38
|
+
import { S as Nn } from "./Spinner-mNLZ6awP.js";
|
|
39
|
+
import { Callout as wn } from "./ui/Callout.js";
|
|
40
|
+
import { Card as wt, CardHeader as Cn, CardTitle as Sn, CardContent as Tn } from "./ui/Card.js";
|
|
41
|
+
import { Collapsible as at, CollapsibleTrigger as rt, CollapsibleContent as ot } from "./ui/Collapsible.js";
|
|
42
|
+
import * as Le from "@radix-ui/react-collapsible";
|
|
43
|
+
import { S as $n } from "./SyntaxHighlight-CxhyyMkF.js";
|
|
44
|
+
let xe;
|
|
45
|
+
const Pn = (t) => {
|
|
46
|
+
var n;
|
|
47
|
+
if ((n = t.errors) != null && n[0])
|
|
48
|
+
throw new tn(t.errors[0].message, {
|
|
40
49
|
developerHint: "Check your configuration value `apis.type` and `apis.input` in the Zudoku config."
|
|
41
50
|
});
|
|
42
51
|
};
|
|
43
|
-
|
|
52
|
+
var oe, ie;
|
|
53
|
+
class kn {
|
|
44
54
|
constructor(n) {
|
|
55
|
+
he(this, oe, async () => (xe || (xe = import("./createServer-IW7v5hWm.js").then(
|
|
56
|
+
(n) => n.createServer(this.config)
|
|
57
|
+
)), xe));
|
|
58
|
+
he(this, ie, async (n) => this.config.server ? fetch(this.config.server, n) : (await pe(this, oe).call(this)).fetch("http://localhost/graphql", n));
|
|
59
|
+
J(this, "fetch", async (n, s) => {
|
|
60
|
+
var l;
|
|
61
|
+
const a = (l = n.match(/query (\w+)/)) == null ? void 0 : l[1], r = await pe(this, ie).call(this, {
|
|
62
|
+
method: "POST",
|
|
63
|
+
body: JSON.stringify({ query: n, variables: s, operationName: a }),
|
|
64
|
+
headers: { "Content-Type": "application/json" }
|
|
65
|
+
});
|
|
66
|
+
if (!r.ok)
|
|
67
|
+
throw new Error("Network response was not ok");
|
|
68
|
+
const i = await r.json();
|
|
69
|
+
return Pn(i), i.data;
|
|
70
|
+
});
|
|
45
71
|
this.config = n;
|
|
46
72
|
}
|
|
47
|
-
#e = async () => (oe || (oe = import("./createServer-B4l2NSkt.js").then(
|
|
48
|
-
(n) => n.createServer(this.config)
|
|
49
|
-
)), oe);
|
|
50
|
-
#t = async (n) => this.config.server ? fetch(this.config.server, n) : (await this.#e()).fetch("http://localhost/graphql", n);
|
|
51
|
-
fetch = async (n, s) => {
|
|
52
|
-
const a = n.match(/query (\w+)/)?.[1], r = await this.#t({
|
|
53
|
-
method: "POST",
|
|
54
|
-
body: JSON.stringify({ query: n, variables: s, operationName: a }),
|
|
55
|
-
headers: { "Content-Type": "application/json" }
|
|
56
|
-
});
|
|
57
|
-
if (!r.ok)
|
|
58
|
-
throw new Error("Network response was not ok");
|
|
59
|
-
const i = await r.json();
|
|
60
|
-
return xn(i), i.data;
|
|
61
|
-
};
|
|
62
73
|
}
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
74
|
+
oe = new WeakMap(), ie = new WeakMap();
|
|
75
|
+
class D extends String {
|
|
76
|
+
constructor(s, a) {
|
|
77
|
+
super(s);
|
|
78
|
+
J(this, "__apiType");
|
|
79
|
+
J(this, "value");
|
|
80
|
+
J(this, "__meta__");
|
|
81
|
+
this.value = s, this.__meta__ = a;
|
|
69
82
|
}
|
|
70
83
|
toString() {
|
|
71
84
|
return this.value;
|
|
72
85
|
}
|
|
73
86
|
}
|
|
74
|
-
const
|
|
87
|
+
const In = new D(
|
|
75
88
|
`
|
|
76
89
|
fragment OperationsFragment on OperationItem {
|
|
77
90
|
slug
|
|
@@ -139,7 +152,7 @@ const gn = new A(
|
|
|
139
152
|
}
|
|
140
153
|
`,
|
|
141
154
|
{ fragmentName: "OperationsFragment" }
|
|
142
|
-
),
|
|
155
|
+
), Rn = new D(`
|
|
143
156
|
query ServersQuery($input: JSON!, $type: SchemaType!) {
|
|
144
157
|
schema(input: $input, type: $type) {
|
|
145
158
|
url
|
|
@@ -148,13 +161,13 @@ const gn = new A(
|
|
|
148
161
|
}
|
|
149
162
|
}
|
|
150
163
|
}
|
|
151
|
-
`),
|
|
164
|
+
`), On = new D(`
|
|
152
165
|
query SchemaWarmup($input: JSON!, $type: SchemaType!) {
|
|
153
166
|
schema(input: $input, type: $type) {
|
|
154
167
|
openapi
|
|
155
168
|
}
|
|
156
169
|
}
|
|
157
|
-
`),
|
|
170
|
+
`), qn = new D(`
|
|
158
171
|
query OperationsForTag($input: JSON!, $type: SchemaType!, $tag: String, $untagged: Boolean) {
|
|
159
172
|
schema(input: $input, type: $type) {
|
|
160
173
|
servers {
|
|
@@ -246,7 +259,7 @@ const gn = new A(
|
|
|
246
259
|
schema
|
|
247
260
|
}
|
|
248
261
|
}
|
|
249
|
-
}`),
|
|
262
|
+
}`), Ln = new D(`
|
|
250
263
|
query GetSchemas($input: JSON!, $type: SchemaType!) {
|
|
251
264
|
schema(input: $input, type: $type) {
|
|
252
265
|
title
|
|
@@ -261,7 +274,7 @@ const gn = new A(
|
|
|
261
274
|
}
|
|
262
275
|
}
|
|
263
276
|
}
|
|
264
|
-
`),
|
|
277
|
+
`), An = new D(`
|
|
265
278
|
query getServerQuery($input: JSON!, $type: SchemaType!) {
|
|
266
279
|
schema(input: $input, type: $type) {
|
|
267
280
|
url
|
|
@@ -270,7 +283,7 @@ const gn = new A(
|
|
|
270
283
|
}
|
|
271
284
|
}
|
|
272
285
|
}
|
|
273
|
-
`),
|
|
286
|
+
`), En = new D(`
|
|
274
287
|
query GetSidebarOperations($input: JSON!, $type: SchemaType!) {
|
|
275
288
|
schema(input: $input, type: $type) {
|
|
276
289
|
tags {
|
|
@@ -292,19 +305,19 @@ const gn = new A(
|
|
|
292
305
|
}
|
|
293
306
|
}
|
|
294
307
|
}
|
|
295
|
-
`),
|
|
296
|
-
"\n query ServersQuery($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n url\n servers {\n url\n }\n }\n }\n":
|
|
297
|
-
"\n fragment OperationsFragment on OperationItem {\n slug\n summary\n method\n description\n operationId\n contentTypes\n path\n deprecated\n extensions\n parameters {\n name\n in\n description\n required\n schema\n style\n explode\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":
|
|
298
|
-
"\n query SchemaWarmup($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n openapi\n }\n }\n":
|
|
299
|
-
"\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":
|
|
300
|
-
"\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":
|
|
301
|
-
"\n query getServerQuery($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n url\n servers {\n url\n }\n }\n }\n":
|
|
302
|
-
"\n query GetSidebarOperations($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":
|
|
308
|
+
`), Dn = {
|
|
309
|
+
"\n query ServersQuery($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n url\n servers {\n url\n }\n }\n }\n": Rn,
|
|
310
|
+
"\n fragment OperationsFragment on OperationItem {\n slug\n summary\n method\n description\n operationId\n contentTypes\n path\n deprecated\n extensions\n parameters {\n name\n in\n description\n required\n schema\n style\n explode\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": In,
|
|
311
|
+
"\n query SchemaWarmup($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n openapi\n }\n }\n": On,
|
|
312
|
+
"\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": qn,
|
|
313
|
+
"\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": Ln,
|
|
314
|
+
"\n query getServerQuery($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n url\n servers {\n url\n }\n }\n }\n": An,
|
|
315
|
+
"\n query GetSidebarOperations($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": En
|
|
303
316
|
};
|
|
304
|
-
function
|
|
305
|
-
return
|
|
317
|
+
function Vn(t) {
|
|
318
|
+
return Dn[t] ?? {};
|
|
306
319
|
}
|
|
307
|
-
const
|
|
320
|
+
const Fn = vt(
|
|
308
321
|
"relative w-full rounded-lg border p-4 [&>svg~*]:pl-7 [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground",
|
|
309
322
|
{
|
|
310
323
|
variants: {
|
|
@@ -317,65 +330,65 @@ const Tn = ot(
|
|
|
317
330
|
variant: "default"
|
|
318
331
|
}
|
|
319
332
|
}
|
|
320
|
-
),
|
|
333
|
+
), Se = b.forwardRef(({ className: t, variant: n, ...s }, a) => /* @__PURE__ */ e.jsx(
|
|
321
334
|
"div",
|
|
322
335
|
{
|
|
323
336
|
ref: a,
|
|
324
337
|
role: "alert",
|
|
325
|
-
className:
|
|
338
|
+
className: g(Fn({ variant: n }), t),
|
|
326
339
|
...s
|
|
327
340
|
}
|
|
328
341
|
));
|
|
329
|
-
|
|
330
|
-
const
|
|
342
|
+
Se.displayName = "Alert";
|
|
343
|
+
const Te = b.forwardRef(({ className: t, ...n }, s) => /* @__PURE__ */ e.jsx(
|
|
331
344
|
"h5",
|
|
332
345
|
{
|
|
333
346
|
ref: s,
|
|
334
|
-
className:
|
|
347
|
+
className: g("mb-1 font-medium leading-none tracking-tight", t),
|
|
335
348
|
...n
|
|
336
349
|
}
|
|
337
350
|
));
|
|
338
|
-
|
|
339
|
-
const
|
|
351
|
+
Te.displayName = "AlertTitle";
|
|
352
|
+
const $e = b.forwardRef(({ className: t, ...n }, s) => /* @__PURE__ */ e.jsx(
|
|
340
353
|
"div",
|
|
341
354
|
{
|
|
342
355
|
ref: s,
|
|
343
|
-
className:
|
|
356
|
+
className: g("text-sm [&_p]:leading-relaxed", t),
|
|
344
357
|
...n
|
|
345
358
|
}
|
|
346
359
|
));
|
|
347
|
-
|
|
348
|
-
const
|
|
360
|
+
$e.displayName = "AlertDescription";
|
|
361
|
+
const zn = ({
|
|
349
362
|
path: t,
|
|
350
363
|
renderParam: n
|
|
351
364
|
}) => {
|
|
352
365
|
let s = 0;
|
|
353
366
|
return t.split("/").map((a, r, i) => {
|
|
354
|
-
const l = Array.from(a.matchAll(/{([^}]+)}/g)),
|
|
355
|
-
let
|
|
356
|
-
return l.forEach((
|
|
357
|
-
const [x,
|
|
358
|
-
if (!
|
|
359
|
-
const
|
|
360
|
-
|
|
361
|
-
/* @__PURE__ */ e.jsx(q, { children: a.slice(
|
|
362
|
-
),
|
|
363
|
-
/* @__PURE__ */ e.jsx(q, { children: n({ name:
|
|
364
|
-
),
|
|
365
|
-
}),
|
|
366
|
-
/* @__PURE__ */ e.jsx(q, { children: a.slice(
|
|
367
|
+
const l = Array.from(a.matchAll(/{([^}]+)}/g)), d = [];
|
|
368
|
+
let c = 0;
|
|
369
|
+
return l.forEach((u) => {
|
|
370
|
+
const [x, w] = u;
|
|
371
|
+
if (!w) return;
|
|
372
|
+
const v = u.index;
|
|
373
|
+
v > c && d.push(
|
|
374
|
+
/* @__PURE__ */ e.jsx(q, { children: a.slice(c, v) }, `text-${c}-${v}`)
|
|
375
|
+
), d.push(
|
|
376
|
+
/* @__PURE__ */ e.jsx(q, { children: n({ name: w, originalValue: x, index: s++ }) }, `param-${w}`)
|
|
377
|
+
), c = v + x.length;
|
|
378
|
+
}), c < a.length && d.push(
|
|
379
|
+
/* @__PURE__ */ e.jsx(q, { children: a.slice(c) }, `text-${c}-${a.length}`)
|
|
367
380
|
), // eslint-disable-next-line react/no-array-index-key
|
|
368
381
|
/* @__PURE__ */ e.jsxs(q, { children: [
|
|
369
|
-
|
|
382
|
+
d,
|
|
370
383
|
r < i.length - 1 && "/",
|
|
371
384
|
/* @__PURE__ */ e.jsx("wbr", {})
|
|
372
385
|
] }, `${a}-${r}`);
|
|
373
386
|
});
|
|
374
|
-
},
|
|
387
|
+
}, Ct = b.forwardRef(
|
|
375
388
|
({ className: t, ...n }, s) => /* @__PURE__ */ e.jsx(
|
|
376
389
|
"textarea",
|
|
377
390
|
{
|
|
378
|
-
className:
|
|
391
|
+
className: g(
|
|
379
392
|
"flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",
|
|
380
393
|
t
|
|
381
394
|
),
|
|
@@ -384,25 +397,25 @@ const $n = ({
|
|
|
384
397
|
}
|
|
385
398
|
)
|
|
386
399
|
);
|
|
387
|
-
|
|
388
|
-
const
|
|
400
|
+
Ct.displayName = "Textarea";
|
|
401
|
+
const ge = (t) => Math.abs(
|
|
389
402
|
isNaN(parseInt(t)) ? t.toLowerCase().charCodeAt(0) - 96 : isNaN(parseInt(t)) ? 0 : parseInt(t)
|
|
390
|
-
),
|
|
391
|
-
const s = (3 *
|
|
403
|
+
), fe = (t) => t.length > 1 ? parseInt(t.split("").reduce((n, s) => `${ge(n) + ge(s)}`)) : ge(t), it = (t, n = {}) => {
|
|
404
|
+
const s = (3 * fe(t) + 2 * fe(t) + fe(t)) % 360, { saturation: a = 75, lightness: r = 60 } = n;
|
|
392
405
|
return `${s}deg ${a}% ${r}%`;
|
|
393
|
-
},
|
|
394
|
-
const { resolvedTheme: n } =
|
|
406
|
+
}, ye = "data-linked-param", Mn = (t) => {
|
|
407
|
+
const { resolvedTheme: n } = pn();
|
|
395
408
|
return {
|
|
396
|
-
text:
|
|
409
|
+
text: it(
|
|
397
410
|
t,
|
|
398
411
|
n === "light" ? { saturation: 95, lightness: 38 } : {}
|
|
399
412
|
),
|
|
400
|
-
background:
|
|
413
|
+
background: it(
|
|
401
414
|
t,
|
|
402
415
|
n === "light" ? { saturation: 85, lightness: 40 } : {}
|
|
403
416
|
)
|
|
404
417
|
};
|
|
405
|
-
},
|
|
418
|
+
}, St = ({
|
|
406
419
|
name: t,
|
|
407
420
|
className: n,
|
|
408
421
|
slug: s,
|
|
@@ -410,26 +423,26 @@ const ie = (t) => Math.abs(
|
|
|
410
423
|
children: r,
|
|
411
424
|
onClick: i
|
|
412
425
|
}) => {
|
|
413
|
-
const l =
|
|
414
|
-
return
|
|
415
|
-
if (!
|
|
426
|
+
const l = G(null), d = s == null ? void 0 : s.replace(/[{}]/g, ""), c = t.replace(/[{}]/g, ""), { text: u, background: x } = Mn(c), w = `hsl(${u} / 100%)`, v = `hsl(${x} / 10%)`, p = `hsl(${x} / 50%)`;
|
|
427
|
+
return ne(() => {
|
|
428
|
+
if (!d || !l.current) return;
|
|
416
429
|
const f = () => {
|
|
417
|
-
document.querySelectorAll(`[${
|
|
418
|
-
|
|
430
|
+
document.querySelectorAll(`[${ye}="${d}"]`).forEach((h) => {
|
|
431
|
+
h instanceof HTMLElement && (h.dataset.active = "true");
|
|
419
432
|
});
|
|
420
|
-
},
|
|
421
|
-
document.querySelectorAll(`[${
|
|
422
|
-
|
|
433
|
+
}, m = () => {
|
|
434
|
+
document.querySelectorAll(`[${ye}="${d}"]`).forEach((h) => {
|
|
435
|
+
h instanceof HTMLElement && (h.dataset.active = "false");
|
|
423
436
|
});
|
|
424
|
-
},
|
|
425
|
-
return
|
|
426
|
-
|
|
437
|
+
}, y = l.current;
|
|
438
|
+
return y.addEventListener("mouseenter", f), y.addEventListener("mouseleave", m), () => {
|
|
439
|
+
y.removeEventListener("mouseenter", f), y.removeEventListener("mouseleave", m);
|
|
427
440
|
};
|
|
428
|
-
}, [
|
|
441
|
+
}, [d]), /* @__PURE__ */ e.jsx(
|
|
429
442
|
"span",
|
|
430
443
|
{
|
|
431
|
-
[
|
|
432
|
-
className:
|
|
444
|
+
[ye]: d,
|
|
445
|
+
className: g(
|
|
433
446
|
// This may not contain (inline-)flex or (inline-)block otherwise it breaks the browser's full text search
|
|
434
447
|
"relative transition-all duration-100 rounded-lg",
|
|
435
448
|
"border border-[--border-color] p-0.5 text-[--param-color] bg-[--background-color]",
|
|
@@ -441,31 +454,35 @@ const ie = (t) => Math.abs(
|
|
|
441
454
|
ref: l,
|
|
442
455
|
onClick: i,
|
|
443
456
|
style: {
|
|
444
|
-
"--param-color":
|
|
445
|
-
"--border-color":
|
|
446
|
-
"--background-color":
|
|
457
|
+
"--param-color": w,
|
|
458
|
+
"--border-color": p,
|
|
459
|
+
"--background-color": v
|
|
447
460
|
},
|
|
448
461
|
children: r ?? t
|
|
449
462
|
}
|
|
450
463
|
);
|
|
451
|
-
},
|
|
452
|
-
|
|
464
|
+
}, Hn = xt()(
|
|
465
|
+
gt(
|
|
453
466
|
(t) => ({
|
|
454
467
|
selectedServer: void 0,
|
|
455
468
|
setSelectedServer: (n) => t({ selectedServer: n })
|
|
456
469
|
}),
|
|
457
470
|
{ name: "zudoku-selected-server" }
|
|
458
471
|
)
|
|
459
|
-
),
|
|
460
|
-
const { selectedServer: n, setSelectedServer: s } =
|
|
461
|
-
return { selectedServer:
|
|
462
|
-
() =>
|
|
472
|
+
), _n = (t) => {
|
|
473
|
+
const { selectedServer: n, setSelectedServer: s } = Hn();
|
|
474
|
+
return { selectedServer: sn(
|
|
475
|
+
() => {
|
|
476
|
+
var r;
|
|
477
|
+
return n && t.some((i) => i.url === n) ? n : ((r = t.at(0)) == null ? void 0 : r.url) ?? "";
|
|
478
|
+
},
|
|
463
479
|
[n, t]
|
|
464
480
|
), setSelectedServer: s };
|
|
465
|
-
},
|
|
481
|
+
}, Bn = (t, n, s) => {
|
|
466
482
|
const a = n.replace(/(:\w+|\{\w+})/g, (i) => {
|
|
483
|
+
var c;
|
|
467
484
|
const l = i.replace(/[:{}]/g, "");
|
|
468
|
-
return s.pathParams.find((
|
|
485
|
+
return ((c = s.pathParams.find((u) => u.name === l)) == null ? void 0 : c.value) ?? i;
|
|
469
486
|
}), r = new URL(
|
|
470
487
|
a.replace(/^\//, ""),
|
|
471
488
|
t.endsWith("/") ? t : `${t}/`
|
|
@@ -473,11 +490,11 @@ const ie = (t) => Math.abs(
|
|
|
473
490
|
return s.queryParams.filter((i) => i.active).forEach((i) => {
|
|
474
491
|
r.searchParams.set(i.name, i.value);
|
|
475
492
|
}), r;
|
|
476
|
-
},
|
|
477
|
-
|
|
493
|
+
}, Tt = j.Root, $t = j.Trigger, Gn = j.Group, Jn = b.forwardRef(({ className: t, inset: n, children: s, ...a }, r) => /* @__PURE__ */ e.jsxs(
|
|
494
|
+
j.SubTrigger,
|
|
478
495
|
{
|
|
479
496
|
ref: r,
|
|
480
|
-
className:
|
|
497
|
+
className: g(
|
|
481
498
|
"flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent",
|
|
482
499
|
n && "pl-8",
|
|
483
500
|
t
|
|
@@ -485,29 +502,29 @@ const ie = (t) => Math.abs(
|
|
|
485
502
|
...a,
|
|
486
503
|
children: [
|
|
487
504
|
s,
|
|
488
|
-
/* @__PURE__ */ e.jsx(
|
|
505
|
+
/* @__PURE__ */ e.jsx(Q, { className: "ml-auto h-4 w-4" })
|
|
489
506
|
]
|
|
490
507
|
}
|
|
491
508
|
));
|
|
492
|
-
|
|
493
|
-
const
|
|
494
|
-
|
|
509
|
+
Jn.displayName = j.SubTrigger.displayName;
|
|
510
|
+
const Un = b.forwardRef(({ className: t, ...n }, s) => /* @__PURE__ */ e.jsx(
|
|
511
|
+
j.SubContent,
|
|
495
512
|
{
|
|
496
513
|
ref: s,
|
|
497
|
-
className:
|
|
514
|
+
className: g(
|
|
498
515
|
"z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
|
|
499
516
|
t
|
|
500
517
|
),
|
|
501
518
|
...n
|
|
502
519
|
}
|
|
503
520
|
));
|
|
504
|
-
|
|
505
|
-
const
|
|
506
|
-
|
|
521
|
+
Un.displayName = j.SubContent.displayName;
|
|
522
|
+
const Ae = b.forwardRef(({ className: t, sideOffset: n = 4, ...s }, a) => /* @__PURE__ */ e.jsx(j.Portal, { children: /* @__PURE__ */ e.jsx(
|
|
523
|
+
j.Content,
|
|
507
524
|
{
|
|
508
525
|
ref: a,
|
|
509
526
|
sideOffset: n,
|
|
510
|
-
className:
|
|
527
|
+
className: g(
|
|
511
528
|
"z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md",
|
|
512
529
|
"data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
|
|
513
530
|
t
|
|
@@ -515,12 +532,12 @@ const Te = g.forwardRef(({ className: t, sideOffset: n = 4, ...s }, a) => /* @__
|
|
|
515
532
|
...s
|
|
516
533
|
}
|
|
517
534
|
) }));
|
|
518
|
-
|
|
519
|
-
const
|
|
520
|
-
|
|
535
|
+
Ae.displayName = j.Content.displayName;
|
|
536
|
+
const Ee = b.forwardRef(({ className: t, inset: n, ...s }, a) => /* @__PURE__ */ e.jsx(
|
|
537
|
+
j.Item,
|
|
521
538
|
{
|
|
522
539
|
ref: a,
|
|
523
|
-
className:
|
|
540
|
+
className: g(
|
|
524
541
|
"relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
525
542
|
n && "pl-8",
|
|
526
543
|
t
|
|
@@ -528,45 +545,45 @@ const $e = g.forwardRef(({ className: t, inset: n, ...s }, a) => /* @__PURE__ */
|
|
|
528
545
|
...s
|
|
529
546
|
}
|
|
530
547
|
));
|
|
531
|
-
|
|
532
|
-
const
|
|
533
|
-
|
|
548
|
+
Ee.displayName = j.Item.displayName;
|
|
549
|
+
const Qn = b.forwardRef(({ className: t, children: n, checked: s, ...a }, r) => /* @__PURE__ */ e.jsxs(
|
|
550
|
+
j.CheckboxItem,
|
|
534
551
|
{
|
|
535
552
|
ref: r,
|
|
536
|
-
className:
|
|
553
|
+
className: g(
|
|
537
554
|
"relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
538
555
|
t
|
|
539
556
|
),
|
|
540
557
|
checked: s,
|
|
541
558
|
...a,
|
|
542
559
|
children: [
|
|
543
|
-
/* @__PURE__ */ e.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ e.jsx(
|
|
560
|
+
/* @__PURE__ */ e.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ e.jsx(j.ItemIndicator, { children: /* @__PURE__ */ e.jsx(Ht, { className: "h-4 w-4" }) }) }),
|
|
544
561
|
n
|
|
545
562
|
]
|
|
546
563
|
}
|
|
547
564
|
));
|
|
548
|
-
|
|
549
|
-
const
|
|
550
|
-
|
|
565
|
+
Qn.displayName = j.CheckboxItem.displayName;
|
|
566
|
+
const Wn = b.forwardRef(({ className: t, children: n, ...s }, a) => /* @__PURE__ */ e.jsxs(
|
|
567
|
+
j.RadioItem,
|
|
551
568
|
{
|
|
552
569
|
ref: a,
|
|
553
|
-
className:
|
|
570
|
+
className: g(
|
|
554
571
|
"relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
555
572
|
t
|
|
556
573
|
),
|
|
557
574
|
...s,
|
|
558
575
|
children: [
|
|
559
|
-
/* @__PURE__ */ e.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ e.jsx(
|
|
576
|
+
/* @__PURE__ */ e.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ e.jsx(j.ItemIndicator, { children: /* @__PURE__ */ e.jsx(_t, { className: "h-4 w-4 fill-current" }) }) }),
|
|
560
577
|
n
|
|
561
578
|
]
|
|
562
579
|
}
|
|
563
580
|
));
|
|
564
|
-
|
|
565
|
-
const
|
|
566
|
-
|
|
581
|
+
Wn.displayName = j.RadioItem.displayName;
|
|
582
|
+
const Pt = b.forwardRef(({ className: t, inset: n, ...s }, a) => /* @__PURE__ */ e.jsx(
|
|
583
|
+
j.Label,
|
|
567
584
|
{
|
|
568
585
|
ref: a,
|
|
569
|
-
className:
|
|
586
|
+
className: g(
|
|
570
587
|
"px-2 py-1.5 text-sm font-semibold",
|
|
571
588
|
n && "pl-8",
|
|
572
589
|
t
|
|
@@ -574,125 +591,78 @@ const xt = g.forwardRef(({ className: t, inset: n, ...s }, a) => /* @__PURE__ */
|
|
|
574
591
|
...s
|
|
575
592
|
}
|
|
576
593
|
));
|
|
577
|
-
|
|
578
|
-
const
|
|
579
|
-
|
|
594
|
+
Pt.displayName = j.Label.displayName;
|
|
595
|
+
const kt = b.forwardRef(({ className: t, ...n }, s) => /* @__PURE__ */ e.jsx(
|
|
596
|
+
j.Separator,
|
|
580
597
|
{
|
|
581
598
|
ref: s,
|
|
582
|
-
className:
|
|
599
|
+
className: g("-mx-1 my-1 h-px bg-muted", t),
|
|
583
600
|
...n
|
|
584
601
|
}
|
|
585
602
|
));
|
|
586
|
-
|
|
587
|
-
const
|
|
603
|
+
kt.displayName = j.Separator.displayName;
|
|
604
|
+
const Zn = ({
|
|
588
605
|
examples: t,
|
|
589
606
|
onSelect: n
|
|
590
|
-
}) => /* @__PURE__ */ e.jsxs(
|
|
591
|
-
/* @__PURE__ */ e.jsx(
|
|
592
|
-
/* @__PURE__ */ e.jsx(
|
|
593
|
-
|
|
594
|
-
/* @__PURE__ */ e.
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
{
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
"rounded-xl border bg-card text-card-foreground shadow-sm",
|
|
617
|
-
t
|
|
618
|
-
),
|
|
619
|
-
...n
|
|
620
|
-
}
|
|
621
|
-
));
|
|
622
|
-
U.displayName = "Card";
|
|
623
|
-
const Vn = g.forwardRef(({ className: t, ...n }, s) => /* @__PURE__ */ e.jsx(
|
|
624
|
-
"div",
|
|
625
|
-
{
|
|
626
|
-
ref: s,
|
|
627
|
-
className: u("flex flex-col space-y-1.5 p-6", t),
|
|
628
|
-
...n
|
|
629
|
-
}
|
|
630
|
-
));
|
|
631
|
-
Vn.displayName = "CardHeader";
|
|
632
|
-
const Fn = g.forwardRef(({ className: t, ...n }, s) => /* @__PURE__ */ e.jsx(
|
|
633
|
-
"h3",
|
|
634
|
-
{
|
|
635
|
-
ref: s,
|
|
636
|
-
className: u("font-semibold leading-none tracking-tight", t),
|
|
637
|
-
...n
|
|
638
|
-
}
|
|
639
|
-
));
|
|
640
|
-
Fn.displayName = "CardTitle";
|
|
641
|
-
const zn = g.forwardRef(({ className: t, ...n }, s) => /* @__PURE__ */ e.jsx(
|
|
642
|
-
"p",
|
|
643
|
-
{
|
|
644
|
-
ref: s,
|
|
645
|
-
className: u("text-sm text-muted-foreground", t),
|
|
646
|
-
...n
|
|
647
|
-
}
|
|
648
|
-
));
|
|
649
|
-
zn.displayName = "CardDescription";
|
|
650
|
-
const Hn = g.forwardRef(({ className: t, ...n }, s) => /* @__PURE__ */ e.jsx("div", { ref: s, className: u("p-6 pt-0", t), ...n }));
|
|
651
|
-
Hn.displayName = "CardContent";
|
|
652
|
-
const Mn = g.forwardRef(({ className: t, ...n }, s) => /* @__PURE__ */ e.jsx(
|
|
653
|
-
"div",
|
|
654
|
-
{
|
|
655
|
-
ref: s,
|
|
656
|
-
className: u("flex items-center p-6 pt-0", t),
|
|
657
|
-
...n
|
|
658
|
-
}
|
|
659
|
-
));
|
|
660
|
-
Mn.displayName = "CardFooter";
|
|
661
|
-
const se = g.forwardRef(({ className: t, ...n }, s) => /* @__PURE__ */ e.jsx(
|
|
662
|
-
xe.Root,
|
|
607
|
+
}) => /* @__PURE__ */ e.jsxs(Tt, { children: [
|
|
608
|
+
/* @__PURE__ */ e.jsx($t, { asChild: !0, children: /* @__PURE__ */ e.jsx(A, { variant: "outline", children: "Use Example" }) }),
|
|
609
|
+
/* @__PURE__ */ e.jsx(Ae, { className: "max-w-72", children: t.map((s) => {
|
|
610
|
+
var a;
|
|
611
|
+
return /* @__PURE__ */ e.jsxs("div", { children: [
|
|
612
|
+
/* @__PURE__ */ e.jsx(Pt, { children: s.mediaType }),
|
|
613
|
+
/* @__PURE__ */ e.jsx(kt, {}),
|
|
614
|
+
/* @__PURE__ */ e.jsx(Gn, { children: (a = s.examples) == null ? void 0 : a.map((r) => /* @__PURE__ */ e.jsx(
|
|
615
|
+
Ee,
|
|
616
|
+
{
|
|
617
|
+
onSelect: () => n(r, s.mediaType),
|
|
618
|
+
children: /* @__PURE__ */ e.jsx(
|
|
619
|
+
"span",
|
|
620
|
+
{
|
|
621
|
+
className: "line-clamp-1",
|
|
622
|
+
title: r.summary ?? r.name,
|
|
623
|
+
children: r.summary ?? r.name
|
|
624
|
+
}
|
|
625
|
+
)
|
|
626
|
+
},
|
|
627
|
+
r.name
|
|
628
|
+
)) })
|
|
629
|
+
] }, s.mediaType);
|
|
630
|
+
}) })
|
|
631
|
+
] }), ce = b.forwardRef(({ className: t, ...n }, s) => /* @__PURE__ */ e.jsx(
|
|
632
|
+
Ce.Root,
|
|
663
633
|
{
|
|
664
634
|
ref: s,
|
|
665
|
-
className:
|
|
635
|
+
className: g(
|
|
666
636
|
"peer h-4 w-4 shrink-0 rounded-[min(6px,var(--radius)-4px)] ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:text-primary",
|
|
667
637
|
"border border-primary data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground data-[state=checked]:border-primary",
|
|
668
638
|
t
|
|
669
639
|
),
|
|
670
640
|
...n,
|
|
671
641
|
children: /* @__PURE__ */ e.jsx(
|
|
672
|
-
|
|
642
|
+
Ce.Indicator,
|
|
673
643
|
{
|
|
674
|
-
className:
|
|
675
|
-
children: /* @__PURE__ */ e.jsx(
|
|
644
|
+
className: g("flex items-center justify-center text-current"),
|
|
645
|
+
children: /* @__PURE__ */ e.jsx(Bt, { className: "h-4 w-4" })
|
|
676
646
|
}
|
|
677
647
|
)
|
|
678
648
|
}
|
|
679
649
|
));
|
|
680
|
-
|
|
681
|
-
const
|
|
682
|
-
|
|
650
|
+
ce.displayName = Ce.Root.displayName;
|
|
651
|
+
const Xn = se.Root, It = b.forwardRef(({ className: t, align: n = "center", sideOffset: s = 4, ...a }, r) => /* @__PURE__ */ e.jsx(se.Portal, { children: /* @__PURE__ */ e.jsx(
|
|
652
|
+
se.Content,
|
|
683
653
|
{
|
|
684
654
|
ref: r,
|
|
685
655
|
align: n,
|
|
686
656
|
sideOffset: s,
|
|
687
|
-
className:
|
|
657
|
+
className: g(
|
|
688
658
|
"z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
|
|
689
659
|
t
|
|
690
660
|
),
|
|
691
661
|
...a
|
|
692
662
|
}
|
|
693
663
|
) }));
|
|
694
|
-
|
|
695
|
-
const
|
|
664
|
+
It.displayName = se.Content.displayName;
|
|
665
|
+
const Kn = ({
|
|
696
666
|
value: t,
|
|
697
667
|
options: n,
|
|
698
668
|
onChange: s,
|
|
@@ -701,76 +671,77 @@ const Bn = ({
|
|
|
701
671
|
onEnterPress: i,
|
|
702
672
|
ref: l
|
|
703
673
|
}) => {
|
|
704
|
-
const [
|
|
705
|
-
return /* @__PURE__ */ e.jsxs(
|
|
706
|
-
/* @__PURE__ */ e.jsx(
|
|
707
|
-
|
|
674
|
+
const [d, c] = k(!1), [u, x] = k(!1), w = xn((p) => p.filtered.count), v = G(null);
|
|
675
|
+
return /* @__PURE__ */ e.jsxs(Xn, { open: d, children: [
|
|
676
|
+
/* @__PURE__ */ e.jsx(hn, { children: /* @__PURE__ */ e.jsx(
|
|
677
|
+
fn,
|
|
708
678
|
{
|
|
709
|
-
ref: (
|
|
710
|
-
|
|
679
|
+
ref: (p) => {
|
|
680
|
+
v.current = p, typeof l == "function" ? l(p) : l && (l.current = p);
|
|
711
681
|
},
|
|
712
682
|
value: t,
|
|
713
683
|
placeholder: r,
|
|
714
|
-
className:
|
|
715
|
-
onFocus: () =>
|
|
684
|
+
className: g("h-9 bg-transparent", a),
|
|
685
|
+
onFocus: () => c(!0),
|
|
716
686
|
onBlur: () => {
|
|
717
|
-
|
|
687
|
+
u || c(!1);
|
|
718
688
|
},
|
|
719
|
-
onKeyDown: (
|
|
720
|
-
|
|
689
|
+
onKeyDown: (p) => {
|
|
690
|
+
var f;
|
|
691
|
+
p.key === "Enter" && (c(!1), (f = v.current) == null || f.blur(), i == null || i(p));
|
|
721
692
|
},
|
|
722
|
-
onValueChange: (
|
|
693
|
+
onValueChange: (p) => s(p)
|
|
723
694
|
}
|
|
724
695
|
) }),
|
|
725
696
|
/* @__PURE__ */ e.jsx(
|
|
726
|
-
|
|
697
|
+
It,
|
|
727
698
|
{
|
|
728
699
|
onMouseEnter: () => x(!0),
|
|
729
700
|
onMouseLeave: () => x(!1),
|
|
730
|
-
onOpenAutoFocus: (
|
|
731
|
-
className:
|
|
732
|
-
"border-0":
|
|
701
|
+
onOpenAutoFocus: (p) => p.preventDefault(),
|
|
702
|
+
className: g("p-0 w-[--radix-popover-trigger-width]", {
|
|
703
|
+
"border-0": w === 0
|
|
733
704
|
}),
|
|
734
705
|
align: "start",
|
|
735
706
|
side: "bottom",
|
|
736
|
-
onWheel: (
|
|
737
|
-
|
|
707
|
+
onWheel: (p) => {
|
|
708
|
+
p.stopPropagation();
|
|
738
709
|
},
|
|
739
|
-
onTouchMove: (
|
|
740
|
-
|
|
710
|
+
onTouchMove: (p) => {
|
|
711
|
+
p.stopPropagation();
|
|
741
712
|
},
|
|
742
|
-
children: /* @__PURE__ */ e.jsx(
|
|
743
|
-
|
|
713
|
+
children: /* @__PURE__ */ e.jsx(yn, { className: "max-h-[140px]", children: n.map((p) => /* @__PURE__ */ e.jsx(
|
|
714
|
+
vn,
|
|
744
715
|
{
|
|
745
|
-
value:
|
|
716
|
+
value: p,
|
|
746
717
|
onSelect: (f) => {
|
|
747
|
-
s(f),
|
|
718
|
+
s(f), c(!1);
|
|
748
719
|
},
|
|
749
720
|
className: "cursor-pointer",
|
|
750
|
-
children:
|
|
721
|
+
children: p
|
|
751
722
|
},
|
|
752
|
-
|
|
723
|
+
p
|
|
753
724
|
)) })
|
|
754
725
|
}
|
|
755
726
|
)
|
|
756
727
|
] });
|
|
757
|
-
},
|
|
758
|
-
const s =
|
|
759
|
-
const
|
|
760
|
-
return
|
|
728
|
+
}, ae = ({ shouldFilter: t, ...n }) => /* @__PURE__ */ e.jsx(gn, { className: "bg-transparent", shouldFilter: t, children: /* @__PURE__ */ e.jsx(Kn, { ...n }) }), De = (t, n) => {
|
|
729
|
+
const s = b.forwardRef(({ className: a, asChild: r, ...i }, l) => {
|
|
730
|
+
const d = r ? bn : t;
|
|
731
|
+
return b.createElement(d, {
|
|
761
732
|
...i,
|
|
762
733
|
ref: l,
|
|
763
|
-
className: typeof n == "function" ? n({ className: a }) :
|
|
734
|
+
className: typeof n == "function" ? n({ className: a }) : g(n, a)
|
|
764
735
|
});
|
|
765
736
|
});
|
|
766
737
|
return s.displayName = `VariantComponent(${t})`, s;
|
|
767
|
-
},
|
|
738
|
+
}, Ve = De(
|
|
768
739
|
"div",
|
|
769
740
|
"grid grid-cols-[2fr_3fr] gap-2 items-center"
|
|
770
|
-
),
|
|
741
|
+
), Fe = De(
|
|
771
742
|
"div",
|
|
772
743
|
"group hover:bg-accent px-3 grid col-span-full grid-cols-subgrid"
|
|
773
|
-
),
|
|
744
|
+
), Yn = Object.freeze([
|
|
774
745
|
"Accept",
|
|
775
746
|
"Accept-Encoding",
|
|
776
747
|
"Accept-Language",
|
|
@@ -797,66 +768,70 @@ const Bn = ({
|
|
|
797
768
|
"Set-Cookie",
|
|
798
769
|
"User-Agent",
|
|
799
770
|
"X-Requested-With"
|
|
800
|
-
]),
|
|
771
|
+
]), es = ({
|
|
801
772
|
control: t,
|
|
802
773
|
headers: n
|
|
803
774
|
}) => {
|
|
804
|
-
const { fields: s, append: a, remove: r } =
|
|
775
|
+
const { fields: s, append: a, remove: r } = Re({
|
|
805
776
|
control: t,
|
|
806
777
|
name: "headers"
|
|
807
|
-
}), { setValue: i, watch: l } =
|
|
778
|
+
}), { setValue: i, watch: l } = Oe(), d = G([]), c = G([]), u = l("headers"), x = an(() => {
|
|
808
779
|
a({ name: "", value: "", active: !1 });
|
|
809
780
|
}, [a]);
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
}, [
|
|
813
|
-
const
|
|
814
|
-
m
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
781
|
+
ne(() => {
|
|
782
|
+
u.length === 0 && x();
|
|
783
|
+
}, [u, x]);
|
|
784
|
+
const w = (f) => {
|
|
785
|
+
var m;
|
|
786
|
+
(m = d.current[f]) == null || m.focus();
|
|
787
|
+
}, v = (f) => {
|
|
788
|
+
x(), requestAnimationFrame(() => {
|
|
789
|
+
var m;
|
|
790
|
+
return (m = c.current[f + 1]) == null ? void 0 : m.focus();
|
|
791
|
+
});
|
|
792
|
+
}, p = n.filter((f) => !u.some((m) => m.name === f.name)).map(({ name: f }) => f);
|
|
818
793
|
return /* @__PURE__ */ e.jsxs("div", { className: "flex flex-col gap-2", children: [
|
|
819
|
-
/* @__PURE__ */ e.jsx(
|
|
820
|
-
const
|
|
821
|
-
(
|
|
794
|
+
/* @__PURE__ */ e.jsx(le, { className: "overflow-hidden", children: /* @__PURE__ */ e.jsx(Ve, { children: s.map((f, m) => {
|
|
795
|
+
const y = n.find(
|
|
796
|
+
(h) => h.name === l(`headers.${m}.name`)
|
|
822
797
|
);
|
|
823
|
-
return /* @__PURE__ */ e.jsxs(
|
|
798
|
+
return /* @__PURE__ */ e.jsxs(Fe, { children: [
|
|
824
799
|
/* @__PURE__ */ e.jsxs("div", { className: "flex items-center gap-2 ", children: [
|
|
825
800
|
/* @__PURE__ */ e.jsx(
|
|
826
|
-
|
|
801
|
+
L,
|
|
827
802
|
{
|
|
828
803
|
control: t,
|
|
829
|
-
name: `headers.${
|
|
830
|
-
render: ({ field:
|
|
831
|
-
|
|
804
|
+
name: `headers.${m}.active`,
|
|
805
|
+
render: ({ field: h }) => /* @__PURE__ */ e.jsx(
|
|
806
|
+
ce,
|
|
832
807
|
{
|
|
833
|
-
id: `headers.${
|
|
834
|
-
checked:
|
|
835
|
-
onCheckedChange: (
|
|
836
|
-
|
|
808
|
+
id: `headers.${m}.active`,
|
|
809
|
+
checked: h.value,
|
|
810
|
+
onCheckedChange: (T) => {
|
|
811
|
+
h.onChange(T);
|
|
837
812
|
}
|
|
838
813
|
}
|
|
839
814
|
)
|
|
840
815
|
}
|
|
841
816
|
),
|
|
842
817
|
/* @__PURE__ */ e.jsx(
|
|
843
|
-
|
|
818
|
+
L,
|
|
844
819
|
{
|
|
845
820
|
control: t,
|
|
846
|
-
name: `headers.${
|
|
847
|
-
render: ({ field:
|
|
848
|
-
|
|
821
|
+
name: `headers.${m}.name`,
|
|
822
|
+
render: ({ field: h }) => /* @__PURE__ */ e.jsx(
|
|
823
|
+
ae,
|
|
849
824
|
{
|
|
850
|
-
...
|
|
825
|
+
...h,
|
|
851
826
|
placeholder: "Name",
|
|
852
827
|
className: "border-0 shadow-none bg-transparent text-xs font-mono",
|
|
853
|
-
options: [...
|
|
854
|
-
onEnterPress: () =>
|
|
855
|
-
onChange: (
|
|
856
|
-
|
|
828
|
+
options: [...p, ...Yn],
|
|
829
|
+
onEnterPress: () => w(m),
|
|
830
|
+
onChange: (T) => {
|
|
831
|
+
h.onChange(T), i(`headers.${m}.active`, !0);
|
|
857
832
|
},
|
|
858
|
-
ref: (
|
|
859
|
-
|
|
833
|
+
ref: (T) => {
|
|
834
|
+
c.current[m] = T;
|
|
860
835
|
}
|
|
861
836
|
}
|
|
862
837
|
)
|
|
@@ -865,32 +840,32 @@ const Bn = ({
|
|
|
865
840
|
] }),
|
|
866
841
|
/* @__PURE__ */ e.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
867
842
|
/* @__PURE__ */ e.jsx(
|
|
868
|
-
|
|
843
|
+
L,
|
|
869
844
|
{
|
|
870
845
|
control: t,
|
|
871
|
-
name: `headers.${
|
|
872
|
-
render: ({ field:
|
|
873
|
-
|
|
846
|
+
name: `headers.${m}.value`,
|
|
847
|
+
render: ({ field: h }) => (y == null ? void 0 : y.enum) && y.enum.length > 0 ? /* @__PURE__ */ e.jsx(
|
|
848
|
+
ae,
|
|
874
849
|
{
|
|
875
850
|
shouldFilter: !1,
|
|
876
|
-
value:
|
|
877
|
-
options:
|
|
878
|
-
onChange: (
|
|
879
|
-
|
|
851
|
+
value: h.value,
|
|
852
|
+
options: y.enum ?? [],
|
|
853
|
+
onChange: ($) => {
|
|
854
|
+
h.onChange($), i(`headers.${m}.active`, !0);
|
|
880
855
|
},
|
|
881
856
|
className: "font-mono text-xs border-0"
|
|
882
857
|
}
|
|
883
858
|
) : /* @__PURE__ */ e.jsx(
|
|
884
|
-
|
|
859
|
+
qe,
|
|
885
860
|
{
|
|
886
861
|
placeholder: "Value",
|
|
887
862
|
className: "w-full border-0 shadow-none text-xs font-mono focus-visible:ring-0",
|
|
888
|
-
...
|
|
889
|
-
ref: (
|
|
890
|
-
|
|
863
|
+
...h,
|
|
864
|
+
ref: ($) => {
|
|
865
|
+
d.current[m] = $;
|
|
891
866
|
},
|
|
892
|
-
onKeyDown: (
|
|
893
|
-
|
|
867
|
+
onKeyDown: ($) => {
|
|
868
|
+
$.key === "Enter" && $.currentTarget.value.trim() && v(m);
|
|
894
869
|
},
|
|
895
870
|
autoComplete: "off"
|
|
896
871
|
}
|
|
@@ -898,21 +873,21 @@ const Bn = ({
|
|
|
898
873
|
}
|
|
899
874
|
),
|
|
900
875
|
/* @__PURE__ */ e.jsx(
|
|
901
|
-
|
|
876
|
+
W,
|
|
902
877
|
{
|
|
903
878
|
size: "icon",
|
|
904
879
|
variant: "ghost",
|
|
905
880
|
className: "text-muted-foreground opacity-0 group-hover:opacity-100 rounded-full w-8 h-7",
|
|
906
|
-
onClick: () => r(
|
|
881
|
+
onClick: () => r(m),
|
|
907
882
|
type: "button",
|
|
908
|
-
children: /* @__PURE__ */ e.jsx(
|
|
883
|
+
children: /* @__PURE__ */ e.jsx(Gt, { size: 16 })
|
|
909
884
|
}
|
|
910
885
|
)
|
|
911
886
|
] })
|
|
912
887
|
] }, f.id);
|
|
913
888
|
}) }) }),
|
|
914
889
|
/* @__PURE__ */ e.jsx("div", { className: "text-end", children: /* @__PURE__ */ e.jsx(
|
|
915
|
-
|
|
890
|
+
W,
|
|
916
891
|
{
|
|
917
892
|
className: "",
|
|
918
893
|
onClick: x,
|
|
@@ -922,110 +897,110 @@ const Bn = ({
|
|
|
922
897
|
}
|
|
923
898
|
) })
|
|
924
899
|
] });
|
|
925
|
-
},
|
|
900
|
+
}, ts = vt(
|
|
926
901
|
"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
|
|
927
|
-
),
|
|
928
|
-
|
|
902
|
+
), _ = b.forwardRef(({ className: t, ...n }, s) => /* @__PURE__ */ e.jsx(
|
|
903
|
+
Nt.Root,
|
|
929
904
|
{
|
|
930
905
|
ref: s,
|
|
931
|
-
className:
|
|
906
|
+
className: g(ts(), t),
|
|
932
907
|
...n
|
|
933
908
|
}
|
|
934
909
|
));
|
|
935
|
-
|
|
936
|
-
const
|
|
937
|
-
|
|
910
|
+
_.displayName = Nt.Root.displayName;
|
|
911
|
+
const ze = b.forwardRef(({ className: t, ...n }, s) => /* @__PURE__ */ e.jsx(
|
|
912
|
+
Z.Root,
|
|
938
913
|
{
|
|
939
|
-
className:
|
|
914
|
+
className: g("grid gap-2", t),
|
|
940
915
|
...n,
|
|
941
916
|
ref: s
|
|
942
917
|
}
|
|
943
918
|
));
|
|
944
|
-
|
|
945
|
-
const
|
|
946
|
-
|
|
919
|
+
ze.displayName = Z.Root.displayName;
|
|
920
|
+
const re = b.forwardRef(({ className: t, ...n }, s) => /* @__PURE__ */ e.jsx(
|
|
921
|
+
Z.Item,
|
|
947
922
|
{
|
|
948
923
|
ref: s,
|
|
949
|
-
className:
|
|
924
|
+
className: g(
|
|
950
925
|
"aspect-square h-4 w-4 rounded-full border border-primary text-primary ring-offset-background focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",
|
|
951
926
|
t
|
|
952
927
|
),
|
|
953
928
|
...n,
|
|
954
|
-
children: /* @__PURE__ */ e.jsx(
|
|
929
|
+
children: /* @__PURE__ */ e.jsx(Z.Indicator, { className: "flex items-center justify-center", children: /* @__PURE__ */ e.jsx(Jt, { className: "h-2.5 w-2.5 fill-current text-current" }) })
|
|
955
930
|
}
|
|
956
931
|
));
|
|
957
|
-
|
|
958
|
-
const
|
|
932
|
+
re.displayName = Z.Item.displayName;
|
|
933
|
+
const Rt = ({
|
|
959
934
|
identities: t,
|
|
960
935
|
setValue: n,
|
|
961
936
|
value: s
|
|
962
|
-
}) => /* @__PURE__ */ e.jsx(
|
|
963
|
-
|
|
937
|
+
}) => /* @__PURE__ */ e.jsx(le, { className: "w-full overflow-hidden", children: /* @__PURE__ */ e.jsxs(
|
|
938
|
+
ze,
|
|
964
939
|
{
|
|
965
940
|
onValueChange: (a) => n(a),
|
|
966
941
|
value: s,
|
|
967
|
-
defaultValue:
|
|
942
|
+
defaultValue: B,
|
|
968
943
|
className: "gap-0",
|
|
969
|
-
disabled: t
|
|
944
|
+
disabled: (t == null ? void 0 : t.length) === 0,
|
|
970
945
|
children: [
|
|
971
946
|
/* @__PURE__ */ e.jsxs(
|
|
972
|
-
|
|
947
|
+
_,
|
|
973
948
|
{
|
|
974
949
|
className: "h-12 border-b items-center flex p-4 cursor-pointer hover:bg-accent",
|
|
975
950
|
htmlFor: "none",
|
|
976
951
|
children: [
|
|
977
|
-
/* @__PURE__ */ e.jsx(
|
|
978
|
-
/* @__PURE__ */ e.jsx(
|
|
952
|
+
/* @__PURE__ */ e.jsx(re, { value: B, id: "none", children: "None" }),
|
|
953
|
+
/* @__PURE__ */ e.jsx(_, { htmlFor: "none", className: "ml-2", children: "None" })
|
|
979
954
|
]
|
|
980
955
|
}
|
|
981
956
|
),
|
|
982
|
-
t
|
|
983
|
-
|
|
957
|
+
t == null ? void 0 : t.map((a) => /* @__PURE__ */ e.jsxs(
|
|
958
|
+
_,
|
|
984
959
|
{
|
|
985
960
|
className: "h-12 border-b items-center flex p-4 cursor-pointer hover:bg-accent",
|
|
986
961
|
children: [
|
|
987
|
-
/* @__PURE__ */ e.jsx(
|
|
988
|
-
/* @__PURE__ */ e.jsx(
|
|
962
|
+
/* @__PURE__ */ e.jsx(re, { value: a.id, id: a.id, children: a.label }),
|
|
963
|
+
/* @__PURE__ */ e.jsx(_, { htmlFor: a.id, className: "ml-2", children: a.label })
|
|
989
964
|
]
|
|
990
965
|
},
|
|
991
966
|
a.id
|
|
992
967
|
))
|
|
993
968
|
]
|
|
994
969
|
}
|
|
995
|
-
) }),
|
|
970
|
+
) }), ns = ({
|
|
996
971
|
onSubmit: t,
|
|
997
972
|
identities: n,
|
|
998
973
|
open: s,
|
|
999
974
|
onOpenChange: a
|
|
1000
975
|
}) => {
|
|
1001
|
-
const [r, i] =
|
|
1002
|
-
return /* @__PURE__ */ e.jsx(
|
|
1003
|
-
/* @__PURE__ */ e.jsx(
|
|
1004
|
-
/* @__PURE__ */ e.jsx(
|
|
976
|
+
const [r, i] = k(void 0), [l, d] = k(!1);
|
|
977
|
+
return /* @__PURE__ */ e.jsx(Pe, { open: s, onOpenChange: a, children: /* @__PURE__ */ e.jsxs(ke, { children: [
|
|
978
|
+
/* @__PURE__ */ e.jsx(Ie, { children: "Select an auth identity" }),
|
|
979
|
+
/* @__PURE__ */ e.jsx(ft, { children: "Please select an identity for this request." }),
|
|
1005
980
|
/* @__PURE__ */ e.jsx("div", { className: "max-h-80 overflow-auto", children: /* @__PURE__ */ e.jsx(
|
|
1006
|
-
|
|
981
|
+
Rt,
|
|
1007
982
|
{
|
|
1008
983
|
identities: n,
|
|
1009
984
|
setValue: i,
|
|
1010
985
|
value: r
|
|
1011
986
|
}
|
|
1012
987
|
) }),
|
|
1013
|
-
/* @__PURE__ */ e.jsxs(
|
|
988
|
+
/* @__PURE__ */ e.jsxs(yt, { className: "flex flex-col gap-2", children: [
|
|
1014
989
|
/* @__PURE__ */ e.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
1015
990
|
/* @__PURE__ */ e.jsx(
|
|
1016
|
-
|
|
991
|
+
ce,
|
|
1017
992
|
{
|
|
1018
993
|
id: "remember",
|
|
1019
994
|
checked: l,
|
|
1020
|
-
onCheckedChange: (
|
|
1021
|
-
|
|
995
|
+
onCheckedChange: (c) => d(
|
|
996
|
+
c === "indeterminate" ? !1 : !!c
|
|
1022
997
|
)
|
|
1023
998
|
}
|
|
1024
999
|
),
|
|
1025
|
-
/* @__PURE__ */ e.jsx(
|
|
1000
|
+
/* @__PURE__ */ e.jsx(_, { htmlFor: "remember", children: "Remember my choice" })
|
|
1026
1001
|
] }),
|
|
1027
1002
|
/* @__PURE__ */ e.jsx(
|
|
1028
|
-
|
|
1003
|
+
A,
|
|
1029
1004
|
{
|
|
1030
1005
|
onClick: () => t({ identity: r, rememberedIdentity: l }),
|
|
1031
1006
|
children: "Send"
|
|
@@ -1033,24 +1008,24 @@ const yt = ({
|
|
|
1033
1008
|
)
|
|
1034
1009
|
] })
|
|
1035
1010
|
] }) });
|
|
1036
|
-
},
|
|
1011
|
+
}, ss = ({
|
|
1037
1012
|
control: t,
|
|
1038
1013
|
url: n
|
|
1039
1014
|
}) => {
|
|
1040
|
-
const { fields: s } =
|
|
1015
|
+
const { fields: s } = Re({
|
|
1041
1016
|
control: t,
|
|
1042
1017
|
name: "pathParams"
|
|
1043
1018
|
}), a = [...s].sort(
|
|
1044
1019
|
(r, i) => n.indexOf(`{${r.name}}`) - n.indexOf(`{${i.name}}`)
|
|
1045
1020
|
);
|
|
1046
|
-
return /* @__PURE__ */ e.jsx(
|
|
1021
|
+
return /* @__PURE__ */ e.jsx(le, { className: "rounded-lg", children: /* @__PURE__ */ e.jsx(Ve, { children: a.map((r, i) => /* @__PURE__ */ e.jsxs(Fe, { children: [
|
|
1047
1022
|
/* @__PURE__ */ e.jsx(
|
|
1048
|
-
|
|
1023
|
+
L,
|
|
1049
1024
|
{
|
|
1050
1025
|
control: t,
|
|
1051
1026
|
name: `pathParams.${i}.name`,
|
|
1052
1027
|
render: () => /* @__PURE__ */ e.jsx("div", { className: "flex items-center", children: /* @__PURE__ */ e.jsx(
|
|
1053
|
-
|
|
1028
|
+
St,
|
|
1054
1029
|
{
|
|
1055
1030
|
slug: r.name,
|
|
1056
1031
|
name: r.name,
|
|
@@ -1060,12 +1035,12 @@ const yt = ({
|
|
|
1060
1035
|
}
|
|
1061
1036
|
),
|
|
1062
1037
|
/* @__PURE__ */ e.jsx("div", { className: "flex justify-between items-center", children: /* @__PURE__ */ e.jsx(
|
|
1063
|
-
|
|
1038
|
+
L,
|
|
1064
1039
|
{
|
|
1065
1040
|
control: t,
|
|
1066
1041
|
name: `pathParams.${i}.value`,
|
|
1067
1042
|
render: ({ field: l }) => /* @__PURE__ */ e.jsx(
|
|
1068
|
-
|
|
1043
|
+
qe,
|
|
1069
1044
|
{
|
|
1070
1045
|
...l,
|
|
1071
1046
|
required: !0,
|
|
@@ -1076,61 +1051,61 @@ const yt = ({
|
|
|
1076
1051
|
}
|
|
1077
1052
|
) })
|
|
1078
1053
|
] }, r.id)) }) });
|
|
1079
|
-
},
|
|
1054
|
+
}, as = De(
|
|
1080
1055
|
"input",
|
|
1081
1056
|
"px-2 bg-transparent h-6 font-mono text-xs m-2"
|
|
1082
|
-
),
|
|
1057
|
+
), rs = ({
|
|
1083
1058
|
control: t,
|
|
1084
1059
|
queryParams: n
|
|
1085
1060
|
}) => {
|
|
1086
|
-
const { fields: s } =
|
|
1061
|
+
const { fields: s } = Re({
|
|
1087
1062
|
control: t,
|
|
1088
1063
|
name: "queryParams"
|
|
1089
|
-
}), a =
|
|
1090
|
-
return /* @__PURE__ */ e.jsx(
|
|
1091
|
-
const
|
|
1092
|
-
(
|
|
1064
|
+
}), a = Oe(), r = n.map((i) => !!i.isRequired);
|
|
1065
|
+
return /* @__PURE__ */ e.jsx(le, { className: "rounded-lg", children: /* @__PURE__ */ e.jsx("div", { className: "w-full ", children: /* @__PURE__ */ e.jsx(Ve, { children: s.map((i, l) => {
|
|
1066
|
+
const d = n.find(
|
|
1067
|
+
(c) => c.name === a.watch(`queryParams.${l}.name`)
|
|
1093
1068
|
);
|
|
1094
|
-
return /* @__PURE__ */ e.jsxs(
|
|
1069
|
+
return /* @__PURE__ */ e.jsxs(Fe, { children: [
|
|
1095
1070
|
/* @__PURE__ */ e.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
1096
1071
|
/* @__PURE__ */ e.jsx(
|
|
1097
|
-
|
|
1072
|
+
L,
|
|
1098
1073
|
{
|
|
1099
1074
|
control: t,
|
|
1100
1075
|
name: `queryParams.${l}.active`,
|
|
1101
|
-
render: ({ field:
|
|
1102
|
-
|
|
1076
|
+
render: ({ field: c }) => /* @__PURE__ */ e.jsx(
|
|
1077
|
+
ce,
|
|
1103
1078
|
{
|
|
1104
1079
|
id: `queryParams.${l}.active`,
|
|
1105
1080
|
className: "mr-2",
|
|
1106
|
-
checked:
|
|
1107
|
-
onCheckedChange:
|
|
1081
|
+
checked: c.value,
|
|
1082
|
+
onCheckedChange: c.onChange
|
|
1108
1083
|
}
|
|
1109
1084
|
)
|
|
1110
1085
|
}
|
|
1111
1086
|
),
|
|
1112
1087
|
/* @__PURE__ */ e.jsx(
|
|
1113
|
-
|
|
1088
|
+
L,
|
|
1114
1089
|
{
|
|
1115
1090
|
control: t,
|
|
1116
|
-
render: ({ field:
|
|
1091
|
+
render: ({ field: c }) => r[l] ? /* @__PURE__ */ e.jsx(as, { asChild: !0, children: /* @__PURE__ */ e.jsxs(
|
|
1117
1092
|
"label",
|
|
1118
1093
|
{
|
|
1119
1094
|
className: "flex items-center cursor-pointer gap-1",
|
|
1120
1095
|
htmlFor: `queryParams.${l}.active`,
|
|
1121
1096
|
title: r[l] ? "Required field" : void 0,
|
|
1122
1097
|
children: [
|
|
1123
|
-
|
|
1098
|
+
c.value,
|
|
1124
1099
|
r[l] && /* @__PURE__ */ e.jsx("sup", { children: " *" })
|
|
1125
1100
|
]
|
|
1126
1101
|
}
|
|
1127
1102
|
) }) : /* @__PURE__ */ e.jsx(
|
|
1128
|
-
|
|
1103
|
+
ae,
|
|
1129
1104
|
{
|
|
1130
|
-
value:
|
|
1131
|
-
options: n.map((
|
|
1132
|
-
onChange: (
|
|
1133
|
-
|
|
1105
|
+
value: c.value,
|
|
1106
|
+
options: n.map((u) => u.name),
|
|
1107
|
+
onChange: (u) => {
|
|
1108
|
+
c.onChange(u);
|
|
1134
1109
|
},
|
|
1135
1110
|
className: "border-0 font-mono text-xs bg-transparent hover:bg-transparent"
|
|
1136
1111
|
}
|
|
@@ -1140,25 +1115,25 @@ const yt = ({
|
|
|
1140
1115
|
)
|
|
1141
1116
|
] }, i.id),
|
|
1142
1117
|
/* @__PURE__ */ e.jsx("div", { className: "flex justify-between items-center", children: /* @__PURE__ */ e.jsx(
|
|
1143
|
-
|
|
1118
|
+
L,
|
|
1144
1119
|
{
|
|
1145
1120
|
control: t,
|
|
1146
|
-
render: ({ field:
|
|
1147
|
-
|
|
1121
|
+
render: ({ field: c }) => (d == null ? void 0 : d.enum) && d.enum.length > 0 ? /* @__PURE__ */ e.jsx(
|
|
1122
|
+
ae,
|
|
1148
1123
|
{
|
|
1149
|
-
value:
|
|
1150
|
-
options:
|
|
1124
|
+
value: c.value,
|
|
1125
|
+
options: d.enum ?? [],
|
|
1151
1126
|
onChange: (x) => {
|
|
1152
|
-
|
|
1127
|
+
c.onChange(x), a.setValue(`queryParams.${l}.active`, !0);
|
|
1153
1128
|
},
|
|
1154
1129
|
className: "font-mono text-xs border-0 ring-1 ring-ring"
|
|
1155
1130
|
}
|
|
1156
1131
|
) : /* @__PURE__ */ e.jsx(
|
|
1157
|
-
|
|
1132
|
+
qe,
|
|
1158
1133
|
{
|
|
1159
|
-
...
|
|
1134
|
+
...c,
|
|
1160
1135
|
onChange: (x) => {
|
|
1161
|
-
|
|
1136
|
+
c.onChange(x.target.value), x.target.value.length > 0 && a.setValue(`queryParams.${l}.active`, !0);
|
|
1162
1137
|
},
|
|
1163
1138
|
placeholder: "Enter value",
|
|
1164
1139
|
className: "w-full border-0 shadow-none focus-visible:ring-0 text-xs font-mono"
|
|
@@ -1169,8 +1144,8 @@ const yt = ({
|
|
|
1169
1144
|
) })
|
|
1170
1145
|
] }, i.id);
|
|
1171
1146
|
}) }) }) });
|
|
1172
|
-
},
|
|
1173
|
-
|
|
1147
|
+
}, os = xt()(
|
|
1148
|
+
gt(
|
|
1174
1149
|
(t, n) => ({
|
|
1175
1150
|
rememberedIdentity: null,
|
|
1176
1151
|
setRememberedIdentity: (s) => t({ rememberedIdentity: s }),
|
|
@@ -1180,25 +1155,25 @@ const yt = ({
|
|
|
1180
1155
|
}),
|
|
1181
1156
|
{
|
|
1182
1157
|
name: "identity-storage",
|
|
1183
|
-
storage:
|
|
1158
|
+
storage: Xt(() => sessionStorage)
|
|
1184
1159
|
}
|
|
1185
1160
|
)
|
|
1186
|
-
),
|
|
1161
|
+
), is = ({
|
|
1187
1162
|
open: t,
|
|
1188
1163
|
setOpen: n,
|
|
1189
1164
|
onSignUp: s,
|
|
1190
1165
|
onLogin: a
|
|
1191
|
-
}) => /* @__PURE__ */ e.jsx(
|
|
1192
|
-
/* @__PURE__ */ e.jsx(
|
|
1193
|
-
/* @__PURE__ */ e.jsx(
|
|
1194
|
-
/* @__PURE__ */ e.jsxs(
|
|
1195
|
-
/* @__PURE__ */ e.jsx(
|
|
1166
|
+
}) => /* @__PURE__ */ e.jsx(Pe, { open: t, onOpenChange: n, children: /* @__PURE__ */ e.jsxs(ke, { children: [
|
|
1167
|
+
/* @__PURE__ */ e.jsx(Ie, { children: "Welcome to the Playground!" }),
|
|
1168
|
+
/* @__PURE__ */ e.jsx(ft, { children: "The Playground is a tool for developers to test and explore our APIs. To use the Playground, you need to login." }),
|
|
1169
|
+
/* @__PURE__ */ e.jsxs(yt, { className: "flex gap-2 sm:justify-between", children: [
|
|
1170
|
+
/* @__PURE__ */ e.jsx(A, { type: "button", variant: "ghost", onClick: () => n(!1), children: "Skip" }),
|
|
1196
1171
|
/* @__PURE__ */ e.jsxs("div", { className: "flex gap-2", children: [
|
|
1197
|
-
s && /* @__PURE__ */ e.jsx(
|
|
1198
|
-
a && /* @__PURE__ */ e.jsx(
|
|
1172
|
+
s && /* @__PURE__ */ e.jsx(A, { type: "button", variant: "outline", onClick: s, children: "Sign Up" }),
|
|
1173
|
+
a && /* @__PURE__ */ e.jsx(A, { type: "button", variant: "default", onClick: a, children: "Login" })
|
|
1199
1174
|
] })
|
|
1200
1175
|
] })
|
|
1201
|
-
] }) }),
|
|
1176
|
+
] }) }), I = {
|
|
1202
1177
|
green: "text-green-600",
|
|
1203
1178
|
blue: "text-sky-600",
|
|
1204
1179
|
yellow: "text-yellow-600",
|
|
@@ -1206,48 +1181,48 @@ const yt = ({
|
|
|
1206
1181
|
purple: "text-purple-600",
|
|
1207
1182
|
indigo: "text-indigo-600",
|
|
1208
1183
|
gray: "text-gray-600"
|
|
1209
|
-
},
|
|
1210
|
-
get:
|
|
1211
|
-
post:
|
|
1212
|
-
put:
|
|
1213
|
-
delete:
|
|
1214
|
-
patch:
|
|
1215
|
-
options:
|
|
1216
|
-
head:
|
|
1217
|
-
trace:
|
|
1218
|
-
},
|
|
1184
|
+
}, ls = {
|
|
1185
|
+
get: I.green,
|
|
1186
|
+
post: I.blue,
|
|
1187
|
+
put: I.yellow,
|
|
1188
|
+
delete: I.red,
|
|
1189
|
+
patch: I.purple,
|
|
1190
|
+
options: I.indigo,
|
|
1191
|
+
head: I.gray,
|
|
1192
|
+
trace: I.gray
|
|
1193
|
+
}, cs = (t) => ls[t.toLocaleLowerCase()] ?? I.gray, ds = ({
|
|
1219
1194
|
method: t,
|
|
1220
1195
|
url: n,
|
|
1221
1196
|
headers: s,
|
|
1222
1197
|
body: a
|
|
1223
1198
|
}) => /* @__PURE__ */ e.jsxs("div", { className: "flex flex-col gap-2 font-mono text-xs", children: [
|
|
1224
1199
|
/* @__PURE__ */ e.jsxs("div", { className: "gap-2 p-2 bg-muted rounded-md", children: [
|
|
1225
|
-
/* @__PURE__ */ e.jsx("span", { className:
|
|
1200
|
+
/* @__PURE__ */ e.jsx("span", { className: g(cs(t), "font-semibold"), children: t }),
|
|
1226
1201
|
" ",
|
|
1227
1202
|
/* @__PURE__ */ e.jsx("span", { className: "break-all", children: n }),
|
|
1228
1203
|
" ",
|
|
1229
1204
|
/* @__PURE__ */ e.jsx("span", { className: "text-muted-foreground", children: "HTTP/1.1" })
|
|
1230
1205
|
] }),
|
|
1231
1206
|
/* @__PURE__ */ e.jsxs("div", { className: "mx-1.5 flex flex-col gap-3", children: [
|
|
1232
|
-
/* @__PURE__ */ e.jsxs(
|
|
1233
|
-
/* @__PURE__ */ e.jsxs(
|
|
1234
|
-
/* @__PURE__ */ e.jsx(
|
|
1207
|
+
/* @__PURE__ */ e.jsxs(at, { defaultOpen: !0, children: [
|
|
1208
|
+
/* @__PURE__ */ e.jsxs(rt, { className: "flex items-center gap-2 hover:text-primary group", children: [
|
|
1209
|
+
/* @__PURE__ */ e.jsx(Q, { className: "h-4 w-4 transition-transform duration-200 group-data-[state=open]:rotate-[90deg]" }),
|
|
1235
1210
|
/* @__PURE__ */ e.jsx("span", { className: "font-semibold", children: "Headers" })
|
|
1236
1211
|
] }),
|
|
1237
|
-
/* @__PURE__ */ e.jsx(
|
|
1212
|
+
/* @__PURE__ */ e.jsx(ot, { children: /* @__PURE__ */ e.jsx("div", { className: "grid grid-cols-[auto,1fr] gap-x-8 gap-y-1 pl-1.5 pt-2", children: s.map(([r, i]) => /* @__PURE__ */ e.jsxs(q, { children: [
|
|
1238
1213
|
/* @__PURE__ */ e.jsx("div", { className: "text-primary", children: r }),
|
|
1239
1214
|
/* @__PURE__ */ e.jsx("div", { className: "break-all", children: i })
|
|
1240
1215
|
] }, r)) }) })
|
|
1241
1216
|
] }),
|
|
1242
|
-
/* @__PURE__ */ e.jsxs(
|
|
1243
|
-
/* @__PURE__ */ e.jsxs(
|
|
1244
|
-
/* @__PURE__ */ e.jsx(
|
|
1217
|
+
/* @__PURE__ */ e.jsxs(at, { defaultOpen: !0, children: [
|
|
1218
|
+
/* @__PURE__ */ e.jsxs(rt, { className: "flex items-center gap-2 hover:text-primary group", children: [
|
|
1219
|
+
/* @__PURE__ */ e.jsx(Q, { className: "h-4 w-4 transition-transform duration-200 group-data-[state=open]:rotate-[90deg]" }),
|
|
1245
1220
|
/* @__PURE__ */ e.jsx("span", { className: "font-semibold", children: "Body" })
|
|
1246
1221
|
] }),
|
|
1247
|
-
/* @__PURE__ */ e.jsx(
|
|
1222
|
+
/* @__PURE__ */ e.jsx(ot, { children: /* @__PURE__ */ e.jsx("div", { className: "pl-0 pt-2", children: /* @__PURE__ */ e.jsx(
|
|
1248
1223
|
"div",
|
|
1249
1224
|
{
|
|
1250
|
-
className:
|
|
1225
|
+
className: g(
|
|
1251
1226
|
"whitespace-pre-wrap break-all bg-muted p-2 rounded-md",
|
|
1252
1227
|
!a && "text-muted-foreground"
|
|
1253
1228
|
),
|
|
@@ -1256,29 +1231,29 @@ const yt = ({
|
|
|
1256
1231
|
) }) })
|
|
1257
1232
|
] })
|
|
1258
1233
|
] })
|
|
1259
|
-
] }),
|
|
1260
|
-
function
|
|
1234
|
+
] }), lt = Le.Root, ct = Le.CollapsibleTrigger, dt = Le.CollapsibleContent;
|
|
1235
|
+
function Me(t) {
|
|
1261
1236
|
if (t === null) return "null";
|
|
1262
1237
|
if (Array.isArray(t)) {
|
|
1263
1238
|
if (t.length === 0) return "any[]";
|
|
1264
1239
|
const n = t[0];
|
|
1265
|
-
return n === void 0 ? "any[]" : `${
|
|
1240
|
+
return n === void 0 ? "any[]" : `${Me(n)}[]`;
|
|
1266
1241
|
}
|
|
1267
|
-
return typeof t == "object" ?
|
|
1242
|
+
return typeof t == "object" ? ms(t) : typeof t;
|
|
1268
1243
|
}
|
|
1269
|
-
function
|
|
1244
|
+
function ms(t, n = "") {
|
|
1270
1245
|
const s = ["{"];
|
|
1271
1246
|
for (const [a, r] of Object.entries(t)) {
|
|
1272
|
-
const i =
|
|
1247
|
+
const i = Me(r);
|
|
1273
1248
|
s.push(` ${a}: ${i};`);
|
|
1274
1249
|
}
|
|
1275
1250
|
return s.push("}"), s.join(`
|
|
1276
1251
|
`);
|
|
1277
1252
|
}
|
|
1278
|
-
function
|
|
1279
|
-
return { lines: [`type GeneratedType = ${
|
|
1253
|
+
function us(t) {
|
|
1254
|
+
return { lines: [`type GeneratedType = ${Me(t)};`] };
|
|
1280
1255
|
}
|
|
1281
|
-
const
|
|
1256
|
+
const ps = {
|
|
1282
1257
|
200: "OK",
|
|
1283
1258
|
201: "Created",
|
|
1284
1259
|
202: "Accepted",
|
|
@@ -1289,31 +1264,35 @@ const rs = {
|
|
|
1289
1264
|
404: "Not Found",
|
|
1290
1265
|
405: "Method Not Allowed",
|
|
1291
1266
|
500: "Internal Server Error"
|
|
1292
|
-
},
|
|
1267
|
+
}, mt = (t) => {
|
|
1293
1268
|
const n = Math.floor(Math.log(t) / Math.log(1e3));
|
|
1294
1269
|
return `${(t / Math.pow(1e3, n)).toFixed(
|
|
1295
1270
|
n ? 2 : 0
|
|
1296
1271
|
)} ${n ? `${"kMGTPEZY"[n - 1]}B` : "B"}`;
|
|
1297
|
-
},
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
)
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
},
|
|
1272
|
+
}, hs = (t) => {
|
|
1273
|
+
var s;
|
|
1274
|
+
return (s = Object.entries({
|
|
1275
|
+
"application/json": "json",
|
|
1276
|
+
"text/json": "json",
|
|
1277
|
+
"text/html": "html",
|
|
1278
|
+
"text/css": "css",
|
|
1279
|
+
"text/javascript": "javascript",
|
|
1280
|
+
"application/xml": "xml",
|
|
1281
|
+
"application/xhtml+xml": "xhtml"
|
|
1282
|
+
}).find(
|
|
1283
|
+
([a]) => t.includes(a)
|
|
1284
|
+
)) == null ? void 0 : s[1];
|
|
1285
|
+
}, xs = (t) => {
|
|
1286
|
+
var s;
|
|
1287
|
+
const n = ((s = t.find(([a, r]) => a === "Content-Type")) == null ? void 0 : s[1]) || "";
|
|
1288
|
+
return hs(n);
|
|
1289
|
+
}, gs = (t) => {
|
|
1311
1290
|
try {
|
|
1312
1291
|
return JSON.stringify(JSON.parse(t), null, 2);
|
|
1313
1292
|
} catch {
|
|
1314
1293
|
return null;
|
|
1315
1294
|
}
|
|
1316
|
-
},
|
|
1295
|
+
}, fs = (t) => {
|
|
1317
1296
|
const n = [
|
|
1318
1297
|
"Content-Type",
|
|
1319
1298
|
"Content-Length",
|
|
@@ -1327,7 +1306,7 @@ const rs = {
|
|
|
1327
1306
|
const r = n.indexOf(s.toLowerCase()), i = n.indexOf(a.toLowerCase());
|
|
1328
1307
|
return r === i ? 0 : r === -1 ? 1 : i === -1 ? -1 : r - i;
|
|
1329
1308
|
});
|
|
1330
|
-
},
|
|
1309
|
+
}, ut = 64e3, ys = ({
|
|
1331
1310
|
body: t = "",
|
|
1332
1311
|
headers: n,
|
|
1333
1312
|
status: s,
|
|
@@ -1335,54 +1314,55 @@ const rs = {
|
|
|
1335
1314
|
size: r,
|
|
1336
1315
|
url: i
|
|
1337
1316
|
}) => {
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1317
|
+
var f;
|
|
1318
|
+
const l = xs(n), d = gs(t), c = d || t, [u, x] = k(
|
|
1319
|
+
d ? "formatted" : "raw"
|
|
1320
|
+
), w = Kt({
|
|
1321
|
+
queryKey: ["types", c],
|
|
1322
|
+
queryFn: async () => us(JSON.parse(c)),
|
|
1323
|
+
enabled: u === "types"
|
|
1324
|
+
}), v = fs([...n]), p = r > ut;
|
|
1345
1325
|
return /* @__PURE__ */ e.jsxs("div", { className: "flex flex-col gap-2 h-full overflow-auto max-h-[calc(100vh-220px)] ", children: [
|
|
1346
|
-
/* @__PURE__ */ e.jsxs(
|
|
1347
|
-
/* @__PURE__ */ e.jsxs(
|
|
1348
|
-
/* @__PURE__ */ e.jsx(
|
|
1326
|
+
/* @__PURE__ */ e.jsxs(lt, { defaultOpen: !0, children: [
|
|
1327
|
+
/* @__PURE__ */ e.jsxs(ct, { className: "flex items-center gap-2 hover:text-primary group", children: [
|
|
1328
|
+
/* @__PURE__ */ e.jsx(Q, { className: "h-4 w-4 transition-transform duration-200 group-data-[state=open]:rotate-[90deg]" }),
|
|
1349
1329
|
/* @__PURE__ */ e.jsx("span", { className: "font-semibold", children: "Headers" })
|
|
1350
1330
|
] }),
|
|
1351
|
-
/* @__PURE__ */ e.jsx(
|
|
1352
|
-
|
|
1353
|
-
/* @__PURE__ */ e.jsx("div", { className: "text-primary whitespace-pre", children:
|
|
1354
|
-
/* @__PURE__ */ e.jsx("div", { className: "break-all", children:
|
|
1355
|
-
] },
|
|
1356
|
-
|
|
1357
|
-
/* @__PURE__ */ e.jsxs(
|
|
1358
|
-
/* @__PURE__ */ e.jsx(
|
|
1331
|
+
/* @__PURE__ */ e.jsx(dt, { children: /* @__PURE__ */ e.jsxs("div", { className: "grid grid-cols-[auto,1fr] gap-x-8 gap-y-1 pl-1.5 pt-2 font-mono text-xs", children: [
|
|
1332
|
+
v.slice(0, 5).map(([m, y]) => /* @__PURE__ */ e.jsxs(q, { children: [
|
|
1333
|
+
/* @__PURE__ */ e.jsx("div", { className: "text-primary whitespace-pre", children: m }),
|
|
1334
|
+
/* @__PURE__ */ e.jsx("div", { className: "break-all", children: y })
|
|
1335
|
+
] }, m)),
|
|
1336
|
+
v.length > 5 && /* @__PURE__ */ e.jsxs(lt, { className: "col-span-full grid-cols-subgrid grid", children: [
|
|
1337
|
+
/* @__PURE__ */ e.jsxs(ct, { className: "col-span-2 text-xs text-muted-foreground hover:text-primary flex items-center gap-1 py-1", children: [
|
|
1338
|
+
/* @__PURE__ */ e.jsx(Q, { className: "h-3 w-3 transition-transform duration-200 group-data-[state=open]:rotate-[90deg]" }),
|
|
1359
1339
|
"Show ",
|
|
1360
|
-
|
|
1340
|
+
v.length - 5,
|
|
1361
1341
|
" more headers"
|
|
1362
1342
|
] }),
|
|
1363
|
-
/* @__PURE__ */ e.jsx(
|
|
1364
|
-
/* @__PURE__ */ e.jsx("div", { className: "text-primary whitespace-pre", children:
|
|
1365
|
-
/* @__PURE__ */ e.jsx("div", { className: "break-all", children:
|
|
1366
|
-
] },
|
|
1343
|
+
/* @__PURE__ */ e.jsx(dt, { className: "col-span-full grid grid-cols-subgrid gap-x-8 gap-y-1 ", children: v.slice(5).map(([m, y]) => /* @__PURE__ */ e.jsxs(q, { children: [
|
|
1344
|
+
/* @__PURE__ */ e.jsx("div", { className: "text-primary whitespace-pre", children: m }),
|
|
1345
|
+
/* @__PURE__ */ e.jsx("div", { className: "break-all", children: y })
|
|
1346
|
+
] }, m)) })
|
|
1367
1347
|
] })
|
|
1368
1348
|
] }) })
|
|
1369
1349
|
] }),
|
|
1370
|
-
/* @__PURE__ */ e.jsxs(
|
|
1371
|
-
|
|
1350
|
+
/* @__PURE__ */ e.jsxs(wt, { className: "shadow-none", children: [
|
|
1351
|
+
p && /* @__PURE__ */ e.jsxs(jn, { type: "info", className: "my-0 p-2", children: [
|
|
1372
1352
|
"Code highlight is disabled for responses larger than",
|
|
1373
1353
|
" ",
|
|
1374
|
-
|
|
1354
|
+
mt(ut)
|
|
1375
1355
|
] }),
|
|
1376
1356
|
/* @__PURE__ */ e.jsx(
|
|
1377
|
-
|
|
1357
|
+
$n,
|
|
1378
1358
|
{
|
|
1379
|
-
language:
|
|
1359
|
+
language: u === "types" ? "typescript" : u === "raw" ? d ? "plain" : l : "json",
|
|
1380
1360
|
showCopy: "always",
|
|
1381
|
-
disabled:
|
|
1361
|
+
disabled: p,
|
|
1382
1362
|
noBackground: !0,
|
|
1383
1363
|
className: "overflow-x-auto p-4 text-xs max-h-[calc(83.333vh-180px)]",
|
|
1384
|
-
code: (
|
|
1385
|
-
`) :
|
|
1364
|
+
code: (u === "raw" ? t : u === "types" ? (f = w.data) == null ? void 0 : f.lines.join(`
|
|
1365
|
+
`) : c) ?? ""
|
|
1386
1366
|
}
|
|
1387
1367
|
)
|
|
1388
1368
|
] }),
|
|
@@ -1393,7 +1373,7 @@ const rs = {
|
|
|
1393
1373
|
" ",
|
|
1394
1374
|
s,
|
|
1395
1375
|
" ",
|
|
1396
|
-
|
|
1376
|
+
ps[s] ?? ""
|
|
1397
1377
|
] }),
|
|
1398
1378
|
/* @__PURE__ */ e.jsxs("div", { children: [
|
|
1399
1379
|
/* @__PURE__ */ e.jsx("span", { className: "text-muted-foreground", children: "Time" }),
|
|
@@ -1404,52 +1384,53 @@ const rs = {
|
|
|
1404
1384
|
/* @__PURE__ */ e.jsxs("div", { children: [
|
|
1405
1385
|
/* @__PURE__ */ e.jsx("span", { className: "text-muted-foreground", children: "Size" }),
|
|
1406
1386
|
" ",
|
|
1407
|
-
|
|
1387
|
+
mt(r)
|
|
1408
1388
|
] })
|
|
1409
1389
|
] }),
|
|
1410
|
-
|
|
1411
|
-
|
|
1390
|
+
d && /* @__PURE__ */ e.jsx("div", { children: /* @__PURE__ */ e.jsxs(
|
|
1391
|
+
je,
|
|
1412
1392
|
{
|
|
1413
|
-
value:
|
|
1414
|
-
onValueChange: (
|
|
1393
|
+
value: u,
|
|
1394
|
+
onValueChange: (m) => x(m),
|
|
1415
1395
|
children: [
|
|
1416
|
-
/* @__PURE__ */ e.jsx(
|
|
1417
|
-
/* @__PURE__ */ e.jsxs(
|
|
1418
|
-
/* @__PURE__ */ e.jsx(
|
|
1419
|
-
/* @__PURE__ */ e.jsx(
|
|
1420
|
-
/* @__PURE__ */ e.jsx(
|
|
1396
|
+
/* @__PURE__ */ e.jsx(be, { className: "min-w-32", children: /* @__PURE__ */ e.jsx(Ne, { placeholder: "View" }) }),
|
|
1397
|
+
/* @__PURE__ */ e.jsxs(we, { children: [
|
|
1398
|
+
/* @__PURE__ */ e.jsx(U, { value: "formatted", children: "Formatted" }),
|
|
1399
|
+
/* @__PURE__ */ e.jsx(U, { value: "raw", children: "Raw" }),
|
|
1400
|
+
/* @__PURE__ */ e.jsx(U, { value: "types", children: "Types" })
|
|
1421
1401
|
] })
|
|
1422
1402
|
]
|
|
1423
1403
|
}
|
|
1424
1404
|
) })
|
|
1425
1405
|
] })
|
|
1426
1406
|
] });
|
|
1427
|
-
},
|
|
1407
|
+
}, vs = ({
|
|
1428
1408
|
queryMutation: t,
|
|
1429
1409
|
showPathParamsWarning: n,
|
|
1430
1410
|
showLongRunningWarning: s,
|
|
1431
1411
|
onCancel: a
|
|
1432
1412
|
}) => {
|
|
1433
|
-
|
|
1413
|
+
var i;
|
|
1414
|
+
const r = ((((i = t.data) == null ? void 0 : i.status) ?? 0) / 100).toFixed(0);
|
|
1434
1415
|
return /* @__PURE__ */ e.jsx("div", { className: "min-w-0 p-4 py-8 bg-muted/50", children: t.error ? /* @__PURE__ */ e.jsxs("div", { className: "flex flex-col gap-2", children: [
|
|
1435
|
-
n && /* @__PURE__ */ e.jsx(
|
|
1436
|
-
/* @__PURE__ */ e.jsxs(
|
|
1437
|
-
/* @__PURE__ */ e.jsx(
|
|
1438
|
-
/* @__PURE__ */ e.jsxs(
|
|
1416
|
+
n && /* @__PURE__ */ e.jsx(wn, { type: "caution", children: "Some path parameters are missing values. Please fill them in to ensure the request is sent correctly." }),
|
|
1417
|
+
/* @__PURE__ */ e.jsxs(wt, { children: [
|
|
1418
|
+
/* @__PURE__ */ e.jsx(Cn, { children: /* @__PURE__ */ e.jsx(Sn, { children: "Request failed" }) }),
|
|
1419
|
+
/* @__PURE__ */ e.jsxs(Tn, { children: [
|
|
1439
1420
|
"Error:",
|
|
1440
1421
|
" ",
|
|
1441
1422
|
t.error.message || String(t.error) || "Unexpected error"
|
|
1442
1423
|
] })
|
|
1443
1424
|
] })
|
|
1444
|
-
] }) : t.data ? /* @__PURE__ */ e.jsxs(
|
|
1445
|
-
/* @__PURE__ */ e.jsxs(
|
|
1446
|
-
/* @__PURE__ */ e.jsx(
|
|
1447
|
-
/* @__PURE__ */ e.jsxs(
|
|
1425
|
+
] }) : t.data ? /* @__PURE__ */ e.jsxs(jt, { defaultValue: "response", children: [
|
|
1426
|
+
/* @__PURE__ */ e.jsxs(bt, { children: [
|
|
1427
|
+
/* @__PURE__ */ e.jsx(M, { value: "request", children: "Request" }),
|
|
1428
|
+
/* @__PURE__ */ e.jsxs(M, { value: "response", children: [
|
|
1448
1429
|
"Response",
|
|
1449
1430
|
/* @__PURE__ */ e.jsxs(
|
|
1450
1431
|
"span",
|
|
1451
1432
|
{
|
|
1452
|
-
className:
|
|
1433
|
+
className: g(
|
|
1453
1434
|
"text-xs font-mono ml-1",
|
|
1454
1435
|
r === "2" && "text-green-500",
|
|
1455
1436
|
r === "3" && "text-blue-500",
|
|
@@ -1465,9 +1446,9 @@ const rs = {
|
|
|
1465
1446
|
)
|
|
1466
1447
|
] })
|
|
1467
1448
|
] }),
|
|
1468
|
-
/* @__PURE__ */ e.jsx(
|
|
1469
|
-
/* @__PURE__ */ e.jsx(
|
|
1470
|
-
|
|
1449
|
+
/* @__PURE__ */ e.jsx(H, { value: "request", children: /* @__PURE__ */ e.jsx(ds, { ...t.data.request }) }),
|
|
1450
|
+
/* @__PURE__ */ e.jsx(H, { value: "response", children: /* @__PURE__ */ e.jsx(
|
|
1451
|
+
ys,
|
|
1471
1452
|
{
|
|
1472
1453
|
status: t.data.status,
|
|
1473
1454
|
time: t.data.time,
|
|
@@ -1478,18 +1459,18 @@ const rs = {
|
|
|
1478
1459
|
}
|
|
1479
1460
|
) })
|
|
1480
1461
|
] }) : /* @__PURE__ */ e.jsx("div", { className: "grid place-items-center h-full", children: t.isPending ? /* @__PURE__ */ e.jsxs("div", { className: "flex flex-col gap-2 items-center mt-20", children: [
|
|
1481
|
-
/* @__PURE__ */ e.jsx(
|
|
1462
|
+
/* @__PURE__ */ e.jsx(Nn, { size: 20 }),
|
|
1482
1463
|
/* @__PURE__ */ e.jsxs(
|
|
1483
1464
|
"div",
|
|
1484
1465
|
{
|
|
1485
|
-
className:
|
|
1466
|
+
className: g(
|
|
1486
1467
|
"opacity-0 pointer-events-none transition-opacity h-20 text-sm text-muted-foreground duration-300 flex flex-col gap-2 items-center",
|
|
1487
1468
|
s && "opacity-100 pointer-events-auto"
|
|
1488
1469
|
),
|
|
1489
1470
|
children: [
|
|
1490
1471
|
"Looks like the request is taking longer than expected.",
|
|
1491
1472
|
/* @__PURE__ */ e.jsx(
|
|
1492
|
-
|
|
1473
|
+
W,
|
|
1493
1474
|
{
|
|
1494
1475
|
type: "button",
|
|
1495
1476
|
onClick: a,
|
|
@@ -1503,43 +1484,47 @@ const rs = {
|
|
|
1503
1484
|
}
|
|
1504
1485
|
)
|
|
1505
1486
|
] }) : /* @__PURE__ */ e.jsx("span", { className: "text-[16px] font-semibold text-muted-foreground", children: "Send a request first to see the response here" }) }) });
|
|
1506
|
-
},
|
|
1487
|
+
}, js = ({
|
|
1507
1488
|
identities: t,
|
|
1508
1489
|
formRef: n,
|
|
1509
1490
|
disabled: s
|
|
1510
1491
|
}) => {
|
|
1511
|
-
const { setValue: a } =
|
|
1512
|
-
return t.length === 0 ? /* @__PURE__ */ e.jsx(
|
|
1492
|
+
const { setValue: a } = Oe(), [r, i] = k();
|
|
1493
|
+
return t.length === 0 ? /* @__PURE__ */ e.jsx(A, { disabled: s, children: "Send" }) : /* @__PURE__ */ e.jsxs("div", { className: "flex", children: [
|
|
1513
1494
|
/* @__PURE__ */ e.jsx(
|
|
1514
|
-
|
|
1495
|
+
A,
|
|
1515
1496
|
{
|
|
1516
1497
|
className: "rounded-r-none inset-shadow-sm",
|
|
1517
1498
|
disabled: s,
|
|
1518
|
-
onClick: () =>
|
|
1499
|
+
onClick: () => {
|
|
1500
|
+
var l;
|
|
1501
|
+
return (l = n == null ? void 0 : n.current) == null ? void 0 : l.requestSubmit();
|
|
1502
|
+
},
|
|
1519
1503
|
children: "Send"
|
|
1520
1504
|
}
|
|
1521
1505
|
),
|
|
1522
|
-
/* @__PURE__ */ e.jsxs(
|
|
1523
|
-
/* @__PURE__ */ e.jsx(
|
|
1524
|
-
|
|
1506
|
+
/* @__PURE__ */ e.jsxs(Tt, { children: [
|
|
1507
|
+
/* @__PURE__ */ e.jsx($t, { asChild: !0, children: /* @__PURE__ */ e.jsx(
|
|
1508
|
+
A,
|
|
1525
1509
|
{
|
|
1526
1510
|
disabled: s,
|
|
1527
1511
|
className: "rounded-l-none border-l border-border/40 inset-shadow-sm w-6",
|
|
1528
1512
|
size: "icon",
|
|
1529
|
-
children: /* @__PURE__ */ e.jsx(
|
|
1513
|
+
children: /* @__PURE__ */ e.jsx(Ut, { className: "w-4 h-4" })
|
|
1530
1514
|
}
|
|
1531
1515
|
) }),
|
|
1532
|
-
/* @__PURE__ */ e.jsx(
|
|
1516
|
+
/* @__PURE__ */ e.jsx(ze, { value: r, children: /* @__PURE__ */ e.jsx(Ae, { className: "w-56", align: "end", alignOffset: -150, children: [{ id: B, label: "None" }, ...t].map(
|
|
1533
1517
|
(l) => /* @__PURE__ */ e.jsxs(
|
|
1534
|
-
|
|
1518
|
+
Ee,
|
|
1535
1519
|
{
|
|
1536
1520
|
onClick: () => {
|
|
1537
|
-
|
|
1521
|
+
var d;
|
|
1522
|
+
i(l.id), a("identity", l.id), (d = n == null ? void 0 : n.current) == null || d.requestSubmit();
|
|
1538
1523
|
},
|
|
1539
1524
|
onMouseEnter: () => i(l.id),
|
|
1540
1525
|
onMouseLeave: () => i(void 0),
|
|
1541
1526
|
children: [
|
|
1542
|
-
/* @__PURE__ */ e.jsx(
|
|
1527
|
+
/* @__PURE__ */ e.jsx(re, { value: l.id, className: "mr-2" }),
|
|
1543
1528
|
l.label
|
|
1544
1529
|
]
|
|
1545
1530
|
},
|
|
@@ -1548,13 +1533,13 @@ const rs = {
|
|
|
1548
1533
|
) }) })
|
|
1549
1534
|
] })
|
|
1550
1535
|
] });
|
|
1551
|
-
},
|
|
1536
|
+
}, B = "__none", ve = {
|
|
1552
1537
|
Plain: "text/plain",
|
|
1553
1538
|
JSON: "application/json",
|
|
1554
1539
|
XML: "application/xml",
|
|
1555
1540
|
YAML: "application/yaml",
|
|
1556
1541
|
CSV: "text/csv"
|
|
1557
|
-
},
|
|
1542
|
+
}, bs = ({
|
|
1558
1543
|
server: t,
|
|
1559
1544
|
servers: n = [],
|
|
1560
1545
|
url: s,
|
|
@@ -1562,17 +1547,18 @@ const rs = {
|
|
|
1562
1547
|
headers: r = [],
|
|
1563
1548
|
queryParams: i = [],
|
|
1564
1549
|
pathParams: l = [],
|
|
1565
|
-
defaultBody:
|
|
1566
|
-
examples:
|
|
1567
|
-
requiresLogin:
|
|
1550
|
+
defaultBody: d = "",
|
|
1551
|
+
examples: c,
|
|
1552
|
+
requiresLogin: u = !1,
|
|
1568
1553
|
onLogin: x,
|
|
1569
|
-
onSignUp:
|
|
1554
|
+
onSignUp: w
|
|
1570
1555
|
}) => {
|
|
1571
|
-
|
|
1556
|
+
var Ze, Xe;
|
|
1557
|
+
const { selectedServer: v, setSelectedServer: p } = _n(
|
|
1572
1558
|
n.map((o) => ({ url: o }))
|
|
1573
|
-
), [f,
|
|
1559
|
+
), [f, m] = k(!1), y = Yt(), { setRememberedIdentity: h, getRememberedIdentity: T } = os(), [, $] = rn(), [de, X] = k(!1), [K, E] = k(!1), Y = G(void 0), Be = un(h), { register: Ge, control: ee, handleSubmit: Je, watch: Ue, setValue: V, ...me } = cn({
|
|
1574
1560
|
defaultValues: {
|
|
1575
|
-
body:
|
|
1561
|
+
body: d,
|
|
1576
1562
|
bodyContentType: "JSON",
|
|
1577
1563
|
queryParams: i.map((o) => ({
|
|
1578
1564
|
name: o.name,
|
|
@@ -1602,145 +1588,149 @@ const rs = {
|
|
|
1602
1588
|
active: !1
|
|
1603
1589
|
}
|
|
1604
1590
|
]),
|
|
1605
|
-
identity:
|
|
1606
|
-
|
|
1591
|
+
identity: T(
|
|
1592
|
+
((Ze = y.data) == null ? void 0 : Ze.map((o) => o.id)) ?? []
|
|
1607
1593
|
)
|
|
1608
1594
|
}
|
|
1609
|
-
}), C =
|
|
1610
|
-
|
|
1611
|
-
C.identity &&
|
|
1612
|
-
}, [
|
|
1613
|
-
const
|
|
1595
|
+
}), C = Ue(), Qe = G(null);
|
|
1596
|
+
ne(() => {
|
|
1597
|
+
C.identity && Be.current(C.identity);
|
|
1598
|
+
}, [Be, C.identity]);
|
|
1599
|
+
const ue = ln({
|
|
1614
1600
|
mutationFn: async (o) => {
|
|
1601
|
+
var Ke, Ye;
|
|
1615
1602
|
const S = performance.now(), O = !o.headers.some(
|
|
1616
|
-
(
|
|
1617
|
-
),
|
|
1618
|
-
...o.headers.filter((
|
|
1619
|
-
...O ? [["content-type",
|
|
1620
|
-
]),
|
|
1621
|
-
|
|
1603
|
+
(N) => N.active && N.name.toLowerCase() === "content-type"
|
|
1604
|
+
), F = Object.fromEntries([
|
|
1605
|
+
...o.headers.filter((N) => N.name && N.active).map((N) => [N.name, N.value]),
|
|
1606
|
+
...O ? [["content-type", ve[o.bodyContentType]]] : []
|
|
1607
|
+
]), P = new Request(
|
|
1608
|
+
Bn(t ?? v, s, o),
|
|
1622
1609
|
{
|
|
1623
1610
|
method: a.toUpperCase(),
|
|
1624
|
-
headers:
|
|
1611
|
+
headers: F,
|
|
1625
1612
|
body: o.body ? o.body : void 0
|
|
1626
1613
|
}
|
|
1627
1614
|
);
|
|
1628
|
-
o.identity !==
|
|
1629
|
-
const
|
|
1630
|
-
() =>
|
|
1615
|
+
o.identity !== B && await ((Ye = (Ke = y.data) == null ? void 0 : Ke.find((N) => N.id === o.identity)) == null ? void 0 : Ye.authorizeRequest(P));
|
|
1616
|
+
const z = setTimeout(
|
|
1617
|
+
() => E(!0),
|
|
1631
1618
|
3210
|
|
1632
1619
|
);
|
|
1633
|
-
|
|
1620
|
+
Y.current = new AbortController();
|
|
1634
1621
|
try {
|
|
1635
|
-
const
|
|
1636
|
-
signal:
|
|
1622
|
+
const N = await fetch(P, {
|
|
1623
|
+
signal: Y.current.signal
|
|
1637
1624
|
});
|
|
1638
|
-
clearTimeout(
|
|
1639
|
-
const
|
|
1625
|
+
clearTimeout(z), E(!1);
|
|
1626
|
+
const Dt = performance.now() - S, et = await N.text(), Vt = new URL(P.url);
|
|
1640
1627
|
return {
|
|
1641
|
-
status:
|
|
1642
|
-
headers: Array.from(
|
|
1643
|
-
size:
|
|
1644
|
-
body:
|
|
1645
|
-
time:
|
|
1628
|
+
status: N.status,
|
|
1629
|
+
headers: Array.from(N.headers.entries()),
|
|
1630
|
+
size: et.length,
|
|
1631
|
+
body: et,
|
|
1632
|
+
time: Dt,
|
|
1646
1633
|
request: {
|
|
1647
|
-
method:
|
|
1648
|
-
url:
|
|
1634
|
+
method: P.method.toUpperCase(),
|
|
1635
|
+
url: P.url,
|
|
1649
1636
|
headers: [
|
|
1650
|
-
["Host",
|
|
1637
|
+
["Host", Vt.host],
|
|
1651
1638
|
["User-Agent", "Zudoku Playground"],
|
|
1652
|
-
...Array.from(
|
|
1639
|
+
...Array.from(P.headers.entries())
|
|
1653
1640
|
],
|
|
1654
1641
|
body: o.body ? o.body : void 0
|
|
1655
1642
|
}
|
|
1656
1643
|
};
|
|
1657
|
-
} catch (
|
|
1658
|
-
throw clearTimeout(
|
|
1644
|
+
} catch (N) {
|
|
1645
|
+
throw clearTimeout(z), E(!1), N instanceof TypeError ? new Error(
|
|
1659
1646
|
"The request failed, possibly due to network issues or CORS policy."
|
|
1660
|
-
) :
|
|
1647
|
+
) : N;
|
|
1661
1648
|
}
|
|
1662
1649
|
}
|
|
1663
1650
|
});
|
|
1664
|
-
|
|
1665
|
-
|
|
1651
|
+
ne(() => () => {
|
|
1652
|
+
var o;
|
|
1653
|
+
(o = Y.current) == null || o.abort();
|
|
1666
1654
|
}, []);
|
|
1667
|
-
const
|
|
1668
|
-
|
|
1655
|
+
const Lt = /* @__PURE__ */ e.jsx(
|
|
1656
|
+
zn,
|
|
1669
1657
|
{
|
|
1670
1658
|
path: s,
|
|
1671
1659
|
renderParam: ({ name: o, originalValue: S, index: O }) => {
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
|
|
1660
|
+
var P;
|
|
1661
|
+
const F = (P = C.pathParams.find(
|
|
1662
|
+
(z) => z.name === o
|
|
1663
|
+
)) == null ? void 0 : P.value;
|
|
1675
1664
|
return /* @__PURE__ */ e.jsx(
|
|
1676
|
-
|
|
1665
|
+
St,
|
|
1677
1666
|
{
|
|
1678
1667
|
name: o,
|
|
1679
1668
|
backgroundOpacity: "0",
|
|
1680
1669
|
slug: o,
|
|
1681
|
-
onClick: () =>
|
|
1682
|
-
children:
|
|
1670
|
+
onClick: () => me.setFocus(`pathParams.${O}.value`),
|
|
1671
|
+
children: F || S
|
|
1683
1672
|
}
|
|
1684
1673
|
);
|
|
1685
1674
|
}
|
|
1686
1675
|
}
|
|
1687
|
-
),
|
|
1676
|
+
), We = C.queryParams.filter((o) => o.active).map((o, S, O) => /* @__PURE__ */ e.jsxs(q, { children: [
|
|
1688
1677
|
o.name,
|
|
1689
1678
|
"=",
|
|
1690
1679
|
encodeURIComponent(o.value).replaceAll("%20", "+"),
|
|
1691
1680
|
S < O.length - 1 && "&",
|
|
1692
1681
|
/* @__PURE__ */ e.jsx("wbr", {})
|
|
1693
|
-
] }, o.name)),
|
|
1694
|
-
|
|
1682
|
+
] }, o.name)), At = /* @__PURE__ */ e.jsx("div", { className: "inline-block opacity-50 hover:opacity-100 transition", children: t ? /* @__PURE__ */ e.jsx("span", { children: t.replace(/^https?:\/\//, "").replace(/\/$/, "") }) : n.length > 1 && /* @__PURE__ */ e.jsxs(
|
|
1683
|
+
je,
|
|
1695
1684
|
{
|
|
1696
1685
|
onValueChange: (o) => {
|
|
1697
|
-
|
|
1686
|
+
$(() => p(o));
|
|
1698
1687
|
},
|
|
1699
|
-
value:
|
|
1700
|
-
defaultValue:
|
|
1688
|
+
value: v,
|
|
1689
|
+
defaultValue: v,
|
|
1701
1690
|
children: [
|
|
1702
|
-
/* @__PURE__ */ e.jsx(
|
|
1703
|
-
/* @__PURE__ */ e.jsx(
|
|
1691
|
+
/* @__PURE__ */ e.jsx(be, { className: "p-0 border-none flex-row-reverse bg-transparent text-xs gap-0.5 h-auto translate-y-[4px]", children: /* @__PURE__ */ e.jsx(Ne, {}) }),
|
|
1692
|
+
/* @__PURE__ */ e.jsx(we, { children: n.map((o) => /* @__PURE__ */ e.jsx(U, { value: o, children: o.replace(/^https?:\/\//, "").replace(/\/$/, "") }, o)) })
|
|
1704
1693
|
]
|
|
1705
1694
|
}
|
|
1706
|
-
) }),
|
|
1695
|
+
) }), Et = u && !de, te = ["POST", "PUT", "PATCH", "DELETE"].includes(
|
|
1707
1696
|
a.toUpperCase()
|
|
1708
1697
|
);
|
|
1709
1698
|
return /* @__PURE__ */ e.jsx(
|
|
1710
|
-
|
|
1699
|
+
dn,
|
|
1711
1700
|
{
|
|
1712
|
-
register:
|
|
1713
|
-
control:
|
|
1714
|
-
handleSubmit:
|
|
1715
|
-
watch:
|
|
1716
|
-
setValue:
|
|
1717
|
-
...
|
|
1701
|
+
register: Ge,
|
|
1702
|
+
control: ee,
|
|
1703
|
+
handleSubmit: Je,
|
|
1704
|
+
watch: Ue,
|
|
1705
|
+
setValue: V,
|
|
1706
|
+
...me,
|
|
1718
1707
|
children: /* @__PURE__ */ e.jsxs(
|
|
1719
1708
|
"form",
|
|
1720
1709
|
{
|
|
1721
|
-
onSubmit:
|
|
1722
|
-
|
|
1710
|
+
onSubmit: Je((o) => {
|
|
1711
|
+
var S;
|
|
1712
|
+
((S = y.data) == null ? void 0 : S.length) === 0 || o.identity ? ue.mutate(o) : m(!0);
|
|
1723
1713
|
}),
|
|
1724
|
-
ref:
|
|
1714
|
+
ref: Qe,
|
|
1725
1715
|
className: "relative",
|
|
1726
1716
|
children: [
|
|
1727
1717
|
/* @__PURE__ */ e.jsx(
|
|
1728
|
-
|
|
1718
|
+
ns,
|
|
1729
1719
|
{
|
|
1730
|
-
identities:
|
|
1720
|
+
identities: y.data ?? [],
|
|
1731
1721
|
open: f,
|
|
1732
|
-
onOpenChange:
|
|
1722
|
+
onOpenChange: m,
|
|
1733
1723
|
onSubmit: ({ rememberedIdentity: o, identity: S }) => {
|
|
1734
|
-
o &&
|
|
1724
|
+
o && V("identity", S ?? B), m(!1), ue.mutate({ ...C, identity: S });
|
|
1735
1725
|
}
|
|
1736
1726
|
}
|
|
1737
1727
|
),
|
|
1738
1728
|
/* @__PURE__ */ e.jsx(
|
|
1739
|
-
|
|
1729
|
+
is,
|
|
1740
1730
|
{
|
|
1741
|
-
open:
|
|
1742
|
-
setOpen: (o) =>
|
|
1743
|
-
onSignUp:
|
|
1731
|
+
open: Et,
|
|
1732
|
+
setOpen: (o) => X(!o),
|
|
1733
|
+
onSignUp: w,
|
|
1744
1734
|
onLogin: x
|
|
1745
1735
|
}
|
|
1746
1736
|
),
|
|
@@ -1750,133 +1740,135 @@ const rs = {
|
|
|
1750
1740
|
/* @__PURE__ */ e.jsxs("div", { className: "flex flex-1 items-center w-full border rounded-md", children: [
|
|
1751
1741
|
/* @__PURE__ */ e.jsx("div", { className: "border-r p-2 bg-muted rounded-l-md self-stretch font-semibold font-mono flex items-center", children: a.toUpperCase() }),
|
|
1752
1742
|
/* @__PURE__ */ e.jsxs("div", { className: "items-center px-2 py-0.5 font-mono text-xs break-all leading-6", children: [
|
|
1753
|
-
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
|
|
1743
|
+
At,
|
|
1744
|
+
Lt,
|
|
1745
|
+
We.length > 0 ? "?" : "",
|
|
1746
|
+
We
|
|
1757
1747
|
] })
|
|
1758
1748
|
] }),
|
|
1759
1749
|
/* @__PURE__ */ e.jsx(
|
|
1760
|
-
|
|
1750
|
+
js,
|
|
1761
1751
|
{
|
|
1762
|
-
identities:
|
|
1763
|
-
formRef:
|
|
1764
|
-
disabled:
|
|
1752
|
+
identities: y.data ?? [],
|
|
1753
|
+
formRef: Qe,
|
|
1754
|
+
disabled: y.isLoading || me.formState.isSubmitting
|
|
1765
1755
|
}
|
|
1766
1756
|
)
|
|
1767
1757
|
] }),
|
|
1768
|
-
/* @__PURE__ */ e.jsxs(
|
|
1769
|
-
/* @__PURE__ */ e.jsx("div", { className: "flex flex-wrap gap-1 justify-between", children: /* @__PURE__ */ e.jsxs(
|
|
1770
|
-
/* @__PURE__ */ e.jsxs(
|
|
1758
|
+
/* @__PURE__ */ e.jsxs(jt, { defaultValue: "parameters", children: [
|
|
1759
|
+
/* @__PURE__ */ e.jsx("div", { className: "flex flex-wrap gap-1 justify-between", children: /* @__PURE__ */ e.jsxs(bt, { children: [
|
|
1760
|
+
/* @__PURE__ */ e.jsxs(M, { value: "parameters", children: [
|
|
1771
1761
|
"Parameters",
|
|
1772
1762
|
(C.pathParams.some((o) => o.value !== "") || C.queryParams.some((o) => o.active)) && /* @__PURE__ */ e.jsx("div", { className: "w-2 h-2 rounded-full bg-blue-400 ml-2" })
|
|
1773
1763
|
] }),
|
|
1774
|
-
/* @__PURE__ */ e.jsxs(
|
|
1764
|
+
/* @__PURE__ */ e.jsxs(M, { value: "headers", children: [
|
|
1775
1765
|
"Headers",
|
|
1776
1766
|
C.headers.filter((o) => o.active).length > 0 && /* @__PURE__ */ e.jsx("div", { className: "w-2 h-2 rounded-full bg-blue-400 ml-2" })
|
|
1777
1767
|
] }),
|
|
1778
|
-
/* @__PURE__ */ e.jsxs(
|
|
1768
|
+
/* @__PURE__ */ e.jsxs(M, { value: "auth", children: [
|
|
1779
1769
|
"Auth",
|
|
1780
|
-
C.identity !==
|
|
1770
|
+
C.identity !== B && /* @__PURE__ */ e.jsx("div", { className: "w-2 h-2 rounded-full bg-blue-400 ml-2" })
|
|
1781
1771
|
] }),
|
|
1782
|
-
/* @__PURE__ */ e.jsxs(
|
|
1772
|
+
/* @__PURE__ */ e.jsxs(M, { value: "body", children: [
|
|
1783
1773
|
"Body",
|
|
1784
1774
|
C.body && /* @__PURE__ */ e.jsx("div", { className: "w-2 h-2 rounded-full bg-blue-400 ml-2" })
|
|
1785
1775
|
] })
|
|
1786
1776
|
] }) }),
|
|
1787
|
-
/* @__PURE__ */ e.jsx(
|
|
1788
|
-
/* @__PURE__ */ e.jsxs(
|
|
1777
|
+
/* @__PURE__ */ e.jsx(H, { value: "headers", children: /* @__PURE__ */ e.jsx(es, { control: ee, headers: r }) }),
|
|
1778
|
+
/* @__PURE__ */ e.jsxs(H, { value: "parameters", children: [
|
|
1789
1779
|
l.length > 0 && /* @__PURE__ */ e.jsxs("div", { className: "flex flex-col gap-4 my-4", children: [
|
|
1790
1780
|
/* @__PURE__ */ e.jsx("span", { className: "font-semibold", children: "Path Parameters" }),
|
|
1791
|
-
/* @__PURE__ */ e.jsx(
|
|
1781
|
+
/* @__PURE__ */ e.jsx(ss, { url: s, control: ee })
|
|
1792
1782
|
] }),
|
|
1793
1783
|
/* @__PURE__ */ e.jsxs("div", { className: "flex flex-col gap-4 my-4", children: [
|
|
1794
1784
|
/* @__PURE__ */ e.jsx("span", { className: "font-semibold", children: "Query Parameters" }),
|
|
1795
|
-
/* @__PURE__ */ e.jsx(
|
|
1785
|
+
/* @__PURE__ */ e.jsx(rs, { control: ee, queryParams: i })
|
|
1796
1786
|
] })
|
|
1797
1787
|
] }),
|
|
1798
|
-
/* @__PURE__ */ e.jsxs(
|
|
1788
|
+
/* @__PURE__ */ e.jsxs(H, { value: "body", children: [
|
|
1799
1789
|
!["POST", "PUT", "PATCH", "DELETE"].includes(
|
|
1800
1790
|
a.toUpperCase()
|
|
1801
|
-
) && /* @__PURE__ */ e.jsxs(
|
|
1802
|
-
/* @__PURE__ */ e.jsx(
|
|
1803
|
-
/* @__PURE__ */ e.jsx(
|
|
1804
|
-
/* @__PURE__ */ e.jsx(
|
|
1791
|
+
) && /* @__PURE__ */ e.jsxs(Se, { className: "mb-2", children: [
|
|
1792
|
+
/* @__PURE__ */ e.jsx(nt, { className: "w-4 h-4" }),
|
|
1793
|
+
/* @__PURE__ */ e.jsx(Te, { children: "Body" }),
|
|
1794
|
+
/* @__PURE__ */ e.jsx($e, { children: "Body is only supported for POST, PUT, PATCH, and DELETE requests" })
|
|
1805
1795
|
] }),
|
|
1806
1796
|
/* @__PURE__ */ e.jsx(
|
|
1807
|
-
|
|
1797
|
+
Ct,
|
|
1808
1798
|
{
|
|
1809
|
-
...
|
|
1810
|
-
className:
|
|
1799
|
+
...Ge("body"),
|
|
1800
|
+
className: g(
|
|
1811
1801
|
"border w-full rounded-lg bg-muted/40 p-2 h-64 font-mono text-[13px]",
|
|
1812
|
-
!
|
|
1802
|
+
!te && "h-20 bg-muted"
|
|
1813
1803
|
),
|
|
1814
|
-
placeholder:
|
|
1815
|
-
disabled: !
|
|
1804
|
+
placeholder: te ? void 0 : "This request does not support a body",
|
|
1805
|
+
disabled: !te
|
|
1816
1806
|
}
|
|
1817
1807
|
),
|
|
1818
|
-
|
|
1808
|
+
te && /* @__PURE__ */ e.jsxs("div", { className: "flex items-center gap-2 mt-2 justify-between", children: [
|
|
1819
1809
|
/* @__PURE__ */ e.jsxs(
|
|
1820
|
-
|
|
1810
|
+
je,
|
|
1821
1811
|
{
|
|
1822
1812
|
value: C.bodyContentType,
|
|
1823
|
-
onValueChange: (o) =>
|
|
1813
|
+
onValueChange: (o) => V(
|
|
1824
1814
|
"bodyContentType",
|
|
1825
1815
|
o
|
|
1826
1816
|
),
|
|
1827
1817
|
children: [
|
|
1828
|
-
/* @__PURE__ */ e.jsx(
|
|
1829
|
-
/* @__PURE__ */ e.jsx(
|
|
1818
|
+
/* @__PURE__ */ e.jsx(be, { className: "w-[100px]", children: /* @__PURE__ */ e.jsx(Ne, {}) }),
|
|
1819
|
+
/* @__PURE__ */ e.jsx(we, { children: Object.keys(ve).map((o) => /* @__PURE__ */ e.jsx(U, { value: o, children: o }, o)) })
|
|
1830
1820
|
]
|
|
1831
1821
|
}
|
|
1832
1822
|
),
|
|
1833
|
-
|
|
1834
|
-
|
|
1823
|
+
c && c.length > 0 && /* @__PURE__ */ e.jsx(
|
|
1824
|
+
Zn,
|
|
1835
1825
|
{
|
|
1836
|
-
examples:
|
|
1826
|
+
examples: c,
|
|
1837
1827
|
onSelect: (o, S) => {
|
|
1838
|
-
|
|
1828
|
+
var F;
|
|
1829
|
+
V(
|
|
1839
1830
|
"body",
|
|
1840
1831
|
JSON.stringify(o.value, null, 2)
|
|
1841
1832
|
);
|
|
1842
|
-
const O =
|
|
1843
|
-
([
|
|
1844
|
-
)
|
|
1845
|
-
O &&
|
|
1833
|
+
const O = (F = mn(ve).find(
|
|
1834
|
+
([P, z]) => z === S
|
|
1835
|
+
)) == null ? void 0 : F[0];
|
|
1836
|
+
O && V("bodyContentType", O);
|
|
1846
1837
|
}
|
|
1847
1838
|
}
|
|
1848
1839
|
)
|
|
1849
1840
|
] })
|
|
1850
1841
|
] }),
|
|
1851
|
-
/* @__PURE__ */ e.jsx(
|
|
1852
|
-
|
|
1853
|
-
/* @__PURE__ */ e.jsx(
|
|
1854
|
-
/* @__PURE__ */ e.jsx(
|
|
1855
|
-
/* @__PURE__ */ e.jsx(
|
|
1842
|
+
/* @__PURE__ */ e.jsx(H, { value: "auth", children: /* @__PURE__ */ e.jsxs("div", { className: "flex flex-col gap-4 my-4", children: [
|
|
1843
|
+
((Xe = y.data) == null ? void 0 : Xe.length) === 0 && /* @__PURE__ */ e.jsxs(Se, { children: [
|
|
1844
|
+
/* @__PURE__ */ e.jsx(nt, { className: "w-4 h-4" }),
|
|
1845
|
+
/* @__PURE__ */ e.jsx(Te, { children: "Authentication" }),
|
|
1846
|
+
/* @__PURE__ */ e.jsx($e, { children: "No identities found. Please create an identity first." })
|
|
1856
1847
|
] }),
|
|
1857
1848
|
/* @__PURE__ */ e.jsx("div", { className: "flex flex-col items-center gap-2", children: /* @__PURE__ */ e.jsx(
|
|
1858
|
-
|
|
1849
|
+
Rt,
|
|
1859
1850
|
{
|
|
1860
1851
|
value: C.identity,
|
|
1861
|
-
identities:
|
|
1862
|
-
setValue: (o) =>
|
|
1852
|
+
identities: y.data ?? [],
|
|
1853
|
+
setValue: (o) => V("identity", o)
|
|
1863
1854
|
}
|
|
1864
1855
|
) })
|
|
1865
1856
|
] }) })
|
|
1866
1857
|
] })
|
|
1867
1858
|
] }),
|
|
1868
1859
|
/* @__PURE__ */ e.jsx(
|
|
1869
|
-
|
|
1860
|
+
vs,
|
|
1870
1861
|
{
|
|
1871
|
-
queryMutation:
|
|
1862
|
+
queryMutation: ue,
|
|
1872
1863
|
showPathParamsWarning: C.pathParams.some(
|
|
1873
1864
|
(o) => o.value === ""
|
|
1874
1865
|
),
|
|
1875
|
-
showLongRunningWarning:
|
|
1866
|
+
showLongRunningWarning: K,
|
|
1876
1867
|
onCancel: () => {
|
|
1877
|
-
|
|
1868
|
+
var o;
|
|
1869
|
+
(o = Y.current) == null || o.abort(
|
|
1878
1870
|
"Request cancelled by the user"
|
|
1879
|
-
),
|
|
1871
|
+
), E(!1);
|
|
1880
1872
|
}
|
|
1881
1873
|
}
|
|
1882
1874
|
)
|
|
@@ -1886,7 +1878,7 @@ const rs = {
|
|
|
1886
1878
|
)
|
|
1887
1879
|
}
|
|
1888
1880
|
);
|
|
1889
|
-
},
|
|
1881
|
+
}, Ns = ({
|
|
1890
1882
|
className: t,
|
|
1891
1883
|
size: n = 16
|
|
1892
1884
|
}) => /* @__PURE__ */ e.jsx(
|
|
@@ -1907,33 +1899,33 @@ const rs = {
|
|
|
1907
1899
|
}
|
|
1908
1900
|
)
|
|
1909
1901
|
}
|
|
1910
|
-
),
|
|
1911
|
-
const [n, s] =
|
|
1912
|
-
return /* @__PURE__ */ e.jsxs(
|
|
1913
|
-
/* @__PURE__ */ e.jsx(
|
|
1902
|
+
), ws = (t) => {
|
|
1903
|
+
const [n, s] = k(!1);
|
|
1904
|
+
return /* @__PURE__ */ e.jsxs(Pe, { onOpenChange: (a) => s(a), children: [
|
|
1905
|
+
/* @__PURE__ */ e.jsx(on, { asChild: !0, children: t.children ?? /* @__PURE__ */ e.jsxs(
|
|
1914
1906
|
"button",
|
|
1915
1907
|
{
|
|
1916
1908
|
type: "button",
|
|
1917
1909
|
className: "flex gap-1 items-center px-2 py-1 rounded-md transition text-xs bg-primary text-primary-foreground shadow-sm hover:bg-primary/80",
|
|
1918
1910
|
children: [
|
|
1919
1911
|
"Test",
|
|
1920
|
-
/* @__PURE__ */ e.jsx(
|
|
1912
|
+
/* @__PURE__ */ e.jsx(Ns, { size: 14 })
|
|
1921
1913
|
]
|
|
1922
1914
|
}
|
|
1923
1915
|
) }),
|
|
1924
1916
|
/* @__PURE__ */ e.jsxs(
|
|
1925
|
-
|
|
1917
|
+
ke,
|
|
1926
1918
|
{
|
|
1927
1919
|
className: "max-w-screen-xl w-full h-5/6 overflow-hidden p-0",
|
|
1928
1920
|
"aria-describedby": void 0,
|
|
1929
1921
|
children: [
|
|
1930
|
-
/* @__PURE__ */ e.jsx(
|
|
1931
|
-
n && /* @__PURE__ */ e.jsx(
|
|
1922
|
+
/* @__PURE__ */ e.jsx(nn, { children: /* @__PURE__ */ e.jsx(Ie, { children: "Playground" }) }),
|
|
1923
|
+
n && /* @__PURE__ */ e.jsx(bs, { ...t })
|
|
1932
1924
|
]
|
|
1933
1925
|
}
|
|
1934
1926
|
)
|
|
1935
1927
|
] });
|
|
1936
|
-
},
|
|
1928
|
+
}, Cs = {
|
|
1937
1929
|
get: "green",
|
|
1938
1930
|
post: "blue",
|
|
1939
1931
|
put: "yellow",
|
|
@@ -1941,7 +1933,7 @@ const rs = {
|
|
|
1941
1933
|
patch: "purple",
|
|
1942
1934
|
options: "gray",
|
|
1943
1935
|
head: "gray"
|
|
1944
|
-
},
|
|
1936
|
+
}, pt = ({
|
|
1945
1937
|
label: t,
|
|
1946
1938
|
path: n,
|
|
1947
1939
|
operations: s,
|
|
@@ -1963,14 +1955,14 @@ const rs = {
|
|
|
1963
1955
|
href: `${n}#${i.slug}`,
|
|
1964
1956
|
badge: {
|
|
1965
1957
|
label: i.method,
|
|
1966
|
-
color:
|
|
1958
|
+
color: Cs[i.method.toLowerCase()],
|
|
1967
1959
|
invert: !0
|
|
1968
1960
|
}
|
|
1969
1961
|
}))
|
|
1970
|
-
}),
|
|
1962
|
+
}), ht = (t) => ({
|
|
1971
1963
|
path: t.routePath,
|
|
1972
1964
|
async lazy() {
|
|
1973
|
-
const { OasProvider: n } = await import("./OasProvider-
|
|
1965
|
+
const { OasProvider: n } = await import("./OasProvider-CDtbrUG_.js");
|
|
1974
1966
|
return {
|
|
1975
1967
|
element: /* @__PURE__ */ e.jsx(
|
|
1976
1968
|
n,
|
|
@@ -1984,45 +1976,45 @@ const rs = {
|
|
|
1984
1976
|
};
|
|
1985
1977
|
},
|
|
1986
1978
|
children: t.routes
|
|
1987
|
-
}),
|
|
1979
|
+
}), He = ({
|
|
1988
1980
|
path: t,
|
|
1989
1981
|
tag: n,
|
|
1990
1982
|
untagged: s
|
|
1991
1983
|
}) => ({
|
|
1992
1984
|
path: t,
|
|
1993
1985
|
async lazy() {
|
|
1994
|
-
const { OperationList: a } = await import("./OperationList-
|
|
1986
|
+
const { OperationList: a } = await import("./OperationList-DTyJIxKW.js");
|
|
1995
1987
|
return { element: /* @__PURE__ */ e.jsx(a, { tag: n, untagged: s }) };
|
|
1996
1988
|
}
|
|
1997
|
-
}),
|
|
1989
|
+
}), Ot = (t) => [
|
|
1998
1990
|
// Category without tagged operations
|
|
1999
|
-
|
|
2000
|
-
path: R(t,
|
|
1991
|
+
He({
|
|
1992
|
+
path: R(t, _e),
|
|
2001
1993
|
untagged: !0
|
|
2002
1994
|
}),
|
|
2003
1995
|
// Schema list route
|
|
2004
1996
|
{
|
|
2005
1997
|
path: R(t, "~schemas"),
|
|
2006
1998
|
lazy: async () => {
|
|
2007
|
-
const { SchemaList: n } = await import("./SchemaList-
|
|
1999
|
+
const { SchemaList: n } = await import("./SchemaList-B9lvArDe.js");
|
|
2008
2000
|
return { element: /* @__PURE__ */ e.jsx(n, {}) };
|
|
2009
2001
|
}
|
|
2010
2002
|
}
|
|
2011
|
-
],
|
|
2012
|
-
const s = R(t, n.at(0) ??
|
|
2003
|
+
], Ss = (t, n) => {
|
|
2004
|
+
const s = R(t, n.at(0) ?? _e);
|
|
2013
2005
|
return [
|
|
2014
2006
|
// Redirect to first tag on the index route
|
|
2015
|
-
{ index: !0, loader: () =>
|
|
2007
|
+
{ index: !0, loader: () => Zt(s) },
|
|
2016
2008
|
// Create routes for each tag
|
|
2017
2009
|
...n.map(
|
|
2018
|
-
(a) =>
|
|
2010
|
+
(a) => He({
|
|
2019
2011
|
path: R(t, a),
|
|
2020
2012
|
tag: a
|
|
2021
2013
|
})
|
|
2022
2014
|
),
|
|
2023
|
-
...
|
|
2015
|
+
...Ot(t)
|
|
2024
2016
|
];
|
|
2025
|
-
},
|
|
2017
|
+
}, qt = (t) => t.type === "file" ? Object.keys(t.input) : [], Ts = ({
|
|
2026
2018
|
basePath: t,
|
|
2027
2019
|
config: n,
|
|
2028
2020
|
client: s
|
|
@@ -2030,30 +2022,30 @@ const rs = {
|
|
|
2030
2022
|
const a = n.tagPages;
|
|
2031
2023
|
if (!a)
|
|
2032
2024
|
return [
|
|
2033
|
-
|
|
2025
|
+
ht({
|
|
2034
2026
|
basePath: t,
|
|
2035
2027
|
routePath: t,
|
|
2036
2028
|
routes: [
|
|
2037
|
-
|
|
2038
|
-
...
|
|
2029
|
+
He({ path: t + "/:tag?" }),
|
|
2030
|
+
...Ot(t)
|
|
2039
2031
|
],
|
|
2040
2032
|
client: s,
|
|
2041
2033
|
config: n
|
|
2042
2034
|
})
|
|
2043
2035
|
];
|
|
2044
|
-
const r =
|
|
2036
|
+
const r = qt(n);
|
|
2045
2037
|
return (r.length > 1 ? [void 0, ...r] : [void 0]).map((l) => {
|
|
2046
|
-
const
|
|
2047
|
-
return
|
|
2038
|
+
const d = R(t, l);
|
|
2039
|
+
return ht({
|
|
2048
2040
|
basePath: t,
|
|
2049
2041
|
version: l,
|
|
2050
|
-
routePath:
|
|
2051
|
-
routes:
|
|
2042
|
+
routePath: d,
|
|
2043
|
+
routes: Ss(d, a),
|
|
2052
2044
|
client: s,
|
|
2053
2045
|
config: n
|
|
2054
2046
|
});
|
|
2055
2047
|
});
|
|
2056
|
-
},
|
|
2048
|
+
}, $s = Vn(`
|
|
2057
2049
|
query GetSidebarOperations($input: JSON!, $type: SchemaType!) {
|
|
2058
2050
|
schema(input: $input, type: $type) {
|
|
2059
2051
|
tags {
|
|
@@ -2075,8 +2067,8 @@ const rs = {
|
|
|
2075
2067
|
}
|
|
2076
2068
|
}
|
|
2077
2069
|
}
|
|
2078
|
-
`),
|
|
2079
|
-
const n = R(t.navigationId ?? "/reference"), s = new
|
|
2070
|
+
`), _e = "~endpoints", aa = (t) => {
|
|
2071
|
+
const n = R(t.navigationId ?? "/reference"), s = new kn(t);
|
|
2080
2072
|
return {
|
|
2081
2073
|
getHead: () => {
|
|
2082
2074
|
if (t.type === "url" && !t.skipPreload)
|
|
@@ -2098,93 +2090,95 @@ const rs = {
|
|
|
2098
2090
|
server: r,
|
|
2099
2091
|
method: i,
|
|
2100
2092
|
url: l,
|
|
2101
|
-
children:
|
|
2102
|
-
...
|
|
2093
|
+
children: d,
|
|
2094
|
+
...c
|
|
2103
2095
|
}) => {
|
|
2104
|
-
const
|
|
2096
|
+
const u = en();
|
|
2105
2097
|
if (!r)
|
|
2106
2098
|
throw new Error("Server is required");
|
|
2107
|
-
return a && !
|
|
2108
|
-
|
|
2099
|
+
return a && !u.isAuthenticated ? /* @__PURE__ */ e.jsxs(
|
|
2100
|
+
W,
|
|
2109
2101
|
{
|
|
2110
2102
|
className: "gap-2 items-center",
|
|
2111
2103
|
variant: "outline",
|
|
2112
|
-
onClick:
|
|
2104
|
+
onClick: u.login,
|
|
2113
2105
|
children: [
|
|
2114
2106
|
"Login to open in Playground ",
|
|
2115
|
-
/* @__PURE__ */ e.jsx(
|
|
2107
|
+
/* @__PURE__ */ e.jsx(Qt, { size: 16 })
|
|
2116
2108
|
]
|
|
2117
2109
|
}
|
|
2118
2110
|
) : /* @__PURE__ */ e.jsx(
|
|
2119
|
-
|
|
2111
|
+
ws,
|
|
2120
2112
|
{
|
|
2121
2113
|
url: l ?? "/",
|
|
2122
2114
|
method: i ?? "get",
|
|
2123
2115
|
server: r,
|
|
2124
|
-
...
|
|
2125
|
-
children: /* @__PURE__ */ e.jsx(
|
|
2116
|
+
...c,
|
|
2117
|
+
children: /* @__PURE__ */ e.jsx(W, { className: "gap-2 items-center", variant: "outline", children: d ?? /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
2126
2118
|
"Open in Playground ",
|
|
2127
|
-
/* @__PURE__ */ e.jsx(
|
|
2119
|
+
/* @__PURE__ */ e.jsx(Wt, { size: 16 })
|
|
2128
2120
|
] }) })
|
|
2129
2121
|
}
|
|
2130
2122
|
);
|
|
2131
2123
|
}
|
|
2132
2124
|
}),
|
|
2133
2125
|
getSidebar: async (a, r) => {
|
|
2134
|
-
|
|
2126
|
+
var l, d, c, u;
|
|
2127
|
+
if (!st({ path: n, end: !1 }, a))
|
|
2135
2128
|
return [];
|
|
2136
|
-
const i =
|
|
2129
|
+
const i = st(
|
|
2137
2130
|
{ path: `${n}/:version?/:tag`, end: !0 },
|
|
2138
2131
|
a
|
|
2139
2132
|
);
|
|
2140
2133
|
try {
|
|
2141
|
-
const
|
|
2134
|
+
const x = i == null ? void 0 : i.params.version, w = x ?? qt(t).at(0), { type: v } = t, p = v === "file" ? t.input[w] : t.input, f = await r.queryClient.ensureQueryData({
|
|
2142
2135
|
queryKey: ["sidebar-operations-query", p],
|
|
2143
|
-
queryFn: () => s.fetch(
|
|
2144
|
-
}),
|
|
2145
|
-
|
|
2146
|
-
|
|
2147
|
-
|
|
2148
|
-
|
|
2149
|
-
|
|
2150
|
-
|
|
2151
|
-
|
|
2152
|
-
|
|
2136
|
+
queryFn: () => s.fetch($s, { type: v, input: p })
|
|
2137
|
+
}), m = f.schema.tags.flatMap((h) => {
|
|
2138
|
+
var X, K, E;
|
|
2139
|
+
if (!h.name || h.operations.length === 0) return [];
|
|
2140
|
+
const T = R(n, x, h.slug), $ = ((X = h.extensions) == null ? void 0 : X["x-zudoku-collapsed"]) ?? !((K = t.options) != null && K.expandAllTags), de = ((E = h.extensions) == null ? void 0 : E["x-zudoku-collapsible"]) ?? !0;
|
|
2141
|
+
return pt({
|
|
2142
|
+
label: h.name,
|
|
2143
|
+
path: T,
|
|
2144
|
+
operations: h.operations,
|
|
2145
|
+
collapsed: $,
|
|
2146
|
+
collapsible: de
|
|
2153
2147
|
});
|
|
2154
|
-
}), y =
|
|
2155
|
-
(
|
|
2156
|
-
)
|
|
2157
|
-
return y &&
|
|
2158
|
-
|
|
2148
|
+
}), y = (l = f.schema.tags.find(
|
|
2149
|
+
(h) => !h.name
|
|
2150
|
+
)) == null ? void 0 : l.operations;
|
|
2151
|
+
return y && m.push(
|
|
2152
|
+
pt({
|
|
2159
2153
|
label: "Other endpoints",
|
|
2160
|
-
path: R(n,
|
|
2154
|
+
path: R(n, x, _e),
|
|
2161
2155
|
operations: y,
|
|
2162
|
-
collapsed: !t.options
|
|
2156
|
+
collapsed: !((d = t.options) != null && d.expandAllTags)
|
|
2163
2157
|
})
|
|
2164
|
-
),
|
|
2158
|
+
), (u = (c = f.schema.components) == null ? void 0 : c.schemas) != null && u.length && m.push({
|
|
2165
2159
|
type: "link",
|
|
2166
2160
|
label: "Schemas",
|
|
2167
|
-
href: R(n,
|
|
2168
|
-
}),
|
|
2161
|
+
href: R(n, x, "~schemas")
|
|
2162
|
+
}), m;
|
|
2169
2163
|
} catch {
|
|
2170
2164
|
return [];
|
|
2171
2165
|
}
|
|
2172
2166
|
},
|
|
2173
|
-
getRoutes: () =>
|
|
2167
|
+
getRoutes: () => Ts({ basePath: n, config: t, client: s })
|
|
2174
2168
|
};
|
|
2175
2169
|
};
|
|
2176
2170
|
export {
|
|
2177
|
-
|
|
2178
|
-
|
|
2179
|
-
|
|
2180
|
-
|
|
2181
|
-
|
|
2182
|
-
|
|
2183
|
-
|
|
2184
|
-
|
|
2185
|
-
|
|
2186
|
-
|
|
2187
|
-
|
|
2188
|
-
|
|
2171
|
+
lt as C,
|
|
2172
|
+
ws as P,
|
|
2173
|
+
_e as U,
|
|
2174
|
+
ct as a,
|
|
2175
|
+
dt as b,
|
|
2176
|
+
Vn as c,
|
|
2177
|
+
St as d,
|
|
2178
|
+
zn as e,
|
|
2179
|
+
qt as g,
|
|
2180
|
+
cs as m,
|
|
2181
|
+
aa as o,
|
|
2182
|
+
_n as u
|
|
2189
2183
|
};
|
|
2190
|
-
//# sourceMappingURL=index-
|
|
2184
|
+
//# sourceMappingURL=index-Ckl3s_w-.js.map
|