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