zudoku 0.44.1 → 0.45.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/cli.js +8 -2
- package/dist/app/entry.client.js +34 -21
- package/dist/app/entry.client.js.map +1 -1
- package/dist/app/main.js +7 -0
- package/dist/app/main.js.map +1 -1
- package/dist/config/validators/common.d.ts +420 -288
- package/dist/config/validators/common.js +10 -0
- package/dist/config/validators/common.js.map +1 -1
- package/dist/config/validators/validate.d.ts +161 -108
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/lib/components/Footer.js +2 -2
- package/dist/lib/components/Footer.js.map +1 -1
- package/dist/lib/components/Header.js +1 -1
- package/dist/lib/components/Header.js.map +1 -1
- package/dist/lib/components/Markdown.d.ts +3 -1
- package/dist/lib/components/Markdown.js +8 -14
- package/dist/lib/components/Markdown.js.map +1 -1
- package/dist/lib/components/context/ZudokuContext.d.ts +1 -1
- package/dist/lib/components/context/ZudokuContext.js +2 -3
- package/dist/lib/components/context/ZudokuContext.js.map +1 -1
- package/dist/lib/components/index.d.ts +2 -1
- package/dist/lib/core/ZudokuContext.d.ts +8 -0
- package/dist/lib/core/ZudokuContext.js.map +1 -1
- package/dist/lib/errors/ErrorAlert.js +1 -1
- package/dist/lib/errors/ErrorAlert.js.map +1 -1
- package/dist/lib/oas/graphql/circular.js +23 -18
- package/dist/lib/oas/graphql/circular.js.map +1 -1
- package/dist/lib/oas/parser/index.d.ts +3 -0
- package/dist/lib/oas/parser/index.js +6 -1
- package/dist/lib/oas/parser/index.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/ParamInfos.js +3 -1
- package/dist/lib/plugins/openapi/ParamInfos.js.map +1 -1
- package/dist/lib/plugins/openapi/Sidecar.js +1 -1
- package/dist/lib/plugins/openapi/Sidecar.js.map +1 -1
- package/dist/lib/plugins/openapi/SidecarExamples.js +1 -1
- package/dist/lib/plugins/openapi/SidecarExamples.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/IdentitySelector.js +1 -3
- package/dist/lib/plugins/openapi/playground/IdentitySelector.js.map +1 -1
- package/dist/lib/plugins/openapi/schema/SchemaExampleAndDefault.js +4 -1
- package/dist/lib/plugins/openapi/schema/SchemaExampleAndDefault.js.map +1 -1
- package/dist/lib/plugins/openapi/schema/SchemaPropertyItem.js +11 -12
- package/dist/lib/plugins/openapi/schema/SchemaPropertyItem.js.map +1 -1
- package/dist/lib/plugins/openapi/schema/utils.d.ts +5 -1
- package/dist/lib/plugins/openapi/schema/utils.js +9 -5
- package/dist/lib/plugins/openapi/schema/utils.js.map +1 -1
- package/dist/lib/plugins/openapi/util/generateSchemaExample.d.ts +1 -1
- package/dist/lib/plugins/openapi/util/generateSchemaExample.js +4 -0
- package/dist/lib/plugins/openapi/util/generateSchemaExample.js.map +1 -1
- package/dist/lib/shiki.d.ts +35 -0
- package/dist/lib/shiki.js +103 -0
- package/dist/lib/shiki.js.map +1 -0
- package/dist/lib/ui/Callout.js +1 -1
- package/dist/lib/ui/Callout.js.map +1 -1
- package/dist/lib/ui/CodeBlock.d.ts +16 -0
- package/dist/lib/ui/CodeBlock.js +18 -0
- package/dist/lib/ui/CodeBlock.js.map +1 -0
- package/dist/lib/ui/SyntaxHighlight.d.ts +10 -15
- package/dist/lib/ui/SyntaxHighlight.js +12 -60
- package/dist/lib/ui/SyntaxHighlight.js.map +1 -1
- package/dist/lib/util/MdxComponents.d.ts +9 -3
- package/dist/lib/util/MdxComponents.js +9 -10
- package/dist/lib/util/MdxComponents.js.map +1 -1
- package/dist/vite/api/SchemaManager.js +2 -0
- package/dist/vite/api/SchemaManager.js.map +1 -1
- package/dist/vite/config.js +34 -0
- package/dist/vite/config.js.map +1 -1
- package/dist/vite/plugin-mdx.js +4 -11
- package/dist/vite/plugin-mdx.js.map +1 -1
- package/dist/vite/plugin-shiki-register.d.ts +3 -0
- package/dist/vite/plugin-shiki-register.js +38 -0
- package/dist/vite/plugin-shiki-register.js.map +1 -0
- package/dist/vite/plugin.js +2 -0
- package/dist/vite/plugin.js.map +1 -1
- package/lib/AuthenticationPlugin-BTJ37DKg.js +90 -0
- package/lib/{AuthenticationPlugin-BlJsiGuX.js.map → AuthenticationPlugin-BTJ37DKg.js.map} +1 -1
- package/lib/{Button-BBNrKpQd.js → Button-Bdk_Ij3U.js} +3 -3
- package/lib/{Button-BBNrKpQd.js.map → Button-Bdk_Ij3U.js.map} +1 -1
- package/lib/{Callout-D3Ja4OPX.js → Callout-XadUe37J.js} +12 -12
- package/lib/{Callout-D3Ja4OPX.js.map → Callout-XadUe37J.js.map} +1 -1
- package/lib/{Card-BtheiD7j.js → Card-BlCYNw5W.js} +2 -2
- package/lib/{Card-BtheiD7j.js.map → Card-BlCYNw5W.js.map} +1 -1
- package/lib/{CategoryHeading-D06WK_Wo.js → CategoryHeading-DZi-Szor.js} +2 -2
- package/lib/{CategoryHeading-D06WK_Wo.js.map → CategoryHeading-DZi-Szor.js.map} +1 -1
- package/lib/{Dialog-ByYz4ABw.js → Dialog-CNf2oWXG.js} +2 -2
- package/lib/{Dialog-ByYz4ABw.js.map → Dialog-CNf2oWXG.js.map} +1 -1
- package/lib/{Drawer-CEwbkLDb.js → Drawer-BPBxzel2.js} +25 -25
- package/lib/{Drawer-CEwbkLDb.js.map → Drawer-BPBxzel2.js.map} +1 -1
- package/lib/Markdown-D96AphCL.js +7691 -0
- package/lib/Markdown-D96AphCL.js.map +1 -0
- package/lib/MdxPage-tTTaDsLc.js +84 -0
- package/lib/{MdxPage-DlJaCSPf.js.map → MdxPage-tTTaDsLc.js.map} +1 -1
- package/lib/{OasProvider-CsUksaAo.js → OasProvider-DalHQixM.js} +4 -4
- package/lib/{OasProvider-CsUksaAo.js.map → OasProvider-DalHQixM.js.map} +1 -1
- package/lib/{OperationList-BlUBNsw2.js → OperationList-BB09ENaq.js} +1896 -1932
- package/lib/{OperationList-BlUBNsw2.js.map → OperationList-BB09ENaq.js.map} +1 -1
- package/lib/{Pagination-C5Fi7z_v.js → Pagination-CtmnJOJi.js} +4 -4
- package/lib/{Pagination-C5Fi7z_v.js.map → Pagination-CtmnJOJi.js.map} +1 -1
- package/lib/RouteGuard-lkdEJoDV.js +732 -0
- package/lib/{RouteGuard-D2gX29iI.js.map → RouteGuard-lkdEJoDV.js.map} +1 -1
- package/lib/{SchemaList-BQiBukIP.js → SchemaList-BH9bgMRw.js} +40 -41
- package/lib/{SchemaList-BQiBukIP.js.map → SchemaList-BH9bgMRw.js.map} +1 -1
- package/lib/{SchemaView-Bt95NiyQ.js → SchemaView-BsB7EFRl.js} +120 -115
- package/lib/SchemaView-BsB7EFRl.js.map +1 -0
- package/lib/Select-HTio1oSE.js +211 -0
- package/lib/{Select-CYaEBIYK.js.map → Select-HTio1oSE.js.map} +1 -1
- package/lib/SlotletProvider-CTgIBRWg.js +257 -0
- package/lib/SlotletProvider-CTgIBRWg.js.map +1 -0
- package/lib/SyntaxHighlight-UxOF1xNb.js +9107 -0
- package/lib/SyntaxHighlight-UxOF1xNb.js.map +1 -0
- package/lib/{Toc-BnN4zBb3.js → Toc-Ax54Pw8S.js} +3 -3
- package/lib/{Toc-BnN4zBb3.js.map → Toc-Ax54Pw8S.js.map} +1 -1
- package/lib/{chunk-BAXFHI7N-BLTsN6tl.js → chunk-BAXFHI7N-C9WnHsLV.js} +510 -517
- package/lib/{chunk-BAXFHI7N-BLTsN6tl.js.map → chunk-BAXFHI7N-C9WnHsLV.js.map} +1 -1
- package/lib/{circular-tOWjsgLZ.js → circular-CZaZtOBs.js} +1636 -1633
- package/lib/{circular-tOWjsgLZ.js.map → circular-CZaZtOBs.js.map} +1 -1
- package/lib/{cn-qaFjX9_3.js → cn-CwJPJKOE.js} +28 -29
- package/lib/{cn-qaFjX9_3.js.map → cn-CwJPJKOE.js.map} +1 -1
- package/lib/{createServer-XtO-PVox.js → createServer-DmqFeMgf.js} +3980 -3832
- package/lib/createServer-DmqFeMgf.js.map +1 -0
- package/lib/hook-BwOB_iZo.js +1442 -0
- package/lib/hook-BwOB_iZo.js.map +1 -0
- package/lib/{index-DwT-v3zK.js → index--oeBayMa.js} +2 -2
- package/lib/{index-DwT-v3zK.js.map → index--oeBayMa.js.map} +1 -1
- package/lib/index-BnT4-Efz.js +4975 -0
- package/lib/index-BnT4-Efz.js.map +1 -0
- package/lib/{index-LNp6rxyU.js → index-BvvmIczU.js} +2 -2
- package/lib/{index-LNp6rxyU.js.map → index-BvvmIczU.js.map} +1 -1
- package/lib/{index-CuBIgTKC.js → index-CrcNWbel.js} +9 -9
- package/lib/{index-CuBIgTKC.js.map → index-CrcNWbel.js.map} +1 -1
- package/lib/{index-CPNSgwSb.js → index-Z13x6tPX.js} +5 -5
- package/lib/{index-CPNSgwSb.js.map → index-Z13x6tPX.js.map} +1 -1
- package/lib/{index-CZnufgn5.js → index-sS7O9W-R.js} +899 -949
- package/lib/index-sS7O9W-R.js.map +1 -0
- package/lib/{index-DcHeSvkE.js → index-zddirpDj.js} +581 -609
- package/lib/{index-DcHeSvkE.js.map → index-zddirpDj.js.map} +1 -1
- package/lib/invariant-DAFpPywt.js +48 -0
- package/lib/{invariant-Caa8-XvF.js.map → invariant-DAFpPywt.js.map} +1 -1
- package/lib/mutation-CL2MCRQL.js +196 -0
- package/lib/{mutation-Bq5bn7Hf.js.map → mutation-CL2MCRQL.js.map} +1 -1
- package/lib/processors/removeParameters.js +27 -28
- package/lib/processors/removeParameters.js.map +1 -1
- package/lib/processors/removePaths.js +17 -17
- package/lib/processors/removePaths.js.map +1 -1
- package/lib/ui/Accordion.js +1 -1
- package/lib/ui/ActionButton.js +2 -2
- package/lib/ui/Alert.js +2 -2
- package/lib/ui/AlertDialog.js +1 -1
- package/lib/ui/Badge.js +2 -2
- package/lib/ui/Breadcrumb.js +1 -1
- package/lib/ui/Button.js +2 -2
- package/lib/ui/Callout.js +7 -7
- package/lib/ui/Callout.js.map +1 -1
- package/lib/ui/Card.js +1 -1
- package/lib/ui/Carousel.js +175 -175
- package/lib/ui/Carousel.js.map +1 -1
- package/lib/ui/Checkbox.js +1 -1
- package/lib/ui/CodeBlock.js +83 -0
- package/lib/ui/CodeBlock.js.map +1 -0
- package/lib/ui/Command.js +58 -58
- package/lib/ui/Command.js.map +1 -1
- package/lib/ui/Dialog.js +1 -1
- package/lib/ui/Drawer.js +2 -2
- package/lib/ui/DropdownMenu.js +1 -1
- package/lib/ui/Form.js +1 -1
- package/lib/ui/HoverCard.js +1 -1
- package/lib/ui/Input.js +1 -1
- package/lib/ui/Label.js +2 -2
- package/lib/ui/Pagination.js +1 -1
- package/lib/ui/Popover.js +1 -1
- package/lib/ui/Progress.js +1 -1
- package/lib/ui/RadioGroup.js +1 -1
- package/lib/ui/ScrollArea.js +1 -1
- package/lib/ui/Select.js +1 -1
- package/lib/ui/Skeleton.js +1 -1
- package/lib/ui/Slider.js +1 -1
- package/lib/ui/Switch.js +1 -1
- package/lib/ui/SyntaxHighlight.js +5 -6
- package/lib/ui/SyntaxHighlight.js.map +1 -1
- package/lib/ui/Tabs.js +1 -1
- package/lib/ui/Textarea.js +1 -1
- package/lib/ui/Toggle.js +2 -2
- package/lib/ui/ToggleGroup.js +1 -1
- package/lib/ui/Tooltip.js +1 -1
- package/lib/ui/util.js +1 -1
- package/lib/{useExposedProps-DmTJxEXG.js → useExposedProps-DG8J6ewJ.js} +2 -2
- package/lib/{useExposedProps-DmTJxEXG.js.map → useExposedProps-DG8J6ewJ.js.map} +1 -1
- package/lib/zudoku.auth-auth0.js +28 -31
- package/lib/zudoku.auth-auth0.js.map +1 -1
- package/lib/zudoku.auth-clerk.js +64 -70
- package/lib/zudoku.auth-clerk.js.map +1 -1
- package/lib/zudoku.auth-openid.js +373 -382
- package/lib/zudoku.auth-openid.js.map +1 -1
- package/lib/zudoku.components.js +7 -7
- package/lib/zudoku.hooks.js +2 -2
- package/lib/zudoku.plugin-api-catalog.js +45 -45
- package/lib/zudoku.plugin-api-catalog.js.map +1 -1
- package/lib/zudoku.plugin-api-keys.js +6 -6
- package/lib/zudoku.plugin-custom-pages.js +3 -3
- package/lib/zudoku.plugin-markdown.js +25 -28
- package/lib/zudoku.plugin-markdown.js.map +1 -1
- package/lib/zudoku.plugin-openapi.js +3 -3
- package/lib/zudoku.plugin-redirect.js +1 -1
- package/lib/zudoku.plugin-search-inkeep.js +26 -27
- package/lib/zudoku.plugin-search-inkeep.js.map +1 -1
- package/lib/zudoku.plugin-search-pagefind.js +107 -110
- package/lib/zudoku.plugin-search-pagefind.js.map +1 -1
- package/package.json +39 -29
- package/src/app/entry.client.tsx +40 -25
- package/src/app/main.css +54 -3
- package/src/app/main.tsx +8 -0
- package/src/lib/components/Footer.tsx +3 -6
- package/src/lib/components/Header.tsx +1 -1
- package/src/lib/components/Markdown.tsx +29 -24
- package/src/lib/components/context/ZudokuContext.ts +2 -3
- package/src/lib/core/ZudokuContext.ts +5 -0
- package/src/lib/errors/ErrorAlert.tsx +1 -1
- package/src/lib/oas/graphql/circular.ts +27 -19
- package/src/lib/oas/parser/index.ts +6 -1
- package/src/lib/plugins/openapi/CollapsibleCode.tsx +5 -2
- package/src/lib/plugins/openapi/ParamInfos.tsx +3 -1
- package/src/lib/plugins/openapi/Sidecar.tsx +1 -1
- package/src/lib/plugins/openapi/SidecarExamples.tsx +2 -2
- package/src/lib/plugins/openapi/playground/IdentitySelector.tsx +22 -35
- package/src/lib/plugins/openapi/schema/SchemaExampleAndDefault.tsx +5 -2
- package/src/lib/plugins/openapi/schema/SchemaPropertyItem.tsx +23 -17
- package/src/lib/plugins/openapi/schema/utils.ts +18 -6
- package/src/lib/plugins/openapi/util/generateSchemaExample.ts +6 -1
- package/src/lib/shiki.ts +133 -0
- package/src/lib/ui/Callout.tsx +1 -1
- package/src/lib/ui/CodeBlock.tsx +102 -0
- package/src/lib/ui/SyntaxHighlight.tsx +23 -182
- package/src/lib/util/MdxComponents.tsx +27 -14
- package/src/shiki/langs/abap.js +1 -0
- package/src/shiki/langs/actionscript-3.js +1 -0
- package/src/shiki/langs/ada.js +1 -0
- package/src/shiki/langs/angular-expression.js +1 -0
- package/src/shiki/langs/angular-html.js +1 -0
- package/src/shiki/langs/angular-inline-style.js +1 -0
- package/src/shiki/langs/angular-inline-template.js +1 -0
- package/src/shiki/langs/angular-let-declaration.js +1 -0
- package/src/shiki/langs/angular-template-blocks.js +1 -0
- package/src/shiki/langs/angular-template.js +1 -0
- package/src/shiki/langs/angular-ts.js +1 -0
- package/src/shiki/langs/apache.js +1 -0
- package/src/shiki/langs/apex.js +1 -0
- package/src/shiki/langs/apl.js +1 -0
- package/src/shiki/langs/applescript.js +1 -0
- package/src/shiki/langs/ara.js +1 -0
- package/src/shiki/langs/asciidoc.js +1 -0
- package/src/shiki/langs/asm.js +1 -0
- package/src/shiki/langs/astro.js +1 -0
- package/src/shiki/langs/awk.js +1 -0
- package/src/shiki/langs/ballerina.js +1 -0
- package/src/shiki/langs/bat.js +1 -0
- package/src/shiki/langs/beancount.js +1 -0
- package/src/shiki/langs/berry.js +1 -0
- package/src/shiki/langs/bibtex.js +1 -0
- package/src/shiki/langs/bicep.js +1 -0
- package/src/shiki/langs/blade.js +1 -0
- package/src/shiki/langs/bsl.js +1 -0
- package/src/shiki/langs/c.js +1 -0
- package/src/shiki/langs/cadence.js +1 -0
- package/src/shiki/langs/cairo.js +1 -0
- package/src/shiki/langs/clarity.js +1 -0
- package/src/shiki/langs/clojure.js +1 -0
- package/src/shiki/langs/cmake.js +1 -0
- package/src/shiki/langs/cobol.js +1 -0
- package/src/shiki/langs/codeowners.js +1 -0
- package/src/shiki/langs/codeql.js +1 -0
- package/src/shiki/langs/coffee.js +1 -0
- package/src/shiki/langs/common-lisp.js +1 -0
- package/src/shiki/langs/coq.js +1 -0
- package/src/shiki/langs/cpp-macro.js +1 -0
- package/src/shiki/langs/cpp.js +1 -0
- package/src/shiki/langs/crystal.js +1 -0
- package/src/shiki/langs/csharp.js +1 -0
- package/src/shiki/langs/css.js +1 -0
- package/src/shiki/langs/csv.js +1 -0
- package/src/shiki/langs/cue.js +1 -0
- package/src/shiki/langs/cypher.js +1 -0
- package/src/shiki/langs/d.js +1 -0
- package/src/shiki/langs/dart.js +1 -0
- package/src/shiki/langs/dax.js +1 -0
- package/src/shiki/langs/desktop.js +1 -0
- package/src/shiki/langs/diff.js +1 -0
- package/src/shiki/langs/docker.js +1 -0
- package/src/shiki/langs/dotenv.js +1 -0
- package/src/shiki/langs/dream-maker.js +1 -0
- package/src/shiki/langs/edge.js +1 -0
- package/src/shiki/langs/elixir.js +1 -0
- package/src/shiki/langs/elm.js +1 -0
- package/src/shiki/langs/emacs-lisp.js +1 -0
- package/src/shiki/langs/erb.js +1 -0
- package/src/shiki/langs/erlang.js +1 -0
- package/src/shiki/langs/es-tag-css.js +1 -0
- package/src/shiki/langs/es-tag-glsl.js +1 -0
- package/src/shiki/langs/es-tag-html.js +1 -0
- package/src/shiki/langs/es-tag-sql.js +1 -0
- package/src/shiki/langs/es-tag-xml.js +1 -0
- package/src/shiki/langs/fennel.js +1 -0
- package/src/shiki/langs/fish.js +1 -0
- package/src/shiki/langs/fluent.js +1 -0
- package/src/shiki/langs/fortran-fixed-form.js +1 -0
- package/src/shiki/langs/fortran-free-form.js +1 -0
- package/src/shiki/langs/fsharp.js +1 -0
- package/src/shiki/langs/gdresource.js +1 -0
- package/src/shiki/langs/gdscript.js +1 -0
- package/src/shiki/langs/gdshader.js +1 -0
- package/src/shiki/langs/genie.js +1 -0
- package/src/shiki/langs/gherkin.js +1 -0
- package/src/shiki/langs/git-commit.js +1 -0
- package/src/shiki/langs/git-rebase.js +1 -0
- package/src/shiki/langs/gleam.js +1 -0
- package/src/shiki/langs/glimmer-js.js +1 -0
- package/src/shiki/langs/glimmer-ts.js +1 -0
- package/src/shiki/langs/glsl.js +1 -0
- package/src/shiki/langs/gnuplot.js +1 -0
- package/src/shiki/langs/go.js +1 -0
- package/src/shiki/langs/graphql.js +1 -0
- package/src/shiki/langs/groovy.js +1 -0
- package/src/shiki/langs/hack.js +1 -0
- package/src/shiki/langs/haml.js +1 -0
- package/src/shiki/langs/handlebars.js +1 -0
- package/src/shiki/langs/haskell.js +1 -0
- package/src/shiki/langs/haxe.js +1 -0
- package/src/shiki/langs/hcl.js +1 -0
- package/src/shiki/langs/hjson.js +1 -0
- package/src/shiki/langs/hlsl.js +1 -0
- package/src/shiki/langs/html-derivative.js +1 -0
- package/src/shiki/langs/html.js +1 -0
- package/src/shiki/langs/http.js +1 -0
- package/src/shiki/langs/hxml.js +1 -0
- package/src/shiki/langs/hy.js +1 -0
- package/src/shiki/langs/imba.js +1 -0
- package/src/shiki/langs/ini.js +1 -0
- package/src/shiki/langs/java.js +1 -0
- package/src/shiki/langs/javascript.js +1 -0
- package/src/shiki/langs/jinja-html.js +1 -0
- package/src/shiki/langs/jinja.js +1 -0
- package/src/shiki/langs/jison.js +1 -0
- package/src/shiki/langs/json.js +1 -0
- package/src/shiki/langs/json5.js +1 -0
- package/src/shiki/langs/jsonc.js +1 -0
- package/src/shiki/langs/jsonl.js +1 -0
- package/src/shiki/langs/jsonnet.js +1 -0
- package/src/shiki/langs/jssm.js +1 -0
- package/src/shiki/langs/jsx.js +1 -0
- package/src/shiki/langs/julia.js +1 -0
- package/src/shiki/langs/kotlin.js +1 -0
- package/src/shiki/langs/kusto.js +1 -0
- package/src/shiki/langs/latex.js +1 -0
- package/src/shiki/langs/lean.js +1 -0
- package/src/shiki/langs/less.js +1 -0
- package/src/shiki/langs/liquid.js +1 -0
- package/src/shiki/langs/llvm.js +1 -0
- package/src/shiki/langs/log.js +1 -0
- package/src/shiki/langs/logo.js +1 -0
- package/src/shiki/langs/lua.js +1 -0
- package/src/shiki/langs/luau.js +1 -0
- package/src/shiki/langs/make.js +1 -0
- package/src/shiki/langs/markdown-vue.js +1 -0
- package/src/shiki/langs/markdown.js +1 -0
- package/src/shiki/langs/marko.js +1 -0
- package/src/shiki/langs/matlab.js +1 -0
- package/src/shiki/langs/mdc.js +1 -0
- package/src/shiki/langs/mdx.js +1 -0
- package/src/shiki/langs/mermaid.js +1 -0
- package/src/shiki/langs/mipsasm.js +1 -0
- package/src/shiki/langs/mojo.js +1 -0
- package/src/shiki/langs/move.js +1 -0
- package/src/shiki/langs/narrat.js +1 -0
- package/src/shiki/langs/nextflow.js +1 -0
- package/src/shiki/langs/nginx.js +1 -0
- package/src/shiki/langs/nim.js +1 -0
- package/src/shiki/langs/nix.js +1 -0
- package/src/shiki/langs/nushell.js +1 -0
- package/src/shiki/langs/objective-c.js +1 -0
- package/src/shiki/langs/objective-cpp.js +1 -0
- package/src/shiki/langs/ocaml.js +1 -0
- package/src/shiki/langs/pascal.js +1 -0
- package/src/shiki/langs/perl.js +1 -0
- package/src/shiki/langs/php.js +1 -0
- package/src/shiki/langs/plsql.js +1 -0
- package/src/shiki/langs/po.js +1 -0
- package/src/shiki/langs/polar.js +1 -0
- package/src/shiki/langs/postcss.js +1 -0
- package/src/shiki/langs/powerquery.js +1 -0
- package/src/shiki/langs/powershell.js +1 -0
- package/src/shiki/langs/prisma.js +1 -0
- package/src/shiki/langs/prolog.js +1 -0
- package/src/shiki/langs/proto.js +1 -0
- package/src/shiki/langs/pug.js +1 -0
- package/src/shiki/langs/puppet.js +1 -0
- package/src/shiki/langs/purescript.js +1 -0
- package/src/shiki/langs/python.js +1 -0
- package/src/shiki/langs/qml.js +1 -0
- package/src/shiki/langs/qmldir.js +1 -0
- package/src/shiki/langs/qss.js +1 -0
- package/src/shiki/langs/r.js +1 -0
- package/src/shiki/langs/racket.js +1 -0
- package/src/shiki/langs/raku.js +1 -0
- package/src/shiki/langs/razor.js +1 -0
- package/src/shiki/langs/reg.js +1 -0
- package/src/shiki/langs/regexp.js +1 -0
- package/src/shiki/langs/rel.js +1 -0
- package/src/shiki/langs/riscv.js +1 -0
- package/src/shiki/langs/rst.js +1 -0
- package/src/shiki/langs/ruby.js +1 -0
- package/src/shiki/langs/rust.js +1 -0
- package/src/shiki/langs/sas.js +1 -0
- package/src/shiki/langs/sass.js +1 -0
- package/src/shiki/langs/scala.js +1 -0
- package/src/shiki/langs/scheme.js +1 -0
- package/src/shiki/langs/scss.js +1 -0
- package/src/shiki/langs/sdbl.js +1 -0
- package/src/shiki/langs/shaderlab.js +1 -0
- package/src/shiki/langs/shellscript.js +1 -0
- package/src/shiki/langs/shellsession.js +1 -0
- package/src/shiki/langs/smalltalk.js +1 -0
- package/src/shiki/langs/solidity.js +1 -0
- package/src/shiki/langs/soy.js +1 -0
- package/src/shiki/langs/sparql.js +1 -0
- package/src/shiki/langs/splunk.js +1 -0
- package/src/shiki/langs/sql.js +1 -0
- package/src/shiki/langs/ssh-config.js +1 -0
- package/src/shiki/langs/stata.js +1 -0
- package/src/shiki/langs/stylus.js +1 -0
- package/src/shiki/langs/svelte.js +1 -0
- package/src/shiki/langs/swift.js +1 -0
- package/src/shiki/langs/system-verilog.js +1 -0
- package/src/shiki/langs/systemd.js +1 -0
- package/src/shiki/langs/talonscript.js +1 -0
- package/src/shiki/langs/tasl.js +1 -0
- package/src/shiki/langs/tcl.js +1 -0
- package/src/shiki/langs/templ.js +1 -0
- package/src/shiki/langs/terraform.js +1 -0
- package/src/shiki/langs/tex.js +1 -0
- package/src/shiki/langs/toml.js +1 -0
- package/src/shiki/langs/ts-tags.js +1 -0
- package/src/shiki/langs/tsv.js +1 -0
- package/src/shiki/langs/tsx.js +1 -0
- package/src/shiki/langs/turtle.js +1 -0
- package/src/shiki/langs/twig.js +1 -0
- package/src/shiki/langs/typescript.js +1 -0
- package/src/shiki/langs/typespec.js +1 -0
- package/src/shiki/langs/typst.js +1 -0
- package/src/shiki/langs/v.js +1 -0
- package/src/shiki/langs/vala.js +1 -0
- package/src/shiki/langs/vb.js +1 -0
- package/src/shiki/langs/verilog.js +1 -0
- package/src/shiki/langs/vhdl.js +1 -0
- package/src/shiki/langs/viml.js +1 -0
- package/src/shiki/langs/vue-directives.js +1 -0
- package/src/shiki/langs/vue-html.js +1 -0
- package/src/shiki/langs/vue-interpolations.js +1 -0
- package/src/shiki/langs/vue-sfc-style-variable-injection.js +1 -0
- package/src/shiki/langs/vue.js +1 -0
- package/src/shiki/langs/vyper.js +1 -0
- package/src/shiki/langs/wasm.js +1 -0
- package/src/shiki/langs/wenyan.js +1 -0
- package/src/shiki/langs/wgsl.js +1 -0
- package/src/shiki/langs/wikitext.js +1 -0
- package/src/shiki/langs/wit.js +1 -0
- package/src/shiki/langs/wolfram.js +1 -0
- package/src/shiki/langs/xml.js +1 -0
- package/src/shiki/langs/xsl.js +1 -0
- package/src/shiki/langs/yaml.js +1 -0
- package/src/shiki/langs/zenscript.js +1 -0
- package/src/shiki/langs/zig.js +1 -0
- package/src/shiki/themes/andromeeda.js +1 -0
- package/src/shiki/themes/aurora-x.js +1 -0
- package/src/shiki/themes/ayu-dark.js +1 -0
- package/src/shiki/themes/catppuccin-frappe.js +1 -0
- package/src/shiki/themes/catppuccin-latte.js +1 -0
- package/src/shiki/themes/catppuccin-macchiato.js +1 -0
- package/src/shiki/themes/catppuccin-mocha.js +1 -0
- package/src/shiki/themes/dark-plus.js +1 -0
- package/src/shiki/themes/dracula-soft.js +1 -0
- package/src/shiki/themes/dracula.js +1 -0
- package/src/shiki/themes/everforest-dark.js +1 -0
- package/src/shiki/themes/everforest-light.js +1 -0
- package/src/shiki/themes/github-dark-default.js +1 -0
- package/src/shiki/themes/github-dark-dimmed.js +1 -0
- package/src/shiki/themes/github-dark-high-contrast.js +1 -0
- package/src/shiki/themes/github-dark.js +1 -0
- package/src/shiki/themes/github-light-default.js +1 -0
- package/src/shiki/themes/github-light-high-contrast.js +1 -0
- package/src/shiki/themes/github-light.js +1 -0
- package/src/shiki/themes/gruvbox-dark-hard.js +1 -0
- package/src/shiki/themes/gruvbox-dark-medium.js +1 -0
- package/src/shiki/themes/gruvbox-dark-soft.js +1 -0
- package/src/shiki/themes/gruvbox-light-hard.js +1 -0
- package/src/shiki/themes/gruvbox-light-medium.js +1 -0
- package/src/shiki/themes/gruvbox-light-soft.js +1 -0
- package/src/shiki/themes/houston.js +1 -0
- package/src/shiki/themes/kanagawa-dragon.js +1 -0
- package/src/shiki/themes/kanagawa-lotus.js +1 -0
- package/src/shiki/themes/kanagawa-wave.js +1 -0
- package/src/shiki/themes/laserwave.js +1 -0
- package/src/shiki/themes/light-plus.js +1 -0
- package/src/shiki/themes/material-theme-darker.js +1 -0
- package/src/shiki/themes/material-theme-lighter.js +1 -0
- package/src/shiki/themes/material-theme-ocean.js +1 -0
- package/src/shiki/themes/material-theme-palenight.js +1 -0
- package/src/shiki/themes/material-theme.js +1 -0
- package/src/shiki/themes/min-dark.js +1 -0
- package/src/shiki/themes/min-light.js +1 -0
- package/src/shiki/themes/monokai.js +1 -0
- package/src/shiki/themes/night-owl.js +1 -0
- package/src/shiki/themes/nord.js +1 -0
- package/src/shiki/themes/one-dark-pro.js +1 -0
- package/src/shiki/themes/one-light.js +1 -0
- package/src/shiki/themes/plastic.js +1 -0
- package/src/shiki/themes/poimandres.js +1 -0
- package/src/shiki/themes/red.js +1 -0
- package/src/shiki/themes/rose-pine-dawn.js +1 -0
- package/src/shiki/themes/rose-pine-moon.js +1 -0
- package/src/shiki/themes/rose-pine.js +1 -0
- package/src/shiki/themes/slack-dark.js +1 -0
- package/src/shiki/themes/slack-ochin.js +1 -0
- package/src/shiki/themes/snazzy-light.js +1 -0
- package/src/shiki/themes/solarized-dark.js +1 -0
- package/src/shiki/themes/solarized-light.js +1 -0
- package/src/shiki/themes/synthwave-84.js +1 -0
- package/src/shiki/themes/tokyo-night.js +1 -0
- package/src/shiki/themes/vesper.js +1 -0
- package/src/shiki/themes/vitesse-black.js +1 -0
- package/src/shiki/themes/vitesse-dark.js +1 -0
- package/src/shiki/themes/vitesse-light.js +1 -0
- package/lib/AuthenticationPlugin-BlJsiGuX.js +0 -99
- package/lib/Markdown-DvdVn1O7.js +0 -17128
- package/lib/Markdown-DvdVn1O7.js.map +0 -1
- package/lib/MdxPage-DlJaCSPf.js +0 -85
- package/lib/RouteGuard-D2gX29iI.js +0 -744
- package/lib/SchemaView-Bt95NiyQ.js.map +0 -1
- package/lib/Select-CYaEBIYK.js +0 -223
- package/lib/SlotletProvider-wWbHYqWf.js +0 -340
- package/lib/SlotletProvider-wWbHYqWf.js.map +0 -1
- package/lib/SyntaxHighlight-o7q0acut.js +0 -2890
- package/lib/SyntaxHighlight-o7q0acut.js.map +0 -1
- package/lib/_commonjsHelpers-B4e78b8K.js +0 -29
- package/lib/_commonjsHelpers-B4e78b8K.js.map +0 -1
- package/lib/createServer-XtO-PVox.js.map +0 -1
- package/lib/hook-8GM2HXNM.js +0 -1478
- package/lib/hook-8GM2HXNM.js.map +0 -1
- package/lib/index-CZnufgn5.js.map +0 -1
- package/lib/index-CzUOM_vE.js +0 -5039
- package/lib/index-CzUOM_vE.js.map +0 -1
- package/lib/invariant-Caa8-XvF.js +0 -26
- package/lib/mutation-Bq5bn7Hf.js +0 -211
- package/lib/prism-bash.min-HHIMdNJ_.js +0 -7
- package/lib/prism-bash.min-HHIMdNJ_.js.map +0 -1
- package/lib/prism-csharp.min-C43x1RY2.js +0 -63
- package/lib/prism-csharp.min-C43x1RY2.js.map +0 -1
- package/lib/prism-java.min-CQzr40NQ.js +0 -35
- package/lib/prism-java.min-CQzr40NQ.js.map +0 -1
- package/lib/prism-javascript.min-CEqHqgbm.js +0 -9
- package/lib/prism-javascript.min-CEqHqgbm.js.map +0 -1
- package/lib/prism-json.min-B1GJqK1k.js +0 -2
- package/lib/prism-json.min-B1GJqK1k.js.map +0 -1
- package/lib/prism-jsstacktrace.min-BfobCF2F.js +0 -2
- package/lib/prism-jsstacktrace.min-BfobCF2F.js.map +0 -1
- package/lib/prism-markdown.min-C0Qn0m-5.js +0 -61
- package/lib/prism-markdown.min-C0Qn0m-5.js.map +0 -1
- package/lib/prism-markup-BNGj0Tvm.js +0 -174
- package/lib/prism-markup-BNGj0Tvm.js.map +0 -1
- package/lib/prism-objectivec.min-BXSWqpJJ.js +0 -2
- package/lib/prism-objectivec.min-BXSWqpJJ.js.map +0 -1
- package/lib/prism-ruby.min-L9OdQ6tU.js +0 -38
- package/lib/prism-ruby.min-L9OdQ6tU.js.map +0 -1
- package/lib/prism-typescript.min-qTySPvCh.js +0 -34
- package/lib/prism-typescript.min-qTySPvCh.js.map +0 -1
|
@@ -1,95 +1,84 @@
|
|
|
1
|
-
var yn = Object.defineProperty;
|
|
2
|
-
var ht = (e) => {
|
|
3
|
-
throw TypeError(e);
|
|
4
|
-
};
|
|
5
|
-
var vn = (e, t, s) => t in e ? yn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: s }) : e[t] = s;
|
|
6
|
-
var Y = (e, t, s) => vn(e, typeof t != "symbol" ? t + "" : t, s), bn = (e, t, s) => t.has(e) || ht("Cannot " + s);
|
|
7
|
-
var Ne = (e, t, s) => (bn(e, t, "read from private field"), s ? s.call(e) : t.get(e)), Ce = (e, t, s) => t.has(e) ? ht("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, s);
|
|
8
1
|
import { j as n } from "./jsx-runtime-C5mzlN2N.js";
|
|
9
|
-
import { ChevronRightIcon as
|
|
10
|
-
import { r as
|
|
11
|
-
import { J as
|
|
12
|
-
import { Button as
|
|
13
|
-
import { Z as
|
|
2
|
+
import { ChevronRightIcon as W, CheckIcon as ln, DotIcon as cn, Check as dn, XIcon as un, Circle as mn, ChevronDownIcon as pn, InfoIcon as nt, LogInIcon as hn, CirclePlayIcon as fn } from "lucide-react";
|
|
3
|
+
import { r as xn, c as gn, u as yn, N as vn, h as bn, m as st } from "./chunk-BAXFHI7N-C9WnHsLV.js";
|
|
4
|
+
import { J as vt, K as bt, L as jn, m as Nn, M as Cn, f as L, d as Sn, l as wn } from "./hook-BwOB_iZo.js";
|
|
5
|
+
import { Button as X } from "./ui/Button.js";
|
|
6
|
+
import { Z as Tn } from "./invariant-DAFpPywt.js";
|
|
14
7
|
import * as S from "react";
|
|
15
|
-
import { createContext as
|
|
16
|
-
import { VisuallyHidden as
|
|
17
|
-
import { D as
|
|
18
|
-
import { S as
|
|
19
|
-
import { b as
|
|
20
|
-
import { c as
|
|
21
|
-
import { c as
|
|
22
|
-
import { Tabs as
|
|
23
|
-
import { o as
|
|
24
|
-
import { u as
|
|
25
|
-
import { z as
|
|
26
|
-
import { B as V } from "./Button-
|
|
27
|
-
import * as
|
|
28
|
-
import { C as
|
|
29
|
-
import * as
|
|
30
|
-
import * as
|
|
31
|
-
import { PopoverAnchor as
|
|
32
|
-
import { P as
|
|
33
|
-
import { g as
|
|
34
|
-
import { Input as
|
|
35
|
-
import { Slot as
|
|
36
|
-
import * as
|
|
37
|
-
import * as
|
|
38
|
-
import { S as
|
|
39
|
-
import { Callout as
|
|
40
|
-
import { Card as
|
|
41
|
-
import { Collapsible as
|
|
42
|
-
import * as
|
|
43
|
-
import { S as
|
|
44
|
-
let
|
|
45
|
-
const
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
throw new Fn(e.errors[0].message, {
|
|
8
|
+
import { createContext as jt, use as An, Fragment as D, useRef as U, useEffect as re, useMemo as On, useState as P, useCallback as En, useTransition as Pn, useContext as $n } from "react";
|
|
9
|
+
import { VisuallyHidden as Ln } from "@radix-ui/react-visually-hidden";
|
|
10
|
+
import { D as Le, a as Re, b as Ie, d as Nt, e as Ct, f as Rn } from "./Dialog-CNf2oWXG.js";
|
|
11
|
+
import { S as Ne, a as Ce, b as Se, c as we, e as J, u as In } from "./Select-HTio1oSE.js";
|
|
12
|
+
import { b as ke, u as De, C as q, a as kn, F as Dn } from "./index.esm-D2ZUREQN.js";
|
|
13
|
+
import { c as St } from "./index-Z13x6tPX.js";
|
|
14
|
+
import { c as v } from "./cn-CwJPJKOE.js";
|
|
15
|
+
import { Tabs as wt, TabsList as Tt, TabsTrigger as z, TabsContent as M } from "./ui/Tabs.js";
|
|
16
|
+
import { o as qn } from "./objectEntries-yMIkr2mI.js";
|
|
17
|
+
import { u as Vn } from "./useLatest-hmRS46UF.js";
|
|
18
|
+
import { z as Fn } from "./index--oeBayMa.js";
|
|
19
|
+
import { B as V } from "./Button-Bdk_Ij3U.js";
|
|
20
|
+
import * as b from "@radix-ui/react-dropdown-menu";
|
|
21
|
+
import { C as ce } from "./Card-BlCYNw5W.js";
|
|
22
|
+
import * as Te from "@radix-ui/react-checkbox";
|
|
23
|
+
import * as ae from "@radix-ui/react-popover";
|
|
24
|
+
import { PopoverAnchor as _n } from "@radix-ui/react-popover";
|
|
25
|
+
import { P as Bn } from "./index-CrcNWbel.js";
|
|
26
|
+
import { g as zn, h as Mn, C as Gn, b as Un, f as Hn } from "./Callout-XadUe37J.js";
|
|
27
|
+
import { Input as qe } from "./ui/Input.js";
|
|
28
|
+
import { Slot as Qn } from "@radix-ui/react-slot";
|
|
29
|
+
import * as At from "@radix-ui/react-label";
|
|
30
|
+
import * as Z from "@radix-ui/react-radio-group";
|
|
31
|
+
import { S as Jn } from "./Spinner-mNLZ6awP.js";
|
|
32
|
+
import { Callout as Wn } from "./ui/Callout.js";
|
|
33
|
+
import { Card as Ot, CardHeader as Xn, CardTitle as Zn, CardContent as Yn } from "./ui/Card.js";
|
|
34
|
+
import { Collapsible as rt, CollapsibleTrigger as at, CollapsibleContent as ot } from "./ui/Collapsible.js";
|
|
35
|
+
import * as Ve from "@radix-ui/react-collapsible";
|
|
36
|
+
import { S as Kn } from "./SyntaxHighlight-UxOF1xNb.js";
|
|
37
|
+
let fe;
|
|
38
|
+
const es = (e) => {
|
|
39
|
+
if (e.errors?.[0])
|
|
40
|
+
throw new Tn(e.errors[0].message, {
|
|
49
41
|
developerHint: "Check your configuration value `apis.type` and `apis.input` in the Zudoku config."
|
|
50
42
|
});
|
|
51
43
|
};
|
|
52
|
-
|
|
53
|
-
class hs {
|
|
44
|
+
class ts {
|
|
54
45
|
constructor(t) {
|
|
55
|
-
Ce(this, me, async () => (Se || (Se = import("./createServer-XtO-PVox.js").then(
|
|
56
|
-
(t) => t.createServer(this.config)
|
|
57
|
-
)), Se));
|
|
58
|
-
Ce(this, pe, async (t) => this.config.server ? fetch(this.config.server, t) : (await Ne(this, me).call(this)).fetch("http://localhost/graphql", t));
|
|
59
|
-
Y(this, "fetch", async (t, s) => {
|
|
60
|
-
var i;
|
|
61
|
-
const a = (i = t.match(/query (\w+)/)) == null ? void 0 : i[1], r = await Ne(this, pe).call(this, {
|
|
62
|
-
method: "POST",
|
|
63
|
-
body: JSON.stringify({ query: t, variables: s, operationName: a }),
|
|
64
|
-
headers: { "Content-Type": "application/json" }
|
|
65
|
-
});
|
|
66
|
-
if (!r.ok)
|
|
67
|
-
throw new Error("Network response was not ok");
|
|
68
|
-
const o = await r.json();
|
|
69
|
-
return ps(o), o.data;
|
|
70
|
-
});
|
|
71
46
|
this.config = t;
|
|
72
47
|
}
|
|
48
|
+
#e = async () => (fe || (fe = import("./createServer-DmqFeMgf.js").then(
|
|
49
|
+
(t) => t.createServer(this.config)
|
|
50
|
+
)), fe);
|
|
51
|
+
#t = async (t) => this.config.server ? fetch(this.config.server, t) : (await this.#e()).fetch("http://localhost/graphql", t);
|
|
52
|
+
fetch = async (t, s) => {
|
|
53
|
+
const a = t.match(/query (\w+)/)?.[1], r = await this.#t({
|
|
54
|
+
method: "POST",
|
|
55
|
+
body: JSON.stringify({ query: t, variables: s, operationName: a }),
|
|
56
|
+
headers: { "Content-Type": "application/json" }
|
|
57
|
+
});
|
|
58
|
+
if (!r.ok)
|
|
59
|
+
throw new Error("Network response was not ok");
|
|
60
|
+
const o = await r.json();
|
|
61
|
+
return es(o), o.data;
|
|
62
|
+
};
|
|
73
63
|
}
|
|
74
|
-
|
|
75
|
-
function we(e, t) {
|
|
64
|
+
function xe(e, t) {
|
|
76
65
|
if (!!!e)
|
|
77
66
|
throw new Error(t);
|
|
78
67
|
}
|
|
79
|
-
function
|
|
68
|
+
function ns(e) {
|
|
80
69
|
return typeof e == "object" && e !== null;
|
|
81
70
|
}
|
|
82
|
-
function
|
|
71
|
+
function ss(e, t) {
|
|
83
72
|
if (!!!e)
|
|
84
73
|
throw new Error(
|
|
85
74
|
t ?? "Unexpected invariant triggered."
|
|
86
75
|
);
|
|
87
76
|
}
|
|
88
|
-
const
|
|
89
|
-
function
|
|
77
|
+
const rs = /\r\n|[\n\r]/g;
|
|
78
|
+
function Ae(e, t) {
|
|
90
79
|
let s = 0, a = 1;
|
|
91
|
-
for (const r of e.body.matchAll(
|
|
92
|
-
if (typeof r.index == "number" ||
|
|
80
|
+
for (const r of e.body.matchAll(rs)) {
|
|
81
|
+
if (typeof r.index == "number" || ss(!1), r.index >= t)
|
|
93
82
|
break;
|
|
94
83
|
s = r.index + r[0].length, a += 1;
|
|
95
84
|
}
|
|
@@ -98,40 +87,40 @@ function De(e, t) {
|
|
|
98
87
|
column: t + 1 - s
|
|
99
88
|
};
|
|
100
89
|
}
|
|
101
|
-
function
|
|
102
|
-
return
|
|
90
|
+
function as(e) {
|
|
91
|
+
return Et(
|
|
103
92
|
e.source,
|
|
104
|
-
|
|
93
|
+
Ae(e.source, e.start)
|
|
105
94
|
);
|
|
106
95
|
}
|
|
107
|
-
function
|
|
96
|
+
function Et(e, t) {
|
|
108
97
|
const s = e.locationOffset.column - 1, a = "".padStart(s) + e.body, r = t.line - 1, o = e.locationOffset.line - 1, i = t.line + o, c = t.line === 1 ? s : 0, l = t.column + c, u = `${e.name}:${i}:${l}
|
|
109
|
-
`,
|
|
98
|
+
`, p = a.split(/\r\n|[\n\r]/g), y = p[r];
|
|
110
99
|
if (y.length > 120) {
|
|
111
|
-
const
|
|
112
|
-
for (let
|
|
113
|
-
|
|
114
|
-
return u +
|
|
115
|
-
[`${i} |`,
|
|
116
|
-
...
|
|
117
|
-
["|", "^".padStart(
|
|
118
|
-
["|", f
|
|
100
|
+
const f = Math.floor(l / 80), x = l % 80, m = [];
|
|
101
|
+
for (let g = 0; g < y.length; g += 80)
|
|
102
|
+
m.push(y.slice(g, g + 80));
|
|
103
|
+
return u + it([
|
|
104
|
+
[`${i} |`, m[0]],
|
|
105
|
+
...m.slice(1, f + 1).map((g) => ["|", g]),
|
|
106
|
+
["|", "^".padStart(x)],
|
|
107
|
+
["|", m[f + 1]]
|
|
119
108
|
]);
|
|
120
109
|
}
|
|
121
|
-
return u +
|
|
110
|
+
return u + it([
|
|
122
111
|
// Lines specified like this: ["prefix", "string"],
|
|
123
|
-
[`${i - 1} |`,
|
|
112
|
+
[`${i - 1} |`, p[r - 1]],
|
|
124
113
|
[`${i} |`, y],
|
|
125
114
|
["|", "^".padStart(l)],
|
|
126
|
-
[`${i + 1} |`,
|
|
115
|
+
[`${i + 1} |`, p[r + 1]]
|
|
127
116
|
]);
|
|
128
117
|
}
|
|
129
|
-
function
|
|
118
|
+
function it(e) {
|
|
130
119
|
const t = e.filter(([a, r]) => r !== void 0), s = Math.max(...t.map(([a]) => a.length));
|
|
131
120
|
return t.map(([a, r]) => a.padStart(s) + (r ? " " + r : "")).join(`
|
|
132
121
|
`);
|
|
133
122
|
}
|
|
134
|
-
function
|
|
123
|
+
function os(e) {
|
|
135
124
|
const t = e[0];
|
|
136
125
|
return t == null || "kind" in t || "length" in t ? {
|
|
137
126
|
nodes: t,
|
|
@@ -142,7 +131,7 @@ function vs(e) {
|
|
|
142
131
|
extensions: e[5]
|
|
143
132
|
} : t;
|
|
144
133
|
}
|
|
145
|
-
class
|
|
134
|
+
class Fe extends Error {
|
|
146
135
|
/**
|
|
147
136
|
* An array of `{ line, column }` locations within the source GraphQL document
|
|
148
137
|
* which correspond to this error.
|
|
@@ -183,18 +172,18 @@ class Je extends Error {
|
|
|
183
172
|
*/
|
|
184
173
|
constructor(t, ...s) {
|
|
185
174
|
var a, r, o;
|
|
186
|
-
const { nodes: i, source: c, positions: l, path: u, originalError:
|
|
187
|
-
super(t), this.name = "GraphQLError", this.path = u ?? void 0, this.originalError =
|
|
175
|
+
const { nodes: i, source: c, positions: l, path: u, originalError: p, extensions: y } = os(s);
|
|
176
|
+
super(t), this.name = "GraphQLError", this.path = u ?? void 0, this.originalError = p ?? void 0, this.nodes = lt(
|
|
188
177
|
Array.isArray(i) ? i : i ? [i] : void 0
|
|
189
178
|
);
|
|
190
|
-
const
|
|
191
|
-
(a = this.nodes) === null || a === void 0 ? void 0 : a.map((
|
|
179
|
+
const f = lt(
|
|
180
|
+
(a = this.nodes) === null || a === void 0 ? void 0 : a.map((m) => m.loc).filter((m) => m != null)
|
|
192
181
|
);
|
|
193
|
-
this.source = c ?? (
|
|
194
|
-
const
|
|
195
|
-
|
|
196
|
-
) ?
|
|
197
|
-
this.extensions = (o = y ??
|
|
182
|
+
this.source = c ?? (f == null || (r = f[0]) === null || r === void 0 ? void 0 : r.source), this.positions = l ?? f?.map((m) => m.start), this.locations = l && c ? l.map((m) => Ae(c, m)) : f?.map((m) => Ae(m.source, m.start));
|
|
183
|
+
const x = ns(
|
|
184
|
+
p?.extensions
|
|
185
|
+
) ? p?.extensions : void 0;
|
|
186
|
+
this.extensions = (o = y ?? x) !== null && o !== void 0 ? o : /* @__PURE__ */ Object.create(null), Object.defineProperties(this, {
|
|
198
187
|
message: {
|
|
199
188
|
writable: !0,
|
|
200
189
|
enumerable: !0
|
|
@@ -214,11 +203,11 @@ class Je extends Error {
|
|
|
214
203
|
originalError: {
|
|
215
204
|
enumerable: !1
|
|
216
205
|
}
|
|
217
|
-
}),
|
|
218
|
-
value:
|
|
206
|
+
}), p != null && p.stack ? Object.defineProperty(this, "stack", {
|
|
207
|
+
value: p.stack,
|
|
219
208
|
writable: !0,
|
|
220
209
|
configurable: !0
|
|
221
|
-
}) : Error.captureStackTrace ? Error.captureStackTrace(this,
|
|
210
|
+
}) : Error.captureStackTrace ? Error.captureStackTrace(this, Fe) : Object.defineProperty(this, "stack", {
|
|
222
211
|
value: Error().stack,
|
|
223
212
|
writable: !0,
|
|
224
213
|
configurable: !0
|
|
@@ -233,12 +222,12 @@ class Je extends Error {
|
|
|
233
222
|
for (const s of this.nodes)
|
|
234
223
|
s.loc && (t += `
|
|
235
224
|
|
|
236
|
-
` +
|
|
225
|
+
` + as(s.loc));
|
|
237
226
|
else if (this.source && this.locations)
|
|
238
227
|
for (const s of this.locations)
|
|
239
228
|
t += `
|
|
240
229
|
|
|
241
|
-
` +
|
|
230
|
+
` + Et(this.source, s);
|
|
242
231
|
return t;
|
|
243
232
|
}
|
|
244
233
|
toJSON() {
|
|
@@ -248,16 +237,16 @@ class Je extends Error {
|
|
|
248
237
|
return this.locations != null && (t.locations = this.locations), this.path != null && (t.path = this.path), this.extensions != null && Object.keys(this.extensions).length > 0 && (t.extensions = this.extensions), t;
|
|
249
238
|
}
|
|
250
239
|
}
|
|
251
|
-
function
|
|
240
|
+
function lt(e) {
|
|
252
241
|
return e === void 0 || e.length === 0 ? void 0 : e;
|
|
253
242
|
}
|
|
254
|
-
function
|
|
255
|
-
return new
|
|
243
|
+
function A(e, t, s) {
|
|
244
|
+
return new Fe(`Syntax Error: ${s}`, {
|
|
256
245
|
source: e,
|
|
257
246
|
positions: [t]
|
|
258
247
|
});
|
|
259
248
|
}
|
|
260
|
-
class
|
|
249
|
+
class da {
|
|
261
250
|
/**
|
|
262
251
|
* The character offset at which this Node begins.
|
|
263
252
|
*/
|
|
@@ -286,7 +275,7 @@ class Sa {
|
|
|
286
275
|
};
|
|
287
276
|
}
|
|
288
277
|
}
|
|
289
|
-
class
|
|
278
|
+
class Pt {
|
|
290
279
|
/**
|
|
291
280
|
* The kind of Token.
|
|
292
281
|
*/
|
|
@@ -328,7 +317,7 @@ class Mt {
|
|
|
328
317
|
};
|
|
329
318
|
}
|
|
330
319
|
}
|
|
331
|
-
const
|
|
320
|
+
const is = {
|
|
332
321
|
Name: [],
|
|
333
322
|
Document: ["definitions"],
|
|
334
323
|
OperationDefinition: [
|
|
@@ -402,37 +391,37 @@ const bs = {
|
|
|
402
391
|
UnionTypeExtension: ["name", "directives", "types"],
|
|
403
392
|
EnumTypeExtension: ["name", "directives", "values"],
|
|
404
393
|
InputObjectTypeExtension: ["name", "directives", "fields"]
|
|
405
|
-
},
|
|
406
|
-
function
|
|
407
|
-
const t = e
|
|
408
|
-
return typeof t == "string" &&
|
|
394
|
+
}, ls = new Set(Object.keys(is));
|
|
395
|
+
function ua(e) {
|
|
396
|
+
const t = e?.kind;
|
|
397
|
+
return typeof t == "string" && ls.has(t);
|
|
409
398
|
}
|
|
410
|
-
var
|
|
399
|
+
var ct;
|
|
411
400
|
(function(e) {
|
|
412
401
|
e.QUERY = "query", e.MUTATION = "mutation", e.SUBSCRIPTION = "subscription";
|
|
413
|
-
})(
|
|
414
|
-
function
|
|
402
|
+
})(ct || (ct = {}));
|
|
403
|
+
function Oe(e) {
|
|
415
404
|
return e === 9 || e === 32;
|
|
416
405
|
}
|
|
417
|
-
function
|
|
406
|
+
function Y(e) {
|
|
418
407
|
return e >= 48 && e <= 57;
|
|
419
408
|
}
|
|
420
|
-
function
|
|
409
|
+
function $t(e) {
|
|
421
410
|
return e >= 97 && e <= 122 || // A-Z
|
|
422
411
|
e >= 65 && e <= 90;
|
|
423
412
|
}
|
|
424
|
-
function
|
|
425
|
-
return
|
|
413
|
+
function Lt(e) {
|
|
414
|
+
return $t(e) || e === 95;
|
|
426
415
|
}
|
|
427
|
-
function
|
|
428
|
-
return
|
|
416
|
+
function cs(e) {
|
|
417
|
+
return $t(e) || Y(e) || e === 95;
|
|
429
418
|
}
|
|
430
|
-
function
|
|
419
|
+
function ds(e) {
|
|
431
420
|
var t;
|
|
432
421
|
let s = Number.MAX_SAFE_INTEGER, a = null, r = -1;
|
|
433
422
|
for (let i = 0; i < e.length; ++i) {
|
|
434
423
|
var o;
|
|
435
|
-
const c = e[i], l =
|
|
424
|
+
const c = e[i], l = us(c);
|
|
436
425
|
l !== c.length && (a = (o = a) !== null && o !== void 0 ? o : i, r = i, i !== 0 && l < s && (s = l));
|
|
437
426
|
}
|
|
438
427
|
return e.map((i, c) => c === 0 ? i : i.slice(s)).slice(
|
|
@@ -440,26 +429,26 @@ function Cs(e) {
|
|
|
440
429
|
r + 1
|
|
441
430
|
);
|
|
442
431
|
}
|
|
443
|
-
function
|
|
432
|
+
function us(e) {
|
|
444
433
|
let t = 0;
|
|
445
|
-
for (; t < e.length &&
|
|
434
|
+
for (; t < e.length && Oe(e.charCodeAt(t)); )
|
|
446
435
|
++t;
|
|
447
436
|
return t;
|
|
448
437
|
}
|
|
449
|
-
function
|
|
450
|
-
const s = e.replace(/"""/g, '\\"""'), a = s.split(/\r\n|[\n\r]/g), r = a.length === 1, o = a.length > 1 && a.slice(1).every((
|
|
438
|
+
function ms(e, t) {
|
|
439
|
+
const s = e.replace(/"""/g, '\\"""'), a = s.split(/\r\n|[\n\r]/g), r = a.length === 1, o = a.length > 1 && a.slice(1).every((x) => x.length === 0 || Oe(x.charCodeAt(0))), i = s.endsWith('\\"""'), c = e.endsWith('"') && !i, l = e.endsWith("\\"), u = c || l, p = !(t != null && t.minimize) && // add leading and trailing new lines only if it improves readability
|
|
451
440
|
(!r || e.length > 70 || u || o || i);
|
|
452
441
|
let y = "";
|
|
453
|
-
const
|
|
454
|
-
return (
|
|
455
|
-
`), y += s, (
|
|
442
|
+
const f = r && Oe(e.charCodeAt(0));
|
|
443
|
+
return (p && !f || o) && (y += `
|
|
444
|
+
`), y += s, (p || u) && (y += `
|
|
456
445
|
`), '"""' + y + '"""';
|
|
457
446
|
}
|
|
458
447
|
var h;
|
|
459
448
|
(function(e) {
|
|
460
449
|
e.SOF = "<SOF>", e.EOF = "<EOF>", e.BANG = "!", e.DOLLAR = "$", e.AMP = "&", e.PAREN_L = "(", e.PAREN_R = ")", e.SPREAD = "...", e.COLON = ":", e.EQUALS = "=", e.AT = "@", e.BRACKET_L = "[", e.BRACKET_R = "]", e.BRACE_L = "{", e.PIPE = "|", e.BRACE_R = "}", e.NAME = "Name", e.INT = "Int", e.FLOAT = "Float", e.STRING = "String", e.BLOCK_STRING = "BlockString", e.COMMENT = "Comment";
|
|
461
450
|
})(h || (h = {}));
|
|
462
|
-
class
|
|
451
|
+
class ps {
|
|
463
452
|
/**
|
|
464
453
|
* The previously focused non-ignored token.
|
|
465
454
|
*/
|
|
@@ -473,7 +462,7 @@ class Ts {
|
|
|
473
462
|
* The character offset at which the current line begins.
|
|
474
463
|
*/
|
|
475
464
|
constructor(t) {
|
|
476
|
-
const s = new
|
|
465
|
+
const s = new Pt(h.SOF, 0, 0, 0, 0);
|
|
477
466
|
this.source = t, this.lastToken = s, this.token = s, this.line = 1, this.lineStart = 0;
|
|
478
467
|
}
|
|
479
468
|
get [Symbol.toStringTag]() {
|
|
@@ -496,29 +485,29 @@ class Ts {
|
|
|
496
485
|
if (t.next)
|
|
497
486
|
t = t.next;
|
|
498
487
|
else {
|
|
499
|
-
const s =
|
|
488
|
+
const s = fs(this, t.end);
|
|
500
489
|
t.next = s, s.prev = t, t = s;
|
|
501
490
|
}
|
|
502
491
|
while (t.kind === h.COMMENT);
|
|
503
492
|
return t;
|
|
504
493
|
}
|
|
505
494
|
}
|
|
506
|
-
function
|
|
495
|
+
function hs(e) {
|
|
507
496
|
return e === h.BANG || e === h.DOLLAR || e === h.AMP || e === h.PAREN_L || e === h.PAREN_R || e === h.SPREAD || e === h.COLON || e === h.EQUALS || e === h.AT || e === h.BRACKET_L || e === h.BRACKET_R || e === h.BRACE_L || e === h.PIPE || e === h.BRACE_R;
|
|
508
497
|
}
|
|
509
|
-
function
|
|
498
|
+
function H(e) {
|
|
510
499
|
return e >= 0 && e <= 55295 || e >= 57344 && e <= 1114111;
|
|
511
500
|
}
|
|
512
|
-
function
|
|
513
|
-
return
|
|
501
|
+
function de(e, t) {
|
|
502
|
+
return Rt(e.charCodeAt(t)) && It(e.charCodeAt(t + 1));
|
|
514
503
|
}
|
|
515
|
-
function
|
|
504
|
+
function Rt(e) {
|
|
516
505
|
return e >= 55296 && e <= 56319;
|
|
517
506
|
}
|
|
518
|
-
function
|
|
507
|
+
function It(e) {
|
|
519
508
|
return e >= 56320 && e <= 57343;
|
|
520
509
|
}
|
|
521
|
-
function
|
|
510
|
+
function F(e, t) {
|
|
522
511
|
const s = e.source.body.codePointAt(t);
|
|
523
512
|
if (s === void 0)
|
|
524
513
|
return h.EOF;
|
|
@@ -528,11 +517,11 @@ function B(e, t) {
|
|
|
528
517
|
}
|
|
529
518
|
return "U+" + s.toString(16).toUpperCase().padStart(4, "0");
|
|
530
519
|
}
|
|
531
|
-
function
|
|
520
|
+
function N(e, t, s, a, r) {
|
|
532
521
|
const o = e.line, i = 1 + s - e.lineStart;
|
|
533
|
-
return new
|
|
522
|
+
return new Pt(t, s, a, o, i, r);
|
|
534
523
|
}
|
|
535
|
-
function
|
|
524
|
+
function fs(e, t) {
|
|
536
525
|
const s = e.source.body, a = s.length;
|
|
537
526
|
let r = t;
|
|
538
527
|
for (; r < a; ) {
|
|
@@ -573,7 +562,7 @@ function Os(e, t) {
|
|
|
573
562
|
continue;
|
|
574
563
|
// Comment
|
|
575
564
|
case 35:
|
|
576
|
-
return
|
|
565
|
+
return xs(e, r);
|
|
577
566
|
// Token ::
|
|
578
567
|
// - Punctuator
|
|
579
568
|
// - Name
|
|
@@ -583,66 +572,66 @@ function Os(e, t) {
|
|
|
583
572
|
//
|
|
584
573
|
// Punctuator :: one of ! $ & ( ) ... : = @ [ ] { | }
|
|
585
574
|
case 33:
|
|
586
|
-
return
|
|
575
|
+
return N(e, h.BANG, r, r + 1);
|
|
587
576
|
case 36:
|
|
588
|
-
return
|
|
577
|
+
return N(e, h.DOLLAR, r, r + 1);
|
|
589
578
|
case 38:
|
|
590
|
-
return
|
|
579
|
+
return N(e, h.AMP, r, r + 1);
|
|
591
580
|
case 40:
|
|
592
|
-
return
|
|
581
|
+
return N(e, h.PAREN_L, r, r + 1);
|
|
593
582
|
case 41:
|
|
594
|
-
return
|
|
583
|
+
return N(e, h.PAREN_R, r, r + 1);
|
|
595
584
|
case 46:
|
|
596
585
|
if (s.charCodeAt(r + 1) === 46 && s.charCodeAt(r + 2) === 46)
|
|
597
|
-
return
|
|
586
|
+
return N(e, h.SPREAD, r, r + 3);
|
|
598
587
|
break;
|
|
599
588
|
case 58:
|
|
600
|
-
return
|
|
589
|
+
return N(e, h.COLON, r, r + 1);
|
|
601
590
|
case 61:
|
|
602
|
-
return
|
|
591
|
+
return N(e, h.EQUALS, r, r + 1);
|
|
603
592
|
case 64:
|
|
604
|
-
return
|
|
593
|
+
return N(e, h.AT, r, r + 1);
|
|
605
594
|
case 91:
|
|
606
|
-
return
|
|
595
|
+
return N(e, h.BRACKET_L, r, r + 1);
|
|
607
596
|
case 93:
|
|
608
|
-
return
|
|
597
|
+
return N(e, h.BRACKET_R, r, r + 1);
|
|
609
598
|
case 123:
|
|
610
|
-
return
|
|
599
|
+
return N(e, h.BRACE_L, r, r + 1);
|
|
611
600
|
case 124:
|
|
612
|
-
return
|
|
601
|
+
return N(e, h.PIPE, r, r + 1);
|
|
613
602
|
case 125:
|
|
614
|
-
return
|
|
603
|
+
return N(e, h.BRACE_R, r, r + 1);
|
|
615
604
|
// StringValue
|
|
616
605
|
case 34:
|
|
617
|
-
return s.charCodeAt(r + 1) === 34 && s.charCodeAt(r + 2) === 34 ?
|
|
606
|
+
return s.charCodeAt(r + 1) === 34 && s.charCodeAt(r + 2) === 34 ? Ns(e, r) : ys(e, r);
|
|
618
607
|
}
|
|
619
|
-
if (
|
|
620
|
-
return
|
|
621
|
-
if (
|
|
622
|
-
return
|
|
623
|
-
throw
|
|
608
|
+
if (Y(o) || o === 45)
|
|
609
|
+
return gs(e, r, o);
|
|
610
|
+
if (Lt(o))
|
|
611
|
+
return Cs(e, r);
|
|
612
|
+
throw A(
|
|
624
613
|
e.source,
|
|
625
614
|
r,
|
|
626
|
-
o === 39 ? `Unexpected single quote character ('), did you mean to use a double quote (")?` :
|
|
615
|
+
o === 39 ? `Unexpected single quote character ('), did you mean to use a double quote (")?` : H(o) || de(s, r) ? `Unexpected character: ${F(e, r)}.` : `Invalid character: ${F(e, r)}.`
|
|
627
616
|
);
|
|
628
617
|
}
|
|
629
|
-
return
|
|
618
|
+
return N(e, h.EOF, a, a);
|
|
630
619
|
}
|
|
631
|
-
function
|
|
620
|
+
function xs(e, t) {
|
|
632
621
|
const s = e.source.body, a = s.length;
|
|
633
622
|
let r = t + 1;
|
|
634
623
|
for (; r < a; ) {
|
|
635
624
|
const o = s.charCodeAt(r);
|
|
636
625
|
if (o === 10 || o === 13)
|
|
637
626
|
break;
|
|
638
|
-
if (
|
|
627
|
+
if (H(o))
|
|
639
628
|
++r;
|
|
640
|
-
else if (
|
|
629
|
+
else if (de(s, r))
|
|
641
630
|
r += 2;
|
|
642
631
|
else
|
|
643
632
|
break;
|
|
644
633
|
}
|
|
645
|
-
return
|
|
634
|
+
return N(
|
|
646
635
|
e,
|
|
647
636
|
h.COMMENT,
|
|
648
637
|
t,
|
|
@@ -650,31 +639,31 @@ function $s(e, t) {
|
|
|
650
639
|
s.slice(t + 1, r)
|
|
651
640
|
);
|
|
652
641
|
}
|
|
653
|
-
function
|
|
642
|
+
function gs(e, t, s) {
|
|
654
643
|
const a = e.source.body;
|
|
655
644
|
let r = t, o = s, i = !1;
|
|
656
645
|
if (o === 45 && (o = a.charCodeAt(++r)), o === 48) {
|
|
657
|
-
if (o = a.charCodeAt(++r),
|
|
658
|
-
throw
|
|
646
|
+
if (o = a.charCodeAt(++r), Y(o))
|
|
647
|
+
throw A(
|
|
659
648
|
e.source,
|
|
660
649
|
r,
|
|
661
|
-
`Invalid number, unexpected digit after 0: ${
|
|
650
|
+
`Invalid number, unexpected digit after 0: ${F(
|
|
662
651
|
e,
|
|
663
652
|
r
|
|
664
653
|
)}.`
|
|
665
654
|
);
|
|
666
655
|
} else
|
|
667
|
-
r =
|
|
668
|
-
if (o === 46 && (i = !0, o = a.charCodeAt(++r), r =
|
|
669
|
-
throw
|
|
656
|
+
r = ge(e, r, o), o = a.charCodeAt(r);
|
|
657
|
+
if (o === 46 && (i = !0, o = a.charCodeAt(++r), r = ge(e, r, o), o = a.charCodeAt(r)), (o === 69 || o === 101) && (i = !0, o = a.charCodeAt(++r), (o === 43 || o === 45) && (o = a.charCodeAt(++r)), r = ge(e, r, o), o = a.charCodeAt(r)), o === 46 || Lt(o))
|
|
658
|
+
throw A(
|
|
670
659
|
e.source,
|
|
671
660
|
r,
|
|
672
|
-
`Invalid number, expected digit but got: ${
|
|
661
|
+
`Invalid number, expected digit but got: ${F(
|
|
673
662
|
e,
|
|
674
663
|
r
|
|
675
664
|
)}.`
|
|
676
665
|
);
|
|
677
|
-
return
|
|
666
|
+
return N(
|
|
678
667
|
e,
|
|
679
668
|
i ? h.FLOAT : h.INT,
|
|
680
669
|
t,
|
|
@@ -682,70 +671,70 @@ function Es(e, t, s) {
|
|
|
682
671
|
a.slice(t, r)
|
|
683
672
|
);
|
|
684
673
|
}
|
|
685
|
-
function
|
|
686
|
-
if (!
|
|
687
|
-
throw
|
|
674
|
+
function ge(e, t, s) {
|
|
675
|
+
if (!Y(s))
|
|
676
|
+
throw A(
|
|
688
677
|
e.source,
|
|
689
678
|
t,
|
|
690
|
-
`Invalid number, expected digit but got: ${
|
|
679
|
+
`Invalid number, expected digit but got: ${F(
|
|
691
680
|
e,
|
|
692
681
|
t
|
|
693
682
|
)}.`
|
|
694
683
|
);
|
|
695
684
|
const a = e.source.body;
|
|
696
685
|
let r = t + 1;
|
|
697
|
-
for (;
|
|
686
|
+
for (; Y(a.charCodeAt(r)); )
|
|
698
687
|
++r;
|
|
699
688
|
return r;
|
|
700
689
|
}
|
|
701
|
-
function
|
|
690
|
+
function ys(e, t) {
|
|
702
691
|
const s = e.source.body, a = s.length;
|
|
703
692
|
let r = t + 1, o = r, i = "";
|
|
704
693
|
for (; r < a; ) {
|
|
705
694
|
const c = s.charCodeAt(r);
|
|
706
695
|
if (c === 34)
|
|
707
|
-
return i += s.slice(o, r),
|
|
696
|
+
return i += s.slice(o, r), N(e, h.STRING, t, r + 1, i);
|
|
708
697
|
if (c === 92) {
|
|
709
698
|
i += s.slice(o, r);
|
|
710
|
-
const l = s.charCodeAt(r + 1) === 117 ? s.charCodeAt(r + 2) === 123 ?
|
|
699
|
+
const l = s.charCodeAt(r + 1) === 117 ? s.charCodeAt(r + 2) === 123 ? vs(e, r) : bs(e, r) : js(e, r);
|
|
711
700
|
i += l.value, r += l.size, o = r;
|
|
712
701
|
continue;
|
|
713
702
|
}
|
|
714
703
|
if (c === 10 || c === 13)
|
|
715
704
|
break;
|
|
716
|
-
if (
|
|
705
|
+
if (H(c))
|
|
717
706
|
++r;
|
|
718
|
-
else if (
|
|
707
|
+
else if (de(s, r))
|
|
719
708
|
r += 2;
|
|
720
709
|
else
|
|
721
|
-
throw
|
|
710
|
+
throw A(
|
|
722
711
|
e.source,
|
|
723
712
|
r,
|
|
724
|
-
`Invalid character within String: ${
|
|
713
|
+
`Invalid character within String: ${F(
|
|
725
714
|
e,
|
|
726
715
|
r
|
|
727
716
|
)}.`
|
|
728
717
|
);
|
|
729
718
|
}
|
|
730
|
-
throw
|
|
719
|
+
throw A(e.source, r, "Unterminated string.");
|
|
731
720
|
}
|
|
732
|
-
function
|
|
721
|
+
function vs(e, t) {
|
|
733
722
|
const s = e.source.body;
|
|
734
723
|
let a = 0, r = 3;
|
|
735
724
|
for (; r < 12; ) {
|
|
736
725
|
const o = s.charCodeAt(t + r++);
|
|
737
726
|
if (o === 125) {
|
|
738
|
-
if (r < 5 || !
|
|
727
|
+
if (r < 5 || !H(a))
|
|
739
728
|
break;
|
|
740
729
|
return {
|
|
741
730
|
value: String.fromCodePoint(a),
|
|
742
731
|
size: r
|
|
743
732
|
};
|
|
744
733
|
}
|
|
745
|
-
if (a = a << 4 |
|
|
734
|
+
if (a = a << 4 | Q(o), a < 0)
|
|
746
735
|
break;
|
|
747
736
|
}
|
|
748
|
-
throw
|
|
737
|
+
throw A(
|
|
749
738
|
e.source,
|
|
750
739
|
t,
|
|
751
740
|
`Invalid Unicode escape sequence: "${s.slice(
|
|
@@ -754,34 +743,34 @@ function Ls(e, t) {
|
|
|
754
743
|
)}".`
|
|
755
744
|
);
|
|
756
745
|
}
|
|
757
|
-
function
|
|
758
|
-
const s = e.source.body, a =
|
|
759
|
-
if (
|
|
746
|
+
function bs(e, t) {
|
|
747
|
+
const s = e.source.body, a = dt(s, t + 2);
|
|
748
|
+
if (H(a))
|
|
760
749
|
return {
|
|
761
750
|
value: String.fromCodePoint(a),
|
|
762
751
|
size: 6
|
|
763
752
|
};
|
|
764
|
-
if (
|
|
765
|
-
const r =
|
|
766
|
-
if (
|
|
753
|
+
if (Rt(a) && s.charCodeAt(t + 6) === 92 && s.charCodeAt(t + 7) === 117) {
|
|
754
|
+
const r = dt(s, t + 8);
|
|
755
|
+
if (It(r))
|
|
767
756
|
return {
|
|
768
757
|
value: String.fromCodePoint(a, r),
|
|
769
758
|
size: 12
|
|
770
759
|
};
|
|
771
760
|
}
|
|
772
|
-
throw
|
|
761
|
+
throw A(
|
|
773
762
|
e.source,
|
|
774
763
|
t,
|
|
775
764
|
`Invalid Unicode escape sequence: "${s.slice(t, t + 6)}".`
|
|
776
765
|
);
|
|
777
766
|
}
|
|
778
|
-
function
|
|
779
|
-
return
|
|
767
|
+
function dt(e, t) {
|
|
768
|
+
return Q(e.charCodeAt(t)) << 12 | Q(e.charCodeAt(t + 1)) << 8 | Q(e.charCodeAt(t + 2)) << 4 | Q(e.charCodeAt(t + 3));
|
|
780
769
|
}
|
|
781
|
-
function
|
|
770
|
+
function Q(e) {
|
|
782
771
|
return e >= 48 && e <= 57 ? e - 48 : e >= 65 && e <= 70 ? e - 55 : e >= 97 && e <= 102 ? e - 87 : -1;
|
|
783
772
|
}
|
|
784
|
-
function
|
|
773
|
+
function js(e, t) {
|
|
785
774
|
const s = e.source.body;
|
|
786
775
|
switch (s.charCodeAt(t + 1)) {
|
|
787
776
|
case 34:
|
|
@@ -826,7 +815,7 @@ function Is(e, t) {
|
|
|
826
815
|
size: 2
|
|
827
816
|
};
|
|
828
817
|
}
|
|
829
|
-
throw
|
|
818
|
+
throw A(
|
|
830
819
|
e.source,
|
|
831
820
|
t,
|
|
832
821
|
`Invalid character escape sequence: "${s.slice(
|
|
@@ -835,7 +824,7 @@ function Is(e, t) {
|
|
|
835
824
|
)}".`
|
|
836
825
|
);
|
|
837
826
|
}
|
|
838
|
-
function
|
|
827
|
+
function Ns(e, t) {
|
|
839
828
|
const s = e.source.body, a = s.length;
|
|
840
829
|
let r = e.lineStart, o = t + 3, i = o, c = "";
|
|
841
830
|
const l = [];
|
|
@@ -843,16 +832,16 @@ function ks(e, t) {
|
|
|
843
832
|
const u = s.charCodeAt(o);
|
|
844
833
|
if (u === 34 && s.charCodeAt(o + 1) === 34 && s.charCodeAt(o + 2) === 34) {
|
|
845
834
|
c += s.slice(i, o), l.push(c);
|
|
846
|
-
const
|
|
835
|
+
const p = N(
|
|
847
836
|
e,
|
|
848
837
|
h.BLOCK_STRING,
|
|
849
838
|
t,
|
|
850
839
|
o + 3,
|
|
851
840
|
// Return a string of the lines joined with U+000A.
|
|
852
|
-
|
|
841
|
+
ds(l).join(`
|
|
853
842
|
`)
|
|
854
843
|
);
|
|
855
|
-
return e.line += l.length - 1, e.lineStart = r,
|
|
844
|
+
return e.line += l.length - 1, e.lineStart = r, p;
|
|
856
845
|
}
|
|
857
846
|
if (u === 92 && s.charCodeAt(o + 1) === 34 && s.charCodeAt(o + 2) === 34 && s.charCodeAt(o + 3) === 34) {
|
|
858
847
|
c += s.slice(i, o), i = o + 1, o += 4;
|
|
@@ -862,33 +851,33 @@ function ks(e, t) {
|
|
|
862
851
|
c += s.slice(i, o), l.push(c), u === 13 && s.charCodeAt(o + 1) === 10 ? o += 2 : ++o, c = "", i = o, r = o;
|
|
863
852
|
continue;
|
|
864
853
|
}
|
|
865
|
-
if (
|
|
854
|
+
if (H(u))
|
|
866
855
|
++o;
|
|
867
|
-
else if (
|
|
856
|
+
else if (de(s, o))
|
|
868
857
|
o += 2;
|
|
869
858
|
else
|
|
870
|
-
throw
|
|
859
|
+
throw A(
|
|
871
860
|
e.source,
|
|
872
861
|
o,
|
|
873
|
-
`Invalid character within String: ${
|
|
862
|
+
`Invalid character within String: ${F(
|
|
874
863
|
e,
|
|
875
864
|
o
|
|
876
865
|
)}.`
|
|
877
866
|
);
|
|
878
867
|
}
|
|
879
|
-
throw
|
|
868
|
+
throw A(e.source, o, "Unterminated string.");
|
|
880
869
|
}
|
|
881
|
-
function
|
|
870
|
+
function Cs(e, t) {
|
|
882
871
|
const s = e.source.body, a = s.length;
|
|
883
872
|
let r = t + 1;
|
|
884
873
|
for (; r < a; ) {
|
|
885
874
|
const o = s.charCodeAt(r);
|
|
886
|
-
if (
|
|
875
|
+
if (cs(o))
|
|
887
876
|
++r;
|
|
888
877
|
else
|
|
889
878
|
break;
|
|
890
879
|
}
|
|
891
|
-
return
|
|
880
|
+
return N(
|
|
892
881
|
e,
|
|
893
882
|
h.NAME,
|
|
894
883
|
t,
|
|
@@ -896,56 +885,56 @@ function Ds(e, t) {
|
|
|
896
885
|
s.slice(t, r)
|
|
897
886
|
);
|
|
898
887
|
}
|
|
899
|
-
const
|
|
900
|
-
function
|
|
901
|
-
return
|
|
888
|
+
const Ss = 10, kt = 2;
|
|
889
|
+
function Dt(e) {
|
|
890
|
+
return ue(e, []);
|
|
902
891
|
}
|
|
903
|
-
function
|
|
892
|
+
function ue(e, t) {
|
|
904
893
|
switch (typeof e) {
|
|
905
894
|
case "string":
|
|
906
895
|
return JSON.stringify(e);
|
|
907
896
|
case "function":
|
|
908
897
|
return e.name ? `[function ${e.name}]` : "[function]";
|
|
909
898
|
case "object":
|
|
910
|
-
return
|
|
899
|
+
return ws(e, t);
|
|
911
900
|
default:
|
|
912
901
|
return String(e);
|
|
913
902
|
}
|
|
914
903
|
}
|
|
915
|
-
function
|
|
904
|
+
function ws(e, t) {
|
|
916
905
|
if (e === null)
|
|
917
906
|
return "null";
|
|
918
907
|
if (t.includes(e))
|
|
919
908
|
return "[Circular]";
|
|
920
909
|
const s = [...t, e];
|
|
921
|
-
if (
|
|
910
|
+
if (Ts(e)) {
|
|
922
911
|
const a = e.toJSON();
|
|
923
912
|
if (a !== e)
|
|
924
|
-
return typeof a == "string" ? a :
|
|
913
|
+
return typeof a == "string" ? a : ue(a, s);
|
|
925
914
|
} else if (Array.isArray(e))
|
|
926
|
-
return
|
|
927
|
-
return
|
|
915
|
+
return Os(e, s);
|
|
916
|
+
return As(e, s);
|
|
928
917
|
}
|
|
929
|
-
function
|
|
918
|
+
function Ts(e) {
|
|
930
919
|
return typeof e.toJSON == "function";
|
|
931
920
|
}
|
|
932
|
-
function
|
|
921
|
+
function As(e, t) {
|
|
933
922
|
const s = Object.entries(e);
|
|
934
|
-
return s.length === 0 ? "{}" : t.length >
|
|
935
|
-
([r, o]) => r + ": " +
|
|
923
|
+
return s.length === 0 ? "{}" : t.length > kt ? "[" + Es(e) + "]" : "{ " + s.map(
|
|
924
|
+
([r, o]) => r + ": " + ue(o, t)
|
|
936
925
|
).join(", ") + " }";
|
|
937
926
|
}
|
|
938
|
-
function
|
|
927
|
+
function Os(e, t) {
|
|
939
928
|
if (e.length === 0)
|
|
940
929
|
return "[]";
|
|
941
|
-
if (t.length >
|
|
930
|
+
if (t.length > kt)
|
|
942
931
|
return "[Array]";
|
|
943
|
-
const s = Math.min(
|
|
932
|
+
const s = Math.min(Ss, e.length), a = e.length - s, r = [];
|
|
944
933
|
for (let o = 0; o < s; ++o)
|
|
945
|
-
r.push(
|
|
934
|
+
r.push(ue(e[o], t));
|
|
946
935
|
return a === 1 ? r.push("... 1 more item") : a > 1 && r.push(`... ${a} more items`), "[" + r.join(", ") + "]";
|
|
947
936
|
}
|
|
948
|
-
function
|
|
937
|
+
function Es(e) {
|
|
949
938
|
const t = Object.prototype.toString.call(e).replace(/^\[object /, "").replace(/]$/, "");
|
|
950
939
|
if (t === "Object" && typeof e.constructor == "function") {
|
|
951
940
|
const s = e.constructor.name;
|
|
@@ -954,11 +943,11 @@ function zs(e) {
|
|
|
954
943
|
}
|
|
955
944
|
return t;
|
|
956
945
|
}
|
|
957
|
-
const
|
|
958
|
-
process.env.NODE_ENV === "production",
|
|
946
|
+
const Ps = globalThis.process && // eslint-disable-next-line no-undef
|
|
947
|
+
process.env.NODE_ENV === "production", $s = (
|
|
959
948
|
/* c8 ignore next 6 */
|
|
960
949
|
// FIXME: https://github.com/graphql/graphql-js/issues/2317
|
|
961
|
-
|
|
950
|
+
Ps ? function(t, s) {
|
|
962
951
|
return t instanceof s;
|
|
963
952
|
} : function(t, s) {
|
|
964
953
|
if (t instanceof s)
|
|
@@ -970,7 +959,7 @@ process.env.NODE_ENV === "production", Gs = (
|
|
|
970
959
|
Symbol.toStringTag in t ? t[Symbol.toStringTag] : (a = t.constructor) === null || a === void 0 ? void 0 : a.name
|
|
971
960
|
);
|
|
972
961
|
if (r === o) {
|
|
973
|
-
const i =
|
|
962
|
+
const i = Dt(t);
|
|
974
963
|
throw new Error(`Cannot use ${r} "${i}" from another module or realm.
|
|
975
964
|
|
|
976
965
|
Ensure that there is only one instance of "graphql" in the node_modules
|
|
@@ -988,15 +977,15 @@ spurious results.`);
|
|
|
988
977
|
return !1;
|
|
989
978
|
}
|
|
990
979
|
);
|
|
991
|
-
class
|
|
980
|
+
class qt {
|
|
992
981
|
constructor(t, s = "GraphQL request", a = {
|
|
993
982
|
line: 1,
|
|
994
983
|
column: 1
|
|
995
984
|
}) {
|
|
996
|
-
typeof t == "string" ||
|
|
985
|
+
typeof t == "string" || xe(!1, `Body must be a string. Received: ${Dt(t)}.`), this.body = t, this.name = s, this.locationOffset = a, this.locationOffset.line > 0 || xe(
|
|
997
986
|
!1,
|
|
998
987
|
"line in locationOffset is 1-indexed and must be positive."
|
|
999
|
-
), this.locationOffset.column > 0 ||
|
|
988
|
+
), this.locationOffset.column > 0 || xe(
|
|
1000
989
|
!1,
|
|
1001
990
|
"column in locationOffset is 1-indexed and must be positive."
|
|
1002
991
|
);
|
|
@@ -1005,49 +994,48 @@ class Xt {
|
|
|
1005
994
|
return "Source";
|
|
1006
995
|
}
|
|
1007
996
|
}
|
|
1008
|
-
function
|
|
1009
|
-
return
|
|
997
|
+
function Ls(e) {
|
|
998
|
+
return $s(e, qt);
|
|
1010
999
|
}
|
|
1011
|
-
function
|
|
1012
|
-
const t =
|
|
1000
|
+
function Rs(e) {
|
|
1001
|
+
const t = Ls(e) ? e : new qt(e), s = t.body, a = new ps(t);
|
|
1013
1002
|
let r = "", o = !1;
|
|
1014
1003
|
for (; a.advance().kind !== h.EOF; ) {
|
|
1015
|
-
const i = a.token, c = i.kind, l = !
|
|
1004
|
+
const i = a.token, c = i.kind, l = !hs(i.kind);
|
|
1016
1005
|
o && (l || i.kind === h.SPREAD) && (r += " ");
|
|
1017
1006
|
const u = s.slice(i.start, i.end);
|
|
1018
|
-
c === h.BLOCK_STRING ? r +=
|
|
1007
|
+
c === h.BLOCK_STRING ? r += ms(i.value, {
|
|
1019
1008
|
minimize: !0
|
|
1020
1009
|
}) : r += u, o = l;
|
|
1021
1010
|
}
|
|
1022
1011
|
return r;
|
|
1023
1012
|
}
|
|
1024
|
-
const
|
|
1013
|
+
const Vt = jt(
|
|
1025
1014
|
void 0
|
|
1026
|
-
),
|
|
1015
|
+
), ma = ({
|
|
1027
1016
|
children: e,
|
|
1028
1017
|
client: t
|
|
1029
|
-
}) => /* @__PURE__ */ n.jsx(
|
|
1018
|
+
}) => /* @__PURE__ */ n.jsx(Vt.Provider, { value: t, children: e }), Ft = (e, t, ...[s]) => ({
|
|
1030
1019
|
queryFn: () => e.fetch(t, s),
|
|
1031
|
-
queryKey: [
|
|
1032
|
-
}),
|
|
1033
|
-
const s =
|
|
1020
|
+
queryKey: [Rs(t.toString()), s]
|
|
1021
|
+
}), Is = (e, ...[t]) => {
|
|
1022
|
+
const s = An(Vt);
|
|
1034
1023
|
if (s === void 0)
|
|
1035
1024
|
throw new Error("useGraphQL must be used within a GraphQLProvider");
|
|
1036
|
-
return
|
|
1025
|
+
return Ft(s, e, ...t === void 0 ? [] : [t]);
|
|
1037
1026
|
};
|
|
1038
|
-
class
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
this.value = s, this.__meta__ = a;
|
|
1027
|
+
class _ extends String {
|
|
1028
|
+
__apiType;
|
|
1029
|
+
value;
|
|
1030
|
+
__meta__;
|
|
1031
|
+
constructor(t, s) {
|
|
1032
|
+
super(t), this.value = t, this.__meta__ = s;
|
|
1045
1033
|
}
|
|
1046
1034
|
toString() {
|
|
1047
1035
|
return this.value;
|
|
1048
1036
|
}
|
|
1049
1037
|
}
|
|
1050
|
-
const
|
|
1038
|
+
const ks = new _(
|
|
1051
1039
|
`
|
|
1052
1040
|
fragment OperationsFragment on OperationItem {
|
|
1053
1041
|
slug
|
|
@@ -1115,7 +1103,7 @@ const Js = new z(
|
|
|
1115
1103
|
}
|
|
1116
1104
|
`,
|
|
1117
1105
|
{ fragmentName: "OperationsFragment" }
|
|
1118
|
-
),
|
|
1106
|
+
), Ds = new _(`
|
|
1119
1107
|
query ServersQuery($input: JSON!, $type: SchemaType!) {
|
|
1120
1108
|
schema(input: $input, type: $type) {
|
|
1121
1109
|
url
|
|
@@ -1124,13 +1112,13 @@ const Js = new z(
|
|
|
1124
1112
|
}
|
|
1125
1113
|
}
|
|
1126
1114
|
}
|
|
1127
|
-
`),
|
|
1115
|
+
`), qs = new _(`
|
|
1128
1116
|
query SchemaWarmup($input: JSON!, $type: SchemaType!) {
|
|
1129
1117
|
schema(input: $input, type: $type) {
|
|
1130
1118
|
openapi
|
|
1131
1119
|
}
|
|
1132
1120
|
}
|
|
1133
|
-
`),
|
|
1121
|
+
`), Vs = new _(`
|
|
1134
1122
|
query OperationsForTag($input: JSON!, $type: SchemaType!, $tag: String, $untagged: Boolean) {
|
|
1135
1123
|
schema(input: $input, type: $type) {
|
|
1136
1124
|
servers {
|
|
@@ -1222,7 +1210,7 @@ const Js = new z(
|
|
|
1222
1210
|
schema
|
|
1223
1211
|
}
|
|
1224
1212
|
}
|
|
1225
|
-
}`),
|
|
1213
|
+
}`), Fs = new _(`
|
|
1226
1214
|
query GetSchemas($input: JSON!, $type: SchemaType!) {
|
|
1227
1215
|
schema(input: $input, type: $type) {
|
|
1228
1216
|
title
|
|
@@ -1237,7 +1225,7 @@ const Js = new z(
|
|
|
1237
1225
|
}
|
|
1238
1226
|
}
|
|
1239
1227
|
}
|
|
1240
|
-
`),
|
|
1228
|
+
`), _s = new _(`
|
|
1241
1229
|
query getServerQuery($input: JSON!, $type: SchemaType!) {
|
|
1242
1230
|
schema(input: $input, type: $type) {
|
|
1243
1231
|
url
|
|
@@ -1246,7 +1234,7 @@ const Js = new z(
|
|
|
1246
1234
|
}
|
|
1247
1235
|
}
|
|
1248
1236
|
}
|
|
1249
|
-
`),
|
|
1237
|
+
`), Bs = new _(`
|
|
1250
1238
|
query GetSidebarOperations($input: JSON!, $type: SchemaType!) {
|
|
1251
1239
|
schema(input: $input, type: $type) {
|
|
1252
1240
|
tags {
|
|
@@ -1268,19 +1256,19 @@ const Js = new z(
|
|
|
1268
1256
|
}
|
|
1269
1257
|
}
|
|
1270
1258
|
}
|
|
1271
|
-
`),
|
|
1272
|
-
"\n query ServersQuery($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n url\n servers {\n url\n }\n }\n }\n":
|
|
1273
|
-
"\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":
|
|
1274
|
-
"\n query SchemaWarmup($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n openapi\n }\n }\n":
|
|
1275
|
-
"\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":
|
|
1276
|
-
"\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":
|
|
1277
|
-
"\n query getServerQuery($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n url\n servers {\n url\n }\n }\n }\n":
|
|
1278
|
-
"\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":
|
|
1259
|
+
`), zs = {
|
|
1260
|
+
"\n query ServersQuery($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n url\n servers {\n url\n }\n }\n }\n": Ds,
|
|
1261
|
+
"\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": ks,
|
|
1262
|
+
"\n query SchemaWarmup($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n openapi\n }\n }\n": qs,
|
|
1263
|
+
"\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": Vs,
|
|
1264
|
+
"\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": Fs,
|
|
1265
|
+
"\n query getServerQuery($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n url\n servers {\n url\n }\n }\n }\n": _s,
|
|
1266
|
+
"\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": Bs
|
|
1279
1267
|
};
|
|
1280
|
-
function
|
|
1281
|
-
return
|
|
1268
|
+
function Ms(e) {
|
|
1269
|
+
return zs[e] ?? {};
|
|
1282
1270
|
}
|
|
1283
|
-
const
|
|
1271
|
+
const Gs = St(
|
|
1284
1272
|
"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",
|
|
1285
1273
|
{
|
|
1286
1274
|
variants: {
|
|
@@ -1293,35 +1281,35 @@ const sr = qt(
|
|
|
1293
1281
|
variant: "default"
|
|
1294
1282
|
}
|
|
1295
1283
|
}
|
|
1296
|
-
),
|
|
1284
|
+
), Ee = S.forwardRef(({ className: e, variant: t, ...s }, a) => /* @__PURE__ */ n.jsx(
|
|
1297
1285
|
"div",
|
|
1298
1286
|
{
|
|
1299
1287
|
ref: a,
|
|
1300
1288
|
role: "alert",
|
|
1301
|
-
className:
|
|
1289
|
+
className: v(Gs({ variant: t }), e),
|
|
1302
1290
|
...s
|
|
1303
1291
|
}
|
|
1304
1292
|
));
|
|
1305
|
-
|
|
1306
|
-
const
|
|
1293
|
+
Ee.displayName = "Alert";
|
|
1294
|
+
const Pe = S.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ n.jsx(
|
|
1307
1295
|
"h5",
|
|
1308
1296
|
{
|
|
1309
1297
|
ref: s,
|
|
1310
|
-
className:
|
|
1298
|
+
className: v("mb-1 font-medium leading-none tracking-tight", e),
|
|
1311
1299
|
...t
|
|
1312
1300
|
}
|
|
1313
1301
|
));
|
|
1314
|
-
|
|
1315
|
-
const
|
|
1302
|
+
Pe.displayName = "AlertTitle";
|
|
1303
|
+
const $e = S.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ n.jsx(
|
|
1316
1304
|
"div",
|
|
1317
1305
|
{
|
|
1318
1306
|
ref: s,
|
|
1319
|
-
className:
|
|
1307
|
+
className: v("text-sm [&_p]:leading-relaxed", e),
|
|
1320
1308
|
...t
|
|
1321
1309
|
}
|
|
1322
1310
|
));
|
|
1323
|
-
|
|
1324
|
-
const
|
|
1311
|
+
$e.displayName = "AlertDescription";
|
|
1312
|
+
const Us = ({
|
|
1325
1313
|
path: e,
|
|
1326
1314
|
renderParam: t
|
|
1327
1315
|
}) => {
|
|
@@ -1330,14 +1318,14 @@ const rr = ({
|
|
|
1330
1318
|
const i = Array.from(a.matchAll(/{([^}]+)}/g)), c = [];
|
|
1331
1319
|
let l = 0;
|
|
1332
1320
|
return i.forEach((u) => {
|
|
1333
|
-
const [
|
|
1321
|
+
const [p, y] = u;
|
|
1334
1322
|
if (!y) return;
|
|
1335
|
-
const
|
|
1336
|
-
|
|
1337
|
-
/* @__PURE__ */ n.jsx(D, { children: a.slice(l,
|
|
1323
|
+
const f = u.index;
|
|
1324
|
+
f > l && c.push(
|
|
1325
|
+
/* @__PURE__ */ n.jsx(D, { children: a.slice(l, f) }, `text-${l}-${f}`)
|
|
1338
1326
|
), c.push(
|
|
1339
|
-
/* @__PURE__ */ n.jsx(D, { children: t({ name: y, originalValue:
|
|
1340
|
-
), l =
|
|
1327
|
+
/* @__PURE__ */ n.jsx(D, { children: t({ name: y, originalValue: p, index: s++ }) }, `param-${y}`)
|
|
1328
|
+
), l = f + p.length;
|
|
1341
1329
|
}), l < a.length && c.push(
|
|
1342
1330
|
/* @__PURE__ */ n.jsx(D, { children: a.slice(l) }, `text-${l}-${a.length}`)
|
|
1343
1331
|
), // eslint-disable-next-line react/no-array-index-key
|
|
@@ -1347,11 +1335,11 @@ const rr = ({
|
|
|
1347
1335
|
/* @__PURE__ */ n.jsx("wbr", {})
|
|
1348
1336
|
] }, `${a}-${r}`);
|
|
1349
1337
|
});
|
|
1350
|
-
},
|
|
1338
|
+
}, _t = S.forwardRef(
|
|
1351
1339
|
({ className: e, ...t }, s) => /* @__PURE__ */ n.jsx(
|
|
1352
1340
|
"textarea",
|
|
1353
1341
|
{
|
|
1354
|
-
className:
|
|
1342
|
+
className: v(
|
|
1355
1343
|
"flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",
|
|
1356
1344
|
e
|
|
1357
1345
|
),
|
|
@@ -1360,25 +1348,25 @@ const rr = ({
|
|
|
1360
1348
|
}
|
|
1361
1349
|
)
|
|
1362
1350
|
);
|
|
1363
|
-
|
|
1364
|
-
const
|
|
1351
|
+
_t.displayName = "Textarea";
|
|
1352
|
+
const ye = (e) => Math.abs(
|
|
1365
1353
|
isNaN(parseInt(e)) ? e.toLowerCase().charCodeAt(0) - 96 : isNaN(parseInt(e)) ? 0 : parseInt(e)
|
|
1366
|
-
),
|
|
1367
|
-
const s = (3 *
|
|
1354
|
+
), ve = (e) => e.length > 1 ? parseInt(e.split("").reduce((t, s) => `${ye(t) + ye(s)}`)) : ye(e), ut = (e, t = {}) => {
|
|
1355
|
+
const s = (3 * ve(e) + 2 * ve(e) + ve(e)) % 360, { saturation: a = 75, lightness: r = 60 } = t;
|
|
1368
1356
|
return `${s}deg ${a}% ${r}%`;
|
|
1369
|
-
},
|
|
1370
|
-
const { resolvedTheme: t } =
|
|
1357
|
+
}, be = "data-linked-param", Hs = (e) => {
|
|
1358
|
+
const { resolvedTheme: t } = Fn();
|
|
1371
1359
|
return {
|
|
1372
|
-
text:
|
|
1360
|
+
text: ut(
|
|
1373
1361
|
e,
|
|
1374
1362
|
t === "light" ? { saturation: 95, lightness: 38 } : {}
|
|
1375
1363
|
),
|
|
1376
|
-
background:
|
|
1364
|
+
background: ut(
|
|
1377
1365
|
e,
|
|
1378
1366
|
t === "light" ? { saturation: 85, lightness: 40 } : {}
|
|
1379
1367
|
)
|
|
1380
1368
|
};
|
|
1381
|
-
},
|
|
1369
|
+
}, Bt = ({
|
|
1382
1370
|
name: e,
|
|
1383
1371
|
className: t,
|
|
1384
1372
|
slug: s,
|
|
@@ -1386,26 +1374,26 @@ const Ae = (e) => Math.abs(
|
|
|
1386
1374
|
children: r,
|
|
1387
1375
|
onClick: o
|
|
1388
1376
|
}) => {
|
|
1389
|
-
const i =
|
|
1390
|
-
return
|
|
1377
|
+
const i = U(null), c = s?.replace(/[{}]/g, ""), l = e.replace(/[{}]/g, ""), { text: u, background: p } = Hs(l), y = `hsl(${u} / 100%)`, f = `hsl(${p} / 10%)`, x = `hsl(${p} / 50%)`;
|
|
1378
|
+
return re(() => {
|
|
1391
1379
|
if (!c || !i.current) return;
|
|
1392
|
-
const
|
|
1393
|
-
document.querySelectorAll(`[${
|
|
1380
|
+
const m = () => {
|
|
1381
|
+
document.querySelectorAll(`[${be}="${c}"]`).forEach((j) => {
|
|
1394
1382
|
j instanceof HTMLElement && (j.dataset.active = "true");
|
|
1395
1383
|
});
|
|
1396
|
-
},
|
|
1397
|
-
document.querySelectorAll(`[${
|
|
1384
|
+
}, g = () => {
|
|
1385
|
+
document.querySelectorAll(`[${be}="${c}"]`).forEach((j) => {
|
|
1398
1386
|
j instanceof HTMLElement && (j.dataset.active = "false");
|
|
1399
1387
|
});
|
|
1400
|
-
},
|
|
1401
|
-
return
|
|
1402
|
-
|
|
1388
|
+
}, C = i.current;
|
|
1389
|
+
return C.addEventListener("mouseenter", m), C.addEventListener("mouseleave", g), () => {
|
|
1390
|
+
C.removeEventListener("mouseenter", m), C.removeEventListener("mouseleave", g);
|
|
1403
1391
|
};
|
|
1404
1392
|
}, [c]), /* @__PURE__ */ n.jsx(
|
|
1405
1393
|
"span",
|
|
1406
1394
|
{
|
|
1407
|
-
[
|
|
1408
|
-
className:
|
|
1395
|
+
[be]: c,
|
|
1396
|
+
className: v(
|
|
1409
1397
|
// This may not contain (inline-)flex or (inline-)block otherwise it breaks the browser's full text search
|
|
1410
1398
|
"relative transition-all duration-100 rounded-lg",
|
|
1411
1399
|
"border border-[--border-color] p-0.5 text-[--param-color] bg-[--background-color]",
|
|
@@ -1418,34 +1406,30 @@ const Ae = (e) => Math.abs(
|
|
|
1418
1406
|
onClick: o,
|
|
1419
1407
|
style: {
|
|
1420
1408
|
"--param-color": y,
|
|
1421
|
-
"--border-color":
|
|
1422
|
-
"--background-color":
|
|
1409
|
+
"--border-color": x,
|
|
1410
|
+
"--background-color": f
|
|
1423
1411
|
},
|
|
1424
1412
|
children: r ?? e
|
|
1425
1413
|
}
|
|
1426
1414
|
);
|
|
1427
|
-
},
|
|
1428
|
-
|
|
1415
|
+
}, Qs = vt()(
|
|
1416
|
+
bt(
|
|
1429
1417
|
(e) => ({
|
|
1430
1418
|
selectedServer: void 0,
|
|
1431
1419
|
setSelectedServer: (t) => e({ selectedServer: t })
|
|
1432
1420
|
}),
|
|
1433
1421
|
{ name: "zudoku-selected-server" }
|
|
1434
1422
|
)
|
|
1435
|
-
),
|
|
1436
|
-
const { selectedServer: t, setSelectedServer: s } =
|
|
1437
|
-
return { selectedServer:
|
|
1438
|
-
() =>
|
|
1439
|
-
var r;
|
|
1440
|
-
return t && e.some((o) => o.url === t) ? t : ((r = e.at(0)) == null ? void 0 : r.url) ?? "";
|
|
1441
|
-
},
|
|
1423
|
+
), Js = (e) => {
|
|
1424
|
+
const { selectedServer: t, setSelectedServer: s } = Qs();
|
|
1425
|
+
return { selectedServer: On(
|
|
1426
|
+
() => t && e.some((r) => r.url === t) ? t : e.at(0)?.url ?? "",
|
|
1442
1427
|
[t, e]
|
|
1443
1428
|
), setSelectedServer: s };
|
|
1444
|
-
},
|
|
1429
|
+
}, Ws = (e, t, s) => {
|
|
1445
1430
|
const a = t.replace(/(:\w+|\{\w+})/g, (o) => {
|
|
1446
|
-
var l;
|
|
1447
1431
|
const i = o.replace(/[:{}]/g, "");
|
|
1448
|
-
return
|
|
1432
|
+
return s.pathParams.find((l) => l.name === i)?.value ?? o;
|
|
1449
1433
|
}), r = new URL(
|
|
1450
1434
|
a.replace(/^\//, ""),
|
|
1451
1435
|
e.endsWith("/") ? e : `${e}/`
|
|
@@ -1453,11 +1437,11 @@ const Ae = (e) => Math.abs(
|
|
|
1453
1437
|
return s.queryParams.filter((o) => o.active).forEach((o) => {
|
|
1454
1438
|
r.searchParams.set(o.name, o.value);
|
|
1455
1439
|
}), r;
|
|
1456
|
-
},
|
|
1457
|
-
|
|
1440
|
+
}, zt = b.Root, Mt = b.Trigger, Xs = b.Group, Zs = S.forwardRef(({ className: e, inset: t, children: s, ...a }, r) => /* @__PURE__ */ n.jsxs(
|
|
1441
|
+
b.SubTrigger,
|
|
1458
1442
|
{
|
|
1459
1443
|
ref: r,
|
|
1460
|
-
className:
|
|
1444
|
+
className: v(
|
|
1461
1445
|
"flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent",
|
|
1462
1446
|
t && "pl-8",
|
|
1463
1447
|
e
|
|
@@ -1465,29 +1449,29 @@ const Ae = (e) => Math.abs(
|
|
|
1465
1449
|
...a,
|
|
1466
1450
|
children: [
|
|
1467
1451
|
s,
|
|
1468
|
-
/* @__PURE__ */ n.jsx(
|
|
1452
|
+
/* @__PURE__ */ n.jsx(W, { className: "ml-auto h-4 w-4" })
|
|
1469
1453
|
]
|
|
1470
1454
|
}
|
|
1471
1455
|
));
|
|
1472
|
-
|
|
1473
|
-
const
|
|
1474
|
-
|
|
1456
|
+
Zs.displayName = b.SubTrigger.displayName;
|
|
1457
|
+
const Ys = S.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ n.jsx(
|
|
1458
|
+
b.SubContent,
|
|
1475
1459
|
{
|
|
1476
1460
|
ref: s,
|
|
1477
|
-
className:
|
|
1461
|
+
className: v(
|
|
1478
1462
|
"z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
|
|
1479
1463
|
e
|
|
1480
1464
|
),
|
|
1481
1465
|
...t
|
|
1482
1466
|
}
|
|
1483
1467
|
));
|
|
1484
|
-
|
|
1485
|
-
const
|
|
1486
|
-
|
|
1468
|
+
Ys.displayName = b.SubContent.displayName;
|
|
1469
|
+
const _e = S.forwardRef(({ className: e, sideOffset: t = 4, ...s }, a) => /* @__PURE__ */ n.jsx(b.Portal, { children: /* @__PURE__ */ n.jsx(
|
|
1470
|
+
b.Content,
|
|
1487
1471
|
{
|
|
1488
1472
|
ref: a,
|
|
1489
1473
|
sideOffset: t,
|
|
1490
|
-
className:
|
|
1474
|
+
className: v(
|
|
1491
1475
|
"z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md",
|
|
1492
1476
|
"data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
|
|
1493
1477
|
e
|
|
@@ -1495,12 +1479,12 @@ const We = S.forwardRef(({ className: e, sideOffset: t = 4, ...s }, a) => /* @__
|
|
|
1495
1479
|
...s
|
|
1496
1480
|
}
|
|
1497
1481
|
) }));
|
|
1498
|
-
|
|
1499
|
-
const
|
|
1500
|
-
|
|
1482
|
+
_e.displayName = b.Content.displayName;
|
|
1483
|
+
const Be = S.forwardRef(({ className: e, inset: t, ...s }, a) => /* @__PURE__ */ n.jsx(
|
|
1484
|
+
b.Item,
|
|
1501
1485
|
{
|
|
1502
1486
|
ref: a,
|
|
1503
|
-
className:
|
|
1487
|
+
className: v(
|
|
1504
1488
|
"relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
1505
1489
|
t && "pl-8",
|
|
1506
1490
|
e
|
|
@@ -1508,45 +1492,45 @@ const Xe = S.forwardRef(({ className: e, inset: t, ...s }, a) => /* @__PURE__ */
|
|
|
1508
1492
|
...s
|
|
1509
1493
|
}
|
|
1510
1494
|
));
|
|
1511
|
-
|
|
1512
|
-
const
|
|
1513
|
-
|
|
1495
|
+
Be.displayName = b.Item.displayName;
|
|
1496
|
+
const Ks = S.forwardRef(({ className: e, children: t, checked: s, ...a }, r) => /* @__PURE__ */ n.jsxs(
|
|
1497
|
+
b.CheckboxItem,
|
|
1514
1498
|
{
|
|
1515
1499
|
ref: r,
|
|
1516
|
-
className:
|
|
1500
|
+
className: v(
|
|
1517
1501
|
"relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
1518
1502
|
e
|
|
1519
1503
|
),
|
|
1520
1504
|
checked: s,
|
|
1521
1505
|
...a,
|
|
1522
1506
|
children: [
|
|
1523
|
-
/* @__PURE__ */ n.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ n.jsx(
|
|
1507
|
+
/* @__PURE__ */ n.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ n.jsx(b.ItemIndicator, { children: /* @__PURE__ */ n.jsx(ln, { className: "h-4 w-4" }) }) }),
|
|
1524
1508
|
t
|
|
1525
1509
|
]
|
|
1526
1510
|
}
|
|
1527
1511
|
));
|
|
1528
|
-
|
|
1529
|
-
const
|
|
1530
|
-
|
|
1512
|
+
Ks.displayName = b.CheckboxItem.displayName;
|
|
1513
|
+
const er = S.forwardRef(({ className: e, children: t, ...s }, a) => /* @__PURE__ */ n.jsxs(
|
|
1514
|
+
b.RadioItem,
|
|
1531
1515
|
{
|
|
1532
1516
|
ref: a,
|
|
1533
|
-
className:
|
|
1517
|
+
className: v(
|
|
1534
1518
|
"relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
1535
1519
|
e
|
|
1536
1520
|
),
|
|
1537
1521
|
...s,
|
|
1538
1522
|
children: [
|
|
1539
|
-
/* @__PURE__ */ n.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ n.jsx(
|
|
1523
|
+
/* @__PURE__ */ n.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ n.jsx(b.ItemIndicator, { children: /* @__PURE__ */ n.jsx(cn, { className: "h-4 w-4 fill-current" }) }) }),
|
|
1540
1524
|
t
|
|
1541
1525
|
]
|
|
1542
1526
|
}
|
|
1543
1527
|
));
|
|
1544
|
-
|
|
1545
|
-
const
|
|
1546
|
-
|
|
1528
|
+
er.displayName = b.RadioItem.displayName;
|
|
1529
|
+
const Gt = S.forwardRef(({ className: e, inset: t, ...s }, a) => /* @__PURE__ */ n.jsx(
|
|
1530
|
+
b.Label,
|
|
1547
1531
|
{
|
|
1548
1532
|
ref: a,
|
|
1549
|
-
className:
|
|
1533
|
+
className: v(
|
|
1550
1534
|
"px-2 py-1.5 text-sm font-semibold",
|
|
1551
1535
|
t && "pl-8",
|
|
1552
1536
|
e
|
|
@@ -1554,78 +1538,75 @@ const sn = S.forwardRef(({ className: e, inset: t, ...s }, a) => /* @__PURE__ */
|
|
|
1554
1538
|
...s
|
|
1555
1539
|
}
|
|
1556
1540
|
));
|
|
1557
|
-
|
|
1558
|
-
const
|
|
1559
|
-
|
|
1541
|
+
Gt.displayName = b.Label.displayName;
|
|
1542
|
+
const Ut = S.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ n.jsx(
|
|
1543
|
+
b.Separator,
|
|
1560
1544
|
{
|
|
1561
1545
|
ref: s,
|
|
1562
|
-
className:
|
|
1546
|
+
className: v("-mx-1 my-1 h-px bg-muted", e),
|
|
1563
1547
|
...t
|
|
1564
1548
|
}
|
|
1565
1549
|
));
|
|
1566
|
-
|
|
1567
|
-
const
|
|
1550
|
+
Ut.displayName = b.Separator.displayName;
|
|
1551
|
+
const tr = ({
|
|
1568
1552
|
examples: e,
|
|
1569
1553
|
onSelect: t
|
|
1570
|
-
}) => /* @__PURE__ */ n.jsxs(
|
|
1571
|
-
/* @__PURE__ */ n.jsx(
|
|
1572
|
-
/* @__PURE__ */ n.jsx(
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
"
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
}) })
|
|
1594
|
-
] }), ge = S.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ n.jsx(
|
|
1595
|
-
ke.Root,
|
|
1554
|
+
}) => /* @__PURE__ */ n.jsxs(zt, { children: [
|
|
1555
|
+
/* @__PURE__ */ n.jsx(Mt, { asChild: !0, children: /* @__PURE__ */ n.jsx(V, { variant: "outline", children: "Use Example" }) }),
|
|
1556
|
+
/* @__PURE__ */ n.jsx(_e, { className: "max-w-72", children: e.map((s) => /* @__PURE__ */ n.jsxs("div", { children: [
|
|
1557
|
+
/* @__PURE__ */ n.jsx(Gt, { children: s.mediaType }),
|
|
1558
|
+
/* @__PURE__ */ n.jsx(Ut, {}),
|
|
1559
|
+
/* @__PURE__ */ n.jsx(Xs, { children: s.examples?.map((a) => /* @__PURE__ */ n.jsx(
|
|
1560
|
+
Be,
|
|
1561
|
+
{
|
|
1562
|
+
onSelect: () => t(a, s.mediaType),
|
|
1563
|
+
children: /* @__PURE__ */ n.jsx(
|
|
1564
|
+
"span",
|
|
1565
|
+
{
|
|
1566
|
+
className: "line-clamp-1",
|
|
1567
|
+
title: a.summary ?? a.name,
|
|
1568
|
+
children: a.summary ?? a.name
|
|
1569
|
+
}
|
|
1570
|
+
)
|
|
1571
|
+
},
|
|
1572
|
+
a.name
|
|
1573
|
+
)) })
|
|
1574
|
+
] }, s.mediaType)) })
|
|
1575
|
+
] }), me = S.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ n.jsx(
|
|
1576
|
+
Te.Root,
|
|
1596
1577
|
{
|
|
1597
1578
|
ref: s,
|
|
1598
|
-
className:
|
|
1579
|
+
className: v(
|
|
1599
1580
|
"peer h-4 w-4 shrink-0 rounded-[min(6px,var(--radius)-4px)] ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:text-primary",
|
|
1600
1581
|
"border border-primary data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground data-[state=checked]:border-primary",
|
|
1601
1582
|
e
|
|
1602
1583
|
),
|
|
1603
1584
|
...t,
|
|
1604
1585
|
children: /* @__PURE__ */ n.jsx(
|
|
1605
|
-
|
|
1586
|
+
Te.Indicator,
|
|
1606
1587
|
{
|
|
1607
|
-
className:
|
|
1608
|
-
children: /* @__PURE__ */ n.jsx(
|
|
1588
|
+
className: v("flex items-center justify-center text-current"),
|
|
1589
|
+
children: /* @__PURE__ */ n.jsx(dn, { className: "h-4 w-4" })
|
|
1609
1590
|
}
|
|
1610
1591
|
)
|
|
1611
1592
|
}
|
|
1612
1593
|
));
|
|
1613
|
-
|
|
1614
|
-
const
|
|
1615
|
-
|
|
1594
|
+
me.displayName = Te.Root.displayName;
|
|
1595
|
+
const nr = ae.Root, Ht = S.forwardRef(({ className: e, align: t = "center", sideOffset: s = 4, ...a }, r) => /* @__PURE__ */ n.jsx(ae.Portal, { children: /* @__PURE__ */ n.jsx(
|
|
1596
|
+
ae.Content,
|
|
1616
1597
|
{
|
|
1617
1598
|
ref: r,
|
|
1618
1599
|
align: t,
|
|
1619
1600
|
sideOffset: s,
|
|
1620
|
-
className:
|
|
1601
|
+
className: v(
|
|
1621
1602
|
"z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
|
|
1622
1603
|
e
|
|
1623
1604
|
),
|
|
1624
1605
|
...a
|
|
1625
1606
|
}
|
|
1626
1607
|
) }));
|
|
1627
|
-
|
|
1628
|
-
const
|
|
1608
|
+
Ht.displayName = ae.Content.displayName;
|
|
1609
|
+
const sr = ({
|
|
1629
1610
|
value: e,
|
|
1630
1611
|
options: t,
|
|
1631
1612
|
onChange: s,
|
|
@@ -1634,77 +1615,76 @@ const xr = ({
|
|
|
1634
1615
|
onEnterPress: o,
|
|
1635
1616
|
ref: i
|
|
1636
1617
|
}) => {
|
|
1637
|
-
const [c, l] =
|
|
1638
|
-
return /* @__PURE__ */ n.jsxs(
|
|
1639
|
-
/* @__PURE__ */ n.jsx(
|
|
1640
|
-
|
|
1618
|
+
const [c, l] = P(!1), [u, p] = P(!1), y = Bn((x) => x.filtered.count), f = U(null);
|
|
1619
|
+
return /* @__PURE__ */ n.jsxs(nr, { open: c, children: [
|
|
1620
|
+
/* @__PURE__ */ n.jsx(_n, { children: /* @__PURE__ */ n.jsx(
|
|
1621
|
+
Mn,
|
|
1641
1622
|
{
|
|
1642
|
-
ref: (
|
|
1643
|
-
|
|
1623
|
+
ref: (x) => {
|
|
1624
|
+
f.current = x, typeof i == "function" ? i(x) : i && (i.current = x);
|
|
1644
1625
|
},
|
|
1645
1626
|
value: e,
|
|
1646
1627
|
placeholder: r,
|
|
1647
|
-
className:
|
|
1628
|
+
className: v("h-9 bg-transparent", a),
|
|
1648
1629
|
onFocus: () => l(!0),
|
|
1649
1630
|
onBlur: () => {
|
|
1650
1631
|
u || l(!1);
|
|
1651
1632
|
},
|
|
1652
|
-
onKeyDown: (
|
|
1653
|
-
|
|
1654
|
-
g.key === "Enter" && (l(!1), (f = x.current) == null || f.blur(), o == null || o(g));
|
|
1633
|
+
onKeyDown: (x) => {
|
|
1634
|
+
x.key === "Enter" && (l(!1), f.current?.blur(), o?.(x));
|
|
1655
1635
|
},
|
|
1656
|
-
onValueChange: (
|
|
1636
|
+
onValueChange: (x) => s(x)
|
|
1657
1637
|
}
|
|
1658
1638
|
) }),
|
|
1659
1639
|
/* @__PURE__ */ n.jsx(
|
|
1660
|
-
|
|
1640
|
+
Ht,
|
|
1661
1641
|
{
|
|
1662
|
-
onMouseEnter: () =>
|
|
1663
|
-
onMouseLeave: () =>
|
|
1664
|
-
onOpenAutoFocus: (
|
|
1665
|
-
className:
|
|
1642
|
+
onMouseEnter: () => p(!0),
|
|
1643
|
+
onMouseLeave: () => p(!1),
|
|
1644
|
+
onOpenAutoFocus: (x) => x.preventDefault(),
|
|
1645
|
+
className: v("p-0 w-[--radix-popover-trigger-width]", {
|
|
1666
1646
|
"border-0": y === 0
|
|
1667
1647
|
}),
|
|
1668
1648
|
align: "start",
|
|
1669
1649
|
side: "bottom",
|
|
1670
|
-
onWheel: (
|
|
1671
|
-
|
|
1650
|
+
onWheel: (x) => {
|
|
1651
|
+
x.stopPropagation();
|
|
1672
1652
|
},
|
|
1673
|
-
onTouchMove: (
|
|
1674
|
-
|
|
1653
|
+
onTouchMove: (x) => {
|
|
1654
|
+
x.stopPropagation();
|
|
1675
1655
|
},
|
|
1676
|
-
children: /* @__PURE__ */ n.jsx(
|
|
1677
|
-
|
|
1656
|
+
children: /* @__PURE__ */ n.jsx(Gn, { className: "max-h-[140px]", children: t.map((x) => /* @__PURE__ */ n.jsx(
|
|
1657
|
+
Un,
|
|
1678
1658
|
{
|
|
1679
|
-
value:
|
|
1680
|
-
onSelect: (
|
|
1681
|
-
s(
|
|
1659
|
+
value: x,
|
|
1660
|
+
onSelect: (m) => {
|
|
1661
|
+
s(m), l(!1);
|
|
1682
1662
|
},
|
|
1683
1663
|
className: "cursor-pointer",
|
|
1684
|
-
children:
|
|
1664
|
+
children: x
|
|
1685
1665
|
},
|
|
1686
|
-
|
|
1666
|
+
x
|
|
1687
1667
|
)) })
|
|
1688
1668
|
}
|
|
1689
1669
|
)
|
|
1690
1670
|
] });
|
|
1691
|
-
},
|
|
1671
|
+
}, oe = ({ shouldFilter: e, ...t }) => /* @__PURE__ */ n.jsx(zn, { className: "bg-transparent", shouldFilter: e, children: /* @__PURE__ */ n.jsx(sr, { ...t }) }), ze = (e, t) => {
|
|
1692
1672
|
const s = S.forwardRef(({ className: a, asChild: r, ...o }, i) => {
|
|
1693
|
-
const c = r ?
|
|
1673
|
+
const c = r ? Qn : e;
|
|
1694
1674
|
return S.createElement(c, {
|
|
1695
1675
|
...o,
|
|
1696
1676
|
ref: i,
|
|
1697
|
-
className: typeof t == "function" ? t({ className: a }) :
|
|
1677
|
+
className: typeof t == "function" ? t({ className: a }) : v(t, a)
|
|
1698
1678
|
});
|
|
1699
1679
|
});
|
|
1700
1680
|
return s.displayName = `VariantComponent(${e})`, s;
|
|
1701
|
-
},
|
|
1681
|
+
}, Me = ze(
|
|
1702
1682
|
"div",
|
|
1703
1683
|
"grid grid-cols-[2fr_3fr] gap-2 items-center"
|
|
1704
|
-
),
|
|
1684
|
+
), Ge = ze(
|
|
1705
1685
|
"div",
|
|
1706
1686
|
"group hover:bg-accent px-3 grid col-span-full grid-cols-subgrid"
|
|
1707
|
-
),
|
|
1687
|
+
), rr = Object.freeze([
|
|
1708
1688
|
"Accept",
|
|
1709
1689
|
"Accept-Encoding",
|
|
1710
1690
|
"Accept-Language",
|
|
@@ -1731,47 +1711,43 @@ const xr = ({
|
|
|
1731
1711
|
"Set-Cookie",
|
|
1732
1712
|
"User-Agent",
|
|
1733
1713
|
"X-Requested-With"
|
|
1734
|
-
]),
|
|
1714
|
+
]), ar = ({
|
|
1735
1715
|
control: e,
|
|
1736
1716
|
headers: t
|
|
1737
1717
|
}) => {
|
|
1738
|
-
const { fields: s, append: a, remove: r } =
|
|
1718
|
+
const { fields: s, append: a, remove: r } = ke({
|
|
1739
1719
|
control: e,
|
|
1740
1720
|
name: "headers"
|
|
1741
|
-
}), { setValue: o, watch: i } =
|
|
1721
|
+
}), { setValue: o, watch: i } = De(), c = U([]), l = U([]), u = i("headers"), p = En(() => {
|
|
1742
1722
|
a({ name: "", value: "", active: !1 });
|
|
1743
1723
|
}, [a]);
|
|
1744
|
-
|
|
1745
|
-
u.length === 0 &&
|
|
1746
|
-
}, [u,
|
|
1747
|
-
const y = (
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
var p;
|
|
1753
|
-
return (p = l.current[f + 1]) == null ? void 0 : p.focus();
|
|
1754
|
-
});
|
|
1755
|
-
}, g = t.filter((f) => !u.some((p) => p.name === f.name)).map(({ name: f }) => f);
|
|
1724
|
+
re(() => {
|
|
1725
|
+
u.length === 0 && p();
|
|
1726
|
+
}, [u, p]);
|
|
1727
|
+
const y = (m) => {
|
|
1728
|
+
c.current[m]?.focus();
|
|
1729
|
+
}, f = (m) => {
|
|
1730
|
+
p(), requestAnimationFrame(() => l.current[m + 1]?.focus());
|
|
1731
|
+
}, x = t.filter((m) => !u.some((g) => g.name === m.name)).map(({ name: m }) => m);
|
|
1756
1732
|
return /* @__PURE__ */ n.jsxs("div", { className: "flex flex-col gap-2", children: [
|
|
1757
|
-
/* @__PURE__ */ n.jsx(
|
|
1758
|
-
const
|
|
1759
|
-
(j) => j.name === i(`headers.${
|
|
1733
|
+
/* @__PURE__ */ n.jsx(ce, { className: "overflow-hidden", children: /* @__PURE__ */ n.jsx(Me, { children: s.map((m, g) => {
|
|
1734
|
+
const C = t.find(
|
|
1735
|
+
(j) => j.name === i(`headers.${g}.name`)
|
|
1760
1736
|
);
|
|
1761
|
-
return /* @__PURE__ */ n.jsxs(
|
|
1737
|
+
return /* @__PURE__ */ n.jsxs(Ge, { children: [
|
|
1762
1738
|
/* @__PURE__ */ n.jsxs("div", { className: "flex items-center gap-2 ", children: [
|
|
1763
1739
|
/* @__PURE__ */ n.jsx(
|
|
1764
1740
|
q,
|
|
1765
1741
|
{
|
|
1766
1742
|
control: e,
|
|
1767
|
-
name: `headers.${
|
|
1743
|
+
name: `headers.${g}.active`,
|
|
1768
1744
|
render: ({ field: j }) => /* @__PURE__ */ n.jsx(
|
|
1769
|
-
|
|
1745
|
+
me,
|
|
1770
1746
|
{
|
|
1771
|
-
id: `headers.${
|
|
1747
|
+
id: `headers.${g}.active`,
|
|
1772
1748
|
checked: j.value,
|
|
1773
|
-
onCheckedChange: (
|
|
1774
|
-
j.onChange(
|
|
1749
|
+
onCheckedChange: (R) => {
|
|
1750
|
+
j.onChange(R);
|
|
1775
1751
|
}
|
|
1776
1752
|
}
|
|
1777
1753
|
)
|
|
@@ -1781,20 +1757,20 @@ const xr = ({
|
|
|
1781
1757
|
q,
|
|
1782
1758
|
{
|
|
1783
1759
|
control: e,
|
|
1784
|
-
name: `headers.${
|
|
1760
|
+
name: `headers.${g}.name`,
|
|
1785
1761
|
render: ({ field: j }) => /* @__PURE__ */ n.jsx(
|
|
1786
|
-
|
|
1762
|
+
oe,
|
|
1787
1763
|
{
|
|
1788
1764
|
...j,
|
|
1789
1765
|
placeholder: "Name",
|
|
1790
1766
|
className: "border-0 shadow-none focus-visible:ring-0 bg-transparent hover:bg-transparent text-xs font-mono",
|
|
1791
|
-
options: [...
|
|
1792
|
-
onEnterPress: () => y(
|
|
1793
|
-
onChange: (
|
|
1794
|
-
j.onChange(
|
|
1767
|
+
options: [...x, ...rr],
|
|
1768
|
+
onEnterPress: () => y(g),
|
|
1769
|
+
onChange: (R) => {
|
|
1770
|
+
j.onChange(R), o(`headers.${g}.active`, !0);
|
|
1795
1771
|
},
|
|
1796
|
-
ref: (
|
|
1797
|
-
l.current[
|
|
1772
|
+
ref: (R) => {
|
|
1773
|
+
l.current[g] = R;
|
|
1798
1774
|
}
|
|
1799
1775
|
}
|
|
1800
1776
|
)
|
|
@@ -1806,29 +1782,29 @@ const xr = ({
|
|
|
1806
1782
|
q,
|
|
1807
1783
|
{
|
|
1808
1784
|
control: e,
|
|
1809
|
-
name: `headers.${
|
|
1810
|
-
render: ({ field: j }) =>
|
|
1811
|
-
|
|
1785
|
+
name: `headers.${g}.value`,
|
|
1786
|
+
render: ({ field: j }) => C?.enum && C.enum.length > 0 ? /* @__PURE__ */ n.jsx(
|
|
1787
|
+
oe,
|
|
1812
1788
|
{
|
|
1813
1789
|
shouldFilter: !1,
|
|
1814
1790
|
value: j.value,
|
|
1815
|
-
options:
|
|
1816
|
-
onChange: (
|
|
1817
|
-
j.onChange(
|
|
1791
|
+
options: C.enum ?? [],
|
|
1792
|
+
onChange: (I) => {
|
|
1793
|
+
j.onChange(I), o(`headers.${g}.active`, !0);
|
|
1818
1794
|
},
|
|
1819
1795
|
className: "border-0 shadow-none focus-visible:ring-0 bg-transparent hover:bg-transparent text-xs font-mono"
|
|
1820
1796
|
}
|
|
1821
1797
|
) : /* @__PURE__ */ n.jsx(
|
|
1822
|
-
|
|
1798
|
+
qe,
|
|
1823
1799
|
{
|
|
1824
1800
|
placeholder: "Value",
|
|
1825
1801
|
className: "w-full border-0 shadow-none text-xs font-mono focus-visible:ring-0",
|
|
1826
1802
|
...j,
|
|
1827
|
-
ref: (
|
|
1828
|
-
c.current[
|
|
1803
|
+
ref: (I) => {
|
|
1804
|
+
c.current[g] = I;
|
|
1829
1805
|
},
|
|
1830
|
-
onKeyDown: (
|
|
1831
|
-
|
|
1806
|
+
onKeyDown: (I) => {
|
|
1807
|
+
I.key === "Enter" && I.currentTarget.value.trim() && f(g);
|
|
1832
1808
|
},
|
|
1833
1809
|
autoComplete: "off"
|
|
1834
1810
|
}
|
|
@@ -1836,122 +1812,115 @@ const xr = ({
|
|
|
1836
1812
|
}
|
|
1837
1813
|
),
|
|
1838
1814
|
/* @__PURE__ */ n.jsx(
|
|
1839
|
-
|
|
1815
|
+
X,
|
|
1840
1816
|
{
|
|
1841
1817
|
size: "icon",
|
|
1842
1818
|
variant: "ghost",
|
|
1843
1819
|
className: "text-muted-foreground opacity-0 group-hover:opacity-100 rounded-full w-8 h-7",
|
|
1844
|
-
onClick: () => r(
|
|
1820
|
+
onClick: () => r(g),
|
|
1845
1821
|
type: "button",
|
|
1846
|
-
children: /* @__PURE__ */ n.jsx(
|
|
1822
|
+
children: /* @__PURE__ */ n.jsx(un, { size: 16 })
|
|
1847
1823
|
}
|
|
1848
1824
|
)
|
|
1849
1825
|
] })
|
|
1850
|
-
] },
|
|
1826
|
+
] }, m.id);
|
|
1851
1827
|
}) }) }),
|
|
1852
1828
|
/* @__PURE__ */ n.jsx("div", { className: "text-end", children: /* @__PURE__ */ n.jsx(
|
|
1853
|
-
|
|
1829
|
+
X,
|
|
1854
1830
|
{
|
|
1855
1831
|
className: "",
|
|
1856
|
-
onClick:
|
|
1832
|
+
onClick: p,
|
|
1857
1833
|
type: "button",
|
|
1858
1834
|
variant: "secondary",
|
|
1859
1835
|
children: "Add header"
|
|
1860
1836
|
}
|
|
1861
1837
|
) })
|
|
1862
1838
|
] });
|
|
1863
|
-
},
|
|
1839
|
+
}, or = St(
|
|
1864
1840
|
"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
|
|
1865
|
-
),
|
|
1866
|
-
|
|
1841
|
+
), ie = S.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ n.jsx(
|
|
1842
|
+
At.Root,
|
|
1867
1843
|
{
|
|
1868
1844
|
ref: s,
|
|
1869
|
-
className:
|
|
1845
|
+
className: v(or(), e),
|
|
1870
1846
|
...t
|
|
1871
1847
|
}
|
|
1872
1848
|
));
|
|
1873
|
-
|
|
1874
|
-
const
|
|
1875
|
-
|
|
1849
|
+
ie.displayName = At.Root.displayName;
|
|
1850
|
+
const Ue = S.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ n.jsx(
|
|
1851
|
+
Z.Root,
|
|
1876
1852
|
{
|
|
1877
|
-
className:
|
|
1853
|
+
className: v("grid gap-2", e),
|
|
1878
1854
|
...t,
|
|
1879
1855
|
ref: s
|
|
1880
1856
|
}
|
|
1881
1857
|
));
|
|
1882
|
-
|
|
1883
|
-
const
|
|
1884
|
-
|
|
1858
|
+
Ue.displayName = Z.Root.displayName;
|
|
1859
|
+
const le = S.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ n.jsx(
|
|
1860
|
+
Z.Item,
|
|
1885
1861
|
{
|
|
1886
1862
|
ref: s,
|
|
1887
|
-
className:
|
|
1863
|
+
className: v(
|
|
1888
1864
|
"aspect-square h-4 w-4 rounded-full border border-primary text-primary ring-offset-background focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",
|
|
1889
1865
|
e
|
|
1890
1866
|
),
|
|
1891
1867
|
...t,
|
|
1892
|
-
children: /* @__PURE__ */ n.jsx(
|
|
1868
|
+
children: /* @__PURE__ */ n.jsx(Z.Indicator, { className: "flex items-center justify-center", children: /* @__PURE__ */ n.jsx(mn, { className: "h-2.5 w-2.5 fill-current text-current" }) })
|
|
1893
1869
|
}
|
|
1894
1870
|
));
|
|
1895
|
-
|
|
1896
|
-
const
|
|
1871
|
+
le.displayName = Z.Item.displayName;
|
|
1872
|
+
const Qt = ({
|
|
1897
1873
|
identities: e,
|
|
1898
1874
|
setValue: t,
|
|
1899
1875
|
value: s
|
|
1900
|
-
}) => /* @__PURE__ */ n.jsx(
|
|
1901
|
-
|
|
1876
|
+
}) => /* @__PURE__ */ n.jsx(ce, { className: "w-full overflow-hidden", children: /* @__PURE__ */ n.jsxs(
|
|
1877
|
+
Ue,
|
|
1902
1878
|
{
|
|
1903
1879
|
onValueChange: (a) => t(a),
|
|
1904
1880
|
value: s,
|
|
1905
|
-
defaultValue:
|
|
1881
|
+
defaultValue: G,
|
|
1906
1882
|
className: "gap-0",
|
|
1907
|
-
disabled:
|
|
1883
|
+
disabled: e?.length === 0,
|
|
1908
1884
|
children: [
|
|
1909
|
-
/* @__PURE__ */ n.jsxs(
|
|
1910
|
-
|
|
1911
|
-
{
|
|
1912
|
-
|
|
1913
|
-
|
|
1914
|
-
|
|
1915
|
-
/* @__PURE__ */ n.jsx(ue, { value: W, id: "none", children: "None" }),
|
|
1916
|
-
/* @__PURE__ */ n.jsx(J, { htmlFor: "none", className: "ms-2", children: "None" })
|
|
1917
|
-
]
|
|
1918
|
-
}
|
|
1919
|
-
),
|
|
1920
|
-
e == null ? void 0 : e.map((a) => /* @__PURE__ */ n.jsxs(
|
|
1921
|
-
J,
|
|
1885
|
+
/* @__PURE__ */ n.jsxs(ie, { className: "h-12 border-b items-center flex gap-2 p-4 cursor-pointer hover:bg-accent", children: [
|
|
1886
|
+
/* @__PURE__ */ n.jsx(le, { value: G, id: "none" }),
|
|
1887
|
+
/* @__PURE__ */ n.jsx("span", { children: "None" })
|
|
1888
|
+
] }),
|
|
1889
|
+
e?.map((a) => /* @__PURE__ */ n.jsxs(
|
|
1890
|
+
ie,
|
|
1922
1891
|
{
|
|
1923
|
-
className: "h-12 border-b items-center flex p-4 cursor-pointer hover:bg-accent",
|
|
1892
|
+
className: "h-12 border-b items-center flex gap-2 p-4 cursor-pointer hover:bg-accent",
|
|
1924
1893
|
children: [
|
|
1925
|
-
/* @__PURE__ */ n.jsx(
|
|
1926
|
-
/* @__PURE__ */ n.jsx(
|
|
1894
|
+
/* @__PURE__ */ n.jsx(le, { value: a.id, id: a.id }),
|
|
1895
|
+
/* @__PURE__ */ n.jsx("span", { children: a.label })
|
|
1927
1896
|
]
|
|
1928
1897
|
},
|
|
1929
1898
|
a.id
|
|
1930
1899
|
))
|
|
1931
1900
|
]
|
|
1932
1901
|
}
|
|
1933
|
-
) }),
|
|
1902
|
+
) }), ir = ({
|
|
1934
1903
|
onSubmit: e,
|
|
1935
1904
|
identities: t,
|
|
1936
1905
|
open: s,
|
|
1937
1906
|
onOpenChange: a
|
|
1938
1907
|
}) => {
|
|
1939
|
-
const [r, o] =
|
|
1940
|
-
return /* @__PURE__ */ n.jsx(
|
|
1941
|
-
/* @__PURE__ */ n.jsx(
|
|
1942
|
-
/* @__PURE__ */ n.jsx(
|
|
1908
|
+
const [r, o] = P(void 0), [i, c] = P(!1);
|
|
1909
|
+
return /* @__PURE__ */ n.jsx(Le, { open: s, onOpenChange: a, children: /* @__PURE__ */ n.jsxs(Re, { children: [
|
|
1910
|
+
/* @__PURE__ */ n.jsx(Ie, { children: "Select an auth identity" }),
|
|
1911
|
+
/* @__PURE__ */ n.jsx(Nt, { children: "Please select an identity for this request." }),
|
|
1943
1912
|
/* @__PURE__ */ n.jsx("div", { className: "max-h-80 overflow-auto", children: /* @__PURE__ */ n.jsx(
|
|
1944
|
-
|
|
1913
|
+
Qt,
|
|
1945
1914
|
{
|
|
1946
1915
|
identities: t,
|
|
1947
1916
|
setValue: o,
|
|
1948
1917
|
value: r
|
|
1949
1918
|
}
|
|
1950
1919
|
) }),
|
|
1951
|
-
/* @__PURE__ */ n.jsxs(
|
|
1920
|
+
/* @__PURE__ */ n.jsxs(Ct, { className: "flex flex-col gap-2", children: [
|
|
1952
1921
|
/* @__PURE__ */ n.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
1953
1922
|
/* @__PURE__ */ n.jsx(
|
|
1954
|
-
|
|
1923
|
+
me,
|
|
1955
1924
|
{
|
|
1956
1925
|
id: "remember",
|
|
1957
1926
|
checked: i,
|
|
@@ -1960,7 +1929,7 @@ const on = ({
|
|
|
1960
1929
|
)
|
|
1961
1930
|
}
|
|
1962
1931
|
),
|
|
1963
|
-
/* @__PURE__ */ n.jsx(
|
|
1932
|
+
/* @__PURE__ */ n.jsx(ie, { htmlFor: "remember", children: "Remember my choice" })
|
|
1964
1933
|
] }),
|
|
1965
1934
|
/* @__PURE__ */ n.jsx(
|
|
1966
1935
|
V,
|
|
@@ -1971,24 +1940,24 @@ const on = ({
|
|
|
1971
1940
|
)
|
|
1972
1941
|
] })
|
|
1973
1942
|
] }) });
|
|
1974
|
-
},
|
|
1943
|
+
}, lr = ({
|
|
1975
1944
|
control: e,
|
|
1976
1945
|
url: t
|
|
1977
1946
|
}) => {
|
|
1978
|
-
const { fields: s } =
|
|
1947
|
+
const { fields: s } = ke({
|
|
1979
1948
|
control: e,
|
|
1980
1949
|
name: "pathParams"
|
|
1981
1950
|
}), a = [...s].sort(
|
|
1982
1951
|
(r, o) => t.indexOf(`{${r.name}}`) - t.indexOf(`{${o.name}}`)
|
|
1983
1952
|
);
|
|
1984
|
-
return /* @__PURE__ */ n.jsx(
|
|
1953
|
+
return /* @__PURE__ */ n.jsx(ce, { className: "rounded-lg", children: /* @__PURE__ */ n.jsx(Me, { children: a.map((r, o) => /* @__PURE__ */ n.jsxs(Ge, { children: [
|
|
1985
1954
|
/* @__PURE__ */ n.jsx(
|
|
1986
1955
|
q,
|
|
1987
1956
|
{
|
|
1988
1957
|
control: e,
|
|
1989
1958
|
name: `pathParams.${o}.name`,
|
|
1990
1959
|
render: () => /* @__PURE__ */ n.jsx("div", { className: "flex items-center", children: /* @__PURE__ */ n.jsx(
|
|
1991
|
-
|
|
1960
|
+
Bt,
|
|
1992
1961
|
{
|
|
1993
1962
|
slug: r.name,
|
|
1994
1963
|
name: r.name,
|
|
@@ -2003,7 +1972,7 @@ const on = ({
|
|
|
2003
1972
|
control: e,
|
|
2004
1973
|
name: `pathParams.${o}.value`,
|
|
2005
1974
|
render: ({ field: i }) => /* @__PURE__ */ n.jsx(
|
|
2006
|
-
|
|
1975
|
+
qe,
|
|
2007
1976
|
{
|
|
2008
1977
|
...i,
|
|
2009
1978
|
required: !0,
|
|
@@ -2014,22 +1983,22 @@ const on = ({
|
|
|
2014
1983
|
}
|
|
2015
1984
|
) })
|
|
2016
1985
|
] }, r.id)) }) });
|
|
2017
|
-
},
|
|
1986
|
+
}, cr = ze(
|
|
2018
1987
|
"input",
|
|
2019
1988
|
"px-2 bg-transparent h-6 font-mono text-xs m-2"
|
|
2020
|
-
),
|
|
1989
|
+
), dr = ({
|
|
2021
1990
|
control: e,
|
|
2022
1991
|
queryParams: t
|
|
2023
1992
|
}) => {
|
|
2024
|
-
const { fields: s } =
|
|
1993
|
+
const { fields: s } = ke({
|
|
2025
1994
|
control: e,
|
|
2026
1995
|
name: "queryParams"
|
|
2027
|
-
}), a =
|
|
2028
|
-
return /* @__PURE__ */ n.jsx(
|
|
1996
|
+
}), a = De(), r = t.map((o) => !!o.isRequired);
|
|
1997
|
+
return /* @__PURE__ */ n.jsx(ce, { className: "rounded-lg", children: /* @__PURE__ */ n.jsx("div", { className: "w-full ", children: /* @__PURE__ */ n.jsx(Me, { children: s.map((o, i) => {
|
|
2029
1998
|
const c = t.find(
|
|
2030
1999
|
(l) => l.name === a.watch(`queryParams.${i}.name`)
|
|
2031
2000
|
);
|
|
2032
|
-
return /* @__PURE__ */ n.jsxs(
|
|
2001
|
+
return /* @__PURE__ */ n.jsxs(Ge, { children: [
|
|
2033
2002
|
/* @__PURE__ */ n.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
2034
2003
|
/* @__PURE__ */ n.jsx(
|
|
2035
2004
|
q,
|
|
@@ -2037,7 +2006,7 @@ const on = ({
|
|
|
2037
2006
|
control: e,
|
|
2038
2007
|
name: `queryParams.${i}.active`,
|
|
2039
2008
|
render: ({ field: l }) => /* @__PURE__ */ n.jsx(
|
|
2040
|
-
|
|
2009
|
+
me,
|
|
2041
2010
|
{
|
|
2042
2011
|
id: `queryParams.${i}.active`,
|
|
2043
2012
|
className: "me-2",
|
|
@@ -2051,7 +2020,7 @@ const on = ({
|
|
|
2051
2020
|
q,
|
|
2052
2021
|
{
|
|
2053
2022
|
control: e,
|
|
2054
|
-
render: ({ field: l }) => r[i] ? /* @__PURE__ */ n.jsx(
|
|
2023
|
+
render: ({ field: l }) => r[i] ? /* @__PURE__ */ n.jsx(cr, { asChild: !0, children: /* @__PURE__ */ n.jsxs(
|
|
2055
2024
|
"label",
|
|
2056
2025
|
{
|
|
2057
2026
|
className: "flex items-center cursor-pointer gap-1",
|
|
@@ -2063,7 +2032,7 @@ const on = ({
|
|
|
2063
2032
|
]
|
|
2064
2033
|
}
|
|
2065
2034
|
) }) : /* @__PURE__ */ n.jsx(
|
|
2066
|
-
|
|
2035
|
+
oe,
|
|
2067
2036
|
{
|
|
2068
2037
|
value: l.value,
|
|
2069
2038
|
options: t.map((u) => u.name),
|
|
@@ -2081,22 +2050,22 @@ const on = ({
|
|
|
2081
2050
|
q,
|
|
2082
2051
|
{
|
|
2083
2052
|
control: e,
|
|
2084
|
-
render: ({ field: l }) =>
|
|
2085
|
-
|
|
2053
|
+
render: ({ field: l }) => c?.enum && c.enum.length > 0 ? /* @__PURE__ */ n.jsx(
|
|
2054
|
+
oe,
|
|
2086
2055
|
{
|
|
2087
2056
|
value: l.value,
|
|
2088
2057
|
options: c.enum ?? [],
|
|
2089
|
-
onChange: (
|
|
2090
|
-
l.onChange(
|
|
2058
|
+
onChange: (p) => {
|
|
2059
|
+
l.onChange(p), a.setValue(`queryParams.${i}.active`, !0);
|
|
2091
2060
|
},
|
|
2092
2061
|
className: "border-0 shadow-none focus-visible:ring-0 bg-transparent hover:bg-transparent text-xs font-mono"
|
|
2093
2062
|
}
|
|
2094
2063
|
) : /* @__PURE__ */ n.jsx(
|
|
2095
|
-
|
|
2064
|
+
qe,
|
|
2096
2065
|
{
|
|
2097
2066
|
...l,
|
|
2098
|
-
onChange: (
|
|
2099
|
-
l.onChange(
|
|
2067
|
+
onChange: (p) => {
|
|
2068
|
+
l.onChange(p.target.value), p.target.value.length > 0 && a.setValue(`queryParams.${i}.active`, !0);
|
|
2100
2069
|
},
|
|
2101
2070
|
placeholder: "Enter value",
|
|
2102
2071
|
className: "w-full border-0 shadow-none focus-visible:ring-0 text-xs font-mono"
|
|
@@ -2107,8 +2076,8 @@ const on = ({
|
|
|
2107
2076
|
) })
|
|
2108
2077
|
] }, o.id);
|
|
2109
2078
|
}) }) }) });
|
|
2110
|
-
},
|
|
2111
|
-
|
|
2079
|
+
}, ur = vt()(
|
|
2080
|
+
bt(
|
|
2112
2081
|
(e, t) => ({
|
|
2113
2082
|
rememberedIdentity: null,
|
|
2114
2083
|
setRememberedIdentity: (s) => e({ rememberedIdentity: s }),
|
|
@@ -2118,25 +2087,25 @@ const on = ({
|
|
|
2118
2087
|
}),
|
|
2119
2088
|
{
|
|
2120
2089
|
name: "identity-storage",
|
|
2121
|
-
storage:
|
|
2090
|
+
storage: jn(() => sessionStorage)
|
|
2122
2091
|
}
|
|
2123
2092
|
)
|
|
2124
|
-
),
|
|
2093
|
+
), mr = ({
|
|
2125
2094
|
open: e,
|
|
2126
2095
|
setOpen: t,
|
|
2127
2096
|
onSignUp: s,
|
|
2128
2097
|
onLogin: a
|
|
2129
|
-
}) => /* @__PURE__ */ n.jsx(
|
|
2130
|
-
/* @__PURE__ */ n.jsx(
|
|
2131
|
-
/* @__PURE__ */ n.jsx(
|
|
2132
|
-
/* @__PURE__ */ n.jsxs(
|
|
2098
|
+
}) => /* @__PURE__ */ n.jsx(Le, { open: e, onOpenChange: t, children: /* @__PURE__ */ n.jsxs(Re, { children: [
|
|
2099
|
+
/* @__PURE__ */ n.jsx(Ie, { children: "Welcome to the Playground!" }),
|
|
2100
|
+
/* @__PURE__ */ n.jsx(Nt, { children: "The Playground is a tool for developers to test and explore our APIs. To use the Playground, you need to login." }),
|
|
2101
|
+
/* @__PURE__ */ n.jsxs(Ct, { className: "flex gap-2 sm:justify-between", children: [
|
|
2133
2102
|
/* @__PURE__ */ n.jsx(V, { type: "button", variant: "ghost", onClick: () => t(!1), children: "Skip" }),
|
|
2134
2103
|
/* @__PURE__ */ n.jsxs("div", { className: "flex gap-2", children: [
|
|
2135
2104
|
s && /* @__PURE__ */ n.jsx(V, { type: "button", variant: "outline", onClick: s, children: "Sign Up" }),
|
|
2136
2105
|
a && /* @__PURE__ */ n.jsx(V, { type: "button", variant: "default", onClick: a, children: "Login" })
|
|
2137
2106
|
] })
|
|
2138
2107
|
] })
|
|
2139
|
-
] }) }),
|
|
2108
|
+
] }) }), $ = {
|
|
2140
2109
|
green: "text-green-600",
|
|
2141
2110
|
blue: "text-sky-600",
|
|
2142
2111
|
yellow: "text-yellow-600",
|
|
@@ -2144,48 +2113,48 @@ const on = ({
|
|
|
2144
2113
|
purple: "text-purple-600",
|
|
2145
2114
|
indigo: "text-indigo-600",
|
|
2146
2115
|
gray: "text-gray-600"
|
|
2147
|
-
},
|
|
2148
|
-
get:
|
|
2149
|
-
post:
|
|
2150
|
-
put:
|
|
2151
|
-
delete:
|
|
2152
|
-
patch:
|
|
2153
|
-
options:
|
|
2154
|
-
head:
|
|
2155
|
-
trace:
|
|
2156
|
-
},
|
|
2116
|
+
}, pr = {
|
|
2117
|
+
get: $.green,
|
|
2118
|
+
post: $.blue,
|
|
2119
|
+
put: $.yellow,
|
|
2120
|
+
delete: $.red,
|
|
2121
|
+
patch: $.purple,
|
|
2122
|
+
options: $.indigo,
|
|
2123
|
+
head: $.gray,
|
|
2124
|
+
trace: $.gray
|
|
2125
|
+
}, hr = (e) => pr[e.toLocaleLowerCase()] ?? $.gray, fr = ({
|
|
2157
2126
|
method: e,
|
|
2158
2127
|
url: t,
|
|
2159
2128
|
headers: s,
|
|
2160
2129
|
body: a
|
|
2161
2130
|
}) => /* @__PURE__ */ n.jsxs("div", { className: "flex flex-col gap-2 font-mono text-xs", children: [
|
|
2162
2131
|
/* @__PURE__ */ n.jsxs("div", { className: "gap-2 p-2 bg-muted rounded-md", children: [
|
|
2163
|
-
/* @__PURE__ */ n.jsx("span", { className:
|
|
2132
|
+
/* @__PURE__ */ n.jsx("span", { className: v(hr(e), "font-semibold"), children: e }),
|
|
2164
2133
|
" ",
|
|
2165
2134
|
/* @__PURE__ */ n.jsx("span", { className: "break-all", children: t }),
|
|
2166
2135
|
" ",
|
|
2167
2136
|
/* @__PURE__ */ n.jsx("span", { className: "text-muted-foreground", children: "HTTP/1.1" })
|
|
2168
2137
|
] }),
|
|
2169
2138
|
/* @__PURE__ */ n.jsxs("div", { className: "mx-1.5 flex flex-col gap-3", children: [
|
|
2170
|
-
/* @__PURE__ */ n.jsxs(
|
|
2171
|
-
/* @__PURE__ */ n.jsxs(
|
|
2172
|
-
/* @__PURE__ */ n.jsx(
|
|
2139
|
+
/* @__PURE__ */ n.jsxs(rt, { defaultOpen: !0, children: [
|
|
2140
|
+
/* @__PURE__ */ n.jsxs(at, { className: "flex items-center gap-2 hover:text-primary group", children: [
|
|
2141
|
+
/* @__PURE__ */ n.jsx(W, { className: "h-4 w-4 transition-transform duration-200 group-data-[state=open]:rotate-[90deg]" }),
|
|
2173
2142
|
/* @__PURE__ */ n.jsx("span", { className: "font-semibold", children: "Headers" })
|
|
2174
2143
|
] }),
|
|
2175
|
-
/* @__PURE__ */ n.jsx(
|
|
2144
|
+
/* @__PURE__ */ n.jsx(ot, { children: /* @__PURE__ */ n.jsx("div", { className: "grid grid-cols-[auto,1fr] gap-x-8 gap-y-1 ps-1.5 pt-2", children: s.map(([r, o]) => /* @__PURE__ */ n.jsxs(D, { children: [
|
|
2176
2145
|
/* @__PURE__ */ n.jsx("div", { className: "text-primary", children: r }),
|
|
2177
2146
|
/* @__PURE__ */ n.jsx("div", { className: "break-all", children: o })
|
|
2178
2147
|
] }, r)) }) })
|
|
2179
2148
|
] }),
|
|
2180
|
-
/* @__PURE__ */ n.jsxs(
|
|
2181
|
-
/* @__PURE__ */ n.jsxs(
|
|
2182
|
-
/* @__PURE__ */ n.jsx(
|
|
2149
|
+
/* @__PURE__ */ n.jsxs(rt, { defaultOpen: !0, children: [
|
|
2150
|
+
/* @__PURE__ */ n.jsxs(at, { className: "flex items-center gap-2 hover:text-primary group", children: [
|
|
2151
|
+
/* @__PURE__ */ n.jsx(W, { className: "h-4 w-4 transition-transform duration-200 group-data-[state=open]:rotate-[90deg]" }),
|
|
2183
2152
|
/* @__PURE__ */ n.jsx("span", { className: "font-semibold", children: "Body" })
|
|
2184
2153
|
] }),
|
|
2185
|
-
/* @__PURE__ */ n.jsx(
|
|
2154
|
+
/* @__PURE__ */ n.jsx(ot, { children: /* @__PURE__ */ n.jsx("div", { className: "ps-0 pt-2", children: /* @__PURE__ */ n.jsx(
|
|
2186
2155
|
"div",
|
|
2187
2156
|
{
|
|
2188
|
-
className:
|
|
2157
|
+
className: v(
|
|
2189
2158
|
"whitespace-pre-wrap break-all bg-muted p-2 rounded-md",
|
|
2190
2159
|
!a && "text-muted-foreground"
|
|
2191
2160
|
),
|
|
@@ -2194,29 +2163,29 @@ const on = ({
|
|
|
2194
2163
|
) }) })
|
|
2195
2164
|
] })
|
|
2196
2165
|
] })
|
|
2197
|
-
] }),
|
|
2198
|
-
function
|
|
2166
|
+
] }), mt = Ve.Root, pt = Ve.CollapsibleTrigger, ht = Ve.CollapsibleContent;
|
|
2167
|
+
function He(e) {
|
|
2199
2168
|
if (e === null) return "null";
|
|
2200
2169
|
if (Array.isArray(e)) {
|
|
2201
2170
|
if (e.length === 0) return "any[]";
|
|
2202
2171
|
const t = e[0];
|
|
2203
|
-
return t === void 0 ? "any[]" : `${
|
|
2172
|
+
return t === void 0 ? "any[]" : `${He(t)}[]`;
|
|
2204
2173
|
}
|
|
2205
|
-
return typeof e == "object" ?
|
|
2174
|
+
return typeof e == "object" ? xr(e) : typeof e;
|
|
2206
2175
|
}
|
|
2207
|
-
function
|
|
2176
|
+
function xr(e, t = "") {
|
|
2208
2177
|
const s = ["{"];
|
|
2209
2178
|
for (const [a, r] of Object.entries(e)) {
|
|
2210
|
-
const o =
|
|
2179
|
+
const o = He(r);
|
|
2211
2180
|
s.push(` ${a}: ${o};`);
|
|
2212
2181
|
}
|
|
2213
2182
|
return s.push("}"), s.join(`
|
|
2214
2183
|
`);
|
|
2215
2184
|
}
|
|
2216
|
-
function
|
|
2217
|
-
return { lines: [`type GeneratedType = ${
|
|
2185
|
+
function gr(e) {
|
|
2186
|
+
return { lines: [`type GeneratedType = ${He(e)};`] };
|
|
2218
2187
|
}
|
|
2219
|
-
const
|
|
2188
|
+
const yr = {
|
|
2220
2189
|
200: "OK",
|
|
2221
2190
|
201: "Created",
|
|
2222
2191
|
202: "Accepted",
|
|
@@ -2227,35 +2196,31 @@ const Pr = {
|
|
|
2227
2196
|
404: "Not Found",
|
|
2228
2197
|
405: "Method Not Allowed",
|
|
2229
2198
|
500: "Internal Server Error"
|
|
2230
|
-
},
|
|
2199
|
+
}, ft = (e) => {
|
|
2231
2200
|
const t = Math.floor(Math.log(e) / Math.log(1e3));
|
|
2232
2201
|
return `${(e / Math.pow(1e3, t)).toFixed(
|
|
2233
2202
|
t ? 2 : 0
|
|
2234
2203
|
)} ${t ? `${"kMGTPEZY"[t - 1]}B` : "B"}`;
|
|
2235
|
-
},
|
|
2236
|
-
|
|
2237
|
-
|
|
2238
|
-
|
|
2239
|
-
|
|
2240
|
-
|
|
2241
|
-
|
|
2242
|
-
|
|
2243
|
-
|
|
2244
|
-
|
|
2245
|
-
|
|
2246
|
-
|
|
2247
|
-
)
|
|
2248
|
-
},
|
|
2249
|
-
var s;
|
|
2250
|
-
const t = ((s = e.find(([a, r]) => a === "Content-Type")) == null ? void 0 : s[1]) || "";
|
|
2251
|
-
return Lr(t);
|
|
2252
|
-
}, Ir = (e) => {
|
|
2204
|
+
}, vr = (e) => Object.entries({
|
|
2205
|
+
"application/json": "json",
|
|
2206
|
+
"text/json": "json",
|
|
2207
|
+
"text/html": "html",
|
|
2208
|
+
"text/css": "css",
|
|
2209
|
+
"text/javascript": "javascript",
|
|
2210
|
+
"application/xml": "xml",
|
|
2211
|
+
"application/xhtml+xml": "xhtml"
|
|
2212
|
+
}).find(
|
|
2213
|
+
([s]) => e.includes(s)
|
|
2214
|
+
)?.[1], br = (e) => {
|
|
2215
|
+
const t = e.find(([s, a]) => s === "Content-Type")?.[1] || "";
|
|
2216
|
+
return vr(t);
|
|
2217
|
+
}, jr = (e) => {
|
|
2253
2218
|
try {
|
|
2254
2219
|
return JSON.stringify(JSON.parse(e), null, 2);
|
|
2255
2220
|
} catch {
|
|
2256
2221
|
return null;
|
|
2257
2222
|
}
|
|
2258
|
-
},
|
|
2223
|
+
}, Nr = (e) => {
|
|
2259
2224
|
const t = [
|
|
2260
2225
|
"Content-Type",
|
|
2261
2226
|
"Content-Length",
|
|
@@ -2269,7 +2234,7 @@ const Pr = {
|
|
|
2269
2234
|
const r = t.indexOf(s.toLowerCase()), o = t.indexOf(a.toLowerCase());
|
|
2270
2235
|
return r === o ? 0 : r === -1 ? 1 : o === -1 ? -1 : r - o;
|
|
2271
2236
|
});
|
|
2272
|
-
},
|
|
2237
|
+
}, xt = 64e3, Cr = ({
|
|
2273
2238
|
body: e = "",
|
|
2274
2239
|
headers: t,
|
|
2275
2240
|
status: s,
|
|
@@ -2277,54 +2242,53 @@ const Pr = {
|
|
|
2277
2242
|
size: r,
|
|
2278
2243
|
url: o
|
|
2279
2244
|
}) => {
|
|
2280
|
-
|
|
2281
|
-
const i = Rr(t), c = Ir(e), l = c || e, [u, m] = L(
|
|
2245
|
+
const i = br(t), c = jr(e), l = c || e, [u, p] = P(
|
|
2282
2246
|
c ? "formatted" : "raw"
|
|
2283
|
-
), y =
|
|
2247
|
+
), y = Nn({
|
|
2284
2248
|
queryKey: ["types", l],
|
|
2285
|
-
queryFn: async () =>
|
|
2249
|
+
queryFn: async () => gr(JSON.parse(l)),
|
|
2286
2250
|
enabled: u === "types"
|
|
2287
|
-
}),
|
|
2251
|
+
}), f = Nr([...t]), x = r > xt;
|
|
2288
2252
|
return /* @__PURE__ */ n.jsxs("div", { className: "flex flex-col gap-2 h-full overflow-auto max-h-[calc(100vh-220px)] ", children: [
|
|
2289
|
-
/* @__PURE__ */ n.jsxs(
|
|
2290
|
-
/* @__PURE__ */ n.jsxs(
|
|
2291
|
-
/* @__PURE__ */ n.jsx(
|
|
2253
|
+
/* @__PURE__ */ n.jsxs(mt, { defaultOpen: !0, children: [
|
|
2254
|
+
/* @__PURE__ */ n.jsxs(pt, { className: "flex items-center gap-2 hover:text-primary group", children: [
|
|
2255
|
+
/* @__PURE__ */ n.jsx(W, { className: "h-4 w-4 transition-transform duration-200 group-data-[state=open]:rotate-[90deg]" }),
|
|
2292
2256
|
/* @__PURE__ */ n.jsx("span", { className: "font-semibold", children: "Headers" })
|
|
2293
2257
|
] }),
|
|
2294
|
-
/* @__PURE__ */ n.jsx(
|
|
2295
|
-
|
|
2296
|
-
/* @__PURE__ */ n.jsx("div", { className: "text-primary whitespace-pre", children:
|
|
2297
|
-
/* @__PURE__ */ n.jsx("div", { className: "break-all", children:
|
|
2298
|
-
] },
|
|
2299
|
-
|
|
2300
|
-
/* @__PURE__ */ n.jsxs(
|
|
2301
|
-
/* @__PURE__ */ n.jsx(
|
|
2258
|
+
/* @__PURE__ */ n.jsx(ht, { children: /* @__PURE__ */ n.jsxs("div", { className: "grid grid-cols-[auto,1fr] gap-x-8 gap-y-1 ps-1.5 pt-2 font-mono text-xs", children: [
|
|
2259
|
+
f.slice(0, 5).map(([m, g]) => /* @__PURE__ */ n.jsxs(D, { children: [
|
|
2260
|
+
/* @__PURE__ */ n.jsx("div", { className: "text-primary whitespace-pre", children: m }),
|
|
2261
|
+
/* @__PURE__ */ n.jsx("div", { className: "break-all", children: g })
|
|
2262
|
+
] }, m)),
|
|
2263
|
+
f.length > 5 && /* @__PURE__ */ n.jsxs(mt, { className: "col-span-full grid-cols-subgrid grid", children: [
|
|
2264
|
+
/* @__PURE__ */ n.jsxs(pt, { className: "col-span-2 text-xs text-muted-foreground hover:text-primary flex items-center gap-1 py-1", children: [
|
|
2265
|
+
/* @__PURE__ */ n.jsx(W, { className: "h-3 w-3 transition-transform duration-200 group-data-[state=open]:rotate-[90deg]" }),
|
|
2302
2266
|
"Show ",
|
|
2303
|
-
|
|
2267
|
+
f.length - 5,
|
|
2304
2268
|
" more headers"
|
|
2305
2269
|
] }),
|
|
2306
|
-
/* @__PURE__ */ n.jsx(
|
|
2307
|
-
/* @__PURE__ */ n.jsx("div", { className: "text-primary whitespace-pre", children:
|
|
2308
|
-
/* @__PURE__ */ n.jsx("div", { className: "break-all", children:
|
|
2309
|
-
] },
|
|
2270
|
+
/* @__PURE__ */ n.jsx(ht, { className: "col-span-full grid grid-cols-subgrid gap-x-8 gap-y-1 ", children: f.slice(5).map(([m, g]) => /* @__PURE__ */ n.jsxs(D, { children: [
|
|
2271
|
+
/* @__PURE__ */ n.jsx("div", { className: "text-primary whitespace-pre", children: m }),
|
|
2272
|
+
/* @__PURE__ */ n.jsx("div", { className: "break-all", children: g })
|
|
2273
|
+
] }, m)) })
|
|
2310
2274
|
] })
|
|
2311
2275
|
] }) })
|
|
2312
2276
|
] }),
|
|
2313
|
-
/* @__PURE__ */ n.jsxs(
|
|
2314
|
-
|
|
2277
|
+
/* @__PURE__ */ n.jsxs(Ot, { className: "shadow-none", children: [
|
|
2278
|
+
x && /* @__PURE__ */ n.jsxs(Hn, { type: "info", className: "my-0 p-2", children: [
|
|
2315
2279
|
"Code highlight is disabled for responses larger than",
|
|
2316
2280
|
" ",
|
|
2317
|
-
|
|
2281
|
+
ft(xt)
|
|
2318
2282
|
] }),
|
|
2319
2283
|
/* @__PURE__ */ n.jsx(
|
|
2320
|
-
|
|
2284
|
+
Kn,
|
|
2321
2285
|
{
|
|
2322
2286
|
language: u === "types" ? "typescript" : u === "raw" ? c ? "plain" : i : "json",
|
|
2323
2287
|
showCopy: "always",
|
|
2324
|
-
disabled:
|
|
2288
|
+
disabled: x,
|
|
2325
2289
|
noBackground: !0,
|
|
2326
2290
|
className: "overflow-x-auto p-4 text-xs max-h-[calc(83.333vh-180px)]",
|
|
2327
|
-
code: (u === "raw" ? e : u === "types" ?
|
|
2291
|
+
code: (u === "raw" ? e : u === "types" ? y.data?.lines.join(`
|
|
2328
2292
|
`) : l) ?? ""
|
|
2329
2293
|
}
|
|
2330
2294
|
)
|
|
@@ -2336,7 +2300,7 @@ const Pr = {
|
|
|
2336
2300
|
" ",
|
|
2337
2301
|
s,
|
|
2338
2302
|
" ",
|
|
2339
|
-
|
|
2303
|
+
yr[s] ?? ""
|
|
2340
2304
|
] }),
|
|
2341
2305
|
/* @__PURE__ */ n.jsxs("div", { children: [
|
|
2342
2306
|
/* @__PURE__ */ n.jsx("span", { className: "text-muted-foreground", children: "Time" }),
|
|
@@ -2347,53 +2311,52 @@ const Pr = {
|
|
|
2347
2311
|
/* @__PURE__ */ n.jsxs("div", { children: [
|
|
2348
2312
|
/* @__PURE__ */ n.jsx("span", { className: "text-muted-foreground", children: "Size" }),
|
|
2349
2313
|
" ",
|
|
2350
|
-
|
|
2314
|
+
ft(r)
|
|
2351
2315
|
] })
|
|
2352
2316
|
] }),
|
|
2353
2317
|
c && /* @__PURE__ */ n.jsx("div", { children: /* @__PURE__ */ n.jsxs(
|
|
2354
|
-
|
|
2318
|
+
Ne,
|
|
2355
2319
|
{
|
|
2356
2320
|
value: u,
|
|
2357
|
-
onValueChange: (
|
|
2321
|
+
onValueChange: (m) => p(m),
|
|
2358
2322
|
children: [
|
|
2359
|
-
/* @__PURE__ */ n.jsx(
|
|
2360
|
-
/* @__PURE__ */ n.jsxs(
|
|
2361
|
-
/* @__PURE__ */ n.jsx(
|
|
2362
|
-
/* @__PURE__ */ n.jsx(
|
|
2363
|
-
/* @__PURE__ */ n.jsx(
|
|
2323
|
+
/* @__PURE__ */ n.jsx(Ce, { className: "min-w-32", children: /* @__PURE__ */ n.jsx(Se, { placeholder: "View" }) }),
|
|
2324
|
+
/* @__PURE__ */ n.jsxs(we, { children: [
|
|
2325
|
+
/* @__PURE__ */ n.jsx(J, { value: "formatted", children: "Formatted" }),
|
|
2326
|
+
/* @__PURE__ */ n.jsx(J, { value: "raw", children: "Raw" }),
|
|
2327
|
+
/* @__PURE__ */ n.jsx(J, { value: "types", children: "Types" })
|
|
2364
2328
|
] })
|
|
2365
2329
|
]
|
|
2366
2330
|
}
|
|
2367
2331
|
) })
|
|
2368
2332
|
] })
|
|
2369
2333
|
] });
|
|
2370
|
-
},
|
|
2334
|
+
}, Sr = ({
|
|
2371
2335
|
queryMutation: e,
|
|
2372
2336
|
showPathParamsWarning: t,
|
|
2373
2337
|
showLongRunningWarning: s,
|
|
2374
2338
|
onCancel: a
|
|
2375
2339
|
}) => {
|
|
2376
|
-
|
|
2377
|
-
const r = ((((o = e.data) == null ? void 0 : o.status) ?? 0) / 100).toFixed(0);
|
|
2340
|
+
const r = ((e.data?.status ?? 0) / 100).toFixed(0);
|
|
2378
2341
|
return /* @__PURE__ */ n.jsx("div", { className: "min-w-0 p-4 py-8 bg-muted/50", children: e.error ? /* @__PURE__ */ n.jsxs("div", { className: "flex flex-col gap-2", children: [
|
|
2379
|
-
t && /* @__PURE__ */ n.jsx(
|
|
2380
|
-
/* @__PURE__ */ n.jsxs(
|
|
2381
|
-
/* @__PURE__ */ n.jsx(
|
|
2382
|
-
/* @__PURE__ */ n.jsxs(
|
|
2342
|
+
t && /* @__PURE__ */ n.jsx(Wn, { type: "caution", children: "Some path parameters are missing values. Please fill them in to ensure the request is sent correctly." }),
|
|
2343
|
+
/* @__PURE__ */ n.jsxs(Ot, { children: [
|
|
2344
|
+
/* @__PURE__ */ n.jsx(Xn, { children: /* @__PURE__ */ n.jsx(Zn, { children: "Request failed" }) }),
|
|
2345
|
+
/* @__PURE__ */ n.jsxs(Yn, { children: [
|
|
2383
2346
|
"Error:",
|
|
2384
2347
|
" ",
|
|
2385
2348
|
e.error.message || String(e.error) || "Unexpected error"
|
|
2386
2349
|
] })
|
|
2387
2350
|
] })
|
|
2388
|
-
] }) : e.data ? /* @__PURE__ */ n.jsxs(
|
|
2389
|
-
/* @__PURE__ */ n.jsxs(
|
|
2390
|
-
/* @__PURE__ */ n.jsx(
|
|
2391
|
-
/* @__PURE__ */ n.jsxs(
|
|
2351
|
+
] }) : e.data ? /* @__PURE__ */ n.jsxs(wt, { defaultValue: "response", children: [
|
|
2352
|
+
/* @__PURE__ */ n.jsxs(Tt, { children: [
|
|
2353
|
+
/* @__PURE__ */ n.jsx(z, { value: "request", children: "Request" }),
|
|
2354
|
+
/* @__PURE__ */ n.jsxs(z, { value: "response", children: [
|
|
2392
2355
|
"Response",
|
|
2393
2356
|
/* @__PURE__ */ n.jsxs(
|
|
2394
2357
|
"span",
|
|
2395
2358
|
{
|
|
2396
|
-
className:
|
|
2359
|
+
className: v(
|
|
2397
2360
|
"text-xs font-mono ms-1",
|
|
2398
2361
|
r === "2" && "text-green-500",
|
|
2399
2362
|
r === "3" && "text-blue-500",
|
|
@@ -2409,9 +2372,9 @@ const Pr = {
|
|
|
2409
2372
|
)
|
|
2410
2373
|
] })
|
|
2411
2374
|
] }),
|
|
2412
|
-
/* @__PURE__ */ n.jsx(
|
|
2413
|
-
/* @__PURE__ */ n.jsx(
|
|
2414
|
-
|
|
2375
|
+
/* @__PURE__ */ n.jsx(M, { value: "request", children: /* @__PURE__ */ n.jsx(fr, { ...e.data.request }) }),
|
|
2376
|
+
/* @__PURE__ */ n.jsx(M, { value: "response", children: /* @__PURE__ */ n.jsx(
|
|
2377
|
+
Cr,
|
|
2415
2378
|
{
|
|
2416
2379
|
status: e.data.status,
|
|
2417
2380
|
time: e.data.time,
|
|
@@ -2422,18 +2385,18 @@ const Pr = {
|
|
|
2422
2385
|
}
|
|
2423
2386
|
) })
|
|
2424
2387
|
] }) : /* @__PURE__ */ n.jsx("div", { className: "grid place-items-center h-full", children: e.isPending ? /* @__PURE__ */ n.jsxs("div", { className: "flex flex-col gap-2 items-center mt-20", children: [
|
|
2425
|
-
/* @__PURE__ */ n.jsx(
|
|
2388
|
+
/* @__PURE__ */ n.jsx(Jn, { size: 20 }),
|
|
2426
2389
|
/* @__PURE__ */ n.jsxs(
|
|
2427
2390
|
"div",
|
|
2428
2391
|
{
|
|
2429
|
-
className:
|
|
2392
|
+
className: v(
|
|
2430
2393
|
"opacity-0 pointer-events-none transition-opacity h-20 text-sm text-muted-foreground duration-300 flex flex-col gap-2 items-center",
|
|
2431
2394
|
s && "opacity-100 pointer-events-auto"
|
|
2432
2395
|
),
|
|
2433
2396
|
children: [
|
|
2434
2397
|
"Looks like the request is taking longer than expected.",
|
|
2435
2398
|
/* @__PURE__ */ n.jsx(
|
|
2436
|
-
|
|
2399
|
+
X,
|
|
2437
2400
|
{
|
|
2438
2401
|
type: "button",
|
|
2439
2402
|
onClick: a,
|
|
@@ -2447,47 +2410,43 @@ const Pr = {
|
|
|
2447
2410
|
}
|
|
2448
2411
|
)
|
|
2449
2412
|
] }) : /* @__PURE__ */ n.jsx("span", { className: "text-[16px] font-semibold text-muted-foreground", children: "Send a request first to see the response here" }) }) });
|
|
2450
|
-
},
|
|
2413
|
+
}, wr = ({
|
|
2451
2414
|
identities: e,
|
|
2452
2415
|
formRef: t,
|
|
2453
2416
|
disabled: s
|
|
2454
2417
|
}) => {
|
|
2455
|
-
const { setValue: a } =
|
|
2418
|
+
const { setValue: a } = De(), [r, o] = P();
|
|
2456
2419
|
return e.length === 0 ? /* @__PURE__ */ n.jsx(V, { disabled: s, children: "Send" }) : /* @__PURE__ */ n.jsxs("div", { className: "flex", children: [
|
|
2457
2420
|
/* @__PURE__ */ n.jsx(
|
|
2458
2421
|
V,
|
|
2459
2422
|
{
|
|
2460
2423
|
className: "rounded-r-none inset-shadow-sm",
|
|
2461
2424
|
disabled: s,
|
|
2462
|
-
onClick: () =>
|
|
2463
|
-
var i;
|
|
2464
|
-
return (i = t == null ? void 0 : t.current) == null ? void 0 : i.requestSubmit();
|
|
2465
|
-
},
|
|
2425
|
+
onClick: () => t?.current?.requestSubmit(),
|
|
2466
2426
|
children: "Send"
|
|
2467
2427
|
}
|
|
2468
2428
|
),
|
|
2469
|
-
/* @__PURE__ */ n.jsxs(
|
|
2470
|
-
/* @__PURE__ */ n.jsx(
|
|
2429
|
+
/* @__PURE__ */ n.jsxs(zt, { children: [
|
|
2430
|
+
/* @__PURE__ */ n.jsx(Mt, { asChild: !0, children: /* @__PURE__ */ n.jsx(
|
|
2471
2431
|
V,
|
|
2472
2432
|
{
|
|
2473
2433
|
disabled: s,
|
|
2474
2434
|
className: "rounded-l-none border-l border-border/40 inset-shadow-sm w-6",
|
|
2475
2435
|
size: "icon",
|
|
2476
|
-
children: /* @__PURE__ */ n.jsx(
|
|
2436
|
+
children: /* @__PURE__ */ n.jsx(pn, { className: "w-4 h-4" })
|
|
2477
2437
|
}
|
|
2478
2438
|
) }),
|
|
2479
|
-
/* @__PURE__ */ n.jsx(
|
|
2439
|
+
/* @__PURE__ */ n.jsx(Ue, { value: r, children: /* @__PURE__ */ n.jsx(_e, { className: "w-56", align: "end", alignOffset: -150, children: [{ id: G, label: "None" }, ...e].map(
|
|
2480
2440
|
(i) => /* @__PURE__ */ n.jsxs(
|
|
2481
|
-
|
|
2441
|
+
Be,
|
|
2482
2442
|
{
|
|
2483
2443
|
onClick: () => {
|
|
2484
|
-
|
|
2485
|
-
o(i.id), a("identity", i.id), (c = t == null ? void 0 : t.current) == null || c.requestSubmit();
|
|
2444
|
+
o(i.id), a("identity", i.id), t?.current?.requestSubmit();
|
|
2486
2445
|
},
|
|
2487
2446
|
onMouseEnter: () => o(i.id),
|
|
2488
2447
|
onMouseLeave: () => o(void 0),
|
|
2489
2448
|
children: [
|
|
2490
|
-
/* @__PURE__ */ n.jsx(
|
|
2449
|
+
/* @__PURE__ */ n.jsx(le, { value: i.id, className: "me-2" }),
|
|
2491
2450
|
i.label
|
|
2492
2451
|
]
|
|
2493
2452
|
},
|
|
@@ -2496,13 +2455,13 @@ const Pr = {
|
|
|
2496
2455
|
) }) })
|
|
2497
2456
|
] })
|
|
2498
2457
|
] });
|
|
2499
|
-
},
|
|
2458
|
+
}, G = "__none", je = {
|
|
2500
2459
|
Plain: "text/plain",
|
|
2501
2460
|
JSON: "application/json",
|
|
2502
2461
|
XML: "application/xml",
|
|
2503
2462
|
YAML: "application/yaml",
|
|
2504
2463
|
CSV: "text/csv"
|
|
2505
|
-
},
|
|
2464
|
+
}, Tr = ({
|
|
2506
2465
|
server: e,
|
|
2507
2466
|
servers: t = [],
|
|
2508
2467
|
url: s,
|
|
@@ -2513,13 +2472,12 @@ const Pr = {
|
|
|
2513
2472
|
defaultBody: c = "",
|
|
2514
2473
|
examples: l,
|
|
2515
2474
|
requiresLogin: u = !1,
|
|
2516
|
-
onLogin:
|
|
2475
|
+
onLogin: p,
|
|
2517
2476
|
onSignUp: y
|
|
2518
2477
|
}) => {
|
|
2519
|
-
|
|
2520
|
-
const { selectedServer: x, setSelectedServer: g } = ir(
|
|
2478
|
+
const { selectedServer: f, setSelectedServer: x } = Js(
|
|
2521
2479
|
t.map((d) => ({ url: d }))
|
|
2522
|
-
), [
|
|
2480
|
+
), [m, g] = P(!1), C = Cn(), { setRememberedIdentity: j, getRememberedIdentity: R } = ur(), [, I] = Pn(), [Kt, en] = P(!1), [tn, K] = P(!1), ee = U(void 0), Je = Vn(j), { register: We, control: te, handleSubmit: Xe, watch: Ze, setValue: B, ...pe } = kn({
|
|
2523
2481
|
defaultValues: {
|
|
2524
2482
|
body: c,
|
|
2525
2483
|
bodyContentType: "JSON",
|
|
@@ -2551,150 +2509,146 @@ const Pr = {
|
|
|
2551
2509
|
active: !1
|
|
2552
2510
|
}
|
|
2553
2511
|
]),
|
|
2554
|
-
identity:
|
|
2555
|
-
|
|
2512
|
+
identity: R(
|
|
2513
|
+
C.data?.map((d) => d.id) ?? []
|
|
2556
2514
|
)
|
|
2557
2515
|
}
|
|
2558
|
-
}),
|
|
2559
|
-
|
|
2560
|
-
|
|
2561
|
-
}, [
|
|
2562
|
-
const
|
|
2516
|
+
}), T = Ze(), Ye = U(null);
|
|
2517
|
+
re(() => {
|
|
2518
|
+
T.identity && Je.current(T.identity);
|
|
2519
|
+
}, [Je, T.identity]);
|
|
2520
|
+
const he = In({
|
|
2563
2521
|
mutationFn: async (d) => {
|
|
2564
|
-
var ut, mt;
|
|
2565
2522
|
const O = performance.now(), k = !d.headers.some(
|
|
2566
|
-
(
|
|
2567
|
-
),
|
|
2568
|
-
...d.headers.filter((
|
|
2569
|
-
...k ? [["content-type",
|
|
2570
|
-
]),
|
|
2571
|
-
|
|
2523
|
+
(w) => w.active && w.name.toLowerCase() === "content-type"
|
|
2524
|
+
), se = Object.fromEntries([
|
|
2525
|
+
...d.headers.filter((w) => w.name && w.active).map((w) => [w.name, w.value]),
|
|
2526
|
+
...k ? [["content-type", je[d.bodyContentType]]] : []
|
|
2527
|
+
]), E = new Request(
|
|
2528
|
+
Ws(e ?? f, s, d),
|
|
2572
2529
|
{
|
|
2573
2530
|
method: a.toUpperCase(),
|
|
2574
|
-
headers:
|
|
2531
|
+
headers: se,
|
|
2575
2532
|
body: d.body ? d.body : void 0
|
|
2576
2533
|
}
|
|
2577
2534
|
);
|
|
2578
|
-
d.identity !==
|
|
2579
|
-
const
|
|
2580
|
-
() =>
|
|
2535
|
+
d.identity !== G && await C.data?.find((w) => w.id === d.identity)?.authorizeRequest(E);
|
|
2536
|
+
const et = setTimeout(
|
|
2537
|
+
() => K(!0),
|
|
2581
2538
|
3210
|
|
2582
2539
|
);
|
|
2583
|
-
|
|
2540
|
+
ee.current = new AbortController();
|
|
2584
2541
|
try {
|
|
2585
|
-
const
|
|
2586
|
-
signal:
|
|
2542
|
+
const w = await fetch(E, {
|
|
2543
|
+
signal: ee.current.signal
|
|
2587
2544
|
});
|
|
2588
|
-
clearTimeout(
|
|
2589
|
-
const
|
|
2545
|
+
clearTimeout(et), K(!1);
|
|
2546
|
+
const an = performance.now() - O, tt = await w.text(), on = new URL(E.url);
|
|
2590
2547
|
return {
|
|
2591
|
-
status:
|
|
2592
|
-
headers: Array.from(
|
|
2593
|
-
size:
|
|
2594
|
-
body:
|
|
2595
|
-
time:
|
|
2548
|
+
status: w.status,
|
|
2549
|
+
headers: Array.from(w.headers.entries()),
|
|
2550
|
+
size: tt.length,
|
|
2551
|
+
body: tt,
|
|
2552
|
+
time: an,
|
|
2596
2553
|
request: {
|
|
2597
|
-
method:
|
|
2598
|
-
url:
|
|
2554
|
+
method: E.method.toUpperCase(),
|
|
2555
|
+
url: E.url,
|
|
2599
2556
|
headers: [
|
|
2600
|
-
["Host",
|
|
2557
|
+
["Host", on.host],
|
|
2601
2558
|
["User-Agent", "Zudoku Playground"],
|
|
2602
|
-
...Array.from(
|
|
2559
|
+
...Array.from(E.headers.entries())
|
|
2603
2560
|
],
|
|
2604
2561
|
body: d.body ? d.body : void 0
|
|
2605
2562
|
}
|
|
2606
2563
|
};
|
|
2607
|
-
} catch (
|
|
2608
|
-
throw clearTimeout(
|
|
2564
|
+
} catch (w) {
|
|
2565
|
+
throw clearTimeout(et), K(!1), w instanceof TypeError ? new Error(
|
|
2609
2566
|
"The request failed, possibly due to network issues or CORS policy."
|
|
2610
|
-
) :
|
|
2567
|
+
) : w;
|
|
2611
2568
|
}
|
|
2612
2569
|
}
|
|
2613
2570
|
});
|
|
2614
|
-
|
|
2615
|
-
|
|
2616
|
-
(d = _.current) == null || d.abort();
|
|
2571
|
+
re(() => () => {
|
|
2572
|
+
ee.current?.abort();
|
|
2617
2573
|
}, []);
|
|
2618
|
-
const
|
|
2619
|
-
|
|
2574
|
+
const nn = /* @__PURE__ */ n.jsx(
|
|
2575
|
+
Us,
|
|
2620
2576
|
{
|
|
2621
2577
|
path: s,
|
|
2622
2578
|
renderParam: ({ name: d, originalValue: O, index: k }) => {
|
|
2623
|
-
|
|
2624
|
-
|
|
2625
|
-
|
|
2626
|
-
)) == null ? void 0 : P.value;
|
|
2579
|
+
const se = T.pathParams.find(
|
|
2580
|
+
(E) => E.name === d
|
|
2581
|
+
)?.value;
|
|
2627
2582
|
return /* @__PURE__ */ n.jsx(
|
|
2628
|
-
|
|
2583
|
+
Bt,
|
|
2629
2584
|
{
|
|
2630
2585
|
name: d,
|
|
2631
2586
|
backgroundOpacity: "0",
|
|
2632
2587
|
slug: d,
|
|
2633
|
-
onClick: () =>
|
|
2634
|
-
children:
|
|
2588
|
+
onClick: () => pe.setFocus(`pathParams.${k}.value`),
|
|
2589
|
+
children: se || O
|
|
2635
2590
|
}
|
|
2636
2591
|
);
|
|
2637
2592
|
}
|
|
2638
2593
|
}
|
|
2639
|
-
),
|
|
2594
|
+
), Ke = T.queryParams.filter((d) => d.active).map((d, O, k) => /* @__PURE__ */ n.jsxs(D, { children: [
|
|
2640
2595
|
d.name,
|
|
2641
2596
|
"=",
|
|
2642
2597
|
encodeURIComponent(d.value).replaceAll("%20", "+"),
|
|
2643
2598
|
O < k.length - 1 && "&",
|
|
2644
2599
|
/* @__PURE__ */ n.jsx("wbr", {})
|
|
2645
|
-
] }, d.name)),
|
|
2646
|
-
|
|
2600
|
+
] }, d.name)), sn = /* @__PURE__ */ n.jsx("div", { className: "inline-block opacity-50 hover:opacity-100 transition", children: e ? /* @__PURE__ */ n.jsx("span", { children: e.replace(/^https?:\/\//, "").replace(/\/$/, "") }) : t.length > 1 && /* @__PURE__ */ n.jsxs(
|
|
2601
|
+
Ne,
|
|
2647
2602
|
{
|
|
2648
2603
|
onValueChange: (d) => {
|
|
2649
|
-
|
|
2604
|
+
I(() => x(d));
|
|
2650
2605
|
},
|
|
2651
|
-
value:
|
|
2652
|
-
defaultValue:
|
|
2606
|
+
value: f,
|
|
2607
|
+
defaultValue: f,
|
|
2653
2608
|
children: [
|
|
2654
|
-
/* @__PURE__ */ n.jsx(
|
|
2655
|
-
/* @__PURE__ */ n.jsx(
|
|
2609
|
+
/* @__PURE__ */ n.jsx(Ce, { className: "p-0 border-none flex-row-reverse bg-transparent text-xs gap-0.5 h-auto translate-y-[4px]", children: /* @__PURE__ */ n.jsx(Se, {}) }),
|
|
2610
|
+
/* @__PURE__ */ n.jsx(we, { children: t.map((d) => /* @__PURE__ */ n.jsx(J, { value: d, children: d.replace(/^https?:\/\//, "").replace(/\/$/, "") }, d)) })
|
|
2656
2611
|
]
|
|
2657
2612
|
}
|
|
2658
|
-
) }),
|
|
2613
|
+
) }), rn = u && !Kt, ne = ["POST", "PUT", "PATCH", "DELETE"].includes(
|
|
2659
2614
|
a.toUpperCase()
|
|
2660
2615
|
);
|
|
2661
2616
|
return /* @__PURE__ */ n.jsx(
|
|
2662
|
-
|
|
2617
|
+
Dn,
|
|
2663
2618
|
{
|
|
2664
|
-
register:
|
|
2665
|
-
control:
|
|
2666
|
-
handleSubmit:
|
|
2667
|
-
watch:
|
|
2668
|
-
setValue:
|
|
2669
|
-
...
|
|
2619
|
+
register: We,
|
|
2620
|
+
control: te,
|
|
2621
|
+
handleSubmit: Xe,
|
|
2622
|
+
watch: Ze,
|
|
2623
|
+
setValue: B,
|
|
2624
|
+
...pe,
|
|
2670
2625
|
children: /* @__PURE__ */ n.jsxs(
|
|
2671
2626
|
"form",
|
|
2672
2627
|
{
|
|
2673
|
-
onSubmit:
|
|
2674
|
-
|
|
2675
|
-
((O = v.data) == null ? void 0 : O.length) === 0 || d.identity ? je.mutate(d) : p(!0);
|
|
2628
|
+
onSubmit: Xe((d) => {
|
|
2629
|
+
C.data?.length === 0 || d.identity ? he.mutate(d) : g(!0);
|
|
2676
2630
|
}),
|
|
2677
|
-
ref:
|
|
2631
|
+
ref: Ye,
|
|
2678
2632
|
className: "relative",
|
|
2679
2633
|
children: [
|
|
2680
2634
|
/* @__PURE__ */ n.jsx(
|
|
2681
|
-
|
|
2635
|
+
ir,
|
|
2682
2636
|
{
|
|
2683
|
-
identities:
|
|
2684
|
-
open:
|
|
2685
|
-
onOpenChange:
|
|
2637
|
+
identities: C.data ?? [],
|
|
2638
|
+
open: m,
|
|
2639
|
+
onOpenChange: g,
|
|
2686
2640
|
onSubmit: ({ rememberedIdentity: d, identity: O }) => {
|
|
2687
|
-
d &&
|
|
2641
|
+
d && B("identity", O ?? G), g(!1), he.mutate({ ...T, identity: O });
|
|
2688
2642
|
}
|
|
2689
2643
|
}
|
|
2690
2644
|
),
|
|
2691
2645
|
/* @__PURE__ */ n.jsx(
|
|
2692
|
-
|
|
2646
|
+
mr,
|
|
2693
2647
|
{
|
|
2694
|
-
open:
|
|
2695
|
-
setOpen: (d) =>
|
|
2648
|
+
open: rn,
|
|
2649
|
+
setOpen: (d) => en(!d),
|
|
2696
2650
|
onSignUp: y,
|
|
2697
|
-
onLogin:
|
|
2651
|
+
onLogin: p
|
|
2698
2652
|
}
|
|
2699
2653
|
),
|
|
2700
2654
|
/* @__PURE__ */ n.jsxs("div", { className: "grid grid-cols-2 text-sm h-full", children: [
|
|
@@ -2703,135 +2657,133 @@ const Pr = {
|
|
|
2703
2657
|
/* @__PURE__ */ n.jsxs("div", { className: "flex flex-1 items-center w-full border rounded-md", children: [
|
|
2704
2658
|
/* @__PURE__ */ n.jsx("div", { className: "border-r p-2 bg-muted rounded-l-md self-stretch font-semibold font-mono flex items-center", children: a.toUpperCase() }),
|
|
2705
2659
|
/* @__PURE__ */ n.jsxs("div", { className: "items-center px-2 py-0.5 font-mono text-xs break-all leading-6", children: [
|
|
2706
|
-
|
|
2707
|
-
|
|
2708
|
-
|
|
2709
|
-
|
|
2660
|
+
sn,
|
|
2661
|
+
nn,
|
|
2662
|
+
Ke.length > 0 ? "?" : "",
|
|
2663
|
+
Ke
|
|
2710
2664
|
] })
|
|
2711
2665
|
] }),
|
|
2712
2666
|
/* @__PURE__ */ n.jsx(
|
|
2713
|
-
|
|
2667
|
+
wr,
|
|
2714
2668
|
{
|
|
2715
|
-
identities:
|
|
2716
|
-
formRef:
|
|
2717
|
-
disabled:
|
|
2669
|
+
identities: C.data ?? [],
|
|
2670
|
+
formRef: Ye,
|
|
2671
|
+
disabled: C.isLoading || pe.formState.isSubmitting
|
|
2718
2672
|
}
|
|
2719
2673
|
)
|
|
2720
2674
|
] }),
|
|
2721
|
-
/* @__PURE__ */ n.jsxs(
|
|
2722
|
-
/* @__PURE__ */ n.jsx("div", { className: "flex flex-wrap gap-1 justify-between", children: /* @__PURE__ */ n.jsxs(
|
|
2723
|
-
/* @__PURE__ */ n.jsxs(
|
|
2675
|
+
/* @__PURE__ */ n.jsxs(wt, { defaultValue: "parameters", children: [
|
|
2676
|
+
/* @__PURE__ */ n.jsx("div", { className: "flex flex-wrap gap-1 justify-between", children: /* @__PURE__ */ n.jsxs(Tt, { children: [
|
|
2677
|
+
/* @__PURE__ */ n.jsxs(z, { value: "parameters", children: [
|
|
2724
2678
|
"Parameters",
|
|
2725
|
-
(
|
|
2679
|
+
(T.pathParams.some((d) => d.value !== "") || T.queryParams.some((d) => d.active)) && /* @__PURE__ */ n.jsx("div", { className: "w-2 h-2 rounded-full bg-blue-400 ms-2" })
|
|
2726
2680
|
] }),
|
|
2727
|
-
/* @__PURE__ */ n.jsxs(
|
|
2681
|
+
/* @__PURE__ */ n.jsxs(z, { value: "headers", children: [
|
|
2728
2682
|
"Headers",
|
|
2729
|
-
|
|
2683
|
+
T.headers.filter((d) => d.active).length > 0 && /* @__PURE__ */ n.jsx("div", { className: "w-2 h-2 rounded-full bg-blue-400 ms-2" })
|
|
2730
2684
|
] }),
|
|
2731
|
-
/* @__PURE__ */ n.jsxs(
|
|
2685
|
+
/* @__PURE__ */ n.jsxs(z, { value: "auth", children: [
|
|
2732
2686
|
"Auth",
|
|
2733
|
-
|
|
2687
|
+
T.identity !== G && /* @__PURE__ */ n.jsx("div", { className: "w-2 h-2 rounded-full bg-blue-400 ms-2" })
|
|
2734
2688
|
] }),
|
|
2735
|
-
/* @__PURE__ */ n.jsxs(
|
|
2689
|
+
/* @__PURE__ */ n.jsxs(z, { value: "body", children: [
|
|
2736
2690
|
"Body",
|
|
2737
|
-
|
|
2691
|
+
T.body && /* @__PURE__ */ n.jsx("div", { className: "w-2 h-2 rounded-full bg-blue-400 ms-2" })
|
|
2738
2692
|
] })
|
|
2739
2693
|
] }) }),
|
|
2740
|
-
/* @__PURE__ */ n.jsx(
|
|
2741
|
-
/* @__PURE__ */ n.jsxs(
|
|
2694
|
+
/* @__PURE__ */ n.jsx(M, { value: "headers", children: /* @__PURE__ */ n.jsx(ar, { control: te, headers: r }) }),
|
|
2695
|
+
/* @__PURE__ */ n.jsxs(M, { value: "parameters", children: [
|
|
2742
2696
|
i.length > 0 && /* @__PURE__ */ n.jsxs("div", { className: "flex flex-col gap-4 my-4", children: [
|
|
2743
2697
|
/* @__PURE__ */ n.jsx("span", { className: "font-semibold", children: "Path Parameters" }),
|
|
2744
|
-
/* @__PURE__ */ n.jsx(
|
|
2698
|
+
/* @__PURE__ */ n.jsx(lr, { url: s, control: te })
|
|
2745
2699
|
] }),
|
|
2746
2700
|
/* @__PURE__ */ n.jsxs("div", { className: "flex flex-col gap-4 my-4", children: [
|
|
2747
2701
|
/* @__PURE__ */ n.jsx("span", { className: "font-semibold", children: "Query Parameters" }),
|
|
2748
|
-
/* @__PURE__ */ n.jsx(
|
|
2702
|
+
/* @__PURE__ */ n.jsx(dr, { control: te, queryParams: o })
|
|
2749
2703
|
] })
|
|
2750
2704
|
] }),
|
|
2751
|
-
/* @__PURE__ */ n.jsxs(
|
|
2705
|
+
/* @__PURE__ */ n.jsxs(M, { value: "body", children: [
|
|
2752
2706
|
!["POST", "PUT", "PATCH", "DELETE"].includes(
|
|
2753
2707
|
a.toUpperCase()
|
|
2754
|
-
) && /* @__PURE__ */ n.jsxs(
|
|
2755
|
-
/* @__PURE__ */ n.jsx(
|
|
2756
|
-
/* @__PURE__ */ n.jsx(
|
|
2757
|
-
/* @__PURE__ */ n.jsx(
|
|
2708
|
+
) && /* @__PURE__ */ n.jsxs(Ee, { className: "mb-2", children: [
|
|
2709
|
+
/* @__PURE__ */ n.jsx(nt, { className: "w-4 h-4" }),
|
|
2710
|
+
/* @__PURE__ */ n.jsx(Pe, { children: "Body" }),
|
|
2711
|
+
/* @__PURE__ */ n.jsx($e, { children: "Body is only supported for POST, PUT, PATCH, and DELETE requests" })
|
|
2758
2712
|
] }),
|
|
2759
2713
|
/* @__PURE__ */ n.jsx(
|
|
2760
|
-
|
|
2714
|
+
_t,
|
|
2761
2715
|
{
|
|
2762
|
-
...
|
|
2763
|
-
className:
|
|
2716
|
+
...We("body"),
|
|
2717
|
+
className: v(
|
|
2764
2718
|
"border w-full rounded-lg bg-muted/40 p-2 h-64 font-mono text-[13px]",
|
|
2765
|
-
!
|
|
2719
|
+
!ne && "h-20 bg-muted"
|
|
2766
2720
|
),
|
|
2767
|
-
placeholder:
|
|
2768
|
-
disabled: !
|
|
2721
|
+
placeholder: ne ? void 0 : "This request does not support a body",
|
|
2722
|
+
disabled: !ne
|
|
2769
2723
|
}
|
|
2770
2724
|
),
|
|
2771
|
-
|
|
2725
|
+
ne && /* @__PURE__ */ n.jsxs("div", { className: "flex items-center gap-2 mt-2 justify-between", children: [
|
|
2772
2726
|
/* @__PURE__ */ n.jsxs(
|
|
2773
|
-
|
|
2727
|
+
Ne,
|
|
2774
2728
|
{
|
|
2775
|
-
value:
|
|
2776
|
-
onValueChange: (d) =>
|
|
2729
|
+
value: T.bodyContentType,
|
|
2730
|
+
onValueChange: (d) => B(
|
|
2777
2731
|
"bodyContentType",
|
|
2778
2732
|
d
|
|
2779
2733
|
),
|
|
2780
2734
|
children: [
|
|
2781
|
-
/* @__PURE__ */ n.jsx(
|
|
2782
|
-
/* @__PURE__ */ n.jsx(
|
|
2735
|
+
/* @__PURE__ */ n.jsx(Ce, { className: "w-[100px]", children: /* @__PURE__ */ n.jsx(Se, {}) }),
|
|
2736
|
+
/* @__PURE__ */ n.jsx(we, { children: Object.keys(je).map((d) => /* @__PURE__ */ n.jsx(J, { value: d, children: d }, d)) })
|
|
2783
2737
|
]
|
|
2784
2738
|
}
|
|
2785
2739
|
),
|
|
2786
2740
|
l && l.length > 0 && /* @__PURE__ */ n.jsx(
|
|
2787
|
-
|
|
2741
|
+
tr,
|
|
2788
2742
|
{
|
|
2789
2743
|
examples: l,
|
|
2790
2744
|
onSelect: (d, O) => {
|
|
2791
|
-
|
|
2792
|
-
M(
|
|
2745
|
+
B(
|
|
2793
2746
|
"body",
|
|
2794
2747
|
JSON.stringify(d.value, null, 2)
|
|
2795
2748
|
);
|
|
2796
|
-
const k = (
|
|
2797
|
-
([
|
|
2798
|
-
)
|
|
2799
|
-
k &&
|
|
2749
|
+
const k = qn(je).find(
|
|
2750
|
+
([se, E]) => E === O
|
|
2751
|
+
)?.[0];
|
|
2752
|
+
k && B("bodyContentType", k);
|
|
2800
2753
|
}
|
|
2801
2754
|
}
|
|
2802
2755
|
)
|
|
2803
2756
|
] })
|
|
2804
2757
|
] }),
|
|
2805
|
-
/* @__PURE__ */ n.jsx(
|
|
2806
|
-
|
|
2807
|
-
/* @__PURE__ */ n.jsx(
|
|
2808
|
-
/* @__PURE__ */ n.jsx(
|
|
2809
|
-
/* @__PURE__ */ n.jsx(
|
|
2758
|
+
/* @__PURE__ */ n.jsx(M, { value: "auth", children: /* @__PURE__ */ n.jsxs("div", { className: "flex flex-col gap-4 my-4", children: [
|
|
2759
|
+
C.data?.length === 0 && /* @__PURE__ */ n.jsxs(Ee, { children: [
|
|
2760
|
+
/* @__PURE__ */ n.jsx(nt, { className: "w-4 h-4" }),
|
|
2761
|
+
/* @__PURE__ */ n.jsx(Pe, { children: "Authentication" }),
|
|
2762
|
+
/* @__PURE__ */ n.jsx($e, { children: "No identities found. Please create an identity first." })
|
|
2810
2763
|
] }),
|
|
2811
2764
|
/* @__PURE__ */ n.jsx("div", { className: "flex flex-col items-center gap-2", children: /* @__PURE__ */ n.jsx(
|
|
2812
|
-
|
|
2765
|
+
Qt,
|
|
2813
2766
|
{
|
|
2814
|
-
value:
|
|
2815
|
-
identities:
|
|
2816
|
-
setValue: (d) =>
|
|
2767
|
+
value: T.identity,
|
|
2768
|
+
identities: C.data ?? [],
|
|
2769
|
+
setValue: (d) => B("identity", d)
|
|
2817
2770
|
}
|
|
2818
2771
|
) })
|
|
2819
2772
|
] }) })
|
|
2820
2773
|
] })
|
|
2821
2774
|
] }),
|
|
2822
2775
|
/* @__PURE__ */ n.jsx(
|
|
2823
|
-
|
|
2776
|
+
Sr,
|
|
2824
2777
|
{
|
|
2825
|
-
queryMutation:
|
|
2826
|
-
showPathParamsWarning:
|
|
2778
|
+
queryMutation: he,
|
|
2779
|
+
showPathParamsWarning: T.pathParams.some(
|
|
2827
2780
|
(d) => d.value === ""
|
|
2828
2781
|
),
|
|
2829
|
-
showLongRunningWarning:
|
|
2782
|
+
showLongRunningWarning: tn,
|
|
2830
2783
|
onCancel: () => {
|
|
2831
|
-
|
|
2832
|
-
(d = _.current) == null || d.abort(
|
|
2784
|
+
ee.current?.abort(
|
|
2833
2785
|
"Request cancelled by the user"
|
|
2834
|
-
),
|
|
2786
|
+
), K(!1);
|
|
2835
2787
|
}
|
|
2836
2788
|
}
|
|
2837
2789
|
)
|
|
@@ -2841,7 +2793,7 @@ const Pr = {
|
|
|
2841
2793
|
)
|
|
2842
2794
|
}
|
|
2843
2795
|
);
|
|
2844
|
-
},
|
|
2796
|
+
}, Ar = ({
|
|
2845
2797
|
className: e,
|
|
2846
2798
|
size: t = 16
|
|
2847
2799
|
}) => /* @__PURE__ */ n.jsx(
|
|
@@ -2862,33 +2814,33 @@ const Pr = {
|
|
|
2862
2814
|
}
|
|
2863
2815
|
)
|
|
2864
2816
|
}
|
|
2865
|
-
),
|
|
2866
|
-
const [t, s] =
|
|
2867
|
-
return /* @__PURE__ */ n.jsxs(
|
|
2868
|
-
/* @__PURE__ */ n.jsx(
|
|
2817
|
+
), Or = (e) => {
|
|
2818
|
+
const [t, s] = P(!1);
|
|
2819
|
+
return /* @__PURE__ */ n.jsxs(Le, { onOpenChange: (a) => s(a), children: [
|
|
2820
|
+
/* @__PURE__ */ n.jsx(Rn, { asChild: !0, children: e.children ?? /* @__PURE__ */ n.jsxs(
|
|
2869
2821
|
"button",
|
|
2870
2822
|
{
|
|
2871
2823
|
type: "button",
|
|
2872
2824
|
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",
|
|
2873
2825
|
children: [
|
|
2874
2826
|
"Test",
|
|
2875
|
-
/* @__PURE__ */ n.jsx(
|
|
2827
|
+
/* @__PURE__ */ n.jsx(Ar, { size: 14 })
|
|
2876
2828
|
]
|
|
2877
2829
|
}
|
|
2878
2830
|
) }),
|
|
2879
2831
|
/* @__PURE__ */ n.jsxs(
|
|
2880
|
-
|
|
2832
|
+
Re,
|
|
2881
2833
|
{
|
|
2882
2834
|
className: "max-w-screen-xl w-full h-5/6 overflow-hidden p-0",
|
|
2883
2835
|
"aria-describedby": void 0,
|
|
2884
2836
|
children: [
|
|
2885
|
-
/* @__PURE__ */ n.jsx(
|
|
2886
|
-
t && /* @__PURE__ */ n.jsx(
|
|
2837
|
+
/* @__PURE__ */ n.jsx(Ln, { children: /* @__PURE__ */ n.jsx(Ie, { children: "Playground" }) }),
|
|
2838
|
+
t && /* @__PURE__ */ n.jsx(Tr, { ...e })
|
|
2887
2839
|
]
|
|
2888
2840
|
}
|
|
2889
2841
|
)
|
|
2890
2842
|
] });
|
|
2891
|
-
},
|
|
2843
|
+
}, Er = {
|
|
2892
2844
|
get: "green",
|
|
2893
2845
|
post: "blue",
|
|
2894
2846
|
put: "yellow",
|
|
@@ -2896,7 +2848,7 @@ const Pr = {
|
|
|
2896
2848
|
patch: "purple",
|
|
2897
2849
|
options: "gray",
|
|
2898
2850
|
head: "gray"
|
|
2899
|
-
},
|
|
2851
|
+
}, gt = ({
|
|
2900
2852
|
label: e,
|
|
2901
2853
|
path: t,
|
|
2902
2854
|
operations: s,
|
|
@@ -2918,21 +2870,21 @@ const Pr = {
|
|
|
2918
2870
|
href: `${t}#${o.slug}`,
|
|
2919
2871
|
badge: {
|
|
2920
2872
|
label: o.method,
|
|
2921
|
-
color:
|
|
2873
|
+
color: Er[o.method.toLowerCase()],
|
|
2922
2874
|
invert: !0
|
|
2923
2875
|
}
|
|
2924
2876
|
}))
|
|
2925
|
-
}),
|
|
2877
|
+
}), Jt = jt(
|
|
2926
2878
|
void 0
|
|
2927
|
-
),
|
|
2928
|
-
const e =
|
|
2879
|
+
), pa = Jt.Provider, Pr = () => {
|
|
2880
|
+
const e = $n(Jt);
|
|
2929
2881
|
if (!e)
|
|
2930
2882
|
throw new Error("useOasConfig must be used within a OasConfigProvider");
|
|
2931
2883
|
return e.config;
|
|
2932
|
-
},
|
|
2884
|
+
}, yt = (e) => ({
|
|
2933
2885
|
path: e.routePath,
|
|
2934
2886
|
async lazy() {
|
|
2935
|
-
const { OasProvider: t } = await import("./OasProvider-
|
|
2887
|
+
const { OasProvider: t } = await import("./OasProvider-DalHQixM.js");
|
|
2936
2888
|
return {
|
|
2937
2889
|
element: /* @__PURE__ */ n.jsx(
|
|
2938
2890
|
t,
|
|
@@ -2946,39 +2898,39 @@ const Pr = {
|
|
|
2946
2898
|
};
|
|
2947
2899
|
},
|
|
2948
2900
|
children: e.routes
|
|
2949
|
-
}),
|
|
2901
|
+
}), Wt = ({
|
|
2950
2902
|
path: e,
|
|
2951
2903
|
tag: t,
|
|
2952
2904
|
untagged: s
|
|
2953
2905
|
}) => ({
|
|
2954
2906
|
path: e,
|
|
2955
2907
|
async lazy() {
|
|
2956
|
-
const { OperationList: a } = await import("./OperationList-
|
|
2908
|
+
const { OperationList: a } = await import("./OperationList-BB09ENaq.js");
|
|
2957
2909
|
return { element: /* @__PURE__ */ n.jsx(a, { tag: t, untagged: s }) };
|
|
2958
2910
|
}
|
|
2959
|
-
}),
|
|
2911
|
+
}), $r = ({
|
|
2960
2912
|
render: e,
|
|
2961
2913
|
path: t
|
|
2962
2914
|
}) => {
|
|
2963
|
-
const { type: s, input: a } =
|
|
2915
|
+
const { type: s, input: a } = Pr(), { tag: r } = gn(), o = yn(), i = Is(Yt, { type: s, input: a }), {
|
|
2964
2916
|
data: { schema: c }
|
|
2965
|
-
} =
|
|
2966
|
-
return !r &&
|
|
2967
|
-
|
|
2917
|
+
} = Sn(i), l = c.tags.at(0);
|
|
2918
|
+
return !r && l?.slug ? /* @__PURE__ */ n.jsx(
|
|
2919
|
+
vn,
|
|
2968
2920
|
{
|
|
2969
2921
|
to: {
|
|
2970
|
-
pathname:
|
|
2922
|
+
pathname: bn(t, { tag: l.slug }),
|
|
2971
2923
|
search: o.search
|
|
2972
2924
|
}
|
|
2973
2925
|
}
|
|
2974
2926
|
) : r && c.tags.some((u) => u.slug === r) ? e(r) : null;
|
|
2975
|
-
},
|
|
2927
|
+
}, Lr = ({ path: e }) => ({
|
|
2976
2928
|
path: e,
|
|
2977
2929
|
async lazy() {
|
|
2978
|
-
const { OperationList: t } = await import("./OperationList-
|
|
2930
|
+
const { OperationList: t } = await import("./OperationList-BB09ENaq.js");
|
|
2979
2931
|
return {
|
|
2980
2932
|
element: /* @__PURE__ */ n.jsx(
|
|
2981
|
-
|
|
2933
|
+
$r,
|
|
2982
2934
|
{
|
|
2983
2935
|
path: e,
|
|
2984
2936
|
render: (s) => /* @__PURE__ */ n.jsx(t, { tag: s })
|
|
@@ -2986,35 +2938,35 @@ const Pr = {
|
|
|
2986
2938
|
)
|
|
2987
2939
|
};
|
|
2988
2940
|
}
|
|
2989
|
-
}),
|
|
2941
|
+
}), Xt = (e) => [
|
|
2990
2942
|
// Category without tagged operations
|
|
2991
|
-
|
|
2992
|
-
path:
|
|
2943
|
+
Wt({
|
|
2944
|
+
path: L(e, Qe),
|
|
2993
2945
|
untagged: !0
|
|
2994
2946
|
}),
|
|
2995
2947
|
// Schema list route
|
|
2996
2948
|
{
|
|
2997
|
-
path:
|
|
2949
|
+
path: L(e, "~schemas"),
|
|
2998
2950
|
lazy: async () => {
|
|
2999
|
-
const { SchemaList: t } = await import("./SchemaList-
|
|
2951
|
+
const { SchemaList: t } = await import("./SchemaList-BH9bgMRw.js");
|
|
3000
2952
|
return { element: /* @__PURE__ */ n.jsx(t, {}) };
|
|
3001
2953
|
}
|
|
3002
2954
|
}
|
|
3003
|
-
],
|
|
3004
|
-
const s =
|
|
2955
|
+
], Rr = (e, t) => {
|
|
2956
|
+
const s = L(e, t.at(0) ?? Qe);
|
|
3005
2957
|
return [
|
|
3006
2958
|
// Redirect to first tag on the index route
|
|
3007
|
-
{ index: !0, loader: () =>
|
|
2959
|
+
{ index: !0, loader: () => xn(s) },
|
|
3008
2960
|
// Create routes for each tag
|
|
3009
2961
|
...t.map(
|
|
3010
|
-
(a) =>
|
|
3011
|
-
path:
|
|
2962
|
+
(a) => Wt({
|
|
2963
|
+
path: L(e, a),
|
|
3012
2964
|
tag: a
|
|
3013
2965
|
})
|
|
3014
2966
|
),
|
|
3015
|
-
...
|
|
2967
|
+
...Xt(e)
|
|
3016
2968
|
];
|
|
3017
|
-
},
|
|
2969
|
+
}, Zt = (e) => e.type === "file" ? Object.keys(e.input) : [], Ir = ({
|
|
3018
2970
|
basePath: e,
|
|
3019
2971
|
config: t,
|
|
3020
2972
|
client: s
|
|
@@ -3022,30 +2974,30 @@ const Pr = {
|
|
|
3022
2974
|
const a = t.tagPages;
|
|
3023
2975
|
if (!a)
|
|
3024
2976
|
return [
|
|
3025
|
-
|
|
2977
|
+
yt({
|
|
3026
2978
|
basePath: e,
|
|
3027
2979
|
routePath: e,
|
|
3028
2980
|
routes: [
|
|
3029
|
-
|
|
3030
|
-
...
|
|
2981
|
+
Lr({ path: e + "/:tag?" }),
|
|
2982
|
+
...Xt(e)
|
|
3031
2983
|
],
|
|
3032
2984
|
client: s,
|
|
3033
2985
|
config: t
|
|
3034
2986
|
})
|
|
3035
2987
|
];
|
|
3036
|
-
const r =
|
|
2988
|
+
const r = Zt(t);
|
|
3037
2989
|
return (r.length > 1 ? [void 0, ...r] : [void 0]).map((i) => {
|
|
3038
|
-
const c =
|
|
3039
|
-
return
|
|
2990
|
+
const c = L(e, i);
|
|
2991
|
+
return yt({
|
|
3040
2992
|
basePath: e,
|
|
3041
2993
|
version: i,
|
|
3042
2994
|
routePath: c,
|
|
3043
|
-
routes:
|
|
2995
|
+
routes: Rr(c, a),
|
|
3044
2996
|
client: s,
|
|
3045
2997
|
config: t
|
|
3046
2998
|
});
|
|
3047
2999
|
});
|
|
3048
|
-
},
|
|
3000
|
+
}, Yt = Ms(`
|
|
3049
3001
|
query GetSidebarOperations($input: JSON!, $type: SchemaType!) {
|
|
3050
3002
|
schema(input: $input, type: $type) {
|
|
3051
3003
|
tags {
|
|
@@ -3067,8 +3019,8 @@ const Pr = {
|
|
|
3067
3019
|
}
|
|
3068
3020
|
}
|
|
3069
3021
|
}
|
|
3070
|
-
`),
|
|
3071
|
-
const t =
|
|
3022
|
+
`), Qe = "~endpoints", ha = (e) => {
|
|
3023
|
+
const t = L(e.navigationId ?? "/reference"), s = new ts(e);
|
|
3072
3024
|
return {
|
|
3073
3025
|
getHead: () => {
|
|
3074
3026
|
if (e.type === "url" && !e.skipPreload)
|
|
@@ -3093,116 +3045,114 @@ const Pr = {
|
|
|
3093
3045
|
children: c,
|
|
3094
3046
|
...l
|
|
3095
3047
|
}) => {
|
|
3096
|
-
const u =
|
|
3048
|
+
const u = wn();
|
|
3097
3049
|
if (!r)
|
|
3098
3050
|
throw new Error("Server is required");
|
|
3099
3051
|
return a && !u.isAuthenticated ? /* @__PURE__ */ n.jsxs(
|
|
3100
|
-
|
|
3052
|
+
X,
|
|
3101
3053
|
{
|
|
3102
3054
|
className: "gap-2 items-center",
|
|
3103
3055
|
variant: "outline",
|
|
3104
3056
|
onClick: u.login,
|
|
3105
3057
|
children: [
|
|
3106
3058
|
"Login to open in Playground ",
|
|
3107
|
-
/* @__PURE__ */ n.jsx(
|
|
3059
|
+
/* @__PURE__ */ n.jsx(hn, { size: 16 })
|
|
3108
3060
|
]
|
|
3109
3061
|
}
|
|
3110
3062
|
) : /* @__PURE__ */ n.jsx(
|
|
3111
|
-
|
|
3063
|
+
Or,
|
|
3112
3064
|
{
|
|
3113
3065
|
url: i ?? "/",
|
|
3114
3066
|
method: o ?? "get",
|
|
3115
3067
|
server: r,
|
|
3116
3068
|
...l,
|
|
3117
|
-
children: /* @__PURE__ */ n.jsx(
|
|
3069
|
+
children: /* @__PURE__ */ n.jsx(X, { className: "gap-2 items-center", variant: "outline", children: c ?? /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
3118
3070
|
"Open in Playground ",
|
|
3119
|
-
/* @__PURE__ */ n.jsx(
|
|
3071
|
+
/* @__PURE__ */ n.jsx(fn, { size: 16 })
|
|
3120
3072
|
] }) })
|
|
3121
3073
|
}
|
|
3122
3074
|
);
|
|
3123
3075
|
}
|
|
3124
3076
|
}),
|
|
3125
3077
|
getSidebar: async (a, r) => {
|
|
3126
|
-
|
|
3127
|
-
if (!xt({ path: t, end: !1 }, a))
|
|
3078
|
+
if (!st({ path: t, end: !1 }, a))
|
|
3128
3079
|
return [];
|
|
3129
|
-
const o =
|
|
3080
|
+
const o = st(
|
|
3130
3081
|
{ path: `${t}/:version?/:tag`, end: !0 },
|
|
3131
3082
|
a
|
|
3132
3083
|
);
|
|
3133
3084
|
try {
|
|
3134
|
-
const
|
|
3135
|
-
type:
|
|
3136
|
-
input:
|
|
3137
|
-
}),
|
|
3138
|
-
|
|
3139
|
-
|
|
3140
|
-
|
|
3141
|
-
|
|
3142
|
-
|
|
3143
|
-
|
|
3144
|
-
|
|
3145
|
-
|
|
3146
|
-
collapsible: ve
|
|
3085
|
+
const i = o?.params.version, c = i ?? Zt(e).at(0), { type: l } = e, u = l === "file" ? e.input[c] : e.input, p = Ft(s, Yt, {
|
|
3086
|
+
type: l,
|
|
3087
|
+
input: u
|
|
3088
|
+
}), y = await r.queryClient.ensureQueryData(p), f = y.schema.tags.flatMap((m) => {
|
|
3089
|
+
if (!m.name || m.operations.length === 0) return [];
|
|
3090
|
+
const g = L(t, i, m.slug), C = m.extensions?.["x-zudoku-collapsed"] ?? !e.options?.expandAllTags, j = m.extensions?.["x-zudoku-collapsible"] ?? !0;
|
|
3091
|
+
return gt({
|
|
3092
|
+
label: m.name,
|
|
3093
|
+
path: g,
|
|
3094
|
+
operations: m.operations,
|
|
3095
|
+
collapsed: C,
|
|
3096
|
+
collapsible: j
|
|
3147
3097
|
});
|
|
3148
|
-
}),
|
|
3149
|
-
(
|
|
3150
|
-
)
|
|
3151
|
-
return
|
|
3152
|
-
|
|
3098
|
+
}), x = y.schema.tags.find(
|
|
3099
|
+
(m) => !m.name
|
|
3100
|
+
)?.operations;
|
|
3101
|
+
return x && f.push(
|
|
3102
|
+
gt({
|
|
3153
3103
|
label: "Other endpoints",
|
|
3154
|
-
path:
|
|
3155
|
-
operations:
|
|
3156
|
-
collapsed: !
|
|
3104
|
+
path: L(t, i, Qe),
|
|
3105
|
+
operations: x,
|
|
3106
|
+
collapsed: !e.options?.expandAllTags
|
|
3157
3107
|
})
|
|
3158
|
-
),
|
|
3108
|
+
), y.schema.components?.schemas?.length && f.push({
|
|
3159
3109
|
type: "link",
|
|
3160
3110
|
label: "Schemas",
|
|
3161
|
-
href:
|
|
3162
|
-
}),
|
|
3111
|
+
href: L(t, i, "~schemas")
|
|
3112
|
+
}), f;
|
|
3163
3113
|
} catch {
|
|
3164
3114
|
return [];
|
|
3165
3115
|
}
|
|
3166
3116
|
},
|
|
3167
|
-
getRoutes: () =>
|
|
3117
|
+
getRoutes: () => Ir({ basePath: t, config: e, client: s })
|
|
3168
3118
|
};
|
|
3169
3119
|
};
|
|
3170
3120
|
export {
|
|
3171
|
-
|
|
3172
|
-
|
|
3173
|
-
|
|
3174
|
-
|
|
3175
|
-
|
|
3176
|
-
|
|
3177
|
-
|
|
3178
|
-
|
|
3121
|
+
ha as A,
|
|
3122
|
+
mt as C,
|
|
3123
|
+
ma as G,
|
|
3124
|
+
ps as L,
|
|
3125
|
+
pa as O,
|
|
3126
|
+
Or as P,
|
|
3127
|
+
is as Q,
|
|
3128
|
+
qt as S,
|
|
3179
3129
|
h as T,
|
|
3180
|
-
|
|
3181
|
-
|
|
3182
|
-
|
|
3183
|
-
|
|
3184
|
-
|
|
3185
|
-
|
|
3186
|
-
|
|
3187
|
-
|
|
3188
|
-
|
|
3189
|
-
|
|
3190
|
-
|
|
3191
|
-
|
|
3192
|
-
|
|
3193
|
-
|
|
3194
|
-
|
|
3195
|
-
|
|
3196
|
-
|
|
3197
|
-
|
|
3198
|
-
|
|
3199
|
-
|
|
3200
|
-
|
|
3201
|
-
|
|
3202
|
-
|
|
3203
|
-
|
|
3204
|
-
|
|
3205
|
-
|
|
3206
|
-
|
|
3130
|
+
Qe as U,
|
|
3131
|
+
Is as a,
|
|
3132
|
+
pt as b,
|
|
3133
|
+
ht as c,
|
|
3134
|
+
Ms as d,
|
|
3135
|
+
Js as e,
|
|
3136
|
+
Bt as f,
|
|
3137
|
+
Zt as g,
|
|
3138
|
+
Us as h,
|
|
3139
|
+
Ls as i,
|
|
3140
|
+
ct as j,
|
|
3141
|
+
da as k,
|
|
3142
|
+
hs as l,
|
|
3143
|
+
hr as m,
|
|
3144
|
+
Fe as n,
|
|
3145
|
+
Dt as o,
|
|
3146
|
+
ns as p,
|
|
3147
|
+
$s as q,
|
|
3148
|
+
xe as r,
|
|
3149
|
+
A as s,
|
|
3150
|
+
ss as t,
|
|
3151
|
+
Pr as u,
|
|
3152
|
+
ua as v,
|
|
3153
|
+
ms as w,
|
|
3154
|
+
cs as x,
|
|
3155
|
+
Lt as y,
|
|
3156
|
+
Yt as z
|
|
3207
3157
|
};
|
|
3208
|
-
//# sourceMappingURL=index-
|
|
3158
|
+
//# sourceMappingURL=index-sS7O9W-R.js.map
|