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