zudoku 0.62.0 → 0.63.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/app/entry.server.js +14 -1
- package/dist/app/entry.server.js.map +1 -1
- package/dist/cli/cli.d.ts +9 -0
- package/dist/cli/cli.js +4 -10
- package/dist/cli/cli.js.map +1 -1
- package/dist/cli/common/version-check.d.ts +2 -0
- package/dist/cli/common/version-check.js +58 -0
- package/dist/cli/common/version-check.js.map +1 -0
- package/dist/config/config.d.ts +3 -0
- package/dist/config/validators/InputNavigationSchema.d.ts +64 -4
- package/dist/config/validators/icon-types.d.ts +1 -1
- package/dist/config/validators/icon-types.js +15 -0
- package/dist/config/validators/icon-types.js.map +1 -1
- package/dist/config/validators/validate.d.ts +29 -9
- package/dist/config/validators/validate.js +22 -0
- package/dist/config/validators/validate.js.map +1 -1
- package/dist/flat-config.d.ts +21 -2
- package/dist/lib/assets/language-icons/c.d.ts +3 -0
- package/dist/lib/assets/language-icons/c.js +4 -0
- package/dist/lib/assets/language-icons/c.js.map +1 -0
- package/dist/lib/assets/language-icons/commonlisp.d.ts +3 -0
- package/dist/lib/assets/language-icons/commonlisp.js +4 -0
- package/dist/lib/assets/language-icons/commonlisp.js.map +1 -0
- package/dist/lib/assets/language-icons/cpp.d.ts +3 -0
- package/dist/lib/assets/language-icons/cpp.js +4 -0
- package/dist/lib/assets/language-icons/cpp.js.map +1 -0
- package/dist/lib/assets/language-icons/dart.d.ts +3 -0
- package/dist/lib/assets/language-icons/dart.js +4 -0
- package/dist/lib/assets/language-icons/dart.js.map +1 -0
- package/dist/lib/assets/language-icons/elixir.d.ts +3 -0
- package/dist/lib/assets/language-icons/elixir.js +4 -0
- package/dist/lib/assets/language-icons/elixir.js.map +1 -0
- package/dist/lib/assets/language-icons/ocaml.d.ts +3 -0
- package/dist/lib/assets/language-icons/ocaml.js +4 -0
- package/dist/lib/assets/language-icons/ocaml.js.map +1 -0
- package/dist/lib/assets/language-icons/powershell.d.ts +3 -0
- package/dist/lib/assets/language-icons/powershell.js +4 -0
- package/dist/lib/assets/language-icons/powershell.js.map +1 -0
- package/dist/lib/assets/language-icons/scala.d.ts +3 -0
- package/dist/lib/assets/language-icons/scala.js +4 -0
- package/dist/lib/assets/language-icons/scala.js.map +1 -0
- package/dist/lib/assets/language-icons/zig.d.ts +3 -0
- package/dist/lib/assets/language-icons/zig.js +4 -0
- package/dist/lib/assets/language-icons/zig.js.map +1 -0
- package/dist/lib/authentication/authentication.d.ts +3 -0
- package/dist/lib/authentication/providers/auth0.js +7 -3
- package/dist/lib/authentication/providers/auth0.js.map +1 -1
- package/dist/lib/components/Heading.js +1 -5
- package/dist/lib/components/Heading.js.map +1 -1
- package/dist/lib/components/LanguageIcon.js +45 -0
- package/dist/lib/components/LanguageIcon.js.map +1 -1
- package/dist/lib/components/Main.js +1 -1
- package/dist/lib/components/Main.js.map +1 -1
- package/dist/lib/components/cache.d.ts +3 -1
- package/dist/lib/components/cache.js +3 -5
- package/dist/lib/components/cache.js.map +1 -1
- package/dist/lib/components/context/ZudokuContext.js +10 -2
- package/dist/lib/components/context/ZudokuContext.js.map +1 -1
- package/dist/lib/components/index.d.ts +1 -2
- package/dist/lib/core/ZudokuContext.d.ts +1 -0
- package/dist/lib/core/ZudokuContext.js +2 -0
- package/dist/lib/core/ZudokuContext.js.map +1 -1
- package/dist/lib/hooks/index.d.ts +1 -1
- package/dist/lib/oas/graphql/index.js +17 -0
- package/dist/lib/oas/graphql/index.js.map +1 -1
- package/dist/lib/plugins/markdown/MdxPage.d.ts +2 -1
- package/dist/lib/plugins/markdown/MdxPage.js +28 -4
- package/dist/lib/plugins/markdown/MdxPage.js.map +1 -1
- package/dist/lib/plugins/markdown/assets/ChatGPTLogo.d.ts +2 -0
- package/dist/lib/plugins/markdown/assets/ChatGPTLogo.js +3 -0
- package/dist/lib/plugins/markdown/assets/ChatGPTLogo.js.map +1 -0
- package/dist/lib/plugins/markdown/assets/ClaudeLogo.d.ts +2 -0
- package/dist/lib/plugins/markdown/assets/ClaudeLogo.js +3 -0
- package/dist/lib/plugins/markdown/assets/ClaudeLogo.js.map +1 -0
- package/dist/lib/plugins/markdown/index.d.ts +3 -1
- package/dist/lib/plugins/markdown/index.js +1 -1
- package/dist/lib/plugins/markdown/index.js.map +1 -1
- package/dist/lib/plugins/openapi/OperationList.js +7 -2
- package/dist/lib/plugins/openapi/OperationList.js.map +1 -1
- package/dist/lib/plugins/openapi/OperationListItem.d.ts +2 -2
- package/dist/lib/plugins/openapi/OperationListItem.js +6 -3
- package/dist/lib/plugins/openapi/OperationListItem.js.map +1 -1
- package/dist/lib/plugins/openapi/Sidecar.d.ts +2 -1
- package/dist/lib/plugins/openapi/Sidecar.js +6 -9
- package/dist/lib/plugins/openapi/Sidecar.js.map +1 -1
- package/dist/lib/plugins/openapi/graphql/fragment-masking.js.map +1 -1
- package/dist/lib/plugins/openapi/graphql/gql.d.ts +1 -1
- package/dist/lib/plugins/openapi/graphql/gql.js +2 -1
- package/dist/lib/plugins/openapi/graphql/gql.js.map +1 -1
- package/dist/lib/plugins/openapi/graphql/graphql.d.ts +8 -2
- package/dist/lib/plugins/openapi/graphql/graphql.js +8 -0
- package/dist/lib/plugins/openapi/graphql/graphql.js.map +1 -1
- package/dist/lib/plugins/openapi/index.js +5 -10
- package/dist/lib/plugins/openapi/index.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/Playground.js +1 -1
- package/dist/lib/plugins/openapi/playground/Playground.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js +1 -1
- package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js.map +1 -1
- package/dist/lib/shiki.js +9 -0
- package/dist/lib/shiki.js.map +1 -1
- package/dist/lib/ui/Carousel.js.map +1 -1
- package/dist/lib/ui/Dialog.d.ts +12 -18
- package/dist/lib/ui/Dialog.js +30 -17
- package/dist/lib/ui/Dialog.js.map +1 -1
- package/dist/lib/util/pastellize.js +4 -4
- package/dist/lib/util/pastellize.js.map +1 -1
- package/dist/vite/api/SchemaManager.js.map +1 -1
- package/dist/vite/llms.d.ts +12 -0
- package/dist/vite/llms.js +66 -0
- package/dist/vite/llms.js.map +1 -0
- package/dist/vite/plugin-docs.d.ts +9 -0
- package/dist/vite/plugin-docs.js +68 -49
- package/dist/vite/plugin-docs.js.map +1 -1
- package/dist/vite/plugin-markdown-export.d.ts +21 -0
- package/dist/vite/plugin-markdown-export.js +141 -0
- package/dist/vite/plugin-markdown-export.js.map +1 -0
- package/dist/vite/plugin-navigation.js +4 -0
- package/dist/vite/plugin-navigation.js.map +1 -1
- package/dist/vite/plugin.js +2 -0
- package/dist/vite/plugin.js.map +1 -1
- package/dist/vite/prerender/prerender.js +30 -0
- package/dist/vite/prerender/prerender.js.map +1 -1
- package/lib/{Button-DTDRi4CT.js → Button-DmS4u8Lj.js} +2 -2
- package/lib/{Button-DTDRi4CT.js.map → Button-DmS4u8Lj.js.map} +1 -1
- package/lib/{Card-hTy9PAnh.js → Card-KFniaZn5.js} +2 -2
- package/lib/{Card-hTy9PAnh.js.map → Card-KFniaZn5.js.map} +1 -1
- package/lib/{CategoryHeading-BGCNu3VK.js → CategoryHeading-DhmodDcq.js} +2 -2
- package/lib/{CategoryHeading-BGCNu3VK.js.map → CategoryHeading-DhmodDcq.js.map} +1 -1
- package/lib/CodeBlock-CanTUJLl.js +221 -0
- package/lib/CodeBlock-CanTUJLl.js.map +1 -0
- package/lib/{Command-TEBTONf1.js → Command-CUcrW3qs.js} +3 -3
- package/lib/{Command-TEBTONf1.js.map → Command-CUcrW3qs.js.map} +1 -1
- package/lib/Dialog-BQciPiHN.js +144 -0
- package/lib/Dialog-BQciPiHN.js.map +1 -0
- package/lib/{Drawer-DM9wJUC6.js → Drawer-Ci7XwhqT.js} +2 -2
- package/lib/Drawer-Ci7XwhqT.js.map +1 -0
- package/lib/DropdownMenu-BZ2NKQ3K.js +126 -0
- package/lib/DropdownMenu-BZ2NKQ3K.js.map +1 -0
- package/lib/{ErrorAlert-xpVkFS_n.js → ErrorAlert-VBJ8aHH7.js} +100 -103
- package/lib/ErrorAlert-VBJ8aHH7.js.map +1 -0
- package/lib/MdxPage-1xaNI6q_.js +240 -0
- package/lib/MdxPage-1xaNI6q_.js.map +1 -0
- package/lib/{OAuthErrorPage-DCjFngGS.js → OAuthErrorPage-Du_4sFER.js} +7 -7
- package/lib/{OAuthErrorPage-DCjFngGS.js.map → OAuthErrorPage-Du_4sFER.js.map} +1 -1
- package/lib/{OasProvider-B6Co-6Vj.js → OasProvider-0xiB5cKH.js} +3 -3
- package/lib/{OasProvider-B6Co-6Vj.js.map → OasProvider-0xiB5cKH.js.map} +1 -1
- package/lib/{OperationList-uu04Ezta.js → OperationList-BzWKTkNq.js} +1328 -1319
- package/lib/OperationList-BzWKTkNq.js.map +1 -0
- package/lib/{Pagination-Cdi_qiXc.js → Pagination-DOcPyfy_.js} +3 -3
- package/lib/{Pagination-Cdi_qiXc.js.map → Pagination-DOcPyfy_.js.map} +1 -1
- package/lib/{RouteGuard-dji1UEYe.js → RouteGuard-Bg0Lu0OU.js} +5 -5
- package/lib/{RouteGuard-dji1UEYe.js.map → RouteGuard-Bg0Lu0OU.js.map} +1 -1
- package/lib/{RouterError-D1I15Qyy.js → RouterError-fm21cqlj.js} +4 -4
- package/lib/{RouterError-D1I15Qyy.js.map → RouterError-fm21cqlj.js.map} +1 -1
- package/lib/{SchemaList-BExl5RED.js → SchemaList-Dea2Skqv.js} +10 -10
- package/lib/{SchemaList-BExl5RED.js.map → SchemaList-Dea2Skqv.js.map} +1 -1
- package/lib/{SchemaView-BYH_AirG.js → SchemaView-H9glU5P7.js} +5 -5
- package/lib/{SchemaView-BYH_AirG.js.map → SchemaView-H9glU5P7.js.map} +1 -1
- package/lib/{Select-CegS9OKH.js → Select-CPoGZU_V.js} +4 -4
- package/lib/{Select-CegS9OKH.js.map → Select-CPoGZU_V.js.map} +1 -1
- package/lib/{SignUp-C-YP_Rxi.js → SignUp-DUZ4yUmQ.js} +9 -9
- package/lib/{SignUp-C-YP_Rxi.js.map → SignUp-DUZ4yUmQ.js.map} +1 -1
- package/lib/{Spinner-Cf6E803I.js → Spinner-CI6bRyZw.js} +2 -2
- package/lib/{Spinner-Cf6E803I.js.map → Spinner-CI6bRyZw.js.map} +1 -1
- package/lib/{SyntaxHighlight-CPF64UHi.js → SyntaxHighlight-B0laqAqK.js} +6 -6
- package/lib/{SyntaxHighlight-CPF64UHi.js.map → SyntaxHighlight-B0laqAqK.js.map} +1 -1
- package/lib/{Toc-Cf5UojVb.js → Toc-KzXCRqrX.js} +3 -3
- package/lib/{Toc-Cf5UojVb.js.map → Toc-KzXCRqrX.js.map} +1 -1
- package/lib/ZudokuContext-BXTZApgy.js +1506 -0
- package/lib/ZudokuContext-BXTZApgy.js.map +1 -0
- package/lib/c-B-NUhs61.js +46 -0
- package/lib/c-B-NUhs61.js.map +1 -0
- package/lib/chunk-PVWAREVJ-BO6B-RAk.js.map +1 -1
- package/lib/{circular-06Yrxzsw.js → circular-OGtD_zFg.js} +30 -30
- package/lib/{circular-06Yrxzsw.js.map → circular-OGtD_zFg.js.map} +1 -1
- package/lib/commonlisp-De080z23.js +28 -0
- package/lib/commonlisp-De080z23.js.map +1 -0
- package/lib/cpp-79Paht7T.js +53 -0
- package/lib/cpp-79Paht7T.js.map +1 -0
- package/lib/{createServer-BA0aitmR.js → createServer-DyUc5BPr.js} +1120 -1083
- package/lib/createServer-DyUc5BPr.js.map +1 -0
- package/lib/{csharp-rrJEDRrV.js → csharp-D8MIL50B.js} +2 -2
- package/lib/{csharp-rrJEDRrV.js.map → csharp-D8MIL50B.js.map} +1 -1
- package/lib/{css-Dpk9bCql.js → css-Bt6hr1td.js} +2 -2
- package/lib/{css-Dpk9bCql.js.map → css-Bt6hr1td.js.map} +1 -1
- package/lib/dart-B0vy1jWB.js +60 -0
- package/lib/dart-B0vy1jWB.js.map +1 -0
- package/lib/elixir-Ds8r0sF8.js +25 -0
- package/lib/elixir-Ds8r0sF8.js.map +1 -0
- package/lib/{errors-ouIp07AW.js → errors-7_i0Oyw4.js} +3 -3
- package/lib/{errors-ouIp07AW.js.map → errors-7_i0Oyw4.js.map} +1 -1
- package/lib/{go-D8SJIQ0Z.js → go-D2VsmIOS.js} +2 -2
- package/lib/{go-D8SJIQ0Z.js.map → go-D2VsmIOS.js.map} +1 -1
- package/lib/{graphql-aeVKJNa2.js → graphql-BtA6M4m5.js} +2 -2
- package/lib/{graphql-aeVKJNa2.js.map → graphql-BtA6M4m5.js.map} +1 -1
- package/lib/hook-CAebs2rv.js +31 -0
- package/lib/hook-CAebs2rv.js.map +1 -0
- package/lib/{html-D_7om-nA.js → html-MGnI2uzP.js} +2 -2
- package/lib/{html-D_7om-nA.js.map → html-MGnI2uzP.js.map} +1 -1
- package/lib/{index-DhL3LhWV.js → index-C5L4favO.js} +166 -50
- package/lib/index-C5L4favO.js.map +1 -0
- package/lib/{index-CVfG8Pb4.js → index-CLJGtw_S.js} +157 -156
- package/lib/index-CLJGtw_S.js.map +1 -0
- package/lib/index-CrcNWbel.js.map +1 -1
- package/lib/{index-BRQDtecD.js → index-PdgTSEkk.js} +779 -896
- package/lib/index-PdgTSEkk.js.map +1 -0
- package/lib/index.esm-BYObtETB.js +1294 -0
- package/lib/index.esm-BYObtETB.js.map +1 -0
- package/lib/index.esm-BnYHxCYC.js.map +1 -1
- package/lib/{java-DUh-EL8n.js → java-CVLzHfb1.js} +2 -2
- package/lib/{java-DUh-EL8n.js.map → java-CVLzHfb1.js.map} +1 -1
- package/lib/{javascript-CrY8dcGu.js → javascript-CcmIpL4G.js} +2 -2
- package/lib/{javascript-CrY8dcGu.js.map → javascript-CcmIpL4G.js.map} +1 -1
- package/lib/{json-DLK2_sdf.js → json-4AyP4uiY.js} +2 -2
- package/lib/{json-DLK2_sdf.js.map → json-4AyP4uiY.js.map} +1 -1
- package/lib/{jsx-runtime-DywqP_6a.js → jsx-runtime-BzflLqGi.js} +109 -111
- package/lib/jsx-runtime-BzflLqGi.js.map +1 -0
- package/lib/{kotlin-rJMOGl7D.js → kotlin-v2plddBQ.js} +2 -2
- package/lib/{kotlin-rJMOGl7D.js.map → kotlin-v2plddBQ.js.map} +1 -1
- package/lib/{markdown-BD9bIU5J.js → markdown-DYGWCmGQ.js} +2 -2
- package/lib/{markdown-BD9bIU5J.js.map → markdown-DYGWCmGQ.js.map} +1 -1
- package/lib/{mdx-G25UCvf3.js → mdx-CHwYvXd4.js} +2 -2
- package/lib/{mdx-G25UCvf3.js.map → mdx-CHwYvXd4.js.map} +1 -1
- package/lib/{mutation-De-1gXxl.js → mutation-CdGPxHNX.js} +2 -2
- package/lib/{mutation-De-1gXxl.js.map → mutation-CdGPxHNX.js.map} +1 -1
- package/lib/{objectivec-DDpj0aWX.js → objectivec-HZY8shkd.js} +2 -2
- package/lib/{objectivec-DDpj0aWX.js.map → objectivec-HZY8shkd.js.map} +1 -1
- package/lib/ocaml-DqsdDdwb.js +52 -0
- package/lib/ocaml-DqsdDdwb.js.map +1 -0
- package/lib/{php-BeG18bSy.js → php-rQXzo7K_.js} +2 -2
- package/lib/{php-BeG18bSy.js.map → php-rQXzo7K_.js.map} +1 -1
- package/lib/powershell-CQje9pm1.js +39 -0
- package/lib/powershell-CQje9pm1.js.map +1 -0
- package/lib/{python-BaF2byD-.js → python-QIQAE5Ei.js} +2 -2
- package/lib/{python-BaF2byD-.js.map → python-QIQAE5Ei.js.map} +1 -1
- package/lib/{react-CQvDN20M.js → react-DHpVpxRv.js} +2 -2
- package/lib/{react-CQvDN20M.js.map → react-DHpVpxRv.js.map} +1 -1
- package/lib/{ruby-CmxRVHMR.js → ruby-B2dU8Ny5.js} +2 -2
- package/lib/{ruby-CmxRVHMR.js.map → ruby-B2dU8Ny5.js.map} +1 -1
- package/lib/{rust-IfSC62c5.js → rust-DYnLHAi2.js} +2 -2
- package/lib/{rust-IfSC62c5.js.map → rust-DYnLHAi2.js.map} +1 -1
- package/lib/scala-CeKInBR8.js +25 -0
- package/lib/scala-CeKInBR8.js.map +1 -0
- package/lib/{shell-BFu0M6m4.js → shell-HUv9oVtp.js} +2 -2
- package/lib/{shell-BFu0M6m4.js.map → shell-HUv9oVtp.js.map} +1 -1
- package/lib/{swift-DckbsN4v.js → swift-B4z6ig1Z.js} +2 -2
- package/lib/{swift-DckbsN4v.js.map → swift-B4z6ig1Z.js.map} +1 -1
- package/lib/{toml-BJsCc8TC.js → toml-Co9mpdct.js} +2 -2
- package/lib/{toml-BJsCc8TC.js.map → toml-Co9mpdct.js.map} +1 -1
- package/lib/{typescript-7qOVMjOC.js → typescript-C26xdBDC.js} +2 -2
- package/lib/{typescript-7qOVMjOC.js.map → typescript-C26xdBDC.js.map} +1 -1
- package/lib/ui/Accordion.js +1 -1
- package/lib/ui/ActionButton.js +3 -3
- package/lib/ui/Alert.js +1 -1
- package/lib/ui/AlertDialog.js +1 -1
- package/lib/ui/Badge.js +1 -1
- package/lib/ui/Breadcrumb.js +1 -1
- package/lib/ui/Button.js +1 -1
- package/lib/ui/Callout.js +1 -1
- package/lib/ui/Card.js +1 -1
- package/lib/ui/Carousel.js +1 -1
- package/lib/ui/Carousel.js.map +1 -1
- package/lib/ui/Checkbox.js +1 -1
- package/lib/ui/CodeBlock.js +2 -2
- package/lib/ui/Command.js +2 -2
- package/lib/ui/Dialog.js +135 -105
- package/lib/ui/Dialog.js.map +1 -1
- package/lib/ui/Drawer.js +2 -2
- package/lib/ui/DropdownMenu.js +1 -1
- package/lib/ui/EmbeddedCodeBlock.js +1 -1
- package/lib/ui/Form.js +2 -2
- package/lib/ui/HoverCard.js +1 -1
- package/lib/ui/Input.js +1 -1
- package/lib/ui/Label.js +1 -1
- 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/ReactComponentDoc.js +1 -1
- package/lib/ui/ScrollArea.js +1 -1
- package/lib/ui/Secret.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/Stepper.js +1 -1
- package/lib/ui/Switch.js +1 -1
- package/lib/ui/SyntaxHighlight.js +4 -4
- package/lib/ui/Tabs.js +1 -1
- package/lib/ui/Textarea.js +1 -1
- package/lib/ui/Toggle.js +1 -1
- package/lib/ui/ToggleGroup.js +1 -1
- package/lib/ui/Tooltip.js +1 -1
- package/lib/ui/Value.js +1 -1
- package/lib/{useExposedProps-B8NHdNRq.js → useExposedProps-Cd7Yg_uG.js} +3 -3
- package/lib/useExposedProps-Cd7Yg_uG.js.map +1 -0
- package/lib/{xml-DAaTIkBX.js → xml-BQOOC04j.js} +2 -2
- package/lib/{xml-DAaTIkBX.js.map → xml-BQOOC04j.js.map} +1 -1
- package/lib/{yaml-DUi-dbfu.js → yaml-BGsJItKv.js} +2 -2
- package/lib/{yaml-DUi-dbfu.js.map → yaml-BGsJItKv.js.map} +1 -1
- package/lib/zig-CUV2sTct.js +35 -0
- package/lib/zig-CUV2sTct.js.map +1 -0
- package/lib/zudoku.__internal.js +1040 -937
- package/lib/zudoku.__internal.js.map +1 -1
- package/lib/zudoku.auth-auth0.js +22 -21
- package/lib/zudoku.auth-auth0.js.map +1 -1
- package/lib/zudoku.auth-azureb2c.js +14 -15
- package/lib/zudoku.auth-azureb2c.js.map +1 -1
- package/lib/zudoku.auth-clerk.js +3 -3
- package/lib/zudoku.auth-openid.js +57 -58
- package/lib/zudoku.auth-openid.js.map +1 -1
- package/lib/zudoku.auth-supabase.js +2 -2
- package/lib/zudoku.components.js +6 -6
- package/lib/zudoku.hooks.js +6 -6
- package/lib/zudoku.hooks.js.map +1 -1
- package/lib/zudoku.icons.js +1 -1
- package/lib/zudoku.plugin-api-catalog.js +27 -28
- package/lib/zudoku.plugin-api-catalog.js.map +1 -1
- package/lib/zudoku.plugin-api-keys.js +89 -89
- package/lib/zudoku.plugin-api-keys.js.map +1 -1
- package/lib/zudoku.plugin-custom-pages.js +1 -1
- package/lib/zudoku.plugin-markdown.js +10 -9
- package/lib/zudoku.plugin-markdown.js.map +1 -1
- package/lib/zudoku.plugin-openapi.js +6 -7
- package/lib/zudoku.plugin-openapi.js.map +1 -1
- package/lib/zudoku.plugin-search-inkeep.js +1 -1
- package/lib/zudoku.plugin-search-pagefind.js +27 -28
- package/lib/zudoku.plugin-search-pagefind.js.map +1 -1
- package/lib/zudoku.router.js +1 -1
- package/lib/zudoku.router.js.map +1 -1
- package/package.json +40 -40
- package/src/app/entry.server.tsx +16 -6
- package/src/app/main.css +42 -0
- package/src/lib/assets/language-icons/c.tsx +31 -0
- package/src/lib/assets/language-icons/commonlisp.tsx +22 -0
- package/src/lib/assets/language-icons/cpp.tsx +35 -0
- package/src/lib/assets/language-icons/dart.tsx +39 -0
- package/src/lib/assets/language-icons/elixir.tsx +19 -0
- package/src/lib/assets/language-icons/ocaml.tsx +34 -0
- package/src/lib/assets/language-icons/powershell.tsx +27 -0
- package/src/lib/assets/language-icons/scala.tsx +19 -0
- package/src/lib/assets/language-icons/zig.tsx +32 -0
- package/src/lib/authentication/authentication.ts +3 -1
- package/src/lib/authentication/providers/auth0.tsx +7 -3
- package/src/lib/components/Heading.tsx +2 -6
- package/src/lib/components/LanguageIcon.tsx +45 -0
- package/src/lib/components/Main.tsx +1 -1
- package/src/lib/components/cache.ts +9 -5
- package/src/lib/components/context/ZudokuContext.ts +11 -2
- package/src/lib/core/ZudokuContext.ts +3 -0
- package/src/lib/oas/graphql/index.ts +19 -0
- package/src/lib/plugins/markdown/MdxPage.tsx +125 -8
- package/src/lib/plugins/markdown/assets/ChatGPTLogo.tsx +11 -0
- package/src/lib/plugins/markdown/assets/ClaudeLogo.tsx +19 -0
- package/src/lib/plugins/markdown/index.tsx +5 -7
- package/src/lib/plugins/openapi/OperationList.tsx +9 -2
- package/src/lib/plugins/openapi/OperationListItem.tsx +10 -5
- package/src/lib/plugins/openapi/Sidecar.tsx +8 -8
- package/src/lib/plugins/openapi/graphql/fragment-masking.ts +1 -0
- package/src/lib/plugins/openapi/graphql/gql.ts +4 -3
- package/src/lib/plugins/openapi/graphql/graphql.ts +20 -3
- package/src/lib/plugins/openapi/index.tsx +10 -30
- package/src/lib/plugins/openapi/playground/Playground.tsx +1 -1
- package/src/lib/plugins/openapi/playground/PlaygroundDialog.tsx +1 -1
- package/src/lib/shiki.ts +9 -0
- package/src/lib/ui/Carousel.tsx +0 -1
- package/src/lib/ui/Dialog.tsx +112 -106
- package/src/lib/util/pastellize.ts +4 -4
- package/src/shiki/langs/hurl.js +1 -0
- package/src/shiki/langs/kdl.js +1 -0
- package/src/shiki/langs/pkl.js +1 -0
- package/src/shiki/langs/rosmsg.js +1 -0
- package/lib/CodeBlock-i0BM_QFf.js +0 -176
- package/lib/CodeBlock-i0BM_QFf.js.map +0 -1
- package/lib/Dialog-VIMic7xI.js +0 -114
- package/lib/Dialog-VIMic7xI.js.map +0 -1
- package/lib/Drawer-DM9wJUC6.js.map +0 -1
- package/lib/ErrorAlert-xpVkFS_n.js.map +0 -1
- package/lib/MdxPage-Ud1w_GV-.js +0 -111
- package/lib/MdxPage-Ud1w_GV-.js.map +0 -1
- package/lib/OperationList-uu04Ezta.js.map +0 -1
- package/lib/ZudokuContext-BcqSiygJ.js +0 -1294
- package/lib/ZudokuContext-BcqSiygJ.js.map +0 -1
- package/lib/createServer-BA0aitmR.js.map +0 -1
- package/lib/hook-BkLXq8pm.js +0 -243
- package/lib/hook-BkLXq8pm.js.map +0 -1
- package/lib/index-BRQDtecD.js.map +0 -1
- package/lib/index-CVfG8Pb4.js.map +0 -1
- package/lib/index-DhL3LhWV.js.map +0 -1
- package/lib/index.esm-DpgNxKa2.js +0 -1267
- package/lib/index.esm-DpgNxKa2.js.map +0 -1
- package/lib/jsx-runtime-DywqP_6a.js.map +0 -1
- package/lib/useExposedProps-B8NHdNRq.js.map +0 -1
|
@@ -1,52 +1,51 @@
|
|
|
1
|
-
import { j as n } from "./jsx-runtime-
|
|
2
|
-
import { ChevronUpIcon as
|
|
3
|
-
import { r as
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import { S as
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import { B as I } from "./Button-DTDRi4CT.js";
|
|
1
|
+
import { j as n } from "./jsx-runtime-BzflLqGi.js";
|
|
2
|
+
import { ChevronUpIcon as pn, PlusCircleIcon as pe, FileInput as hn, Check as fn, TableOfContentsIcon as gn, LockIcon as xn, CircleAlertIcon as yn, XIcon as ft, Circle as vn, Unlink2Icon as bn, CornerDownRightIcon as jn, CornerDownLeftIcon as Cn, DownloadIcon as wn, EyeOffIcon as Nn, EyeIcon as Sn, UnplugIcon as Tn, SendIcon as An, CheckIcon as On, CopyIcon as Pn, IdCardLanyardIcon as Ln, ShapesIcon as $n, CirclePlayIcon as En } from "lucide-react";
|
|
3
|
+
import { r as Rn, u as kn, c as In, N as Dn, aL as Fn, m as st } from "./chunk-PVWAREVJ-BO6B-RAk.js";
|
|
4
|
+
import { Button as ce } from "./ui/Button.js";
|
|
5
|
+
import { J as $e, K as Ee, L as gt, a as zn, e as qn, M as Vn, j as R, b as Bn } from "./ZudokuContext-BXTZApgy.js";
|
|
6
|
+
import { Z as _n, i as Un } from "./invariant-Bm-FVUQE.js";
|
|
7
|
+
import * as q from "react";
|
|
8
|
+
import { createContext as xt, use as Mn, useRef as O, useEffect as I, useMemo as yt, useState as $, useCallback as vt, Fragment as Z, useLayoutEffect as Gn, useTransition as Hn, useContext as Qn } from "react";
|
|
9
|
+
import { VisuallyHidden as Jn } from "@radix-ui/react-visually-hidden";
|
|
10
|
+
import { useAuth as Wn } from "./zudoku.hooks.js";
|
|
11
|
+
import { D as Re, a as ke, c as Ie, d as bt, e as jt, g as Xn } from "./Dialog-BQciPiHN.js";
|
|
12
|
+
import { S as Zn, b as Yn } from "./index-CLJGtw_S.js";
|
|
13
|
+
import { S as Ct, c as wt, d as Nt, e as St, g as oe, i as Kn, A as es, a as ts, b as ns, u as ss } from "./Select-CPoGZU_V.js";
|
|
14
|
+
import { u as ne, b as De, C as D, a as rs, F as as } from "./index.esm-BYObtETB.js";
|
|
15
|
+
import { B as E } from "./Button-DmS4u8Lj.js";
|
|
17
16
|
import * as Fe from "@radix-ui/react-collapsible";
|
|
18
|
-
import { g as
|
|
19
|
-
import { c as
|
|
20
|
-
import { u as
|
|
21
|
-
import { u as
|
|
22
|
-
import
|
|
23
|
-
import * as
|
|
24
|
-
import * as
|
|
25
|
-
import { PopoverAnchor as
|
|
26
|
-
import { P as
|
|
27
|
-
import { f as
|
|
28
|
-
import { Input as
|
|
29
|
-
import { Slot as
|
|
30
|
-
import { C as
|
|
31
|
-
import * as
|
|
32
|
-
import { c as
|
|
33
|
-
import * as
|
|
34
|
-
import { z as
|
|
35
|
-
import { h as
|
|
36
|
-
let
|
|
37
|
-
const
|
|
17
|
+
import { g as rt, h as at, i as ot, j as os } from "./ErrorAlert-VBJ8aHH7.js";
|
|
18
|
+
import { c as C } from "./cn-dYga0KKN.js";
|
|
19
|
+
import { u as is } from "./useCopyToClipboard-B_085nfO.js";
|
|
20
|
+
import { u as cs } from "./useLatest-hmRS46UF.js";
|
|
21
|
+
import { D as ls, a as ds, b as us, d as ms, e as ps, f as hs, c as fs } from "./DropdownMenu-BZ2NKQ3K.js";
|
|
22
|
+
import * as Oe from "@radix-ui/react-checkbox";
|
|
23
|
+
import * as le from "@radix-ui/react-popover";
|
|
24
|
+
import { PopoverAnchor as gs } from "@radix-ui/react-popover";
|
|
25
|
+
import { P as xs } from "./index-CrcNWbel.js";
|
|
26
|
+
import { f as ys, g as vs, C as bs, b as js } from "./Command-CUcrW3qs.js";
|
|
27
|
+
import { Input as de } from "./ui/Input.js";
|
|
28
|
+
import { Slot as Cs } from "@radix-ui/react-slot";
|
|
29
|
+
import { C as ws } from "./Card-KFniaZn5.js";
|
|
30
|
+
import * as Tt from "@radix-ui/react-label";
|
|
31
|
+
import { c as Ns } from "./index-DI5SPFK9.js";
|
|
32
|
+
import * as ee from "@radix-ui/react-radio-group";
|
|
33
|
+
import { z as Ss } from "./useExposedProps-Cd7Yg_uG.js";
|
|
34
|
+
import { h as Ts } from "./SyntaxHighlight-B0laqAqK.js";
|
|
35
|
+
let be;
|
|
36
|
+
const As = (e) => {
|
|
38
37
|
if (e.errors?.[0])
|
|
39
|
-
throw new
|
|
38
|
+
throw new _n(e.errors[0].message, {
|
|
40
39
|
developerHint: "Check your configuration value `apis.type` and `apis.input` in the Zudoku config."
|
|
41
40
|
});
|
|
42
41
|
};
|
|
43
|
-
class
|
|
42
|
+
class Os {
|
|
44
43
|
constructor(t) {
|
|
45
44
|
this.config = t;
|
|
46
45
|
}
|
|
47
|
-
#e = async () => (
|
|
46
|
+
#e = async () => (be || (be = import("./createServer-DyUc5BPr.js").then(
|
|
48
47
|
(t) => t.createServer(this.config)
|
|
49
|
-
)),
|
|
48
|
+
)), be);
|
|
50
49
|
#t = async (t) => this.config.server ? fetch(this.config.server, t) : (await this.#e()).fetch("http://localhost/graphql", t);
|
|
51
50
|
fetch = async (t, s) => {
|
|
52
51
|
const a = t.match(/query (\w+)/)?.[1], r = await this.#t({
|
|
@@ -57,27 +56,27 @@ class Rs {
|
|
|
57
56
|
if (!r.ok)
|
|
58
57
|
throw new Error("Network response was not ok");
|
|
59
58
|
const o = await r.json();
|
|
60
|
-
return
|
|
59
|
+
return As(o), o.data;
|
|
61
60
|
};
|
|
62
61
|
}
|
|
63
|
-
function
|
|
62
|
+
function je(e, t) {
|
|
64
63
|
if (!!!e)
|
|
65
64
|
throw new Error(t);
|
|
66
65
|
}
|
|
67
|
-
function
|
|
66
|
+
function Ps(e) {
|
|
68
67
|
return typeof e == "object" && e !== null;
|
|
69
68
|
}
|
|
70
|
-
function
|
|
69
|
+
function Ls(e, t) {
|
|
71
70
|
if (!!!e)
|
|
72
71
|
throw new Error(
|
|
73
72
|
t ?? "Unexpected invariant triggered."
|
|
74
73
|
);
|
|
75
74
|
}
|
|
76
|
-
const
|
|
77
|
-
function
|
|
75
|
+
const $s = /\r\n|[\n\r]/g;
|
|
76
|
+
function Pe(e, t) {
|
|
78
77
|
let s = 0, a = 1;
|
|
79
|
-
for (const r of e.body.matchAll(
|
|
80
|
-
if (typeof r.index == "number" ||
|
|
78
|
+
for (const r of e.body.matchAll($s)) {
|
|
79
|
+
if (typeof r.index == "number" || Ls(!1), r.index >= t)
|
|
81
80
|
break;
|
|
82
81
|
s = r.index + r[0].length, a += 1;
|
|
83
82
|
}
|
|
@@ -86,27 +85,27 @@ function Re(e, t) {
|
|
|
86
85
|
column: t + 1 - s
|
|
87
86
|
};
|
|
88
87
|
}
|
|
89
|
-
function
|
|
90
|
-
return
|
|
88
|
+
function Es(e) {
|
|
89
|
+
return At(
|
|
91
90
|
e.source,
|
|
92
|
-
|
|
91
|
+
Pe(e.source, e.start)
|
|
93
92
|
);
|
|
94
93
|
}
|
|
95
|
-
function
|
|
94
|
+
function At(e, t) {
|
|
96
95
|
const s = e.locationOffset.column - 1, a = "".padStart(s) + e.body, r = t.line - 1, o = e.locationOffset.line - 1, i = t.line + o, l = t.line === 1 ? s : 0, c = t.column + l, u = `${e.name}:${i}:${c}
|
|
97
96
|
`, d = a.split(/\r\n|[\n\r]/g), h = d[r];
|
|
98
97
|
if (h.length > 120) {
|
|
99
98
|
const g = Math.floor(c / 80), m = c % 80, v = [];
|
|
100
99
|
for (let y = 0; y < h.length; y += 80)
|
|
101
100
|
v.push(h.slice(y, y + 80));
|
|
102
|
-
return u +
|
|
101
|
+
return u + it([
|
|
103
102
|
[`${i} |`, v[0]],
|
|
104
103
|
...v.slice(1, g + 1).map((y) => ["|", y]),
|
|
105
104
|
["|", "^".padStart(m)],
|
|
106
105
|
["|", v[g + 1]]
|
|
107
106
|
]);
|
|
108
107
|
}
|
|
109
|
-
return u +
|
|
108
|
+
return u + it([
|
|
110
109
|
// Lines specified like this: ["prefix", "string"],
|
|
111
110
|
[`${i - 1} |`, d[r - 1]],
|
|
112
111
|
[`${i} |`, h],
|
|
@@ -114,12 +113,12 @@ function Pt(e, t) {
|
|
|
114
113
|
[`${i + 1} |`, d[r + 1]]
|
|
115
114
|
]);
|
|
116
115
|
}
|
|
117
|
-
function
|
|
116
|
+
function it(e) {
|
|
118
117
|
const t = e.filter(([a, r]) => r !== void 0), s = Math.max(...t.map(([a]) => a.length));
|
|
119
118
|
return t.map(([a, r]) => a.padStart(s) + (r ? " " + r : "")).join(`
|
|
120
119
|
`);
|
|
121
120
|
}
|
|
122
|
-
function
|
|
121
|
+
function Rs(e) {
|
|
123
122
|
const t = e[0];
|
|
124
123
|
return t == null || "kind" in t || "length" in t ? {
|
|
125
124
|
nodes: t,
|
|
@@ -130,7 +129,7 @@ function ks(e) {
|
|
|
130
129
|
extensions: e[5]
|
|
131
130
|
} : t;
|
|
132
131
|
}
|
|
133
|
-
class
|
|
132
|
+
class ze extends Error {
|
|
134
133
|
/**
|
|
135
134
|
* An array of `{ line, column }` locations within the source GraphQL document
|
|
136
135
|
* which correspond to this error.
|
|
@@ -171,15 +170,15 @@ class qe extends Error {
|
|
|
171
170
|
*/
|
|
172
171
|
constructor(t, ...s) {
|
|
173
172
|
var a, r, o;
|
|
174
|
-
const { nodes: i, source: l, positions: c, path: u, originalError: d, extensions: h } =
|
|
175
|
-
super(t), this.name = "GraphQLError", this.path = u ?? void 0, this.originalError = d ?? void 0, this.nodes =
|
|
173
|
+
const { nodes: i, source: l, positions: c, path: u, originalError: d, extensions: h } = Rs(s);
|
|
174
|
+
super(t), this.name = "GraphQLError", this.path = u ?? void 0, this.originalError = d ?? void 0, this.nodes = ct(
|
|
176
175
|
Array.isArray(i) ? i : i ? [i] : void 0
|
|
177
176
|
);
|
|
178
|
-
const g =
|
|
177
|
+
const g = ct(
|
|
179
178
|
(a = this.nodes) === null || a === void 0 ? void 0 : a.map((v) => v.loc).filter((v) => v != null)
|
|
180
179
|
);
|
|
181
|
-
this.source = l ?? (g == null || (r = g[0]) === null || r === void 0 ? void 0 : r.source), this.positions = c ?? g?.map((v) => v.start), this.locations = c && l ? c.map((v) =>
|
|
182
|
-
const m =
|
|
180
|
+
this.source = l ?? (g == null || (r = g[0]) === null || r === void 0 ? void 0 : r.source), this.positions = c ?? g?.map((v) => v.start), this.locations = c && l ? c.map((v) => Pe(l, v)) : g?.map((v) => Pe(v.source, v.start));
|
|
181
|
+
const m = Ps(
|
|
183
182
|
d?.extensions
|
|
184
183
|
) ? d?.extensions : void 0;
|
|
185
184
|
this.extensions = (o = h ?? m) !== null && o !== void 0 ? o : /* @__PURE__ */ Object.create(null), Object.defineProperties(this, {
|
|
@@ -206,7 +205,7 @@ class qe extends Error {
|
|
|
206
205
|
value: d.stack,
|
|
207
206
|
writable: !0,
|
|
208
207
|
configurable: !0
|
|
209
|
-
}) : Error.captureStackTrace ? Error.captureStackTrace(this,
|
|
208
|
+
}) : Error.captureStackTrace ? Error.captureStackTrace(this, ze) : Object.defineProperty(this, "stack", {
|
|
210
209
|
value: Error().stack,
|
|
211
210
|
writable: !0,
|
|
212
211
|
configurable: !0
|
|
@@ -221,12 +220,12 @@ class qe extends Error {
|
|
|
221
220
|
for (const s of this.nodes)
|
|
222
221
|
s.loc && (t += `
|
|
223
222
|
|
|
224
|
-
` +
|
|
223
|
+
` + Es(s.loc));
|
|
225
224
|
else if (this.source && this.locations)
|
|
226
225
|
for (const s of this.locations)
|
|
227
226
|
t += `
|
|
228
227
|
|
|
229
|
-
` +
|
|
228
|
+
` + At(this.source, s);
|
|
230
229
|
return t;
|
|
231
230
|
}
|
|
232
231
|
toJSON() {
|
|
@@ -236,16 +235,16 @@ class qe extends Error {
|
|
|
236
235
|
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;
|
|
237
236
|
}
|
|
238
237
|
}
|
|
239
|
-
function
|
|
238
|
+
function ct(e) {
|
|
240
239
|
return e === void 0 || e.length === 0 ? void 0 : e;
|
|
241
240
|
}
|
|
242
|
-
function
|
|
243
|
-
return new
|
|
241
|
+
function P(e, t, s) {
|
|
242
|
+
return new ze(`Syntax Error: ${s}`, {
|
|
244
243
|
source: e,
|
|
245
244
|
positions: [t]
|
|
246
245
|
});
|
|
247
246
|
}
|
|
248
|
-
class
|
|
247
|
+
class Fa {
|
|
249
248
|
/**
|
|
250
249
|
* The character offset at which this Node begins.
|
|
251
250
|
*/
|
|
@@ -274,7 +273,7 @@ class Ha {
|
|
|
274
273
|
};
|
|
275
274
|
}
|
|
276
275
|
}
|
|
277
|
-
class
|
|
276
|
+
class Ot {
|
|
278
277
|
/**
|
|
279
278
|
* The kind of Token.
|
|
280
279
|
*/
|
|
@@ -316,7 +315,7 @@ class Rt {
|
|
|
316
315
|
};
|
|
317
316
|
}
|
|
318
317
|
}
|
|
319
|
-
const
|
|
318
|
+
const ks = {
|
|
320
319
|
Name: [],
|
|
321
320
|
Document: ["definitions"],
|
|
322
321
|
OperationDefinition: [
|
|
@@ -390,37 +389,37 @@ const Ds = {
|
|
|
390
389
|
UnionTypeExtension: ["name", "directives", "types"],
|
|
391
390
|
EnumTypeExtension: ["name", "directives", "values"],
|
|
392
391
|
InputObjectTypeExtension: ["name", "directives", "fields"]
|
|
393
|
-
},
|
|
394
|
-
function
|
|
392
|
+
}, Is = new Set(Object.keys(ks));
|
|
393
|
+
function za(e) {
|
|
395
394
|
const t = e?.kind;
|
|
396
|
-
return typeof t == "string" &&
|
|
395
|
+
return typeof t == "string" && Is.has(t);
|
|
397
396
|
}
|
|
398
|
-
var
|
|
397
|
+
var lt;
|
|
399
398
|
(function(e) {
|
|
400
399
|
e.QUERY = "query", e.MUTATION = "mutation", e.SUBSCRIPTION = "subscription";
|
|
401
|
-
})(
|
|
400
|
+
})(lt || (lt = {}));
|
|
402
401
|
function Le(e) {
|
|
403
402
|
return e === 9 || e === 32;
|
|
404
403
|
}
|
|
405
|
-
function
|
|
404
|
+
function te(e) {
|
|
406
405
|
return e >= 48 && e <= 57;
|
|
407
406
|
}
|
|
408
|
-
function
|
|
407
|
+
function Pt(e) {
|
|
409
408
|
return e >= 97 && e <= 122 || // A-Z
|
|
410
409
|
e >= 65 && e <= 90;
|
|
411
410
|
}
|
|
412
|
-
function
|
|
413
|
-
return
|
|
411
|
+
function Lt(e) {
|
|
412
|
+
return Pt(e) || e === 95;
|
|
414
413
|
}
|
|
415
|
-
function
|
|
416
|
-
return
|
|
414
|
+
function Ds(e) {
|
|
415
|
+
return Pt(e) || te(e) || e === 95;
|
|
417
416
|
}
|
|
418
|
-
function
|
|
417
|
+
function Fs(e) {
|
|
419
418
|
var t;
|
|
420
419
|
let s = Number.MAX_SAFE_INTEGER, a = null, r = -1;
|
|
421
420
|
for (let i = 0; i < e.length; ++i) {
|
|
422
421
|
var o;
|
|
423
|
-
const l = e[i], c =
|
|
422
|
+
const l = e[i], c = zs(l);
|
|
424
423
|
c !== l.length && (a = (o = a) !== null && o !== void 0 ? o : i, r = i, i !== 0 && c < s && (s = c));
|
|
425
424
|
}
|
|
426
425
|
return e.map((i, l) => l === 0 ? i : i.slice(s)).slice(
|
|
@@ -428,13 +427,13 @@ function qs(e) {
|
|
|
428
427
|
r + 1
|
|
429
428
|
);
|
|
430
429
|
}
|
|
431
|
-
function
|
|
430
|
+
function zs(e) {
|
|
432
431
|
let t = 0;
|
|
433
432
|
for (; t < e.length && Le(e.charCodeAt(t)); )
|
|
434
433
|
++t;
|
|
435
434
|
return t;
|
|
436
435
|
}
|
|
437
|
-
function
|
|
436
|
+
function qs(e, t) {
|
|
438
437
|
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((m) => m.length === 0 || Le(m.charCodeAt(0))), i = s.endsWith('\\"""'), l = e.endsWith('"') && !i, c = e.endsWith("\\"), u = l || c, d = !(t != null && t.minimize) && // add leading and trailing new lines only if it improves readability
|
|
439
438
|
(!r || e.length > 70 || u || o || i);
|
|
440
439
|
let h = "";
|
|
@@ -447,7 +446,7 @@ var x;
|
|
|
447
446
|
(function(e) {
|
|
448
447
|
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";
|
|
449
448
|
})(x || (x = {}));
|
|
450
|
-
class
|
|
449
|
+
class Vs {
|
|
451
450
|
/**
|
|
452
451
|
* The previously focused non-ignored token.
|
|
453
452
|
*/
|
|
@@ -461,7 +460,7 @@ class _s {
|
|
|
461
460
|
* The character offset at which the current line begins.
|
|
462
461
|
*/
|
|
463
462
|
constructor(t) {
|
|
464
|
-
const s = new
|
|
463
|
+
const s = new Ot(x.SOF, 0, 0, 0, 0);
|
|
465
464
|
this.source = t, this.lastToken = s, this.token = s, this.line = 1, this.lineStart = 0;
|
|
466
465
|
}
|
|
467
466
|
get [Symbol.toStringTag]() {
|
|
@@ -484,29 +483,29 @@ class _s {
|
|
|
484
483
|
if (t.next)
|
|
485
484
|
t = t.next;
|
|
486
485
|
else {
|
|
487
|
-
const s =
|
|
486
|
+
const s = _s(this, t.end);
|
|
488
487
|
t.next = s, s.prev = t, t = s;
|
|
489
488
|
}
|
|
490
489
|
while (t.kind === x.COMMENT);
|
|
491
490
|
return t;
|
|
492
491
|
}
|
|
493
492
|
}
|
|
494
|
-
function
|
|
493
|
+
function Bs(e) {
|
|
495
494
|
return e === x.BANG || e === x.DOLLAR || e === x.AMP || e === x.PAREN_L || e === x.PAREN_R || e === x.SPREAD || e === x.COLON || e === x.EQUALS || e === x.AT || e === x.BRACKET_L || e === x.BRACKET_R || e === x.BRACE_L || e === x.PIPE || e === x.BRACE_R;
|
|
496
495
|
}
|
|
497
|
-
function
|
|
496
|
+
function W(e) {
|
|
498
497
|
return e >= 0 && e <= 55295 || e >= 57344 && e <= 1114111;
|
|
499
498
|
}
|
|
500
|
-
function
|
|
501
|
-
return
|
|
499
|
+
function he(e, t) {
|
|
500
|
+
return $t(e.charCodeAt(t)) && Et(e.charCodeAt(t + 1));
|
|
502
501
|
}
|
|
503
|
-
function
|
|
502
|
+
function $t(e) {
|
|
504
503
|
return e >= 55296 && e <= 56319;
|
|
505
504
|
}
|
|
506
|
-
function
|
|
505
|
+
function Et(e) {
|
|
507
506
|
return e >= 56320 && e <= 57343;
|
|
508
507
|
}
|
|
509
|
-
function
|
|
508
|
+
function _(e, t) {
|
|
510
509
|
const s = e.source.body.codePointAt(t);
|
|
511
510
|
if (s === void 0)
|
|
512
511
|
return x.EOF;
|
|
@@ -518,9 +517,9 @@ function U(e, t) {
|
|
|
518
517
|
}
|
|
519
518
|
function w(e, t, s, a, r) {
|
|
520
519
|
const o = e.line, i = 1 + s - e.lineStart;
|
|
521
|
-
return new
|
|
520
|
+
return new Ot(t, s, a, o, i, r);
|
|
522
521
|
}
|
|
523
|
-
function
|
|
522
|
+
function _s(e, t) {
|
|
524
523
|
const s = e.source.body, a = s.length;
|
|
525
524
|
let r = t;
|
|
526
525
|
for (; r < a; ) {
|
|
@@ -561,7 +560,7 @@ function Ms(e, t) {
|
|
|
561
560
|
continue;
|
|
562
561
|
// Comment
|
|
563
562
|
case 35:
|
|
564
|
-
return
|
|
563
|
+
return Us(e, r);
|
|
565
564
|
// Token ::
|
|
566
565
|
// - Punctuator
|
|
567
566
|
// - Name
|
|
@@ -602,30 +601,30 @@ function Ms(e, t) {
|
|
|
602
601
|
return w(e, x.BRACE_R, r, r + 1);
|
|
603
602
|
// StringValue
|
|
604
603
|
case 34:
|
|
605
|
-
return s.charCodeAt(r + 1) === 34 && s.charCodeAt(r + 2) === 34 ?
|
|
604
|
+
return s.charCodeAt(r + 1) === 34 && s.charCodeAt(r + 2) === 34 ? Ws(e, r) : Gs(e, r);
|
|
606
605
|
}
|
|
607
|
-
if (
|
|
608
|
-
return
|
|
609
|
-
if (
|
|
610
|
-
return
|
|
611
|
-
throw
|
|
606
|
+
if (te(o) || o === 45)
|
|
607
|
+
return Ms(e, r, o);
|
|
608
|
+
if (Lt(o))
|
|
609
|
+
return Xs(e, r);
|
|
610
|
+
throw P(
|
|
612
611
|
e.source,
|
|
613
612
|
r,
|
|
614
|
-
o === 39 ? `Unexpected single quote character ('), did you mean to use a double quote (")?` :
|
|
613
|
+
o === 39 ? `Unexpected single quote character ('), did you mean to use a double quote (")?` : W(o) || he(s, r) ? `Unexpected character: ${_(e, r)}.` : `Invalid character: ${_(e, r)}.`
|
|
615
614
|
);
|
|
616
615
|
}
|
|
617
616
|
return w(e, x.EOF, a, a);
|
|
618
617
|
}
|
|
619
|
-
function
|
|
618
|
+
function Us(e, t) {
|
|
620
619
|
const s = e.source.body, a = s.length;
|
|
621
620
|
let r = t + 1;
|
|
622
621
|
for (; r < a; ) {
|
|
623
622
|
const o = s.charCodeAt(r);
|
|
624
623
|
if (o === 10 || o === 13)
|
|
625
624
|
break;
|
|
626
|
-
if (
|
|
625
|
+
if (W(o))
|
|
627
626
|
++r;
|
|
628
|
-
else if (
|
|
627
|
+
else if (he(s, r))
|
|
629
628
|
r += 2;
|
|
630
629
|
else
|
|
631
630
|
break;
|
|
@@ -638,26 +637,26 @@ function Gs(e, t) {
|
|
|
638
637
|
s.slice(t + 1, r)
|
|
639
638
|
);
|
|
640
639
|
}
|
|
641
|
-
function
|
|
640
|
+
function Ms(e, t, s) {
|
|
642
641
|
const a = e.source.body;
|
|
643
642
|
let r = t, o = s, i = !1;
|
|
644
643
|
if (o === 45 && (o = a.charCodeAt(++r)), o === 48) {
|
|
645
|
-
if (o = a.charCodeAt(++r),
|
|
646
|
-
throw
|
|
644
|
+
if (o = a.charCodeAt(++r), te(o))
|
|
645
|
+
throw P(
|
|
647
646
|
e.source,
|
|
648
647
|
r,
|
|
649
|
-
`Invalid number, unexpected digit after 0: ${
|
|
648
|
+
`Invalid number, unexpected digit after 0: ${_(
|
|
650
649
|
e,
|
|
651
650
|
r
|
|
652
651
|
)}.`
|
|
653
652
|
);
|
|
654
653
|
} else
|
|
655
|
-
r =
|
|
656
|
-
if (o === 46 && (i = !0, o = a.charCodeAt(++r), r =
|
|
657
|
-
throw
|
|
654
|
+
r = Ce(e, r, o), o = a.charCodeAt(r);
|
|
655
|
+
if (o === 46 && (i = !0, o = a.charCodeAt(++r), r = Ce(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 = Ce(e, r, o), o = a.charCodeAt(r)), o === 46 || Lt(o))
|
|
656
|
+
throw P(
|
|
658
657
|
e.source,
|
|
659
658
|
r,
|
|
660
|
-
`Invalid number, expected digit but got: ${
|
|
659
|
+
`Invalid number, expected digit but got: ${_(
|
|
661
660
|
e,
|
|
662
661
|
r
|
|
663
662
|
)}.`
|
|
@@ -670,23 +669,23 @@ function Hs(e, t, s) {
|
|
|
670
669
|
a.slice(t, r)
|
|
671
670
|
);
|
|
672
671
|
}
|
|
673
|
-
function
|
|
674
|
-
if (!
|
|
675
|
-
throw
|
|
672
|
+
function Ce(e, t, s) {
|
|
673
|
+
if (!te(s))
|
|
674
|
+
throw P(
|
|
676
675
|
e.source,
|
|
677
676
|
t,
|
|
678
|
-
`Invalid number, expected digit but got: ${
|
|
677
|
+
`Invalid number, expected digit but got: ${_(
|
|
679
678
|
e,
|
|
680
679
|
t
|
|
681
680
|
)}.`
|
|
682
681
|
);
|
|
683
682
|
const a = e.source.body;
|
|
684
683
|
let r = t + 1;
|
|
685
|
-
for (;
|
|
684
|
+
for (; te(a.charCodeAt(r)); )
|
|
686
685
|
++r;
|
|
687
686
|
return r;
|
|
688
687
|
}
|
|
689
|
-
function
|
|
688
|
+
function Gs(e, t) {
|
|
690
689
|
const s = e.source.body, a = s.length;
|
|
691
690
|
let r = t + 1, o = r, i = "";
|
|
692
691
|
for (; r < a; ) {
|
|
@@ -695,45 +694,45 @@ function Qs(e, t) {
|
|
|
695
694
|
return i += s.slice(o, r), w(e, x.STRING, t, r + 1, i);
|
|
696
695
|
if (l === 92) {
|
|
697
696
|
i += s.slice(o, r);
|
|
698
|
-
const c = s.charCodeAt(r + 1) === 117 ? s.charCodeAt(r + 2) === 123 ?
|
|
697
|
+
const c = s.charCodeAt(r + 1) === 117 ? s.charCodeAt(r + 2) === 123 ? Hs(e, r) : Qs(e, r) : Js(e, r);
|
|
699
698
|
i += c.value, r += c.size, o = r;
|
|
700
699
|
continue;
|
|
701
700
|
}
|
|
702
701
|
if (l === 10 || l === 13)
|
|
703
702
|
break;
|
|
704
|
-
if (
|
|
703
|
+
if (W(l))
|
|
705
704
|
++r;
|
|
706
|
-
else if (
|
|
705
|
+
else if (he(s, r))
|
|
707
706
|
r += 2;
|
|
708
707
|
else
|
|
709
|
-
throw
|
|
708
|
+
throw P(
|
|
710
709
|
e.source,
|
|
711
710
|
r,
|
|
712
|
-
`Invalid character within String: ${
|
|
711
|
+
`Invalid character within String: ${_(
|
|
713
712
|
e,
|
|
714
713
|
r
|
|
715
714
|
)}.`
|
|
716
715
|
);
|
|
717
716
|
}
|
|
718
|
-
throw
|
|
717
|
+
throw P(e.source, r, "Unterminated string.");
|
|
719
718
|
}
|
|
720
|
-
function
|
|
719
|
+
function Hs(e, t) {
|
|
721
720
|
const s = e.source.body;
|
|
722
721
|
let a = 0, r = 3;
|
|
723
722
|
for (; r < 12; ) {
|
|
724
723
|
const o = s.charCodeAt(t + r++);
|
|
725
724
|
if (o === 125) {
|
|
726
|
-
if (r < 5 || !
|
|
725
|
+
if (r < 5 || !W(a))
|
|
727
726
|
break;
|
|
728
727
|
return {
|
|
729
728
|
value: String.fromCodePoint(a),
|
|
730
729
|
size: r
|
|
731
730
|
};
|
|
732
731
|
}
|
|
733
|
-
if (a = a << 4 |
|
|
732
|
+
if (a = a << 4 | Y(o), a < 0)
|
|
734
733
|
break;
|
|
735
734
|
}
|
|
736
|
-
throw
|
|
735
|
+
throw P(
|
|
737
736
|
e.source,
|
|
738
737
|
t,
|
|
739
738
|
`Invalid Unicode escape sequence: "${s.slice(
|
|
@@ -742,34 +741,34 @@ function Js(e, t) {
|
|
|
742
741
|
)}".`
|
|
743
742
|
);
|
|
744
743
|
}
|
|
745
|
-
function
|
|
746
|
-
const s = e.source.body, a =
|
|
747
|
-
if (
|
|
744
|
+
function Qs(e, t) {
|
|
745
|
+
const s = e.source.body, a = dt(s, t + 2);
|
|
746
|
+
if (W(a))
|
|
748
747
|
return {
|
|
749
748
|
value: String.fromCodePoint(a),
|
|
750
749
|
size: 6
|
|
751
750
|
};
|
|
752
|
-
if (
|
|
753
|
-
const r =
|
|
754
|
-
if (
|
|
751
|
+
if ($t(a) && s.charCodeAt(t + 6) === 92 && s.charCodeAt(t + 7) === 117) {
|
|
752
|
+
const r = dt(s, t + 8);
|
|
753
|
+
if (Et(r))
|
|
755
754
|
return {
|
|
756
755
|
value: String.fromCodePoint(a, r),
|
|
757
756
|
size: 12
|
|
758
757
|
};
|
|
759
758
|
}
|
|
760
|
-
throw
|
|
759
|
+
throw P(
|
|
761
760
|
e.source,
|
|
762
761
|
t,
|
|
763
762
|
`Invalid Unicode escape sequence: "${s.slice(t, t + 6)}".`
|
|
764
763
|
);
|
|
765
764
|
}
|
|
766
|
-
function
|
|
767
|
-
return
|
|
765
|
+
function dt(e, t) {
|
|
766
|
+
return Y(e.charCodeAt(t)) << 12 | Y(e.charCodeAt(t + 1)) << 8 | Y(e.charCodeAt(t + 2)) << 4 | Y(e.charCodeAt(t + 3));
|
|
768
767
|
}
|
|
769
|
-
function
|
|
768
|
+
function Y(e) {
|
|
770
769
|
return e >= 48 && e <= 57 ? e - 48 : e >= 65 && e <= 70 ? e - 55 : e >= 97 && e <= 102 ? e - 87 : -1;
|
|
771
770
|
}
|
|
772
|
-
function
|
|
771
|
+
function Js(e, t) {
|
|
773
772
|
const s = e.source.body;
|
|
774
773
|
switch (s.charCodeAt(t + 1)) {
|
|
775
774
|
case 34:
|
|
@@ -814,7 +813,7 @@ function Xs(e, t) {
|
|
|
814
813
|
size: 2
|
|
815
814
|
};
|
|
816
815
|
}
|
|
817
|
-
throw
|
|
816
|
+
throw P(
|
|
818
817
|
e.source,
|
|
819
818
|
t,
|
|
820
819
|
`Invalid character escape sequence: "${s.slice(
|
|
@@ -823,7 +822,7 @@ function Xs(e, t) {
|
|
|
823
822
|
)}".`
|
|
824
823
|
);
|
|
825
824
|
}
|
|
826
|
-
function
|
|
825
|
+
function Ws(e, t) {
|
|
827
826
|
const s = e.source.body, a = s.length;
|
|
828
827
|
let r = e.lineStart, o = t + 3, i = o, l = "";
|
|
829
828
|
const c = [];
|
|
@@ -837,7 +836,7 @@ function Zs(e, t) {
|
|
|
837
836
|
t,
|
|
838
837
|
o + 3,
|
|
839
838
|
// Return a string of the lines joined with U+000A.
|
|
840
|
-
|
|
839
|
+
Fs(c).join(`
|
|
841
840
|
`)
|
|
842
841
|
);
|
|
843
842
|
return e.line += c.length - 1, e.lineStart = r, d;
|
|
@@ -850,28 +849,28 @@ function Zs(e, t) {
|
|
|
850
849
|
l += s.slice(i, o), c.push(l), u === 13 && s.charCodeAt(o + 1) === 10 ? o += 2 : ++o, l = "", i = o, r = o;
|
|
851
850
|
continue;
|
|
852
851
|
}
|
|
853
|
-
if (
|
|
852
|
+
if (W(u))
|
|
854
853
|
++o;
|
|
855
|
-
else if (
|
|
854
|
+
else if (he(s, o))
|
|
856
855
|
o += 2;
|
|
857
856
|
else
|
|
858
|
-
throw
|
|
857
|
+
throw P(
|
|
859
858
|
e.source,
|
|
860
859
|
o,
|
|
861
|
-
`Invalid character within String: ${
|
|
860
|
+
`Invalid character within String: ${_(
|
|
862
861
|
e,
|
|
863
862
|
o
|
|
864
863
|
)}.`
|
|
865
864
|
);
|
|
866
865
|
}
|
|
867
|
-
throw
|
|
866
|
+
throw P(e.source, o, "Unterminated string.");
|
|
868
867
|
}
|
|
869
|
-
function
|
|
868
|
+
function Xs(e, t) {
|
|
870
869
|
const s = e.source.body, a = s.length;
|
|
871
870
|
let r = t + 1;
|
|
872
871
|
for (; r < a; ) {
|
|
873
872
|
const o = s.charCodeAt(r);
|
|
874
|
-
if (
|
|
873
|
+
if (Ds(o))
|
|
875
874
|
++r;
|
|
876
875
|
else
|
|
877
876
|
break;
|
|
@@ -884,56 +883,56 @@ function Ys(e, t) {
|
|
|
884
883
|
s.slice(t, r)
|
|
885
884
|
);
|
|
886
885
|
}
|
|
887
|
-
const
|
|
888
|
-
function
|
|
889
|
-
return
|
|
886
|
+
const Zs = 10, Rt = 2;
|
|
887
|
+
function kt(e) {
|
|
888
|
+
return fe(e, []);
|
|
890
889
|
}
|
|
891
|
-
function
|
|
890
|
+
function fe(e, t) {
|
|
892
891
|
switch (typeof e) {
|
|
893
892
|
case "string":
|
|
894
893
|
return JSON.stringify(e);
|
|
895
894
|
case "function":
|
|
896
895
|
return e.name ? `[function ${e.name}]` : "[function]";
|
|
897
896
|
case "object":
|
|
898
|
-
return
|
|
897
|
+
return Ys(e, t);
|
|
899
898
|
default:
|
|
900
899
|
return String(e);
|
|
901
900
|
}
|
|
902
901
|
}
|
|
903
|
-
function
|
|
902
|
+
function Ys(e, t) {
|
|
904
903
|
if (e === null)
|
|
905
904
|
return "null";
|
|
906
905
|
if (t.includes(e))
|
|
907
906
|
return "[Circular]";
|
|
908
907
|
const s = [...t, e];
|
|
909
|
-
if (
|
|
908
|
+
if (Ks(e)) {
|
|
910
909
|
const a = e.toJSON();
|
|
911
910
|
if (a !== e)
|
|
912
|
-
return typeof a == "string" ? a :
|
|
911
|
+
return typeof a == "string" ? a : fe(a, s);
|
|
913
912
|
} else if (Array.isArray(e))
|
|
914
|
-
return
|
|
915
|
-
return
|
|
913
|
+
return tr(e, s);
|
|
914
|
+
return er(e, s);
|
|
916
915
|
}
|
|
917
|
-
function
|
|
916
|
+
function Ks(e) {
|
|
918
917
|
return typeof e.toJSON == "function";
|
|
919
918
|
}
|
|
920
|
-
function
|
|
919
|
+
function er(e, t) {
|
|
921
920
|
const s = Object.entries(e);
|
|
922
|
-
return s.length === 0 ? "{}" : t.length >
|
|
923
|
-
([r, o]) => r + ": " +
|
|
921
|
+
return s.length === 0 ? "{}" : t.length > Rt ? "[" + nr(e) + "]" : "{ " + s.map(
|
|
922
|
+
([r, o]) => r + ": " + fe(o, t)
|
|
924
923
|
).join(", ") + " }";
|
|
925
924
|
}
|
|
926
|
-
function
|
|
925
|
+
function tr(e, t) {
|
|
927
926
|
if (e.length === 0)
|
|
928
927
|
return "[]";
|
|
929
|
-
if (t.length >
|
|
928
|
+
if (t.length > Rt)
|
|
930
929
|
return "[Array]";
|
|
931
|
-
const s = Math.min(
|
|
930
|
+
const s = Math.min(Zs, e.length), a = e.length - s, r = [];
|
|
932
931
|
for (let o = 0; o < s; ++o)
|
|
933
|
-
r.push(
|
|
932
|
+
r.push(fe(e[o], t));
|
|
934
933
|
return a === 1 ? r.push("... 1 more item") : a > 1 && r.push(`... ${a} more items`), "[" + r.join(", ") + "]";
|
|
935
934
|
}
|
|
936
|
-
function
|
|
935
|
+
function nr(e) {
|
|
937
936
|
const t = Object.prototype.toString.call(e).replace(/^\[object /, "").replace(/]$/, "");
|
|
938
937
|
if (t === "Object" && typeof e.constructor == "function") {
|
|
939
938
|
const s = e.constructor.name;
|
|
@@ -942,11 +941,11 @@ function rr(e) {
|
|
|
942
941
|
}
|
|
943
942
|
return t;
|
|
944
943
|
}
|
|
945
|
-
const
|
|
946
|
-
process.env.NODE_ENV === "production",
|
|
944
|
+
const sr = globalThis.process && // eslint-disable-next-line no-undef
|
|
945
|
+
process.env.NODE_ENV === "production", rr = (
|
|
947
946
|
/* c8 ignore next 6 */
|
|
948
947
|
// FIXME: https://github.com/graphql/graphql-js/issues/2317
|
|
949
|
-
|
|
948
|
+
sr ? function(t, s) {
|
|
950
949
|
return t instanceof s;
|
|
951
950
|
} : function(t, s) {
|
|
952
951
|
if (t instanceof s)
|
|
@@ -958,7 +957,7 @@ process.env.NODE_ENV === "production", or = (
|
|
|
958
957
|
Symbol.toStringTag in t ? t[Symbol.toStringTag] : (a = t.constructor) === null || a === void 0 ? void 0 : a.name
|
|
959
958
|
);
|
|
960
959
|
if (r === o) {
|
|
961
|
-
const i =
|
|
960
|
+
const i = kt(t);
|
|
962
961
|
throw new Error(`Cannot use ${r} "${i}" from another module or realm.
|
|
963
962
|
|
|
964
963
|
Ensure that there is only one instance of "graphql" in the node_modules
|
|
@@ -976,15 +975,15 @@ spurious results.`);
|
|
|
976
975
|
return !1;
|
|
977
976
|
}
|
|
978
977
|
);
|
|
979
|
-
class
|
|
978
|
+
class It {
|
|
980
979
|
constructor(t, s = "GraphQL request", a = {
|
|
981
980
|
line: 1,
|
|
982
981
|
column: 1
|
|
983
982
|
}) {
|
|
984
|
-
typeof t == "string" ||
|
|
983
|
+
typeof t == "string" || je(!1, `Body must be a string. Received: ${kt(t)}.`), this.body = t, this.name = s, this.locationOffset = a, this.locationOffset.line > 0 || je(
|
|
985
984
|
!1,
|
|
986
985
|
"line in locationOffset is 1-indexed and must be positive."
|
|
987
|
-
), this.locationOffset.column > 0 ||
|
|
986
|
+
), this.locationOffset.column > 0 || je(
|
|
988
987
|
!1,
|
|
989
988
|
"column in locationOffset is 1-indexed and must be positive."
|
|
990
989
|
);
|
|
@@ -993,37 +992,37 @@ class zt {
|
|
|
993
992
|
return "Source";
|
|
994
993
|
}
|
|
995
994
|
}
|
|
996
|
-
function
|
|
997
|
-
return
|
|
995
|
+
function ar(e) {
|
|
996
|
+
return rr(e, It);
|
|
998
997
|
}
|
|
999
|
-
function
|
|
1000
|
-
const t =
|
|
998
|
+
function or(e) {
|
|
999
|
+
const t = ar(e) ? e : new It(e), s = t.body, a = new Vs(t);
|
|
1001
1000
|
let r = "", o = !1;
|
|
1002
1001
|
for (; a.advance().kind !== x.EOF; ) {
|
|
1003
|
-
const i = a.token, l = i.kind, c = !
|
|
1002
|
+
const i = a.token, l = i.kind, c = !Bs(i.kind);
|
|
1004
1003
|
o && (c || i.kind === x.SPREAD) && (r += " ");
|
|
1005
1004
|
const u = s.slice(i.start, i.end);
|
|
1006
|
-
l === x.BLOCK_STRING ? r +=
|
|
1005
|
+
l === x.BLOCK_STRING ? r += qs(i.value, {
|
|
1007
1006
|
minimize: !0
|
|
1008
1007
|
}) : r += u, o = c;
|
|
1009
1008
|
}
|
|
1010
1009
|
return r;
|
|
1011
1010
|
}
|
|
1012
|
-
const
|
|
1011
|
+
const Dt = xt(
|
|
1013
1012
|
void 0
|
|
1014
|
-
),
|
|
1013
|
+
), qa = ({
|
|
1015
1014
|
children: e,
|
|
1016
1015
|
client: t
|
|
1017
|
-
}) => /* @__PURE__ */ n.jsx(
|
|
1016
|
+
}) => /* @__PURE__ */ n.jsx(Dt.Provider, { value: t, children: e }), Ft = (e, t, ...[s]) => ({
|
|
1018
1017
|
queryFn: () => e.fetch(t, s),
|
|
1019
|
-
queryKey: [
|
|
1020
|
-
}),
|
|
1021
|
-
const s =
|
|
1018
|
+
queryKey: [or(t.toString()), s]
|
|
1019
|
+
}), ir = (e, ...[t]) => {
|
|
1020
|
+
const s = Mn(Dt);
|
|
1022
1021
|
if (s === void 0)
|
|
1023
1022
|
throw new Error("useGraphQL must be used within a GraphQLProvider");
|
|
1024
|
-
return
|
|
1023
|
+
return Ft(s, e, ...t === void 0 ? [] : [t]);
|
|
1025
1024
|
};
|
|
1026
|
-
class
|
|
1025
|
+
class G extends String {
|
|
1027
1026
|
__apiType;
|
|
1028
1027
|
value;
|
|
1029
1028
|
__meta__;
|
|
@@ -1034,7 +1033,7 @@ class H extends String {
|
|
|
1034
1033
|
return this.value;
|
|
1035
1034
|
}
|
|
1036
1035
|
}
|
|
1037
|
-
const
|
|
1036
|
+
const cr = new G(
|
|
1038
1037
|
`
|
|
1039
1038
|
fragment OperationsFragment on OperationItem {
|
|
1040
1039
|
slug
|
|
@@ -1046,6 +1045,10 @@ const dr = new H(
|
|
|
1046
1045
|
path
|
|
1047
1046
|
deprecated
|
|
1048
1047
|
extensions
|
|
1048
|
+
servers {
|
|
1049
|
+
url
|
|
1050
|
+
description
|
|
1051
|
+
}
|
|
1049
1052
|
parameters {
|
|
1050
1053
|
name
|
|
1051
1054
|
in
|
|
@@ -1102,7 +1105,7 @@ const dr = new H(
|
|
|
1102
1105
|
}
|
|
1103
1106
|
`,
|
|
1104
1107
|
{ fragmentName: "OperationsFragment" }
|
|
1105
|
-
),
|
|
1108
|
+
), lr = new G(`
|
|
1106
1109
|
query ServersQuery($input: JSON!, $type: SchemaType!) {
|
|
1107
1110
|
schema(input: $input, type: $type) {
|
|
1108
1111
|
url
|
|
@@ -1111,13 +1114,13 @@ const dr = new H(
|
|
|
1111
1114
|
}
|
|
1112
1115
|
}
|
|
1113
1116
|
}
|
|
1114
|
-
`),
|
|
1117
|
+
`), dr = new G(`
|
|
1115
1118
|
query SchemaWarmup($input: JSON!, $type: SchemaType!) {
|
|
1116
1119
|
schema(input: $input, type: $type) {
|
|
1117
1120
|
openapi
|
|
1118
1121
|
}
|
|
1119
1122
|
}
|
|
1120
|
-
`),
|
|
1123
|
+
`), ur = new G(`
|
|
1121
1124
|
query OperationsForTag($input: JSON!, $type: SchemaType!, $tag: String, $untagged: Boolean) {
|
|
1122
1125
|
schema(input: $input, type: $type) {
|
|
1123
1126
|
servers {
|
|
@@ -1159,6 +1162,10 @@ const dr = new H(
|
|
|
1159
1162
|
path
|
|
1160
1163
|
deprecated
|
|
1161
1164
|
extensions
|
|
1165
|
+
servers {
|
|
1166
|
+
url
|
|
1167
|
+
description
|
|
1168
|
+
}
|
|
1162
1169
|
parameters {
|
|
1163
1170
|
name
|
|
1164
1171
|
in
|
|
@@ -1212,7 +1219,7 @@ const dr = new H(
|
|
|
1212
1219
|
schema
|
|
1213
1220
|
}
|
|
1214
1221
|
}
|
|
1215
|
-
}`),
|
|
1222
|
+
}`), mr = new G(`
|
|
1216
1223
|
query GetSchemas($input: JSON!, $type: SchemaType!) {
|
|
1217
1224
|
schema(input: $input, type: $type) {
|
|
1218
1225
|
title
|
|
@@ -1227,7 +1234,7 @@ const dr = new H(
|
|
|
1227
1234
|
}
|
|
1228
1235
|
}
|
|
1229
1236
|
}
|
|
1230
|
-
`),
|
|
1237
|
+
`), pr = new G(`
|
|
1231
1238
|
query getServerQuery($input: JSON!, $type: SchemaType!) {
|
|
1232
1239
|
schema(input: $input, type: $type) {
|
|
1233
1240
|
url
|
|
@@ -1236,7 +1243,7 @@ const dr = new H(
|
|
|
1236
1243
|
}
|
|
1237
1244
|
}
|
|
1238
1245
|
}
|
|
1239
|
-
`),
|
|
1246
|
+
`), hr = new G(`
|
|
1240
1247
|
query GetNavigationOperations($input: JSON!, $type: SchemaType!) {
|
|
1241
1248
|
schema(input: $input, type: $type) {
|
|
1242
1249
|
extensions
|
|
@@ -1259,20 +1266,20 @@ const dr = new H(
|
|
|
1259
1266
|
}
|
|
1260
1267
|
}
|
|
1261
1268
|
}
|
|
1262
|
-
`),
|
|
1263
|
-
"\n query ServersQuery($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n url\n servers {\n url\n }\n }\n }\n":
|
|
1264
|
-
"\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":
|
|
1265
|
-
"\n query SchemaWarmup($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n openapi\n }\n }\n":
|
|
1266
|
-
"\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 extensions\n next {\n name\n slug\n extensions\n }\n prev {\n name\n slug\n extensions\n }\n }\n }\n }\n":
|
|
1267
|
-
"\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":
|
|
1268
|
-
"\n query getServerQuery($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n url\n servers {\n url\n }\n }\n }\n":
|
|
1269
|
-
"\n query GetNavigationOperations($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n extensions\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":
|
|
1269
|
+
`), fr = {
|
|
1270
|
+
"\n query ServersQuery($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n url\n servers {\n url\n }\n }\n }\n": lr,
|
|
1271
|
+
"\n fragment OperationsFragment on OperationItem {\n slug\n summary\n method\n description\n operationId\n contentTypes\n path\n deprecated\n extensions\n servers {\n url\n description\n }\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": cr,
|
|
1272
|
+
"\n query SchemaWarmup($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n openapi\n }\n }\n": dr,
|
|
1273
|
+
"\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 extensions\n next {\n name\n slug\n extensions\n }\n prev {\n name\n slug\n extensions\n }\n }\n }\n }\n": ur,
|
|
1274
|
+
"\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": mr,
|
|
1275
|
+
"\n query getServerQuery($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n url\n servers {\n url\n }\n }\n }\n": pr,
|
|
1276
|
+
"\n query GetNavigationOperations($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n extensions\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": hr
|
|
1270
1277
|
};
|
|
1271
|
-
function
|
|
1272
|
-
return
|
|
1278
|
+
function gr(e) {
|
|
1279
|
+
return fr[e] ?? {};
|
|
1273
1280
|
}
|
|
1274
|
-
const
|
|
1275
|
-
function
|
|
1281
|
+
const F = Fe.Root, zt = Fe.CollapsibleTrigger, z = Fe.CollapsibleContent;
|
|
1282
|
+
function xr() {
|
|
1276
1283
|
const t = navigator.userAgent.toLowerCase();
|
|
1277
1284
|
if (t.indexOf("win") !== -1)
|
|
1278
1285
|
return "windows";
|
|
@@ -1283,10 +1290,10 @@ function vr() {
|
|
|
1283
1290
|
if (t.indexOf("x11") !== -1)
|
|
1284
1291
|
return "unix";
|
|
1285
1292
|
}
|
|
1286
|
-
function
|
|
1287
|
-
return
|
|
1293
|
+
function yr() {
|
|
1294
|
+
return xr() === "apple";
|
|
1288
1295
|
}
|
|
1289
|
-
const
|
|
1296
|
+
const vr = {
|
|
1290
1297
|
other: {
|
|
1291
1298
|
alt: "Alt",
|
|
1292
1299
|
meta: "Ctrl",
|
|
@@ -1301,11 +1308,11 @@ const jr = {
|
|
|
1301
1308
|
shift: "⇧",
|
|
1302
1309
|
option: "⌥"
|
|
1303
1310
|
}
|
|
1304
|
-
},
|
|
1305
|
-
const s = e.toLowerCase().split("+"), a = s.includes("meta"), r = s.includes("shift"), o = s.includes("option") || s.includes("alt"), i = s.includes("ctrl"), l = e.split("+").pop(), c =
|
|
1306
|
-
return
|
|
1311
|
+
}, br = (e, t) => {
|
|
1312
|
+
const s = e.toLowerCase().split("+"), a = s.includes("meta"), r = s.includes("shift"), o = s.includes("option") || s.includes("alt"), i = s.includes("ctrl"), l = e.split("+").pop(), c = O(t);
|
|
1313
|
+
return I(() => {
|
|
1307
1314
|
c.current = t;
|
|
1308
|
-
}, [t]),
|
|
1315
|
+
}, [t]), I(() => {
|
|
1309
1316
|
const u = (d) => {
|
|
1310
1317
|
(d.code === `Key${l?.toUpperCase()}` || d.code.toLowerCase() === l?.toLowerCase()) && d.metaKey === a && d.shiftKey === r && d.altKey === o && d.ctrlKey === i && (d.preventDefault(), c.current());
|
|
1311
1318
|
};
|
|
@@ -1315,10 +1322,10 @@ const jr = {
|
|
|
1315
1322
|
}, [l, a, r, o, i]), {
|
|
1316
1323
|
trigger: () => c.current(),
|
|
1317
1324
|
label: s.map(
|
|
1318
|
-
(u) => u === "meta" || u === "ctrl" || u === "alt" || u === "shift" || u === "option" ?
|
|
1325
|
+
(u) => u === "meta" || u === "ctrl" || u === "alt" || u === "shift" || u === "option" ? vr[yr() ? "apple" : "other"][u] : u
|
|
1319
1326
|
)
|
|
1320
1327
|
};
|
|
1321
|
-
},
|
|
1328
|
+
}, jr = $e()(
|
|
1322
1329
|
Ee(
|
|
1323
1330
|
(e) => ({
|
|
1324
1331
|
selectedServer: void 0,
|
|
@@ -1326,17 +1333,17 @@ const jr = {
|
|
|
1326
1333
|
}),
|
|
1327
1334
|
{ name: "zudoku-selected-server" }
|
|
1328
1335
|
)
|
|
1329
|
-
),
|
|
1330
|
-
const { selectedServer: t, setSelectedServer: s } =
|
|
1331
|
-
return { selectedServer:
|
|
1336
|
+
), Cr = (e) => {
|
|
1337
|
+
const { selectedServer: t, setSelectedServer: s } = jr();
|
|
1338
|
+
return { selectedServer: yt(
|
|
1332
1339
|
() => t && e.some((r) => r.url === t) ? t : e.at(0)?.url ?? "",
|
|
1333
1340
|
[t, e]
|
|
1334
1341
|
), setSelectedServer: s };
|
|
1335
|
-
},
|
|
1342
|
+
}, qt = q.forwardRef(
|
|
1336
1343
|
({ className: e, ...t }, s) => /* @__PURE__ */ n.jsx(
|
|
1337
1344
|
"textarea",
|
|
1338
1345
|
{
|
|
1339
|
-
className:
|
|
1346
|
+
className: C(
|
|
1340
1347
|
"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-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",
|
|
1341
1348
|
e
|
|
1342
1349
|
),
|
|
@@ -1345,28 +1352,28 @@ const jr = {
|
|
|
1345
1352
|
}
|
|
1346
1353
|
)
|
|
1347
1354
|
);
|
|
1348
|
-
|
|
1349
|
-
const
|
|
1355
|
+
qt.displayName = "Textarea";
|
|
1356
|
+
const U = ({
|
|
1350
1357
|
children: e,
|
|
1351
1358
|
className: t
|
|
1352
1359
|
}) => /* @__PURE__ */ n.jsxs(
|
|
1353
1360
|
"div",
|
|
1354
1361
|
{
|
|
1355
|
-
className:
|
|
1362
|
+
className: C(
|
|
1356
1363
|
"grid grid-cols-[max-content_1fr_min-content_max-content] items-center gap-4 group bg-muted w-full h-10 ps-4 pe-2 border-b",
|
|
1357
1364
|
t
|
|
1358
1365
|
),
|
|
1359
1366
|
children: [
|
|
1360
1367
|
e,
|
|
1361
1368
|
/* @__PURE__ */ n.jsx(
|
|
1362
|
-
|
|
1369
|
+
zt,
|
|
1363
1370
|
{
|
|
1364
|
-
className:
|
|
1371
|
+
className: C(
|
|
1365
1372
|
"flex items-center gap-4 group bg-muted w-full p-2 hover:bg-accent hover:brightness-95 rounded-md",
|
|
1366
1373
|
t
|
|
1367
1374
|
),
|
|
1368
1375
|
children: /* @__PURE__ */ n.jsx(
|
|
1369
|
-
|
|
1376
|
+
pn,
|
|
1370
1377
|
{
|
|
1371
1378
|
className: "group-data-[state=open]:rotate-180 transition-transform flex-shrink-0",
|
|
1372
1379
|
size: 16
|
|
@@ -1376,141 +1383,30 @@ const M = ({
|
|
|
1376
1383
|
)
|
|
1377
1384
|
]
|
|
1378
1385
|
}
|
|
1379
|
-
),
|
|
1386
|
+
), M = ({
|
|
1380
1387
|
children: e,
|
|
1381
1388
|
className: t
|
|
1382
|
-
}) => /* @__PURE__ */ n.jsx("span", { className:
|
|
1383
|
-
N.SubTrigger,
|
|
1384
|
-
{
|
|
1385
|
-
ref: r,
|
|
1386
|
-
className: j(
|
|
1387
|
-
"flex cursor-default select-none items-center rounded-xs px-2 py-1.5 text-sm outline-hidden focus:bg-accent data-[state=open]:bg-accent",
|
|
1388
|
-
t && "pl-8",
|
|
1389
|
-
e
|
|
1390
|
-
),
|
|
1391
|
-
...a,
|
|
1392
|
-
children: [
|
|
1393
|
-
s,
|
|
1394
|
-
/* @__PURE__ */ n.jsx(bn, { className: "ml-auto h-4 w-4" })
|
|
1395
|
-
]
|
|
1396
|
-
}
|
|
1397
|
-
));
|
|
1398
|
-
Or.displayName = N.SubTrigger.displayName;
|
|
1399
|
-
const Pr = A.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ n.jsx(
|
|
1400
|
-
N.SubContent,
|
|
1401
|
-
{
|
|
1402
|
-
ref: s,
|
|
1403
|
-
className: j(
|
|
1404
|
-
"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",
|
|
1405
|
-
e
|
|
1406
|
-
),
|
|
1407
|
-
...t
|
|
1408
|
-
}
|
|
1409
|
-
));
|
|
1410
|
-
Pr.displayName = N.SubContent.displayName;
|
|
1411
|
-
const _t = A.forwardRef(({ className: e, sideOffset: t = 4, ...s }, a) => /* @__PURE__ */ n.jsx(N.Portal, { children: /* @__PURE__ */ n.jsx(
|
|
1412
|
-
N.Content,
|
|
1413
|
-
{
|
|
1414
|
-
ref: a,
|
|
1415
|
-
sideOffset: t,
|
|
1416
|
-
className: j(
|
|
1417
|
-
"z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md",
|
|
1418
|
-
"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",
|
|
1419
|
-
e
|
|
1420
|
-
),
|
|
1421
|
-
...s
|
|
1422
|
-
}
|
|
1423
|
-
) }));
|
|
1424
|
-
_t.displayName = N.Content.displayName;
|
|
1425
|
-
const Ut = A.forwardRef(({ className: e, inset: t, ...s }, a) => /* @__PURE__ */ n.jsx(
|
|
1426
|
-
N.Item,
|
|
1427
|
-
{
|
|
1428
|
-
ref: a,
|
|
1429
|
-
className: j(
|
|
1430
|
-
"relative flex cursor-default select-none items-center rounded-xs px-2 py-1.5 text-sm outline-hidden transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
1431
|
-
t && "pl-8",
|
|
1432
|
-
e
|
|
1433
|
-
),
|
|
1434
|
-
...s
|
|
1435
|
-
}
|
|
1436
|
-
));
|
|
1437
|
-
Ut.displayName = N.Item.displayName;
|
|
1438
|
-
const Rr = A.forwardRef(({ className: e, children: t, checked: s, ...a }, r) => /* @__PURE__ */ n.jsxs(
|
|
1439
|
-
N.CheckboxItem,
|
|
1440
|
-
{
|
|
1441
|
-
ref: r,
|
|
1442
|
-
className: j(
|
|
1443
|
-
"relative flex cursor-default select-none items-center rounded-xs py-1.5 pl-8 pr-2 text-sm outline-hidden transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
1444
|
-
e
|
|
1445
|
-
),
|
|
1446
|
-
checked: s,
|
|
1447
|
-
...a,
|
|
1448
|
-
children: [
|
|
1449
|
-
/* @__PURE__ */ n.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ n.jsx(N.ItemIndicator, { children: /* @__PURE__ */ n.jsx(gt, { className: "h-4 w-4" }) }) }),
|
|
1450
|
-
t
|
|
1451
|
-
]
|
|
1452
|
-
}
|
|
1453
|
-
));
|
|
1454
|
-
Rr.displayName = N.CheckboxItem.displayName;
|
|
1455
|
-
const Lr = A.forwardRef(({ className: e, children: t, ...s }, a) => /* @__PURE__ */ n.jsxs(
|
|
1456
|
-
N.RadioItem,
|
|
1457
|
-
{
|
|
1458
|
-
ref: a,
|
|
1459
|
-
className: j(
|
|
1460
|
-
"relative flex cursor-default select-none items-center rounded-xs py-1.5 pl-8 pr-2 text-sm outline-hidden transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
1461
|
-
e
|
|
1462
|
-
),
|
|
1463
|
-
...s,
|
|
1464
|
-
children: [
|
|
1465
|
-
/* @__PURE__ */ n.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ n.jsx(N.ItemIndicator, { children: /* @__PURE__ */ n.jsx(jn, { className: "h-4 w-4 fill-current" }) }) }),
|
|
1466
|
-
t
|
|
1467
|
-
]
|
|
1468
|
-
}
|
|
1469
|
-
));
|
|
1470
|
-
Lr.displayName = N.RadioItem.displayName;
|
|
1471
|
-
const Mt = A.forwardRef(({ className: e, inset: t, ...s }, a) => /* @__PURE__ */ n.jsx(
|
|
1472
|
-
N.Label,
|
|
1473
|
-
{
|
|
1474
|
-
ref: a,
|
|
1475
|
-
className: j(
|
|
1476
|
-
"px-2 py-1.5 text-sm font-semibold",
|
|
1477
|
-
t && "pl-8",
|
|
1478
|
-
e
|
|
1479
|
-
),
|
|
1480
|
-
...s
|
|
1481
|
-
}
|
|
1482
|
-
));
|
|
1483
|
-
Mt.displayName = N.Label.displayName;
|
|
1484
|
-
const Gt = A.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ n.jsx(
|
|
1485
|
-
N.Separator,
|
|
1486
|
-
{
|
|
1487
|
-
ref: s,
|
|
1488
|
-
className: j("-mx-1 my-1 h-px bg-muted", e),
|
|
1489
|
-
...t
|
|
1490
|
-
}
|
|
1491
|
-
));
|
|
1492
|
-
Gt.displayName = N.Separator.displayName;
|
|
1493
|
-
const $r = ({
|
|
1389
|
+
}) => /* @__PURE__ */ n.jsx("span", { className: C("font-semibold w-full text-start", t), children: e }), wr = ({
|
|
1494
1390
|
examples: e,
|
|
1495
1391
|
onSelect: t
|
|
1496
|
-
}) => /* @__PURE__ */ n.jsxs(
|
|
1497
|
-
/* @__PURE__ */ n.jsx(
|
|
1498
|
-
|
|
1392
|
+
}) => /* @__PURE__ */ n.jsxs(ls, { children: [
|
|
1393
|
+
/* @__PURE__ */ n.jsx(ds, { asChild: !0, children: /* @__PURE__ */ n.jsxs(
|
|
1394
|
+
E,
|
|
1499
1395
|
{
|
|
1500
1396
|
variant: "ghost",
|
|
1501
1397
|
size: "sm",
|
|
1502
1398
|
className: "hover:bg-accent hover:brightness-95",
|
|
1503
1399
|
children: [
|
|
1504
1400
|
"Use Example ",
|
|
1505
|
-
/* @__PURE__ */ n.jsx(
|
|
1401
|
+
/* @__PURE__ */ n.jsx(pe, { size: 16, className: "ml-2" })
|
|
1506
1402
|
]
|
|
1507
1403
|
}
|
|
1508
1404
|
) }),
|
|
1509
|
-
/* @__PURE__ */ n.jsx(
|
|
1510
|
-
/* @__PURE__ */ n.jsx(
|
|
1511
|
-
/* @__PURE__ */ n.jsx(
|
|
1512
|
-
/* @__PURE__ */ n.jsx(
|
|
1513
|
-
|
|
1405
|
+
/* @__PURE__ */ n.jsx(us, { className: "max-w-72", children: e.map((s) => /* @__PURE__ */ n.jsxs("div", { children: [
|
|
1406
|
+
/* @__PURE__ */ n.jsx(ms, { children: s.mediaType }),
|
|
1407
|
+
/* @__PURE__ */ n.jsx(ps, {}),
|
|
1408
|
+
/* @__PURE__ */ n.jsx(hs, { children: s.examples?.map((a) => /* @__PURE__ */ n.jsx(
|
|
1409
|
+
fs,
|
|
1514
1410
|
{
|
|
1515
1411
|
onSelect: () => t(a, s.mediaType),
|
|
1516
1412
|
children: /* @__PURE__ */ n.jsx(
|
|
@@ -1525,14 +1421,14 @@ const $r = ({
|
|
|
1525
1421
|
a.name
|
|
1526
1422
|
)) })
|
|
1527
1423
|
] }, s.mediaType)) })
|
|
1528
|
-
] }),
|
|
1529
|
-
const { register: t, setValue: s, watch: a } =
|
|
1530
|
-
return /* @__PURE__ */ n.jsxs(
|
|
1531
|
-
/* @__PURE__ */ n.jsxs(
|
|
1532
|
-
/* @__PURE__ */ n.jsx(
|
|
1533
|
-
/* @__PURE__ */ n.jsx(
|
|
1424
|
+
] }), Nr = ({ content: e }) => {
|
|
1425
|
+
const { register: t, setValue: s, watch: a } = ne(), r = (e ?? []).flatMap((i) => i.examples), o = a("headers");
|
|
1426
|
+
return /* @__PURE__ */ n.jsxs(F, { defaultOpen: !0, children: [
|
|
1427
|
+
/* @__PURE__ */ n.jsxs(U, { children: [
|
|
1428
|
+
/* @__PURE__ */ n.jsx(hn, { size: 16 }),
|
|
1429
|
+
/* @__PURE__ */ n.jsx(M, { children: "Body" }),
|
|
1534
1430
|
e && r.length > 0 ? /* @__PURE__ */ n.jsx(
|
|
1535
|
-
|
|
1431
|
+
wr,
|
|
1536
1432
|
{
|
|
1537
1433
|
examples: e,
|
|
1538
1434
|
onSelect: (i, l) => {
|
|
@@ -1548,18 +1444,18 @@ const $r = ({
|
|
|
1548
1444
|
}
|
|
1549
1445
|
) : /* @__PURE__ */ n.jsx("div", {})
|
|
1550
1446
|
] }),
|
|
1551
|
-
/* @__PURE__ */ n.jsx(
|
|
1552
|
-
|
|
1447
|
+
/* @__PURE__ */ n.jsx(z, { className: "flex flex-col gap-2 ", children: /* @__PURE__ */ n.jsx(
|
|
1448
|
+
qt,
|
|
1553
1449
|
{
|
|
1554
1450
|
...t("body"),
|
|
1555
|
-
className:
|
|
1451
|
+
className: C(
|
|
1556
1452
|
"w-full p-2 h-64 font-mono md:text-xs border-none rounded-none focus-visible:ring-0"
|
|
1557
1453
|
),
|
|
1558
1454
|
placeholder: "Your body here..."
|
|
1559
1455
|
}
|
|
1560
1456
|
) })
|
|
1561
1457
|
] });
|
|
1562
|
-
},
|
|
1458
|
+
}, ut = (e, t, s) => {
|
|
1563
1459
|
const a = t.replace(/(:\w+|\{\w+})/g, (o) => {
|
|
1564
1460
|
const i = o.replace(/[:{}]/g, "");
|
|
1565
1461
|
return s.pathParams.find((c) => c.name === i)?.value ?? o;
|
|
@@ -1571,12 +1467,12 @@ const $r = ({
|
|
|
1571
1467
|
r.searchParams.set(o.name, o.value);
|
|
1572
1468
|
}), r;
|
|
1573
1469
|
};
|
|
1574
|
-
function
|
|
1470
|
+
function Sr(e) {
|
|
1575
1471
|
return /^(application\/octet-stream|image\/|audio\/|video\/|font\/|application\/pdf|application\/zip|application\/x-protobuf|application\/x-binary)/i.test(
|
|
1576
1472
|
e
|
|
1577
1473
|
);
|
|
1578
1474
|
}
|
|
1579
|
-
const
|
|
1475
|
+
const Tr = (e, t) => {
|
|
1580
1476
|
const s = e.find(
|
|
1581
1477
|
([a]) => a.toLowerCase() === "content-disposition"
|
|
1582
1478
|
)?.[1];
|
|
@@ -1593,41 +1489,41 @@ const kr = (e, t) => {
|
|
|
1593
1489
|
} catch {
|
|
1594
1490
|
return "download";
|
|
1595
1491
|
}
|
|
1596
|
-
},
|
|
1597
|
-
|
|
1492
|
+
}, ge = q.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ n.jsx(
|
|
1493
|
+
Oe.Root,
|
|
1598
1494
|
{
|
|
1599
1495
|
ref: s,
|
|
1600
|
-
className:
|
|
1496
|
+
className: C(
|
|
1601
1497
|
"peer h-4 w-4 shrink-0 rounded-[min(6px,var(--radius)-4px)] ring-offset-background focus-visible:outline-hidden 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",
|
|
1602
1498
|
"border border-primary data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground data-[state=checked]:border-primary",
|
|
1603
1499
|
e
|
|
1604
1500
|
),
|
|
1605
1501
|
...t,
|
|
1606
1502
|
children: /* @__PURE__ */ n.jsx(
|
|
1607
|
-
|
|
1503
|
+
Oe.Indicator,
|
|
1608
1504
|
{
|
|
1609
|
-
className:
|
|
1610
|
-
children: /* @__PURE__ */ n.jsx(
|
|
1505
|
+
className: C("flex items-center justify-center text-current"),
|
|
1506
|
+
children: /* @__PURE__ */ n.jsx(fn, { className: "h-4 w-4" })
|
|
1611
1507
|
}
|
|
1612
1508
|
)
|
|
1613
1509
|
}
|
|
1614
1510
|
));
|
|
1615
|
-
|
|
1616
|
-
const
|
|
1617
|
-
|
|
1511
|
+
ge.displayName = Oe.Root.displayName;
|
|
1512
|
+
const Ar = le.Root, Vt = q.forwardRef(({ className: e, align: t = "center", sideOffset: s = 4, ...a }, r) => /* @__PURE__ */ n.jsx(le.Portal, { children: /* @__PURE__ */ n.jsx(
|
|
1513
|
+
le.Content,
|
|
1618
1514
|
{
|
|
1619
1515
|
ref: r,
|
|
1620
1516
|
align: t,
|
|
1621
1517
|
sideOffset: s,
|
|
1622
|
-
className:
|
|
1518
|
+
className: C(
|
|
1623
1519
|
"z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-hidden 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",
|
|
1624
1520
|
e
|
|
1625
1521
|
),
|
|
1626
1522
|
...a
|
|
1627
1523
|
}
|
|
1628
1524
|
) }));
|
|
1629
|
-
|
|
1630
|
-
const
|
|
1525
|
+
Vt.displayName = le.Content.displayName;
|
|
1526
|
+
const Or = ({
|
|
1631
1527
|
value: e,
|
|
1632
1528
|
options: t,
|
|
1633
1529
|
onChange: s,
|
|
@@ -1636,10 +1532,10 @@ const zr = ({
|
|
|
1636
1532
|
onEnterPress: o,
|
|
1637
1533
|
ref: i
|
|
1638
1534
|
}) => {
|
|
1639
|
-
const [l, c] =
|
|
1640
|
-
return /* @__PURE__ */ n.jsxs(
|
|
1641
|
-
/* @__PURE__ */ n.jsx(
|
|
1642
|
-
|
|
1535
|
+
const [l, c] = $(!1), [u, d] = $(!1), h = xs((m) => m.filtered.count), g = O(null);
|
|
1536
|
+
return /* @__PURE__ */ n.jsxs(Ar, { open: l, children: [
|
|
1537
|
+
/* @__PURE__ */ n.jsx(gs, { children: /* @__PURE__ */ n.jsx(
|
|
1538
|
+
vs,
|
|
1643
1539
|
{
|
|
1644
1540
|
autoComplete: "off",
|
|
1645
1541
|
ref: (m) => {
|
|
@@ -1647,7 +1543,7 @@ const zr = ({
|
|
|
1647
1543
|
},
|
|
1648
1544
|
value: e,
|
|
1649
1545
|
placeholder: r,
|
|
1650
|
-
className:
|
|
1546
|
+
className: C("h-9 bg-transparent", a),
|
|
1651
1547
|
onFocus: () => c(!0),
|
|
1652
1548
|
onBlur: () => {
|
|
1653
1549
|
u || c(!1);
|
|
@@ -1659,12 +1555,12 @@ const zr = ({
|
|
|
1659
1555
|
}
|
|
1660
1556
|
) }),
|
|
1661
1557
|
/* @__PURE__ */ n.jsx(
|
|
1662
|
-
|
|
1558
|
+
Vt,
|
|
1663
1559
|
{
|
|
1664
1560
|
onMouseEnter: () => d(!0),
|
|
1665
1561
|
onMouseLeave: () => d(!1),
|
|
1666
1562
|
onOpenAutoFocus: (m) => m.preventDefault(),
|
|
1667
|
-
className:
|
|
1563
|
+
className: C("p-0 w-(--radix-popover-trigger-width)", {
|
|
1668
1564
|
"border-0": h === 0
|
|
1669
1565
|
}),
|
|
1670
1566
|
align: "start",
|
|
@@ -1675,8 +1571,8 @@ const zr = ({
|
|
|
1675
1571
|
onTouchMove: (m) => {
|
|
1676
1572
|
m.stopPropagation();
|
|
1677
1573
|
},
|
|
1678
|
-
children: /* @__PURE__ */ n.jsx(
|
|
1679
|
-
|
|
1574
|
+
children: /* @__PURE__ */ n.jsx(bs, { className: "max-h-[140px]", children: t.map((m) => /* @__PURE__ */ n.jsx(
|
|
1575
|
+
js,
|
|
1680
1576
|
{
|
|
1681
1577
|
value: m,
|
|
1682
1578
|
onSelect: (v) => {
|
|
@@ -1690,23 +1586,23 @@ const zr = ({
|
|
|
1690
1586
|
}
|
|
1691
1587
|
)
|
|
1692
1588
|
] });
|
|
1693
|
-
},
|
|
1694
|
-
const s =
|
|
1695
|
-
const l = r ?
|
|
1696
|
-
return
|
|
1589
|
+
}, ue = ({ shouldFilter: e, ...t }) => /* @__PURE__ */ n.jsx(ys, { className: "bg-transparent", shouldFilter: e, children: /* @__PURE__ */ n.jsx(Or, { ...t }) }), se = (e, t) => {
|
|
1590
|
+
const s = q.forwardRef(({ className: a, asChild: r, ...o }, i) => {
|
|
1591
|
+
const l = r ? Cs : e;
|
|
1592
|
+
return q.createElement(l, {
|
|
1697
1593
|
...o,
|
|
1698
1594
|
ref: i,
|
|
1699
|
-
className: typeof t == "function" ? t({ className: a }) :
|
|
1595
|
+
className: typeof t == "function" ? t({ className: a }) : C(t, a)
|
|
1700
1596
|
});
|
|
1701
1597
|
});
|
|
1702
1598
|
return s.displayName = `VariantComponent(${e})`, s;
|
|
1703
|
-
},
|
|
1599
|
+
}, qe = se(
|
|
1704
1600
|
"div",
|
|
1705
1601
|
"grid grid-cols-[min-content_2fr_3fr] items-center gap-x-5"
|
|
1706
|
-
),
|
|
1602
|
+
), me = se(
|
|
1707
1603
|
"div",
|
|
1708
1604
|
"group h-9 hover:bg-accent/75 ps-4 pe-2 grid col-span-full grid-cols-subgrid items-center border-b"
|
|
1709
|
-
),
|
|
1605
|
+
), Pr = Object.freeze([
|
|
1710
1606
|
"Accept",
|
|
1711
1607
|
"Accept-Encoding",
|
|
1712
1608
|
"Accept-Language",
|
|
@@ -1733,40 +1629,40 @@ const zr = ({
|
|
|
1733
1629
|
"Set-Cookie",
|
|
1734
1630
|
"User-Agent",
|
|
1735
1631
|
"X-Requested-With"
|
|
1736
|
-
]),
|
|
1632
|
+
]), Lr = ({
|
|
1737
1633
|
control: e,
|
|
1738
1634
|
schemaHeaders: t,
|
|
1739
1635
|
lockedHeaders: s
|
|
1740
1636
|
}) => {
|
|
1741
|
-
const { fields: a, append: r, remove: o } =
|
|
1637
|
+
const { fields: a, append: r, remove: o } = De({
|
|
1742
1638
|
control: e,
|
|
1743
1639
|
name: "headers"
|
|
1744
|
-
}), { setValue: i, watch: l, formState: c } =
|
|
1640
|
+
}), { setValue: i, watch: l, formState: c } = ne(), u = O([]), d = O([]), h = l("headers"), g = vt(
|
|
1745
1641
|
(f) => {
|
|
1746
1642
|
f?.stopPropagation(), r({ name: "", value: "", active: !1 }, { shouldFocus: !0 });
|
|
1747
1643
|
},
|
|
1748
1644
|
[r]
|
|
1749
1645
|
);
|
|
1750
|
-
|
|
1646
|
+
I(() => {
|
|
1751
1647
|
h.length === 0 && g();
|
|
1752
1648
|
}, [h, g]);
|
|
1753
1649
|
const m = (f) => {
|
|
1754
1650
|
u.current[f]?.focus();
|
|
1755
1651
|
}, v = (f) => {
|
|
1756
1652
|
g(), requestAnimationFrame(() => d.current[f + 1]?.focus());
|
|
1757
|
-
}, y = t.filter((f) => !h.some((
|
|
1653
|
+
}, y = t.filter((f) => !h.some((j) => j.name === f.name)).map(({ name: f }) => f), b = a.flatMap((f, j) => !s?.map((N) => N.toLowerCase()).includes(f.name.toLowerCase()) ? [] : [j]), T = s?.map((f) => ({
|
|
1758
1654
|
name: f,
|
|
1759
1655
|
id: `locked-${f}`,
|
|
1760
1656
|
value: "••••••••••",
|
|
1761
1657
|
active: !0,
|
|
1762
1658
|
locked: !0
|
|
1763
1659
|
})) ?? [];
|
|
1764
|
-
return /* @__PURE__ */ n.jsxs(
|
|
1765
|
-
/* @__PURE__ */ n.jsxs(
|
|
1766
|
-
/* @__PURE__ */ n.jsx(
|
|
1767
|
-
/* @__PURE__ */ n.jsx(
|
|
1660
|
+
return /* @__PURE__ */ n.jsxs(F, { defaultOpen: !0, children: [
|
|
1661
|
+
/* @__PURE__ */ n.jsxs(U, { children: [
|
|
1662
|
+
/* @__PURE__ */ n.jsx(gn, { size: 16 }),
|
|
1663
|
+
/* @__PURE__ */ n.jsx(M, { children: "Headers" }),
|
|
1768
1664
|
/* @__PURE__ */ n.jsxs(
|
|
1769
|
-
|
|
1665
|
+
ce,
|
|
1770
1666
|
{
|
|
1771
1667
|
onClick: g,
|
|
1772
1668
|
type: "button",
|
|
@@ -1775,21 +1671,21 @@ const zr = ({
|
|
|
1775
1671
|
className: "hover:bg-accent hover:brightness-95 flex gap-2",
|
|
1776
1672
|
children: [
|
|
1777
1673
|
"Add header ",
|
|
1778
|
-
/* @__PURE__ */ n.jsx(
|
|
1674
|
+
/* @__PURE__ */ n.jsx(pe, { size: 16 })
|
|
1779
1675
|
]
|
|
1780
1676
|
}
|
|
1781
1677
|
)
|
|
1782
1678
|
] }),
|
|
1783
|
-
/* @__PURE__ */ n.jsx(
|
|
1784
|
-
|
|
1785
|
-
/* @__PURE__ */ n.jsx(
|
|
1786
|
-
|
|
1679
|
+
/* @__PURE__ */ n.jsx(z, { className: "CollapsibleContent", children: /* @__PURE__ */ n.jsx("div", { className: "flex flex-col gap-2", children: /* @__PURE__ */ n.jsx("div", { className: "overflow-hidden", children: /* @__PURE__ */ n.jsxs(qe, { children: [
|
|
1680
|
+
T.map((f) => /* @__PURE__ */ n.jsxs(rt, { children: [
|
|
1681
|
+
/* @__PURE__ */ n.jsx(at, { asChild: !0, children: /* @__PURE__ */ n.jsxs(
|
|
1682
|
+
me,
|
|
1787
1683
|
{
|
|
1788
1684
|
className: "opacity-50 cursor-not-allowed font-mono text-xs min-h-10",
|
|
1789
1685
|
children: [
|
|
1790
|
-
/* @__PURE__ */ n.jsx(
|
|
1686
|
+
/* @__PURE__ */ n.jsx(xn, { size: 16 }),
|
|
1791
1687
|
/* @__PURE__ */ n.jsx(
|
|
1792
|
-
|
|
1688
|
+
de,
|
|
1793
1689
|
{
|
|
1794
1690
|
value: f.name,
|
|
1795
1691
|
disabled: !0,
|
|
@@ -1802,7 +1698,7 @@ const zr = ({
|
|
|
1802
1698
|
f.id
|
|
1803
1699
|
) }),
|
|
1804
1700
|
/* @__PURE__ */ n.jsx(
|
|
1805
|
-
|
|
1701
|
+
ot,
|
|
1806
1702
|
{
|
|
1807
1703
|
alignOffset: 10,
|
|
1808
1704
|
side: "bottom",
|
|
@@ -1811,50 +1707,50 @@ const zr = ({
|
|
|
1811
1707
|
}
|
|
1812
1708
|
)
|
|
1813
1709
|
] }, f.id)),
|
|
1814
|
-
a.map((f,
|
|
1815
|
-
const
|
|
1816
|
-
(
|
|
1710
|
+
a.map((f, j) => {
|
|
1711
|
+
const L = t.find(
|
|
1712
|
+
(N) => N.name === h.at(j)?.name
|
|
1817
1713
|
);
|
|
1818
1714
|
return /* @__PURE__ */ n.jsxs(
|
|
1819
|
-
|
|
1715
|
+
me,
|
|
1820
1716
|
{
|
|
1821
|
-
className:
|
|
1822
|
-
b.includes(
|
|
1823
|
-
b.includes(
|
|
1717
|
+
className: C(
|
|
1718
|
+
b.includes(j) && "text-amber-600",
|
|
1719
|
+
b.includes(j) && !c.dirtyFields.headers?.[j]?.value && "hidden"
|
|
1824
1720
|
),
|
|
1825
1721
|
children: [
|
|
1826
1722
|
/* @__PURE__ */ n.jsx(
|
|
1827
|
-
|
|
1723
|
+
D,
|
|
1828
1724
|
{
|
|
1829
1725
|
control: e,
|
|
1830
|
-
name: `headers.${
|
|
1831
|
-
render: ({ field:
|
|
1726
|
+
name: `headers.${j}.active`,
|
|
1727
|
+
render: ({ field: N }) => /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
1832
1728
|
/* @__PURE__ */ n.jsx(
|
|
1833
|
-
|
|
1729
|
+
ge,
|
|
1834
1730
|
{
|
|
1835
|
-
id: `headers.${
|
|
1836
|
-
className:
|
|
1837
|
-
b.includes(
|
|
1731
|
+
id: `headers.${j}.active`,
|
|
1732
|
+
className: C(
|
|
1733
|
+
b.includes(j) && "hidden"
|
|
1838
1734
|
),
|
|
1839
|
-
checked:
|
|
1840
|
-
onCheckedChange: (
|
|
1841
|
-
|
|
1735
|
+
checked: N.value,
|
|
1736
|
+
onCheckedChange: (k) => {
|
|
1737
|
+
N.onChange(k);
|
|
1842
1738
|
}
|
|
1843
1739
|
}
|
|
1844
1740
|
),
|
|
1845
|
-
/* @__PURE__ */ n.jsxs(
|
|
1846
|
-
/* @__PURE__ */ n.jsx(
|
|
1847
|
-
|
|
1741
|
+
/* @__PURE__ */ n.jsxs(rt, { children: [
|
|
1742
|
+
/* @__PURE__ */ n.jsx(at, { asChild: !0, children: /* @__PURE__ */ n.jsx(
|
|
1743
|
+
yn,
|
|
1848
1744
|
{
|
|
1849
|
-
className:
|
|
1745
|
+
className: C(
|
|
1850
1746
|
"text-amber-600",
|
|
1851
|
-
!b.includes(
|
|
1747
|
+
!b.includes(j) && "hidden"
|
|
1852
1748
|
),
|
|
1853
1749
|
size: 16
|
|
1854
1750
|
}
|
|
1855
1751
|
) }),
|
|
1856
1752
|
/* @__PURE__ */ n.jsx(
|
|
1857
|
-
|
|
1753
|
+
ot,
|
|
1858
1754
|
{
|
|
1859
1755
|
alignOffset: 10,
|
|
1860
1756
|
side: "bottom",
|
|
@@ -1867,23 +1763,23 @@ const zr = ({
|
|
|
1867
1763
|
}
|
|
1868
1764
|
),
|
|
1869
1765
|
/* @__PURE__ */ n.jsx(
|
|
1870
|
-
|
|
1766
|
+
D,
|
|
1871
1767
|
{
|
|
1872
1768
|
control: e,
|
|
1873
|
-
name: `headers.${
|
|
1874
|
-
render: ({ field:
|
|
1875
|
-
|
|
1769
|
+
name: `headers.${j}.name`,
|
|
1770
|
+
render: ({ field: N }) => /* @__PURE__ */ n.jsx(
|
|
1771
|
+
ue,
|
|
1876
1772
|
{
|
|
1877
|
-
...
|
|
1773
|
+
...N,
|
|
1878
1774
|
placeholder: "Name",
|
|
1879
1775
|
className: "border-0 p-0 m-0 shadow-none focus-visible:ring-0 bg-transparent hover:bg-transparent text-xs font-mono",
|
|
1880
|
-
options: [...y, ...
|
|
1881
|
-
onEnterPress: () => m(
|
|
1882
|
-
onChange: (
|
|
1883
|
-
|
|
1776
|
+
options: [...y, ...Pr],
|
|
1777
|
+
onEnterPress: () => m(j),
|
|
1778
|
+
onChange: (k) => {
|
|
1779
|
+
N.onChange(k), i(`headers.${j}.active`, !0);
|
|
1884
1780
|
},
|
|
1885
|
-
ref: (
|
|
1886
|
-
d.current[
|
|
1781
|
+
ref: (k) => {
|
|
1782
|
+
d.current[j] = k;
|
|
1887
1783
|
}
|
|
1888
1784
|
}
|
|
1889
1785
|
)
|
|
@@ -1891,47 +1787,47 @@ const zr = ({
|
|
|
1891
1787
|
),
|
|
1892
1788
|
/* @__PURE__ */ n.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
1893
1789
|
/* @__PURE__ */ n.jsx(
|
|
1894
|
-
|
|
1790
|
+
D,
|
|
1895
1791
|
{
|
|
1896
1792
|
control: e,
|
|
1897
|
-
name: `headers.${
|
|
1898
|
-
render: ({ field:
|
|
1899
|
-
|
|
1793
|
+
name: `headers.${j}.value`,
|
|
1794
|
+
render: ({ field: N }) => L?.enum && L.enum.length > 0 ? /* @__PURE__ */ n.jsx(
|
|
1795
|
+
ue,
|
|
1900
1796
|
{
|
|
1901
1797
|
shouldFilter: !1,
|
|
1902
|
-
value:
|
|
1903
|
-
options:
|
|
1904
|
-
onChange: (
|
|
1905
|
-
|
|
1798
|
+
value: N.value,
|
|
1799
|
+
options: L.enum ?? [],
|
|
1800
|
+
onChange: (A) => {
|
|
1801
|
+
N.onChange(A), i(`headers.${j}.active`, !0);
|
|
1906
1802
|
},
|
|
1907
1803
|
className: "border-0 p-0 m-0 shadow-none focus-visible:ring-0 bg-transparent hover:bg-transparent text-xs font-mono"
|
|
1908
1804
|
}
|
|
1909
1805
|
) : /* @__PURE__ */ n.jsx(
|
|
1910
|
-
|
|
1806
|
+
de,
|
|
1911
1807
|
{
|
|
1912
1808
|
placeholder: "Value",
|
|
1913
1809
|
className: "w-full truncate border-0 p-0 m-0 shadow-none text-xs focus-visible:ring-0 font-mono",
|
|
1914
1810
|
autoComplete: "off",
|
|
1915
|
-
...
|
|
1916
|
-
ref: (
|
|
1917
|
-
u.current[
|
|
1811
|
+
...N,
|
|
1812
|
+
ref: (A) => {
|
|
1813
|
+
u.current[j] = A;
|
|
1918
1814
|
},
|
|
1919
|
-
onKeyDown: (
|
|
1920
|
-
|
|
1815
|
+
onKeyDown: (A) => {
|
|
1816
|
+
A.key === "Enter" && A.currentTarget.value.trim() && v(j);
|
|
1921
1817
|
}
|
|
1922
1818
|
}
|
|
1923
1819
|
)
|
|
1924
1820
|
}
|
|
1925
1821
|
),
|
|
1926
1822
|
/* @__PURE__ */ n.jsx(
|
|
1927
|
-
|
|
1823
|
+
ce,
|
|
1928
1824
|
{
|
|
1929
1825
|
size: "icon-xs",
|
|
1930
1826
|
variant: "ghost",
|
|
1931
1827
|
className: "text-muted-foreground opacity-0 group-hover:brightness-95 group-hover:opacity-100",
|
|
1932
|
-
onClick: () => o(
|
|
1828
|
+
onClick: () => o(j),
|
|
1933
1829
|
type: "button",
|
|
1934
|
-
children: /* @__PURE__ */ n.jsx(
|
|
1830
|
+
children: /* @__PURE__ */ n.jsx(ft, { size: 16 })
|
|
1935
1831
|
}
|
|
1936
1832
|
)
|
|
1937
1833
|
] })
|
|
@@ -1942,58 +1838,58 @@ const zr = ({
|
|
|
1942
1838
|
})
|
|
1943
1839
|
] }) }) }) })
|
|
1944
1840
|
] });
|
|
1945
|
-
},
|
|
1841
|
+
}, $r = Ns(
|
|
1946
1842
|
"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
|
|
1947
|
-
),
|
|
1948
|
-
|
|
1843
|
+
), Ve = q.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ n.jsx(
|
|
1844
|
+
Tt.Root,
|
|
1949
1845
|
{
|
|
1950
1846
|
ref: s,
|
|
1951
|
-
className:
|
|
1847
|
+
className: C($r(), e),
|
|
1952
1848
|
...t
|
|
1953
1849
|
}
|
|
1954
1850
|
));
|
|
1955
|
-
|
|
1956
|
-
const
|
|
1957
|
-
|
|
1851
|
+
Ve.displayName = Tt.Root.displayName;
|
|
1852
|
+
const Bt = q.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ n.jsx(
|
|
1853
|
+
ee.Root,
|
|
1958
1854
|
{
|
|
1959
|
-
className:
|
|
1855
|
+
className: C("grid gap-2", e),
|
|
1960
1856
|
...t,
|
|
1961
1857
|
ref: s
|
|
1962
1858
|
}
|
|
1963
1859
|
));
|
|
1964
|
-
|
|
1965
|
-
const
|
|
1966
|
-
|
|
1860
|
+
Bt.displayName = ee.Root.displayName;
|
|
1861
|
+
const _t = q.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ n.jsx(
|
|
1862
|
+
ee.Item,
|
|
1967
1863
|
{
|
|
1968
1864
|
ref: s,
|
|
1969
|
-
className:
|
|
1865
|
+
className: C(
|
|
1970
1866
|
"aspect-square h-4 w-4 rounded-full border border-primary text-primary ring-offset-background focus:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",
|
|
1971
1867
|
e
|
|
1972
1868
|
),
|
|
1973
1869
|
...t,
|
|
1974
|
-
children: /* @__PURE__ */ n.jsx(
|
|
1870
|
+
children: /* @__PURE__ */ n.jsx(ee.Indicator, { className: "flex items-center justify-center", children: /* @__PURE__ */ n.jsx(vn, { className: "h-2.5 w-2.5 fill-current text-current" }) })
|
|
1975
1871
|
}
|
|
1976
1872
|
));
|
|
1977
|
-
|
|
1978
|
-
const
|
|
1873
|
+
_t.displayName = ee.Item.displayName;
|
|
1874
|
+
const Ut = ({
|
|
1979
1875
|
identities: e,
|
|
1980
1876
|
setValue: t,
|
|
1981
1877
|
value: s
|
|
1982
1878
|
}) => /* @__PURE__ */ n.jsx("div", { className: "w-full overflow-hidden", children: /* @__PURE__ */ n.jsx(
|
|
1983
|
-
|
|
1879
|
+
Bt,
|
|
1984
1880
|
{
|
|
1985
1881
|
onValueChange: (a) => t(a),
|
|
1986
1882
|
value: s,
|
|
1987
|
-
defaultValue:
|
|
1883
|
+
defaultValue: K,
|
|
1988
1884
|
className: "gap-0",
|
|
1989
1885
|
disabled: e?.length === 0,
|
|
1990
|
-
children: [{ id:
|
|
1886
|
+
children: [{ id: K, label: "None" }, ...e ?? []].map(
|
|
1991
1887
|
(a) => /* @__PURE__ */ n.jsxs(
|
|
1992
|
-
|
|
1888
|
+
Ve,
|
|
1993
1889
|
{
|
|
1994
1890
|
className: "h-10 items-center border-b font-normal flex gap-4 p-4 cursor-pointer hover:bg-accent/75",
|
|
1995
1891
|
children: [
|
|
1996
|
-
/* @__PURE__ */ n.jsx(
|
|
1892
|
+
/* @__PURE__ */ n.jsx(_t, { value: a.id, id: a.id }),
|
|
1997
1893
|
/* @__PURE__ */ n.jsx("span", { children: a.label })
|
|
1998
1894
|
]
|
|
1999
1895
|
},
|
|
@@ -2001,28 +1897,28 @@ const Wt = ({
|
|
|
2001
1897
|
)
|
|
2002
1898
|
)
|
|
2003
1899
|
}
|
|
2004
|
-
) }),
|
|
1900
|
+
) }), Er = ({
|
|
2005
1901
|
onSubmit: e,
|
|
2006
1902
|
identities: t,
|
|
2007
1903
|
open: s,
|
|
2008
1904
|
onOpenChange: a
|
|
2009
1905
|
}) => {
|
|
2010
|
-
const [r, o] =
|
|
2011
|
-
return /* @__PURE__ */ n.jsx(
|
|
2012
|
-
/* @__PURE__ */ n.jsx(
|
|
2013
|
-
/* @__PURE__ */ n.jsx(
|
|
2014
|
-
/* @__PURE__ */ n.jsx(
|
|
2015
|
-
|
|
1906
|
+
const [r, o] = $(void 0), [i, l] = $(!1);
|
|
1907
|
+
return /* @__PURE__ */ n.jsx(Re, { open: s, onOpenChange: a, children: /* @__PURE__ */ n.jsxs(ke, { children: [
|
|
1908
|
+
/* @__PURE__ */ n.jsx(Ie, { children: "Select an auth identity" }),
|
|
1909
|
+
/* @__PURE__ */ n.jsx(bt, { children: "Please select an identity for this request." }),
|
|
1910
|
+
/* @__PURE__ */ n.jsx(ws, { className: "max-h-80 overflow-auto", children: /* @__PURE__ */ n.jsx(
|
|
1911
|
+
Ut,
|
|
2016
1912
|
{
|
|
2017
1913
|
identities: t,
|
|
2018
1914
|
setValue: o,
|
|
2019
1915
|
value: r
|
|
2020
1916
|
}
|
|
2021
1917
|
) }),
|
|
2022
|
-
/* @__PURE__ */ n.jsxs(
|
|
1918
|
+
/* @__PURE__ */ n.jsxs(jt, { className: "flex flex-col gap-2", children: [
|
|
2023
1919
|
/* @__PURE__ */ n.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
2024
1920
|
/* @__PURE__ */ n.jsx(
|
|
2025
|
-
|
|
1921
|
+
ge,
|
|
2026
1922
|
{
|
|
2027
1923
|
id: "remember",
|
|
2028
1924
|
checked: i,
|
|
@@ -2031,10 +1927,10 @@ const Wt = ({
|
|
|
2031
1927
|
)
|
|
2032
1928
|
}
|
|
2033
1929
|
),
|
|
2034
|
-
/* @__PURE__ */ n.jsx(
|
|
1930
|
+
/* @__PURE__ */ n.jsx(Ve, { htmlFor: "remember", children: "Remember my choice" })
|
|
2035
1931
|
] }),
|
|
2036
1932
|
/* @__PURE__ */ n.jsx(
|
|
2037
|
-
|
|
1933
|
+
E,
|
|
2038
1934
|
{
|
|
2039
1935
|
onClick: () => e({ identity: r, rememberedIdentity: i }),
|
|
2040
1936
|
children: "Send"
|
|
@@ -2043,23 +1939,23 @@ const Wt = ({
|
|
|
2043
1939
|
] })
|
|
2044
1940
|
] }) });
|
|
2045
1941
|
}, we = (e) => Math.abs(
|
|
2046
|
-
Number.isNaN(
|
|
2047
|
-
),
|
|
2048
|
-
const s = (3 *
|
|
1942
|
+
Number.isNaN(Number(e)) ? e.toLowerCase().charCodeAt(0) - 96 : Number.isNaN(Number(e)) ? 0 : Number(e)
|
|
1943
|
+
), Ne = (e) => e.length > 1 ? Number(e.split("").reduce((t, s) => `${we(t) + we(s)}`)) : we(e), mt = (e, t = {}) => {
|
|
1944
|
+
const s = (3 * Ne(e) + 2 * Ne(e) + Ne(e)) % 360, { saturation: a = 75, lightness: r = 60 } = t;
|
|
2049
1945
|
return `${s}deg ${a}% ${r}%`;
|
|
2050
|
-
},
|
|
2051
|
-
const { resolvedTheme: t } =
|
|
1946
|
+
}, Se = "data-linked-param", Rr = (e) => {
|
|
1947
|
+
const { resolvedTheme: t } = Ss();
|
|
2052
1948
|
return {
|
|
2053
|
-
text:
|
|
1949
|
+
text: mt(
|
|
2054
1950
|
e,
|
|
2055
1951
|
t === "light" ? { saturation: 95, lightness: 38 } : {}
|
|
2056
1952
|
),
|
|
2057
|
-
background:
|
|
1953
|
+
background: mt(
|
|
2058
1954
|
e,
|
|
2059
1955
|
t === "light" ? { saturation: 85, lightness: 40 } : {}
|
|
2060
1956
|
)
|
|
2061
1957
|
};
|
|
2062
|
-
},
|
|
1958
|
+
}, Mt = ({
|
|
2063
1959
|
name: e,
|
|
2064
1960
|
className: t,
|
|
2065
1961
|
slug: s,
|
|
@@ -2067,16 +1963,16 @@ const Wt = ({
|
|
|
2067
1963
|
children: r,
|
|
2068
1964
|
onClick: o
|
|
2069
1965
|
}) => {
|
|
2070
|
-
const i =
|
|
2071
|
-
return
|
|
1966
|
+
const i = O(null), l = s?.replace(/[{}]/g, ""), c = e.replace(/[{}]/g, ""), { text: u, background: d } = Rr(c), h = `hsl(${u} / 100%)`, g = `hsl(${d} / 10%)`, m = `hsl(${d} / 50%)`;
|
|
1967
|
+
return I(() => {
|
|
2072
1968
|
if (!l || !i.current) return;
|
|
2073
1969
|
const v = () => {
|
|
2074
|
-
document.querySelectorAll(`[${
|
|
2075
|
-
|
|
1970
|
+
document.querySelectorAll(`[${Se}="${l}"]`).forEach((T) => {
|
|
1971
|
+
T instanceof HTMLElement && (T.dataset.active = "true");
|
|
2076
1972
|
});
|
|
2077
1973
|
}, y = () => {
|
|
2078
|
-
document.querySelectorAll(`[${
|
|
2079
|
-
|
|
1974
|
+
document.querySelectorAll(`[${Se}="${l}"]`).forEach((T) => {
|
|
1975
|
+
T instanceof HTMLElement && (T.dataset.active = "false");
|
|
2080
1976
|
});
|
|
2081
1977
|
}, b = i.current;
|
|
2082
1978
|
return b.addEventListener("mouseenter", v), b.addEventListener("mouseleave", y), () => {
|
|
@@ -2087,8 +1983,8 @@ const Wt = ({
|
|
|
2087
1983
|
/* @__PURE__ */ n.jsx(
|
|
2088
1984
|
"span",
|
|
2089
1985
|
{
|
|
2090
|
-
[
|
|
2091
|
-
className:
|
|
1986
|
+
[Se]: l,
|
|
1987
|
+
className: C(
|
|
2092
1988
|
// This may not contain (inline-)flex or (inline-)block otherwise it breaks the browser's full text search
|
|
2093
1989
|
"relative transition-all duration-100 rounded-lg",
|
|
2094
1990
|
"border border-(--border-color) p-0.5 text-(--param-color) bg-(--background-color)",
|
|
@@ -2107,24 +2003,24 @@ const Wt = ({
|
|
|
2107
2003
|
children: r ?? e
|
|
2108
2004
|
}
|
|
2109
2005
|
);
|
|
2110
|
-
},
|
|
2006
|
+
}, kr = ({
|
|
2111
2007
|
control: e,
|
|
2112
2008
|
url: t
|
|
2113
2009
|
}) => {
|
|
2114
|
-
const { fields: s } =
|
|
2010
|
+
const { fields: s } = De({
|
|
2115
2011
|
control: e,
|
|
2116
2012
|
name: "pathParams"
|
|
2117
2013
|
}), a = [...s].sort(
|
|
2118
2014
|
(r, o) => t.indexOf(`{${r.name}}`) - t.indexOf(`{${o.name}}`)
|
|
2119
2015
|
);
|
|
2120
|
-
return /* @__PURE__ */ n.jsx("div", { className: "overflow-hidden", children: /* @__PURE__ */ n.jsx(
|
|
2016
|
+
return /* @__PURE__ */ n.jsx("div", { className: "overflow-hidden", children: /* @__PURE__ */ n.jsx(qe, { children: a.map((r, o) => /* @__PURE__ */ n.jsxs(me, { children: [
|
|
2121
2017
|
/* @__PURE__ */ n.jsx(
|
|
2122
|
-
|
|
2018
|
+
D,
|
|
2123
2019
|
{
|
|
2124
2020
|
control: e,
|
|
2125
2021
|
name: `pathParams.${o}.name`,
|
|
2126
2022
|
render: () => /* @__PURE__ */ n.jsx("div", { className: "flex items-center", children: /* @__PURE__ */ n.jsx(
|
|
2127
|
-
|
|
2023
|
+
Mt,
|
|
2128
2024
|
{
|
|
2129
2025
|
slug: r.name,
|
|
2130
2026
|
name: r.name,
|
|
@@ -2134,12 +2030,12 @@ const Wt = ({
|
|
|
2134
2030
|
}
|
|
2135
2031
|
),
|
|
2136
2032
|
/* @__PURE__ */ n.jsx("div", { className: "flex justify-between items-center col-span-2", children: /* @__PURE__ */ n.jsx(
|
|
2137
|
-
|
|
2033
|
+
D,
|
|
2138
2034
|
{
|
|
2139
2035
|
control: e,
|
|
2140
2036
|
name: `pathParams.${o}.value`,
|
|
2141
2037
|
render: ({ field: i }) => /* @__PURE__ */ n.jsx(
|
|
2142
|
-
|
|
2038
|
+
de,
|
|
2143
2039
|
{
|
|
2144
2040
|
...i,
|
|
2145
2041
|
required: !0,
|
|
@@ -2150,29 +2046,29 @@ const Wt = ({
|
|
|
2150
2046
|
}
|
|
2151
2047
|
) })
|
|
2152
2048
|
] }, r.id)) }) });
|
|
2153
|
-
},
|
|
2049
|
+
}, Ir = se(
|
|
2154
2050
|
"input",
|
|
2155
2051
|
"bg-transparent h-9 font-mono text-xs"
|
|
2156
|
-
),
|
|
2052
|
+
), Dr = ({
|
|
2157
2053
|
control: e,
|
|
2158
2054
|
schemaQueryParams: t
|
|
2159
2055
|
}) => {
|
|
2160
|
-
const { fields: s, remove: a, append: r } =
|
|
2056
|
+
const { fields: s, remove: a, append: r } = De({
|
|
2161
2057
|
control: e,
|
|
2162
2058
|
name: "queryParams"
|
|
2163
|
-
}), { setValue: o, getValues: i, watch: l } =
|
|
2164
|
-
|
|
2059
|
+
}), { setValue: o, getValues: i, watch: l } = ne(), c = l("queryParams");
|
|
2060
|
+
I(() => {
|
|
2165
2061
|
c.length === 0 && r({ name: "", value: "", active: !1 }, { shouldFocus: !0 });
|
|
2166
2062
|
}, [c, r]);
|
|
2167
2063
|
const u = t.map(
|
|
2168
2064
|
(d) => !!d.isRequired
|
|
2169
2065
|
);
|
|
2170
|
-
return /* @__PURE__ */ n.jsxs(
|
|
2171
|
-
/* @__PURE__ */ n.jsxs(
|
|
2172
|
-
/* @__PURE__ */ n.jsx(
|
|
2173
|
-
/* @__PURE__ */ n.jsx(
|
|
2066
|
+
return /* @__PURE__ */ n.jsxs(F, { defaultOpen: !0, children: [
|
|
2067
|
+
/* @__PURE__ */ n.jsxs(U, { children: [
|
|
2068
|
+
/* @__PURE__ */ n.jsx(bn, { size: 16 }),
|
|
2069
|
+
/* @__PURE__ */ n.jsx(M, { children: "Query Parameters" }),
|
|
2174
2070
|
/* @__PURE__ */ n.jsxs(
|
|
2175
|
-
|
|
2071
|
+
E,
|
|
2176
2072
|
{
|
|
2177
2073
|
onClick: () => {
|
|
2178
2074
|
o("queryParams", [
|
|
@@ -2186,23 +2082,23 @@ const Wt = ({
|
|
|
2186
2082
|
className: "hover:bg-accent hover:brightness-95 flex gap-2",
|
|
2187
2083
|
children: [
|
|
2188
2084
|
"Add parameter ",
|
|
2189
|
-
/* @__PURE__ */ n.jsx(
|
|
2085
|
+
/* @__PURE__ */ n.jsx(pe, { size: 16 })
|
|
2190
2086
|
]
|
|
2191
2087
|
}
|
|
2192
2088
|
)
|
|
2193
2089
|
] }),
|
|
2194
|
-
/* @__PURE__ */ n.jsx(
|
|
2090
|
+
/* @__PURE__ */ n.jsx(z, { className: "CollapsibleContent", children: /* @__PURE__ */ n.jsx("div", { className: "overflow-hidden w-full", children: /* @__PURE__ */ n.jsx(qe, { children: s.map((d, h) => {
|
|
2195
2091
|
const g = t.find(
|
|
2196
2092
|
(m) => m.name === c.at(h)?.name
|
|
2197
2093
|
);
|
|
2198
|
-
return /* @__PURE__ */ n.jsxs(
|
|
2094
|
+
return /* @__PURE__ */ n.jsxs(me, { children: [
|
|
2199
2095
|
/* @__PURE__ */ n.jsx(
|
|
2200
|
-
|
|
2096
|
+
D,
|
|
2201
2097
|
{
|
|
2202
2098
|
control: e,
|
|
2203
2099
|
name: `queryParams.${h}.active`,
|
|
2204
2100
|
render: ({ field: m }) => /* @__PURE__ */ n.jsx(
|
|
2205
|
-
|
|
2101
|
+
ge,
|
|
2206
2102
|
{
|
|
2207
2103
|
id: `queryParams.${h}.active`,
|
|
2208
2104
|
checked: m.value,
|
|
@@ -2212,10 +2108,10 @@ const Wt = ({
|
|
|
2212
2108
|
}
|
|
2213
2109
|
),
|
|
2214
2110
|
/* @__PURE__ */ n.jsx(
|
|
2215
|
-
|
|
2111
|
+
D,
|
|
2216
2112
|
{
|
|
2217
2113
|
control: e,
|
|
2218
|
-
render: ({ field: m }) => u[h] ? /* @__PURE__ */ n.jsx(
|
|
2114
|
+
render: ({ field: m }) => u[h] ? /* @__PURE__ */ n.jsx(Ir, { asChild: !0, children: /* @__PURE__ */ n.jsxs(
|
|
2219
2115
|
"label",
|
|
2220
2116
|
{
|
|
2221
2117
|
className: "flex items-center cursor-pointer gap-1",
|
|
@@ -2227,7 +2123,7 @@ const Wt = ({
|
|
|
2227
2123
|
]
|
|
2228
2124
|
}
|
|
2229
2125
|
) }) : /* @__PURE__ */ n.jsx(
|
|
2230
|
-
|
|
2126
|
+
ue,
|
|
2231
2127
|
{
|
|
2232
2128
|
placeholder: "Name",
|
|
2233
2129
|
value: m.value,
|
|
@@ -2243,11 +2139,11 @@ const Wt = ({
|
|
|
2243
2139
|
),
|
|
2244
2140
|
/* @__PURE__ */ n.jsxs("div", { className: "flex justify-between items-center", children: [
|
|
2245
2141
|
/* @__PURE__ */ n.jsx(
|
|
2246
|
-
|
|
2142
|
+
D,
|
|
2247
2143
|
{
|
|
2248
2144
|
control: e,
|
|
2249
2145
|
render: ({ field: m }) => g?.enum && g.enum.length > 0 ? /* @__PURE__ */ n.jsx(
|
|
2250
|
-
|
|
2146
|
+
ue,
|
|
2251
2147
|
{
|
|
2252
2148
|
value: m.value,
|
|
2253
2149
|
options: g.enum ?? [],
|
|
@@ -2257,7 +2153,7 @@ const Wt = ({
|
|
|
2257
2153
|
className: "border-0 shadow-none focus-visible:ring-0 bg-transparent hover:bg-transparent text-xs font-mono"
|
|
2258
2154
|
}
|
|
2259
2155
|
) : /* @__PURE__ */ n.jsx(
|
|
2260
|
-
|
|
2156
|
+
de,
|
|
2261
2157
|
{
|
|
2262
2158
|
...m,
|
|
2263
2159
|
onChange: (y) => {
|
|
@@ -2272,36 +2168,36 @@ const Wt = ({
|
|
|
2272
2168
|
}
|
|
2273
2169
|
),
|
|
2274
2170
|
/* @__PURE__ */ n.jsx(
|
|
2275
|
-
|
|
2171
|
+
E,
|
|
2276
2172
|
{
|
|
2277
2173
|
size: "icon-xs",
|
|
2278
2174
|
variant: "ghost",
|
|
2279
2175
|
className: "text-muted-foreground opacity-0 group-hover:brightness-95 group-hover:opacity-100",
|
|
2280
2176
|
onClick: () => a(h),
|
|
2281
2177
|
type: "button",
|
|
2282
|
-
children: /* @__PURE__ */ n.jsx(
|
|
2178
|
+
children: /* @__PURE__ */ n.jsx(ft, { size: 16 })
|
|
2283
2179
|
}
|
|
2284
2180
|
)
|
|
2285
2181
|
] })
|
|
2286
2182
|
] }, d.id);
|
|
2287
2183
|
}) }) }) })
|
|
2288
2184
|
] });
|
|
2289
|
-
},
|
|
2185
|
+
}, Fr = ({
|
|
2290
2186
|
open: e,
|
|
2291
2187
|
setOpen: t,
|
|
2292
2188
|
onSignUp: s,
|
|
2293
2189
|
onLogin: a
|
|
2294
|
-
}) => /* @__PURE__ */ n.jsx(
|
|
2295
|
-
/* @__PURE__ */ n.jsx(
|
|
2296
|
-
/* @__PURE__ */ n.jsx(
|
|
2297
|
-
/* @__PURE__ */ n.jsxs(
|
|
2298
|
-
/* @__PURE__ */ n.jsx(
|
|
2190
|
+
}) => /* @__PURE__ */ n.jsx(Re, { open: e, onOpenChange: t, children: /* @__PURE__ */ n.jsxs(ke, { children: [
|
|
2191
|
+
/* @__PURE__ */ n.jsx(Ie, { children: "Welcome to the Playground!" }),
|
|
2192
|
+
/* @__PURE__ */ n.jsx(bt, { children: "The Playground is a tool for developers to test and explore our APIs. To use the Playground, you need to login." }),
|
|
2193
|
+
/* @__PURE__ */ n.jsxs(jt, { className: "flex gap-2 sm:justify-between", children: [
|
|
2194
|
+
/* @__PURE__ */ n.jsx(E, { type: "button", variant: "ghost", onClick: () => t(!1), children: "Skip" }),
|
|
2299
2195
|
/* @__PURE__ */ n.jsxs("div", { className: "flex gap-2", children: [
|
|
2300
|
-
s && /* @__PURE__ */ n.jsx(
|
|
2301
|
-
a && /* @__PURE__ */ n.jsx(
|
|
2196
|
+
s && /* @__PURE__ */ n.jsx(E, { type: "button", variant: "outline", onClick: s, children: "Sign Up" }),
|
|
2197
|
+
a && /* @__PURE__ */ n.jsx(E, { type: "button", variant: "default", onClick: a, children: "Login" })
|
|
2302
2198
|
] })
|
|
2303
2199
|
] })
|
|
2304
|
-
] }) }),
|
|
2200
|
+
] }) }), zr = $e()(
|
|
2305
2201
|
Ee(
|
|
2306
2202
|
(e, t) => ({
|
|
2307
2203
|
rememberedIdentity: null,
|
|
@@ -2312,10 +2208,10 @@ const Wt = ({
|
|
|
2312
2208
|
}),
|
|
2313
2209
|
{
|
|
2314
2210
|
name: "identity-storage",
|
|
2315
|
-
storage:
|
|
2211
|
+
storage: gt(() => sessionStorage)
|
|
2316
2212
|
}
|
|
2317
2213
|
)
|
|
2318
|
-
),
|
|
2214
|
+
), qr = ({
|
|
2319
2215
|
path: e,
|
|
2320
2216
|
renderParam: t
|
|
2321
2217
|
}) => {
|
|
@@ -2328,23 +2224,23 @@ const Wt = ({
|
|
|
2328
2224
|
if (!h) return;
|
|
2329
2225
|
const g = u.index;
|
|
2330
2226
|
g > c && l.push(
|
|
2331
|
-
/* @__PURE__ */ n.jsx(
|
|
2227
|
+
/* @__PURE__ */ n.jsx(Z, { children: a.slice(c, g) }, `text-${c}-${g}`)
|
|
2332
2228
|
), l.push(
|
|
2333
|
-
/* @__PURE__ */ n.jsx(
|
|
2229
|
+
/* @__PURE__ */ n.jsx(Z, { children: t({ name: h, originalValue: d, index: s++ }) }, `param-${h}`)
|
|
2334
2230
|
), c = g + d.length;
|
|
2335
2231
|
}), c < a.length && l.push(
|
|
2336
|
-
/* @__PURE__ */ n.jsx(
|
|
2232
|
+
/* @__PURE__ */ n.jsx(Z, { children: a.slice(c) }, `text-${c}-${a.length}`)
|
|
2337
2233
|
), // biome-ignore lint/suspicious/noArrayIndexKey: index should be stable
|
|
2338
|
-
/* @__PURE__ */ n.jsxs(
|
|
2234
|
+
/* @__PURE__ */ n.jsxs(Z, { children: [
|
|
2339
2235
|
l,
|
|
2340
2236
|
r < o.length - 1 && "/",
|
|
2341
2237
|
/* @__PURE__ */ n.jsx("wbr", {})
|
|
2342
2238
|
] }, `${a}-${r}`);
|
|
2343
2239
|
});
|
|
2344
|
-
},
|
|
2345
|
-
const { watch: t, setFocus: s } =
|
|
2240
|
+
}, Vr = ({ url: e }) => {
|
|
2241
|
+
const { watch: t, setFocus: s } = ne(), [a] = t(["pathParams"]);
|
|
2346
2242
|
return /* @__PURE__ */ n.jsx(
|
|
2347
|
-
|
|
2243
|
+
qr,
|
|
2348
2244
|
{
|
|
2349
2245
|
path: e,
|
|
2350
2246
|
renderParam: ({ name: r, originalValue: o, index: i }) => {
|
|
@@ -2352,7 +2248,7 @@ const Wt = ({
|
|
|
2352
2248
|
(c) => c.name === r
|
|
2353
2249
|
)?.value;
|
|
2354
2250
|
return /* @__PURE__ */ n.jsx(
|
|
2355
|
-
|
|
2251
|
+
Mt,
|
|
2356
2252
|
{
|
|
2357
2253
|
name: r,
|
|
2358
2254
|
backgroundOpacity: "0",
|
|
@@ -2364,8 +2260,8 @@ const Wt = ({
|
|
|
2364
2260
|
}
|
|
2365
2261
|
}
|
|
2366
2262
|
);
|
|
2367
|
-
},
|
|
2368
|
-
const { watch: e } =
|
|
2263
|
+
}, Br = () => {
|
|
2264
|
+
const { watch: e } = ne(), s = e("queryParams").filter((a) => a.active && a.name).map((a, r, o) => /* @__PURE__ */ n.jsxs(Z, { children: [
|
|
2369
2265
|
a.name,
|
|
2370
2266
|
"=",
|
|
2371
2267
|
encodeURIComponent(a.value).replaceAll("%20", "+"),
|
|
@@ -2376,12 +2272,12 @@ const Wt = ({
|
|
|
2376
2272
|
s.length > 0 ? "?" : "",
|
|
2377
2273
|
s
|
|
2378
2274
|
] });
|
|
2379
|
-
},
|
|
2275
|
+
}, Gt = (e = 0) => {
|
|
2380
2276
|
if (e === 0)
|
|
2381
2277
|
return "0 B";
|
|
2382
2278
|
const t = Math.floor(Math.log(e) / Math.log(1e3));
|
|
2383
2279
|
return `${(e / 1e3 ** t).toFixed(t ? 2 : 0)} ${t ? `${"kMGTPEZY"[t - 1]}B` : "B"}`;
|
|
2384
|
-
},
|
|
2280
|
+
}, _r = ({ status: e }) => {
|
|
2385
2281
|
if (!e) return /* @__PURE__ */ n.jsx("div", { className: "w-2 h-2 rounded-full bg-gray-500" });
|
|
2386
2282
|
switch (Number(e.toString().slice(0, 1))) {
|
|
2387
2283
|
case 2:
|
|
@@ -2393,15 +2289,15 @@ const Wt = ({
|
|
|
2393
2289
|
default:
|
|
2394
2290
|
return /* @__PURE__ */ n.jsx("div", { className: "w-2 h-2 rounded-full bg-gray-500" });
|
|
2395
2291
|
}
|
|
2396
|
-
},
|
|
2397
|
-
const e =
|
|
2292
|
+
}, Ur = () => {
|
|
2293
|
+
const e = O(null), t = O(null), s = O(Date.now()), a = O(null), r = vt(() => {
|
|
2398
2294
|
if (t.current) {
|
|
2399
2295
|
const o = Date.now() - s.current;
|
|
2400
2296
|
t.current.nodeValue = o.toFixed();
|
|
2401
2297
|
}
|
|
2402
2298
|
a.current = requestAnimationFrame(r);
|
|
2403
2299
|
}, []);
|
|
2404
|
-
return
|
|
2300
|
+
return Gn(() => {
|
|
2405
2301
|
const o = e.current;
|
|
2406
2302
|
if (!o) return;
|
|
2407
2303
|
const i = document.createTextNode("0");
|
|
@@ -2409,7 +2305,7 @@ const Wt = ({
|
|
|
2409
2305
|
a.current && cancelAnimationFrame(a.current), t.current && o.contains(i) && o.removeChild(i);
|
|
2410
2306
|
};
|
|
2411
2307
|
}, [r]), /* @__PURE__ */ n.jsx("span", { className: "inline-block text-end w-[3ch]", ref: e });
|
|
2412
|
-
},
|
|
2308
|
+
}, Mr = ({
|
|
2413
2309
|
status: e,
|
|
2414
2310
|
time: t,
|
|
2415
2311
|
size: s,
|
|
@@ -2430,7 +2326,7 @@ const Wt = ({
|
|
|
2430
2326
|
};
|
|
2431
2327
|
return /* @__PURE__ */ n.jsxs("div", { className: "relative flex h-10 text-xs gap-4 px-4 items-center justify-between font-mono border-b", children: [
|
|
2432
2328
|
/* @__PURE__ */ n.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
2433
|
-
/* @__PURE__ */ n.jsx(
|
|
2329
|
+
/* @__PURE__ */ n.jsx(_r, { status: e }),
|
|
2434
2330
|
" ",
|
|
2435
2331
|
e ?? "Sending Request...",
|
|
2436
2332
|
e ? ` ${o[e]}` : ""
|
|
@@ -2439,12 +2335,12 @@ const Wt = ({
|
|
|
2439
2335
|
/* @__PURE__ */ n.jsxs("div", { children: [
|
|
2440
2336
|
/* @__PURE__ */ n.jsx("span", { className: "text-muted-foreground", children: "Size" }),
|
|
2441
2337
|
" ",
|
|
2442
|
-
/* @__PURE__ */ n.jsx("span", { className: "inline-block text-end min-w-[5ch]", children: s ?
|
|
2338
|
+
/* @__PURE__ */ n.jsx("span", { className: "inline-block text-end min-w-[5ch]", children: s ? Gt(s) : "- B" })
|
|
2443
2339
|
] }),
|
|
2444
2340
|
/* @__PURE__ */ n.jsxs("div", { children: [
|
|
2445
2341
|
/* @__PURE__ */ n.jsx("span", { className: "text-muted-foreground", children: "Time" }),
|
|
2446
2342
|
" ",
|
|
2447
|
-
t !== void 0 ? `${t.toFixed(0)}` : /* @__PURE__ */ n.jsx(
|
|
2343
|
+
t !== void 0 ? `${t.toFixed(0)}` : /* @__PURE__ */ n.jsx(Ur, {}),
|
|
2448
2344
|
"ms"
|
|
2449
2345
|
] })
|
|
2450
2346
|
] }),
|
|
@@ -2460,42 +2356,42 @@ const Wt = ({
|
|
|
2460
2356
|
)
|
|
2461
2357
|
] });
|
|
2462
2358
|
};
|
|
2463
|
-
function
|
|
2359
|
+
function Be(e) {
|
|
2464
2360
|
if (e === null) return "null";
|
|
2465
2361
|
if (Array.isArray(e)) {
|
|
2466
2362
|
if (e.length === 0) return "any[]";
|
|
2467
2363
|
const t = e[0];
|
|
2468
|
-
return t === void 0 ? "any[]" : `${
|
|
2364
|
+
return t === void 0 ? "any[]" : `${Be(t)}[]`;
|
|
2469
2365
|
}
|
|
2470
|
-
return typeof e == "object" ?
|
|
2366
|
+
return typeof e == "object" ? Gr(e) : typeof e;
|
|
2471
2367
|
}
|
|
2472
|
-
function
|
|
2368
|
+
function Gr(e, t = "") {
|
|
2473
2369
|
const s = ["{"];
|
|
2474
2370
|
for (const [a, r] of Object.entries(e)) {
|
|
2475
|
-
const o =
|
|
2371
|
+
const o = Be(r);
|
|
2476
2372
|
s.push(` ${a}: ${o};`);
|
|
2477
2373
|
}
|
|
2478
2374
|
return s.push("}"), s.join(`
|
|
2479
2375
|
`);
|
|
2480
2376
|
}
|
|
2481
|
-
function
|
|
2482
|
-
return { lines: [`type GeneratedType = ${
|
|
2377
|
+
function Hr(e) {
|
|
2378
|
+
return { lines: [`type GeneratedType = ${Be(e)};`] };
|
|
2483
2379
|
}
|
|
2484
|
-
const
|
|
2380
|
+
const Ht = ({
|
|
2485
2381
|
code: e,
|
|
2486
2382
|
language: t,
|
|
2487
2383
|
children: s
|
|
2488
2384
|
}) => {
|
|
2489
|
-
const { syntaxHighlighting: a } =
|
|
2490
|
-
return
|
|
2385
|
+
const { syntaxHighlighting: a } = zn().options;
|
|
2386
|
+
return Un(a?.highlighter, "Highlighter not found"), Ts(
|
|
2491
2387
|
a.highlighter,
|
|
2492
2388
|
e ?? s ?? "",
|
|
2493
2389
|
t,
|
|
2494
2390
|
a.themes
|
|
2495
2391
|
);
|
|
2496
2392
|
};
|
|
2497
|
-
|
|
2498
|
-
const
|
|
2393
|
+
Ht.displayName = "Highlight";
|
|
2394
|
+
const Qr = (e) => Object.entries({
|
|
2499
2395
|
"application/json": "json",
|
|
2500
2396
|
"text/json": "json",
|
|
2501
2397
|
"text/html": "html",
|
|
@@ -2505,16 +2401,16 @@ const na = (e) => Object.entries({
|
|
|
2505
2401
|
"application/xhtml+xml": "xhtml"
|
|
2506
2402
|
}).find(
|
|
2507
2403
|
([s]) => e.includes(s)
|
|
2508
|
-
)?.[1],
|
|
2404
|
+
)?.[1], Jr = (e) => {
|
|
2509
2405
|
const t = e.find(([s]) => s.toLowerCase() === "content-type")?.[1] || "";
|
|
2510
|
-
return
|
|
2511
|
-
},
|
|
2406
|
+
return Qr(t);
|
|
2407
|
+
}, Wr = (e) => {
|
|
2512
2408
|
try {
|
|
2513
2409
|
return JSON.stringify(JSON.parse(e), null, 2);
|
|
2514
2410
|
} catch {
|
|
2515
2411
|
return null;
|
|
2516
2412
|
}
|
|
2517
|
-
},
|
|
2413
|
+
}, Xr = (e) => {
|
|
2518
2414
|
const t = [
|
|
2519
2415
|
"Content-Type",
|
|
2520
2416
|
"Content-Length",
|
|
@@ -2528,25 +2424,25 @@ const na = (e) => Object.entries({
|
|
|
2528
2424
|
const r = t.indexOf(s.toLowerCase()), o = t.indexOf(a.toLowerCase());
|
|
2529
2425
|
return r === o ? 0 : r === -1 ? 1 : o === -1 ? -1 : r - o;
|
|
2530
2426
|
});
|
|
2531
|
-
},
|
|
2427
|
+
}, X = 3, Te = se(
|
|
2532
2428
|
"div",
|
|
2533
2429
|
"grid-cols-subgrid grid border-b col-span-full px-4 py-1.5 font-mono text-xs"
|
|
2534
|
-
),
|
|
2535
|
-
const a = ["authorization", "key", "secret", "token"].includes(t.toLowerCase()), [r, o] =
|
|
2430
|
+
), ie = se("div", "py-1 break-all"), Ae = ({ value: e, header: t }) => {
|
|
2431
|
+
const a = ["authorization", "key", "secret", "token"].includes(t.toLowerCase()), [r, o] = $(!a);
|
|
2536
2432
|
return /* @__PURE__ */ n.jsxs(
|
|
2537
|
-
|
|
2433
|
+
ie,
|
|
2538
2434
|
{
|
|
2539
|
-
className:
|
|
2435
|
+
className: C(a && "cursor-pointer flex group"),
|
|
2540
2436
|
onClick: () => {
|
|
2541
2437
|
a && o((i) => !i);
|
|
2542
2438
|
},
|
|
2543
2439
|
children: [
|
|
2544
|
-
/* @__PURE__ */ n.jsx(
|
|
2545
|
-
a ? r ? /* @__PURE__ */ n.jsx(
|
|
2440
|
+
/* @__PURE__ */ n.jsx(Kn, { secret: e, previewChars: 0, revealed: r }),
|
|
2441
|
+
a ? r ? /* @__PURE__ */ n.jsx(Nn, { size: 14, className: C("hidden group-hover:block") }) : /* @__PURE__ */ n.jsx(Sn, { size: 14, className: C("hidden group-hover:block") }) : null
|
|
2546
2442
|
]
|
|
2547
2443
|
}
|
|
2548
2444
|
);
|
|
2549
|
-
},
|
|
2445
|
+
}, Zr = ({
|
|
2550
2446
|
body: e = "",
|
|
2551
2447
|
headers: t,
|
|
2552
2448
|
request: s,
|
|
@@ -2555,66 +2451,66 @@ const na = (e) => Object.entries({
|
|
|
2555
2451
|
fileName: o,
|
|
2556
2452
|
blob: i
|
|
2557
2453
|
}) => {
|
|
2558
|
-
const l =
|
|
2454
|
+
const l = Jr(t), c = Wr(e), u = c || e, [d, h] = $(
|
|
2559
2455
|
c ? "formatted" : "raw"
|
|
2560
|
-
), g =
|
|
2456
|
+
), g = qn({
|
|
2561
2457
|
queryKey: ["types", u],
|
|
2562
|
-
queryFn: async () =>
|
|
2458
|
+
queryFn: async () => Hr(JSON.parse(u)),
|
|
2563
2459
|
enabled: d === "types" && !r
|
|
2564
2460
|
}), m = () => {
|
|
2565
2461
|
if (i && o) {
|
|
2566
2462
|
const y = URL.createObjectURL(i), b = document.createElement("a");
|
|
2567
2463
|
b.href = y, b.download = o, document.body.appendChild(b), b.click(), document.body.removeChild(b), URL.revokeObjectURL(y);
|
|
2568
2464
|
}
|
|
2569
|
-
}, v =
|
|
2465
|
+
}, v = Xr([...t]);
|
|
2570
2466
|
return /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
2571
|
-
/* @__PURE__ */ n.jsxs(
|
|
2572
|
-
/* @__PURE__ */ n.jsxs(
|
|
2573
|
-
/* @__PURE__ */ n.jsx(
|
|
2574
|
-
/* @__PURE__ */ n.jsx(
|
|
2467
|
+
/* @__PURE__ */ n.jsxs(F, { defaultOpen: !0, children: [
|
|
2468
|
+
/* @__PURE__ */ n.jsxs(U, { children: [
|
|
2469
|
+
/* @__PURE__ */ n.jsx(jn, { size: 16 }),
|
|
2470
|
+
/* @__PURE__ */ n.jsx(M, { className: "col-span-2", children: "Header Request" })
|
|
2575
2471
|
] }),
|
|
2576
|
-
/* @__PURE__ */ n.jsx(
|
|
2577
|
-
/* @__PURE__ */ n.jsx(
|
|
2578
|
-
/* @__PURE__ */ n.jsx(
|
|
2472
|
+
/* @__PURE__ */ n.jsx(z, { children: /* @__PURE__ */ n.jsx("div", { className: "grid grid-cols-2 gap-x-6 text-sm", children: s.headers.slice(0, X).map(([y, b]) => /* @__PURE__ */ n.jsxs(Te, { children: [
|
|
2473
|
+
/* @__PURE__ */ n.jsx(ie, { children: y }),
|
|
2474
|
+
/* @__PURE__ */ n.jsx(Ae, { value: b, header: y })
|
|
2579
2475
|
] }, y)) }) })
|
|
2580
2476
|
] }),
|
|
2581
|
-
/* @__PURE__ */ n.jsxs(
|
|
2582
|
-
/* @__PURE__ */ n.jsxs(
|
|
2583
|
-
/* @__PURE__ */ n.jsx(
|
|
2584
|
-
/* @__PURE__ */ n.jsx(
|
|
2477
|
+
/* @__PURE__ */ n.jsxs(F, { defaultOpen: !0, children: [
|
|
2478
|
+
/* @__PURE__ */ n.jsxs(U, { children: [
|
|
2479
|
+
/* @__PURE__ */ n.jsx(Cn, { size: 16 }),
|
|
2480
|
+
/* @__PURE__ */ n.jsx(M, { className: "col-span-2", children: "Header Response" })
|
|
2585
2481
|
] }),
|
|
2586
|
-
/* @__PURE__ */ n.jsx(
|
|
2587
|
-
v.slice(0,
|
|
2588
|
-
/* @__PURE__ */ n.jsx(
|
|
2589
|
-
/* @__PURE__ */ n.jsx(
|
|
2482
|
+
/* @__PURE__ */ n.jsx(z, { children: /* @__PURE__ */ n.jsxs("div", { className: "grid grid-cols-2 gap-x-6 text-sm", children: [
|
|
2483
|
+
v.slice(0, X).map(([y, b]) => /* @__PURE__ */ n.jsxs(Te, { children: [
|
|
2484
|
+
/* @__PURE__ */ n.jsx(ie, { children: y }),
|
|
2485
|
+
/* @__PURE__ */ n.jsx(Ae, { value: b, header: y })
|
|
2590
2486
|
] }, y)),
|
|
2591
|
-
v.length >
|
|
2592
|
-
/* @__PURE__ */ n.jsxs(
|
|
2487
|
+
v.length > X && /* @__PURE__ */ n.jsxs(F, { className: "col-span-full grid-cols-subgrid grid group", children: [
|
|
2488
|
+
/* @__PURE__ */ n.jsxs(zt, { className: "data-[state=open]:hidden justify-center col-span-2 text-xs text-muted-foreground hover:text-primary border-b h-8 flex items-center gap-2", children: [
|
|
2593
2489
|
/* @__PURE__ */ n.jsxs("span", { children: [
|
|
2594
2490
|
"Show ",
|
|
2595
|
-
v.length -
|
|
2491
|
+
v.length - X,
|
|
2596
2492
|
" more headers"
|
|
2597
2493
|
] }),
|
|
2598
|
-
/* @__PURE__ */ n.jsx(
|
|
2494
|
+
/* @__PURE__ */ n.jsx(pe, { size: 12, className: "text-muted-foreground" })
|
|
2599
2495
|
] }),
|
|
2600
|
-
/* @__PURE__ */ n.jsx(
|
|
2601
|
-
/* @__PURE__ */ n.jsx(
|
|
2602
|
-
/* @__PURE__ */ n.jsx(
|
|
2496
|
+
/* @__PURE__ */ n.jsx(z, { className: "col-span-full grid grid-cols-subgrid", children: v.slice(X).map(([y, b]) => /* @__PURE__ */ n.jsxs(Te, { children: [
|
|
2497
|
+
/* @__PURE__ */ n.jsx(ie, { children: y }),
|
|
2498
|
+
/* @__PURE__ */ n.jsx(Ae, { value: b, header: y })
|
|
2603
2499
|
] }, y)) })
|
|
2604
2500
|
] })
|
|
2605
2501
|
] }) })
|
|
2606
2502
|
] }),
|
|
2607
2503
|
/* @__PURE__ */ n.jsx("div", { className: "flex gap-2 justify-between items-center border-b h-10", children: c && !r && /* @__PURE__ */ n.jsx("div", { className: "px-2", children: /* @__PURE__ */ n.jsxs(
|
|
2608
|
-
|
|
2504
|
+
Ct,
|
|
2609
2505
|
{
|
|
2610
2506
|
value: d,
|
|
2611
2507
|
onValueChange: (y) => h(y),
|
|
2612
2508
|
children: [
|
|
2613
|
-
/* @__PURE__ */ n.jsx(
|
|
2614
|
-
/* @__PURE__ */ n.jsxs(
|
|
2615
|
-
/* @__PURE__ */ n.jsx(
|
|
2616
|
-
/* @__PURE__ */ n.jsx(
|
|
2617
|
-
/* @__PURE__ */ n.jsx(
|
|
2509
|
+
/* @__PURE__ */ n.jsx(wt, { className: "min-w-32 border-none h-8", children: /* @__PURE__ */ n.jsx(Nt, { placeholder: "View" }) }),
|
|
2510
|
+
/* @__PURE__ */ n.jsxs(St, { children: [
|
|
2511
|
+
/* @__PURE__ */ n.jsx(oe, { value: "formatted", children: "Formatted" }),
|
|
2512
|
+
/* @__PURE__ */ n.jsx(oe, { value: "raw", children: "Raw" }),
|
|
2513
|
+
/* @__PURE__ */ n.jsx(oe, { value: "types", children: "Types" })
|
|
2618
2514
|
] })
|
|
2619
2515
|
]
|
|
2620
2516
|
}
|
|
@@ -2623,23 +2519,23 @@ const na = (e) => Object.entries({
|
|
|
2623
2519
|
/* @__PURE__ */ n.jsx("div", { className: "text-lg font-semibold", children: "Binary Content" }),
|
|
2624
2520
|
/* @__PURE__ */ n.jsx("div", { className: "text-sm text-muted-foreground", children: "This response contains binary data that cannot be displayed as text." }),
|
|
2625
2521
|
/* @__PURE__ */ n.jsxs(
|
|
2626
|
-
|
|
2522
|
+
E,
|
|
2627
2523
|
{
|
|
2628
2524
|
onClick: m,
|
|
2629
2525
|
className: "flex items-center gap-2",
|
|
2630
2526
|
disabled: !i,
|
|
2631
2527
|
children: [
|
|
2632
|
-
/* @__PURE__ */ n.jsx(
|
|
2528
|
+
/* @__PURE__ */ n.jsx(wn, { className: "h-4 w-4" }),
|
|
2633
2529
|
"Download ",
|
|
2634
2530
|
o || "file",
|
|
2635
2531
|
" (",
|
|
2636
|
-
|
|
2532
|
+
Gt(a),
|
|
2637
2533
|
")"
|
|
2638
2534
|
]
|
|
2639
2535
|
}
|
|
2640
2536
|
)
|
|
2641
2537
|
] }) }) : /* @__PURE__ */ n.jsx("div", { className: "overflow-auto max-w-full p-4 text-xs max-h-[calc(83.333vh-180px)]", children: /* @__PURE__ */ n.jsx(
|
|
2642
|
-
|
|
2538
|
+
Ht,
|
|
2643
2539
|
{
|
|
2644
2540
|
language: d === "types" ? "typescript" : d === "raw" ? c ? "plain" : l : "json",
|
|
2645
2541
|
code: (d === "raw" ? e : d === "types" ? g.data?.lines.join(`
|
|
@@ -2647,7 +2543,7 @@ const na = (e) => Object.entries({
|
|
|
2647
2543
|
}
|
|
2648
2544
|
) }) })
|
|
2649
2545
|
] });
|
|
2650
|
-
},
|
|
2546
|
+
}, Yr = ({
|
|
2651
2547
|
queryMutation: e,
|
|
2652
2548
|
showLongRunningWarning: t,
|
|
2653
2549
|
onCancel: s,
|
|
@@ -2656,7 +2552,7 @@ const na = (e) => Object.entries({
|
|
|
2656
2552
|
progress: o
|
|
2657
2553
|
}) => /* @__PURE__ */ n.jsxs("div", { className: "overflow-y-auto h-[80vh] bg-muted/50", children: [
|
|
2658
2554
|
(e.isPending || e.data) && /* @__PURE__ */ n.jsx(
|
|
2659
|
-
|
|
2555
|
+
Mr,
|
|
2660
2556
|
{
|
|
2661
2557
|
status: e.data?.status,
|
|
2662
2558
|
time: e.data?.time,
|
|
@@ -2665,12 +2561,12 @@ const na = (e) => Object.entries({
|
|
|
2665
2561
|
progress: o
|
|
2666
2562
|
}
|
|
2667
2563
|
),
|
|
2668
|
-
e.error ? /* @__PURE__ */ n.jsx("div", { className: "max-w-2/3 mx-auto mt-20", children: /* @__PURE__ */ n.jsxs(
|
|
2669
|
-
/* @__PURE__ */ n.jsx(
|
|
2670
|
-
/* @__PURE__ */ n.jsx(
|
|
2671
|
-
/* @__PURE__ */ n.jsx(
|
|
2564
|
+
e.error ? /* @__PURE__ */ n.jsx("div", { className: "max-w-2/3 mx-auto mt-20", children: /* @__PURE__ */ n.jsxs(es, { children: [
|
|
2565
|
+
/* @__PURE__ */ n.jsx(Tn, { size: 24, strokeWidth: 1.5, className: "me-5" }),
|
|
2566
|
+
/* @__PURE__ */ n.jsx(ts, { children: "Request failed" }),
|
|
2567
|
+
/* @__PURE__ */ n.jsx(ns, { children: e.error.message || String(e.error) || "Unexpected error" })
|
|
2672
2568
|
] }) }) : e.data ? /* @__PURE__ */ n.jsx(
|
|
2673
|
-
|
|
2569
|
+
Zr,
|
|
2674
2570
|
{
|
|
2675
2571
|
request: e.data.request,
|
|
2676
2572
|
size: e.data.size,
|
|
@@ -2681,18 +2577,18 @@ const na = (e) => Object.entries({
|
|
|
2681
2577
|
blob: e.data.blob
|
|
2682
2578
|
}
|
|
2683
2579
|
) : e.isPending ? /* @__PURE__ */ n.jsx("div", { className: "grid place-items-center h-full", children: /* @__PURE__ */ n.jsxs("div", { className: "flex flex-col gap-2 items-center mt-20", children: [
|
|
2684
|
-
/* @__PURE__ */ n.jsx(
|
|
2580
|
+
/* @__PURE__ */ n.jsx(Zn, {}),
|
|
2685
2581
|
/* @__PURE__ */ n.jsxs(
|
|
2686
2582
|
"div",
|
|
2687
2583
|
{
|
|
2688
|
-
className:
|
|
2584
|
+
className: C(
|
|
2689
2585
|
"opacity-0 pointer-events-none transition-opacity h-20 text-sm text-muted-foreground duration-300 flex flex-col gap-2 items-center",
|
|
2690
2586
|
t && "opacity-100 pointer-events-auto"
|
|
2691
2587
|
),
|
|
2692
2588
|
children: [
|
|
2693
2589
|
"Looks like the request is taking longer than expected.",
|
|
2694
2590
|
/* @__PURE__ */ n.jsx(
|
|
2695
|
-
|
|
2591
|
+
ce,
|
|
2696
2592
|
{
|
|
2697
2593
|
type: "button",
|
|
2698
2594
|
onClick: s,
|
|
@@ -2707,7 +2603,7 @@ const na = (e) => Object.entries({
|
|
|
2707
2603
|
)
|
|
2708
2604
|
] }) }) : /* @__PURE__ */ n.jsx("div", { className: "h-full grid place-items-center", children: /* @__PURE__ */ n.jsxs("div", { className: "flex flex-col gap-4 items-center", children: [
|
|
2709
2605
|
/* @__PURE__ */ n.jsx(
|
|
2710
|
-
|
|
2606
|
+
An,
|
|
2711
2607
|
{
|
|
2712
2608
|
size: 64,
|
|
2713
2609
|
className: "text-muted-foreground",
|
|
@@ -2717,7 +2613,7 @@ const na = (e) => Object.entries({
|
|
|
2717
2613
|
/* @__PURE__ */ n.jsx("span", { className: "text-[16px] font-semibold text-muted-foreground", children: "Send your first request" }),
|
|
2718
2614
|
a
|
|
2719
2615
|
] }) })
|
|
2720
|
-
] }),
|
|
2616
|
+
] }), Kr = $e()(
|
|
2721
2617
|
Ee(
|
|
2722
2618
|
(e) => ({
|
|
2723
2619
|
skipLogin: !1,
|
|
@@ -2725,10 +2621,10 @@ const na = (e) => Object.entries({
|
|
|
2725
2621
|
}),
|
|
2726
2622
|
{
|
|
2727
2623
|
name: "remember-skip-login",
|
|
2728
|
-
storage:
|
|
2624
|
+
storage: gt(() => sessionStorage)
|
|
2729
2625
|
}
|
|
2730
2626
|
)
|
|
2731
|
-
),
|
|
2627
|
+
), K = "__none", ea = ({
|
|
2732
2628
|
server: e,
|
|
2733
2629
|
servers: t = [],
|
|
2734
2630
|
url: s,
|
|
@@ -2742,13 +2638,13 @@ const na = (e) => Object.entries({
|
|
|
2742
2638
|
onLogin: d,
|
|
2743
2639
|
onSignUp: h
|
|
2744
2640
|
}) => {
|
|
2745
|
-
const { selectedServer: g, setSelectedServer: m } =
|
|
2641
|
+
const { selectedServer: g, setSelectedServer: m } = Cr(
|
|
2746
2642
|
t.map((p) => ({ url: p }))
|
|
2747
|
-
), [v, y] =
|
|
2748
|
-
|
|
2749
|
-
}),
|
|
2750
|
-
(p,
|
|
2751
|
-
), { register:
|
|
2643
|
+
), [v, y] = $(!1), b = Vn(), { setRememberedIdentity: T, getRememberedIdentity: f } = zr(), [, j] = Hn(), { skipLogin: L, setSkipLogin: N } = Kr(), [k, A] = $(!1), H = O(void 0), Ue = cs(T), Me = O(null), { label: Yt } = br("meta+enter", () => {
|
|
2644
|
+
Me.current?.requestSubmit();
|
|
2645
|
+
}), Ge = s.match(/\{([^}]+)\}/g)?.map((p) => p.slice(1, -1)) ?? [], He = [...i].sort(
|
|
2646
|
+
(p, J) => Ge.indexOf(p.name) - Ge.indexOf(J.name)
|
|
2647
|
+
), { register: Kt, control: re, handleSubmit: Qe, watch: Je, setValue: xe, ...ye } = rs({
|
|
2752
2648
|
defaultValues: {
|
|
2753
2649
|
body: l,
|
|
2754
2650
|
queryParams: o.length > 0 ? o.map((p) => ({
|
|
@@ -2764,7 +2660,7 @@ const na = (e) => Object.entries({
|
|
|
2764
2660
|
enum: []
|
|
2765
2661
|
}
|
|
2766
2662
|
],
|
|
2767
|
-
pathParams:
|
|
2663
|
+
pathParams: He.map((p) => ({
|
|
2768
2664
|
name: p.name,
|
|
2769
2665
|
value: p.defaultValue ?? ""
|
|
2770
2666
|
})),
|
|
@@ -2780,133 +2676,133 @@ const na = (e) => Object.entries({
|
|
|
2780
2676
|
}
|
|
2781
2677
|
],
|
|
2782
2678
|
identity: f([
|
|
2783
|
-
|
|
2679
|
+
K,
|
|
2784
2680
|
...b.data?.map((p) => p.id) ?? []
|
|
2785
2681
|
])
|
|
2786
2682
|
}
|
|
2787
|
-
}),
|
|
2788
|
-
() => b.data?.find((p) => p.id ===
|
|
2789
|
-
[b.data,
|
|
2683
|
+
}), Q = Je("identity"), en = yt(
|
|
2684
|
+
() => b.data?.find((p) => p.id === Q)?.authorizationFields,
|
|
2685
|
+
[b.data, Q]
|
|
2790
2686
|
);
|
|
2791
|
-
|
|
2792
|
-
|
|
2793
|
-
}, [
|
|
2794
|
-
const
|
|
2687
|
+
I(() => {
|
|
2688
|
+
Q && Ue.current(Q);
|
|
2689
|
+
}, [Ue, Q]);
|
|
2690
|
+
const V = ss({
|
|
2795
2691
|
gcTime: 0,
|
|
2796
2692
|
mutationFn: async (p) => {
|
|
2797
|
-
const
|
|
2798
|
-
...p.headers.filter((
|
|
2799
|
-
]),
|
|
2800
|
-
|
|
2693
|
+
const J = performance.now(), dn = Object.fromEntries([
|
|
2694
|
+
...p.headers.filter((S) => S.name && S.active).map((S) => [S.name, S.value])
|
|
2695
|
+
]), B = new Request(
|
|
2696
|
+
ut(e ?? g, s, p),
|
|
2801
2697
|
{
|
|
2802
2698
|
method: a.toUpperCase(),
|
|
2803
|
-
headers:
|
|
2699
|
+
headers: dn,
|
|
2804
2700
|
body: p.body ? p.body : void 0
|
|
2805
2701
|
}
|
|
2806
2702
|
);
|
|
2807
|
-
p.identity !==
|
|
2808
|
-
const
|
|
2809
|
-
() =>
|
|
2703
|
+
p.identity !== K && await b.data?.find((S) => S.id === p.identity)?.authorizeRequest(B);
|
|
2704
|
+
const ve = setTimeout(
|
|
2705
|
+
() => A(!0),
|
|
2810
2706
|
3210
|
|
2811
2707
|
);
|
|
2812
|
-
|
|
2813
|
-
clearTimeout(
|
|
2708
|
+
H.current = new AbortController(), H.current.signal.addEventListener("abort", () => {
|
|
2709
|
+
clearTimeout(ve);
|
|
2814
2710
|
});
|
|
2815
2711
|
try {
|
|
2816
|
-
const
|
|
2712
|
+
const S = await fetch(B, {
|
|
2817
2713
|
cache: "no-store",
|
|
2818
|
-
signal:
|
|
2714
|
+
signal: H.current.signal
|
|
2819
2715
|
});
|
|
2820
|
-
clearTimeout(
|
|
2821
|
-
const
|
|
2822
|
-
let
|
|
2823
|
-
|
|
2824
|
-
const
|
|
2716
|
+
clearTimeout(ve), A(!1);
|
|
2717
|
+
const un = performance.now() - J, mn = new URL(B.url), Ze = Array.from(S.headers.entries()), Ye = S.headers.get("content-type") || "", Ke = Sr(Ye);
|
|
2718
|
+
let ae = "", et, tt;
|
|
2719
|
+
Ke ? (et = await S.blob(), tt = Tr(Ze, B.url), ae = `Binary content (${Ye})`) : ae = await S.text();
|
|
2720
|
+
const nt = S.headers.get("content-length");
|
|
2825
2721
|
return {
|
|
2826
|
-
status:
|
|
2827
|
-
headers:
|
|
2828
|
-
size:
|
|
2829
|
-
body:
|
|
2830
|
-
time:
|
|
2831
|
-
isBinary:
|
|
2832
|
-
fileName:
|
|
2833
|
-
blob:
|
|
2722
|
+
status: S.status,
|
|
2723
|
+
headers: Ze,
|
|
2724
|
+
size: nt ? Number(nt) : ae.length,
|
|
2725
|
+
body: ae,
|
|
2726
|
+
time: un,
|
|
2727
|
+
isBinary: Ke,
|
|
2728
|
+
fileName: tt,
|
|
2729
|
+
blob: et,
|
|
2834
2730
|
request: {
|
|
2835
|
-
method:
|
|
2836
|
-
url:
|
|
2731
|
+
method: B.method.toUpperCase(),
|
|
2732
|
+
url: B.url,
|
|
2837
2733
|
headers: [
|
|
2838
|
-
["Host",
|
|
2734
|
+
["Host", mn.host],
|
|
2839
2735
|
["User-Agent", "Zudoku Playground"],
|
|
2840
|
-
...Array.from(
|
|
2736
|
+
...Array.from(B.headers.entries())
|
|
2841
2737
|
],
|
|
2842
2738
|
body: p.body ? p.body : void 0
|
|
2843
2739
|
}
|
|
2844
2740
|
};
|
|
2845
|
-
} catch (
|
|
2846
|
-
throw clearTimeout(
|
|
2741
|
+
} catch (S) {
|
|
2742
|
+
throw clearTimeout(ve), A(!1), S instanceof TypeError ? new Error(
|
|
2847
2743
|
"The request failed, possibly due to network issues or CORS policy."
|
|
2848
|
-
) :
|
|
2744
|
+
) : S;
|
|
2849
2745
|
}
|
|
2850
2746
|
}
|
|
2851
|
-
}),
|
|
2852
|
-
|
|
2853
|
-
const p = setTimeout(() =>
|
|
2747
|
+
}), We = V.isPending, [tn, nn] = $(!1);
|
|
2748
|
+
I(() => {
|
|
2749
|
+
const p = setTimeout(() => nn(We), 100);
|
|
2854
2750
|
return () => clearTimeout(p);
|
|
2855
|
-
}, [
|
|
2856
|
-
const { isFinished:
|
|
2857
|
-
|
|
2858
|
-
|
|
2751
|
+
}, [We]);
|
|
2752
|
+
const { isFinished: sn, progress: rn } = Yn({ isAnimating: tn });
|
|
2753
|
+
I(() => () => {
|
|
2754
|
+
H.current?.abort();
|
|
2859
2755
|
}, []);
|
|
2860
|
-
const
|
|
2861
|
-
|
|
2756
|
+
const an = /* @__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(
|
|
2757
|
+
Ct,
|
|
2862
2758
|
{
|
|
2863
2759
|
onValueChange: (p) => {
|
|
2864
|
-
|
|
2760
|
+
j(() => m(p));
|
|
2865
2761
|
},
|
|
2866
2762
|
value: g,
|
|
2867
2763
|
defaultValue: g,
|
|
2868
2764
|
children: [
|
|
2869
|
-
/* @__PURE__ */ n.jsx(
|
|
2870
|
-
/* @__PURE__ */ n.jsx(
|
|
2765
|
+
/* @__PURE__ */ n.jsx(wt, { className: "p-0 border-none flex-row-reverse bg-transparent text-xs gap-0.5 h-auto translate-y-[4px]", children: /* @__PURE__ */ n.jsx(Nt, {}) }),
|
|
2766
|
+
/* @__PURE__ */ n.jsx(St, { children: t.map((p) => /* @__PURE__ */ n.jsx(oe, { value: p, children: p.replace(/^https?:\/\//, "").replace(/\/$/, "") }, p)) })
|
|
2871
2767
|
]
|
|
2872
2768
|
}
|
|
2873
|
-
) }),
|
|
2769
|
+
) }), on = u && !L, cn = ["POST", "PUT", "PATCH", "DELETE"].includes(
|
|
2874
2770
|
a.toUpperCase()
|
|
2875
|
-
), [
|
|
2771
|
+
), [Xe, ln] = is();
|
|
2876
2772
|
return /* @__PURE__ */ n.jsx(
|
|
2877
|
-
|
|
2773
|
+
as,
|
|
2878
2774
|
{
|
|
2879
|
-
register:
|
|
2880
|
-
control:
|
|
2881
|
-
handleSubmit:
|
|
2882
|
-
watch:
|
|
2883
|
-
setValue:
|
|
2884
|
-
...
|
|
2885
|
-
children: /* @__PURE__ */ n.jsx(
|
|
2775
|
+
register: Kt,
|
|
2776
|
+
control: re,
|
|
2777
|
+
handleSubmit: Qe,
|
|
2778
|
+
watch: Je,
|
|
2779
|
+
setValue: xe,
|
|
2780
|
+
...ye,
|
|
2781
|
+
children: /* @__PURE__ */ n.jsx(os, { delayDuration: 150, children: /* @__PURE__ */ n.jsxs(
|
|
2886
2782
|
"form",
|
|
2887
2783
|
{
|
|
2888
|
-
ref:
|
|
2889
|
-
onSubmit:
|
|
2890
|
-
b.data?.length === 0 || p.identity ?
|
|
2784
|
+
ref: Me,
|
|
2785
|
+
onSubmit: Qe((p) => {
|
|
2786
|
+
b.data?.length === 0 || p.identity ? V.mutate(p) : y(!0);
|
|
2891
2787
|
}),
|
|
2892
2788
|
className: "relative",
|
|
2893
2789
|
children: [
|
|
2894
2790
|
/* @__PURE__ */ n.jsx(
|
|
2895
|
-
|
|
2791
|
+
Er,
|
|
2896
2792
|
{
|
|
2897
2793
|
identities: b.data ?? [],
|
|
2898
2794
|
open: v,
|
|
2899
2795
|
onOpenChange: y,
|
|
2900
|
-
onSubmit: ({ rememberedIdentity: p, identity:
|
|
2901
|
-
p &&
|
|
2796
|
+
onSubmit: ({ rememberedIdentity: p, identity: J }) => {
|
|
2797
|
+
p && xe("identity", J ?? K), y(!1), V.mutate({ ...ye.getValues(), identity: J });
|
|
2902
2798
|
}
|
|
2903
2799
|
}
|
|
2904
2800
|
),
|
|
2905
2801
|
/* @__PURE__ */ n.jsx(
|
|
2906
|
-
|
|
2802
|
+
Fr,
|
|
2907
2803
|
{
|
|
2908
|
-
open:
|
|
2909
|
-
setOpen: (p) =>
|
|
2804
|
+
open: on,
|
|
2805
|
+
setOpen: (p) => N(!p),
|
|
2910
2806
|
onSignUp: h,
|
|
2911
2807
|
onLogin: d
|
|
2912
2808
|
}
|
|
@@ -2916,100 +2812,100 @@ const na = (e) => Object.entries({
|
|
|
2916
2812
|
/* @__PURE__ */ n.jsxs("div", { className: "flex flex-1 items-center w-full border rounded-md relative overflow-hidden", children: [
|
|
2917
2813
|
/* @__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() }),
|
|
2918
2814
|
/* @__PURE__ */ n.jsx("div", { className: "items-center px-2 font-mono text-xs break-all leading-6 relative h-full w-full", children: /* @__PURE__ */ n.jsxs("div", { className: "h-full py-1.5", children: [
|
|
2919
|
-
|
|
2920
|
-
/* @__PURE__ */ n.jsx(
|
|
2921
|
-
/* @__PURE__ */ n.jsx(
|
|
2815
|
+
an,
|
|
2816
|
+
/* @__PURE__ */ n.jsx(Vr, { url: s }),
|
|
2817
|
+
/* @__PURE__ */ n.jsx(Br, {})
|
|
2922
2818
|
] }) }),
|
|
2923
2819
|
/* @__PURE__ */ n.jsx("div", { className: "px-1", children: /* @__PURE__ */ n.jsx(
|
|
2924
|
-
|
|
2820
|
+
E,
|
|
2925
2821
|
{
|
|
2926
2822
|
type: "button",
|
|
2927
2823
|
onClick: () => {
|
|
2928
|
-
|
|
2929
|
-
|
|
2824
|
+
ln(
|
|
2825
|
+
ut(
|
|
2930
2826
|
e ?? g,
|
|
2931
2827
|
s,
|
|
2932
|
-
|
|
2828
|
+
ye.getValues()
|
|
2933
2829
|
).toString()
|
|
2934
2830
|
);
|
|
2935
2831
|
},
|
|
2936
2832
|
variant: "ghost",
|
|
2937
2833
|
size: "icon-xs",
|
|
2938
|
-
className:
|
|
2834
|
+
className: C(
|
|
2939
2835
|
"hover:opacity-100 transition",
|
|
2940
|
-
|
|
2836
|
+
Xe ? "text-emerald-600 opacity-100" : "opacity-50"
|
|
2941
2837
|
),
|
|
2942
|
-
children:
|
|
2838
|
+
children: Xe ? /* @__PURE__ */ n.jsx(On, { className: "text-green-500", size: 14 }) : /* @__PURE__ */ n.jsx(Pn, { size: 14 })
|
|
2943
2839
|
}
|
|
2944
2840
|
) })
|
|
2945
2841
|
] }),
|
|
2946
2842
|
/* @__PURE__ */ n.jsx(
|
|
2947
|
-
|
|
2843
|
+
E,
|
|
2948
2844
|
{
|
|
2949
2845
|
type: "submit",
|
|
2950
|
-
variant:
|
|
2846
|
+
variant: V.isPending ? "destructive" : "default",
|
|
2951
2847
|
onClick: (p) => {
|
|
2952
|
-
|
|
2848
|
+
V.isPending && (H.current?.abort(
|
|
2953
2849
|
"Request cancelled by user"
|
|
2954
2850
|
), p.preventDefault());
|
|
2955
2851
|
},
|
|
2956
2852
|
className: "w-18",
|
|
2957
|
-
children:
|
|
2853
|
+
children: V.isPending ? "Cancel" : "Send"
|
|
2958
2854
|
}
|
|
2959
2855
|
)
|
|
2960
2856
|
] }),
|
|
2961
2857
|
/* @__PURE__ */ n.jsxs("div", { className: "relative overflow-y-auto h-[80vh]", children: [
|
|
2962
|
-
b.data?.length !== 0 && /* @__PURE__ */ n.jsxs(
|
|
2963
|
-
/* @__PURE__ */ n.jsxs(
|
|
2964
|
-
/* @__PURE__ */ n.jsx(
|
|
2965
|
-
/* @__PURE__ */ n.jsx(
|
|
2858
|
+
b.data?.length !== 0 && /* @__PURE__ */ n.jsxs(F, { defaultOpen: !0, children: [
|
|
2859
|
+
/* @__PURE__ */ n.jsxs(U, { children: [
|
|
2860
|
+
/* @__PURE__ */ n.jsx(Ln, { size: 16 }),
|
|
2861
|
+
/* @__PURE__ */ n.jsx(M, { className: "col-span-2", children: "Authentication" })
|
|
2966
2862
|
] }),
|
|
2967
|
-
/* @__PURE__ */ n.jsx(
|
|
2968
|
-
|
|
2863
|
+
/* @__PURE__ */ n.jsx(z, { className: "CollapsibleContent", children: /* @__PURE__ */ n.jsx(
|
|
2864
|
+
Ut,
|
|
2969
2865
|
{
|
|
2970
|
-
value:
|
|
2866
|
+
value: Q,
|
|
2971
2867
|
identities: b.data ?? [],
|
|
2972
|
-
setValue: (p) =>
|
|
2868
|
+
setValue: (p) => xe("identity", p)
|
|
2973
2869
|
}
|
|
2974
2870
|
) })
|
|
2975
2871
|
] }),
|
|
2976
|
-
|
|
2977
|
-
/* @__PURE__ */ n.jsxs(
|
|
2978
|
-
/* @__PURE__ */ n.jsx(
|
|
2979
|
-
/* @__PURE__ */ n.jsx(
|
|
2872
|
+
He.length > 0 && /* @__PURE__ */ n.jsxs(F, { defaultOpen: !0, children: [
|
|
2873
|
+
/* @__PURE__ */ n.jsxs(U, { children: [
|
|
2874
|
+
/* @__PURE__ */ n.jsx($n, { size: 16 }),
|
|
2875
|
+
/* @__PURE__ */ n.jsx(M, { className: "col-span-2", children: "Path Parameters" })
|
|
2980
2876
|
] }),
|
|
2981
|
-
/* @__PURE__ */ n.jsx(
|
|
2877
|
+
/* @__PURE__ */ n.jsx(z, { className: "CollapsibleContent", children: /* @__PURE__ */ n.jsx(kr, { url: s, control: re }) })
|
|
2982
2878
|
] }),
|
|
2983
|
-
/* @__PURE__ */ n.jsx(
|
|
2879
|
+
/* @__PURE__ */ n.jsx(Dr, { control: re, schemaQueryParams: o }),
|
|
2984
2880
|
/* @__PURE__ */ n.jsx(
|
|
2985
|
-
|
|
2881
|
+
Lr,
|
|
2986
2882
|
{
|
|
2987
|
-
control:
|
|
2883
|
+
control: re,
|
|
2988
2884
|
schemaHeaders: r,
|
|
2989
|
-
lockedHeaders:
|
|
2885
|
+
lockedHeaders: en?.headers
|
|
2990
2886
|
}
|
|
2991
2887
|
),
|
|
2992
|
-
|
|
2888
|
+
cn && /* @__PURE__ */ n.jsx(Nr, { content: c })
|
|
2993
2889
|
] }),
|
|
2994
2890
|
/* @__PURE__ */ n.jsx("div", { className: "w-full bg-muted-foreground/20" }),
|
|
2995
2891
|
/* @__PURE__ */ n.jsx(
|
|
2996
|
-
|
|
2892
|
+
Yr,
|
|
2997
2893
|
{
|
|
2998
|
-
queryMutation:
|
|
2999
|
-
showLongRunningWarning:
|
|
3000
|
-
isFinished:
|
|
3001
|
-
progress:
|
|
2894
|
+
queryMutation: V,
|
|
2895
|
+
showLongRunningWarning: k,
|
|
2896
|
+
isFinished: sn,
|
|
2897
|
+
progress: rn,
|
|
3002
2898
|
tip: /* @__PURE__ */ n.jsx("div", { className: "text-xs w-full", children: /* @__PURE__ */ n.jsxs("span", { className: "text-muted-foreground", children: [
|
|
3003
2899
|
"Press",
|
|
3004
2900
|
" ",
|
|
3005
|
-
/* @__PURE__ */ n.jsx("kbd", { className: "text-foreground border rounded m-0.5 px-1 py-0.5 capitalize", children:
|
|
2901
|
+
/* @__PURE__ */ n.jsx("kbd", { className: "text-foreground border rounded m-0.5 px-1 py-0.5 capitalize", children: Yt.join(" + ") }),
|
|
3006
2902
|
" ",
|
|
3007
2903
|
"to send a request"
|
|
3008
2904
|
] }) }),
|
|
3009
2905
|
onCancel: () => {
|
|
3010
|
-
|
|
2906
|
+
H.current?.abort(
|
|
3011
2907
|
"Request cancelled by the user"
|
|
3012
|
-
),
|
|
2908
|
+
), A(!1);
|
|
3013
2909
|
}
|
|
3014
2910
|
}
|
|
3015
2911
|
)
|
|
@@ -3019,7 +2915,7 @@ const na = (e) => Object.entries({
|
|
|
3019
2915
|
) })
|
|
3020
2916
|
}
|
|
3021
2917
|
);
|
|
3022
|
-
},
|
|
2918
|
+
}, ta = ({
|
|
3023
2919
|
className: e,
|
|
3024
2920
|
size: t = 16
|
|
3025
2921
|
}) => /* @__PURE__ */ n.jsx(
|
|
@@ -3040,30 +2936,30 @@ const na = (e) => Object.entries({
|
|
|
3040
2936
|
}
|
|
3041
2937
|
)
|
|
3042
2938
|
}
|
|
3043
|
-
),
|
|
3044
|
-
const [t, s] =
|
|
3045
|
-
return /* @__PURE__ */ n.jsxs(
|
|
3046
|
-
/* @__PURE__ */ n.jsx(
|
|
2939
|
+
), na = (e) => {
|
|
2940
|
+
const [t, s] = $(!1), { isAuthEnabled: a, login: r, signup: o, isPending: i, isAuthenticated: l } = Wn();
|
|
2941
|
+
return /* @__PURE__ */ n.jsxs(Re, { onOpenChange: (c) => s(c), children: [
|
|
2942
|
+
/* @__PURE__ */ n.jsx(Xn, { asChild: !0, children: e.children ?? /* @__PURE__ */ n.jsxs(
|
|
3047
2943
|
"button",
|
|
3048
2944
|
{
|
|
3049
2945
|
type: "button",
|
|
3050
2946
|
className: "flex gap-1 items-center px-2 py-1 rounded-md transition text-xs bg-primary text-primary-foreground shadow-xs hover:bg-primary/80",
|
|
3051
2947
|
children: [
|
|
3052
2948
|
"Test",
|
|
3053
|
-
/* @__PURE__ */ n.jsx(
|
|
2949
|
+
/* @__PURE__ */ n.jsx(ta, { size: 14 })
|
|
3054
2950
|
]
|
|
3055
2951
|
}
|
|
3056
2952
|
) }),
|
|
3057
2953
|
/* @__PURE__ */ n.jsxs(
|
|
3058
2954
|
ke,
|
|
3059
2955
|
{
|
|
3060
|
-
className: "max-w-screen-xl w-full overflow-hidden p-0",
|
|
2956
|
+
className: "max-w-screen-xl! w-full overflow-hidden p-0",
|
|
3061
2957
|
"aria-describedby": void 0,
|
|
3062
2958
|
showCloseButton: !0,
|
|
3063
2959
|
children: [
|
|
3064
|
-
/* @__PURE__ */ n.jsx(
|
|
2960
|
+
/* @__PURE__ */ n.jsx(Jn, { children: /* @__PURE__ */ n.jsx(Ie, { children: "Playground" }) }),
|
|
3065
2961
|
t && /* @__PURE__ */ n.jsx(
|
|
3066
|
-
|
|
2962
|
+
ea,
|
|
3067
2963
|
{
|
|
3068
2964
|
requiresLogin: a && !l && !i,
|
|
3069
2965
|
onLogin: () => r(),
|
|
@@ -3075,7 +2971,7 @@ const na = (e) => Object.entries({
|
|
|
3075
2971
|
}
|
|
3076
2972
|
)
|
|
3077
2973
|
] });
|
|
3078
|
-
},
|
|
2974
|
+
}, sa = {
|
|
3079
2975
|
get: "green",
|
|
3080
2976
|
post: "blue",
|
|
3081
2977
|
put: "yellow",
|
|
@@ -3083,7 +2979,7 @@ const na = (e) => Object.entries({
|
|
|
3083
2979
|
patch: "purple",
|
|
3084
2980
|
options: "gray",
|
|
3085
2981
|
head: "gray"
|
|
3086
|
-
},
|
|
2982
|
+
}, pt = ({
|
|
3087
2983
|
label: e,
|
|
3088
2984
|
path: t,
|
|
3089
2985
|
operations: s,
|
|
@@ -3107,21 +3003,21 @@ const na = (e) => Object.entries({
|
|
|
3107
3003
|
badge: {
|
|
3108
3004
|
label: o.method,
|
|
3109
3005
|
// biome-ignore lint/style/noNonNullAssertion: is guaranteed to be defined
|
|
3110
|
-
color:
|
|
3006
|
+
color: sa[o.method.toLowerCase()],
|
|
3111
3007
|
invert: !0
|
|
3112
3008
|
}
|
|
3113
3009
|
}))
|
|
3114
|
-
}),
|
|
3010
|
+
}), Qt = xt(
|
|
3115
3011
|
void 0
|
|
3116
|
-
),
|
|
3117
|
-
const e =
|
|
3012
|
+
), Va = Qt.Provider, ra = () => {
|
|
3013
|
+
const e = Qn(Qt);
|
|
3118
3014
|
if (!e)
|
|
3119
3015
|
throw new Error("useOasConfig must be used within a OasConfigProvider");
|
|
3120
3016
|
return e.config;
|
|
3121
|
-
},
|
|
3017
|
+
}, ht = (e) => ({
|
|
3122
3018
|
path: e.routePath,
|
|
3123
3019
|
async lazy() {
|
|
3124
|
-
const { OasProvider: t } = await import("./OasProvider-
|
|
3020
|
+
const { OasProvider: t } = await import("./OasProvider-0xiB5cKH.js");
|
|
3125
3021
|
return {
|
|
3126
3022
|
element: /* @__PURE__ */ n.jsx(
|
|
3127
3023
|
t,
|
|
@@ -3135,39 +3031,39 @@ const na = (e) => Object.entries({
|
|
|
3135
3031
|
};
|
|
3136
3032
|
},
|
|
3137
3033
|
children: e.routes
|
|
3138
|
-
}),
|
|
3034
|
+
}), Jt = ({
|
|
3139
3035
|
path: e,
|
|
3140
3036
|
tag: t,
|
|
3141
3037
|
untagged: s
|
|
3142
3038
|
}) => ({
|
|
3143
3039
|
path: e,
|
|
3144
3040
|
async lazy() {
|
|
3145
|
-
const { OperationList: a } = await import("./OperationList-
|
|
3041
|
+
const { OperationList: a } = await import("./OperationList-BzWKTkNq.js");
|
|
3146
3042
|
return { element: /* @__PURE__ */ n.jsx(a, { tag: t, untagged: s }) };
|
|
3147
3043
|
}
|
|
3148
|
-
}),
|
|
3044
|
+
}), aa = ({
|
|
3149
3045
|
render: e,
|
|
3150
3046
|
path: t
|
|
3151
3047
|
}) => {
|
|
3152
|
-
const { type: s, input: a } =
|
|
3048
|
+
const { type: s, input: a } = ra(), { tag: r } = kn(), o = In(), i = ir(Zt, { type: s, input: a }), {
|
|
3153
3049
|
data: { schema: l }
|
|
3154
|
-
} =
|
|
3050
|
+
} = Bn(i), c = l.tags.at(0);
|
|
3155
3051
|
return !r && c?.slug ? /* @__PURE__ */ n.jsx(
|
|
3156
|
-
|
|
3052
|
+
Dn,
|
|
3157
3053
|
{
|
|
3158
3054
|
to: {
|
|
3159
|
-
pathname:
|
|
3055
|
+
pathname: Fn(t, { tag: c.slug }),
|
|
3160
3056
|
search: o.search
|
|
3161
3057
|
}
|
|
3162
3058
|
}
|
|
3163
3059
|
) : r && l.tags.some((u) => u.slug === r) ? e(r) : null;
|
|
3164
|
-
},
|
|
3060
|
+
}, oa = ({ path: e }) => ({
|
|
3165
3061
|
path: e,
|
|
3166
3062
|
async lazy() {
|
|
3167
|
-
const { OperationList: t } = await import("./OperationList-
|
|
3063
|
+
const { OperationList: t } = await import("./OperationList-BzWKTkNq.js");
|
|
3168
3064
|
return {
|
|
3169
3065
|
element: /* @__PURE__ */ n.jsx(
|
|
3170
|
-
|
|
3066
|
+
aa,
|
|
3171
3067
|
{
|
|
3172
3068
|
path: e,
|
|
3173
3069
|
render: (s) => /* @__PURE__ */ n.jsx(t, { tag: s })
|
|
@@ -3175,35 +3071,35 @@ const na = (e) => Object.entries({
|
|
|
3175
3071
|
)
|
|
3176
3072
|
};
|
|
3177
3073
|
}
|
|
3178
|
-
}),
|
|
3074
|
+
}), Wt = (e) => [
|
|
3179
3075
|
// Category without tagged operations
|
|
3180
|
-
|
|
3181
|
-
path:
|
|
3076
|
+
Jt({
|
|
3077
|
+
path: R(e, _e),
|
|
3182
3078
|
untagged: !0
|
|
3183
3079
|
}),
|
|
3184
3080
|
// Schema list route
|
|
3185
3081
|
{
|
|
3186
|
-
path:
|
|
3082
|
+
path: R(e, "~schemas"),
|
|
3187
3083
|
lazy: async () => {
|
|
3188
|
-
const { SchemaList: t } = await import("./SchemaList-
|
|
3084
|
+
const { SchemaList: t } = await import("./SchemaList-Dea2Skqv.js");
|
|
3189
3085
|
return { element: /* @__PURE__ */ n.jsx(t, {}) };
|
|
3190
3086
|
}
|
|
3191
3087
|
}
|
|
3192
|
-
],
|
|
3193
|
-
const s =
|
|
3088
|
+
], ia = (e, t) => {
|
|
3089
|
+
const s = R(e, t.at(0) ?? _e);
|
|
3194
3090
|
return [
|
|
3195
3091
|
// Redirect to first tag on the index route
|
|
3196
|
-
{ index: !0, loader: () =>
|
|
3092
|
+
{ index: !0, loader: () => Rn(s) },
|
|
3197
3093
|
// Create routes for each tag
|
|
3198
3094
|
...t.map(
|
|
3199
|
-
(a) =>
|
|
3200
|
-
path:
|
|
3095
|
+
(a) => Jt({
|
|
3096
|
+
path: R(e, a),
|
|
3201
3097
|
tag: a
|
|
3202
3098
|
})
|
|
3203
3099
|
),
|
|
3204
|
-
...
|
|
3100
|
+
...Wt(e)
|
|
3205
3101
|
];
|
|
3206
|
-
},
|
|
3102
|
+
}, Xt = (e) => e.type === "file" ? Object.keys(e.input) : [], ca = ({
|
|
3207
3103
|
basePath: e,
|
|
3208
3104
|
config: t,
|
|
3209
3105
|
client: s
|
|
@@ -3211,30 +3107,30 @@ const na = (e) => Object.entries({
|
|
|
3211
3107
|
const a = t.tagPages;
|
|
3212
3108
|
if (!a)
|
|
3213
3109
|
return [
|
|
3214
|
-
|
|
3110
|
+
ht({
|
|
3215
3111
|
basePath: e,
|
|
3216
3112
|
routePath: e,
|
|
3217
3113
|
routes: [
|
|
3218
|
-
|
|
3219
|
-
...
|
|
3114
|
+
oa({ path: `${e}/:tag?` }),
|
|
3115
|
+
...Wt(e)
|
|
3220
3116
|
],
|
|
3221
3117
|
client: s,
|
|
3222
3118
|
config: t
|
|
3223
3119
|
})
|
|
3224
3120
|
];
|
|
3225
|
-
const r =
|
|
3121
|
+
const r = Xt(t);
|
|
3226
3122
|
return (r.length > 1 ? [void 0, ...r] : [void 0]).map((i) => {
|
|
3227
|
-
const l =
|
|
3228
|
-
return
|
|
3123
|
+
const l = R(e, i);
|
|
3124
|
+
return ht({
|
|
3229
3125
|
basePath: e,
|
|
3230
3126
|
version: i,
|
|
3231
3127
|
routePath: l,
|
|
3232
|
-
routes:
|
|
3128
|
+
routes: ia(l, a),
|
|
3233
3129
|
client: s,
|
|
3234
3130
|
config: t
|
|
3235
3131
|
});
|
|
3236
3132
|
});
|
|
3237
|
-
},
|
|
3133
|
+
}, Zt = gr(`
|
|
3238
3134
|
query GetNavigationOperations($input: JSON!, $type: SchemaType!) {
|
|
3239
3135
|
schema(input: $input, type: $type) {
|
|
3240
3136
|
extensions
|
|
@@ -3257,8 +3153,8 @@ const na = (e) => Object.entries({
|
|
|
3257
3153
|
}
|
|
3258
3154
|
}
|
|
3259
3155
|
}
|
|
3260
|
-
`),
|
|
3261
|
-
const t =
|
|
3156
|
+
`), _e = "~endpoints", Ba = (e) => {
|
|
3157
|
+
const t = R(e.path), s = new Os(e);
|
|
3262
3158
|
return {
|
|
3263
3159
|
getHead: () => {
|
|
3264
3160
|
if (e.type === "url" && !e.skipPreload)
|
|
@@ -3276,82 +3172,69 @@ const na = (e) => Object.entries({
|
|
|
3276
3172
|
},
|
|
3277
3173
|
getMdxComponents: () => ({
|
|
3278
3174
|
OpenPlaygroundButton: ({
|
|
3279
|
-
|
|
3280
|
-
|
|
3281
|
-
|
|
3282
|
-
|
|
3283
|
-
|
|
3284
|
-
...c
|
|
3175
|
+
server: a,
|
|
3176
|
+
method: r = "get",
|
|
3177
|
+
url: o = "/",
|
|
3178
|
+
children: i,
|
|
3179
|
+
...l
|
|
3285
3180
|
}) => {
|
|
3286
|
-
|
|
3287
|
-
if (!r)
|
|
3181
|
+
if (!a)
|
|
3288
3182
|
throw new Error("Server is required");
|
|
3289
|
-
return
|
|
3290
|
-
|
|
3291
|
-
{
|
|
3292
|
-
className: "gap-2 items-center",
|
|
3293
|
-
variant: "outline",
|
|
3294
|
-
onClick: u.login,
|
|
3295
|
-
children: [
|
|
3296
|
-
"Login to open in Playground ",
|
|
3297
|
-
/* @__PURE__ */ n.jsx(qn, { size: 16 })
|
|
3298
|
-
]
|
|
3299
|
-
}
|
|
3300
|
-
) : /* @__PURE__ */ n.jsx(
|
|
3301
|
-
ua,
|
|
3183
|
+
return /* @__PURE__ */ n.jsx(
|
|
3184
|
+
na,
|
|
3302
3185
|
{
|
|
3303
|
-
url:
|
|
3304
|
-
method:
|
|
3305
|
-
server:
|
|
3306
|
-
...
|
|
3307
|
-
children: /* @__PURE__ */ n.jsx(
|
|
3308
|
-
"Open in Playground
|
|
3309
|
-
/* @__PURE__ */ n.jsx(
|
|
3186
|
+
url: o,
|
|
3187
|
+
method: r,
|
|
3188
|
+
server: a,
|
|
3189
|
+
...l,
|
|
3190
|
+
children: /* @__PURE__ */ n.jsx(ce, { className: "gap-2 items-center", variant: "outline", children: i ?? /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
3191
|
+
"Open in Playground",
|
|
3192
|
+
/* @__PURE__ */ n.jsx(En, { size: 16 })
|
|
3310
3193
|
] }) })
|
|
3311
3194
|
}
|
|
3312
3195
|
);
|
|
3313
3196
|
}
|
|
3314
3197
|
}),
|
|
3315
3198
|
getNavigation: async (a, r) => {
|
|
3316
|
-
if (!
|
|
3199
|
+
if (!st({ path: t, end: !1 }, a))
|
|
3317
3200
|
return [];
|
|
3318
|
-
const o =
|
|
3201
|
+
const o = st(
|
|
3319
3202
|
{ path: `${t}/:version?/:tag`, end: !0 },
|
|
3320
3203
|
a
|
|
3321
3204
|
);
|
|
3322
3205
|
try {
|
|
3323
|
-
const i = o?.params.version, l = i ??
|
|
3206
|
+
const i = o?.params.version, l = i ?? Xt(e).at(0), { type: c } = e, u = c === "file" ? e.input[l] : e.input, d = Ft(s, Zt, {
|
|
3324
3207
|
type: c,
|
|
3325
3208
|
input: u
|
|
3326
3209
|
}), h = await r.queryClient.ensureQueryData(d), g = new Map(
|
|
3327
3210
|
h.schema.tags.filter((f) => f.name && f.operations.length > 0).map((f) => {
|
|
3328
3211
|
if (!f.name)
|
|
3329
3212
|
throw new Error(`Tag ${f.slug} has no name`);
|
|
3330
|
-
const
|
|
3213
|
+
const j = R(t, i, f.slug), L = f.extensions?.["x-zudoku-collapsed"] ?? !e.options?.expandAllTags, N = f.extensions?.["x-zudoku-collapsible"] ?? !0;
|
|
3331
3214
|
return [
|
|
3332
3215
|
f.name,
|
|
3333
|
-
|
|
3216
|
+
pt({
|
|
3334
3217
|
label: f.extensions?.["x-displayName"] ?? f.name,
|
|
3335
|
-
path:
|
|
3218
|
+
path: j,
|
|
3336
3219
|
operations: f.operations,
|
|
3337
|
-
collapsed:
|
|
3338
|
-
collapsible:
|
|
3220
|
+
collapsed: L,
|
|
3221
|
+
collapsible: N
|
|
3339
3222
|
})
|
|
3340
3223
|
];
|
|
3341
3224
|
})
|
|
3342
3225
|
), m = h.schema.extensions?.["x-tagGroups"] ?? [], v = new Set(
|
|
3343
3226
|
m.flatMap(
|
|
3344
|
-
(f) => f.tags.filter((
|
|
3227
|
+
(f) => f.tags.filter((j) => g.has(j))
|
|
3345
3228
|
)
|
|
3346
3229
|
), b = [
|
|
3347
3230
|
...m.flatMap(
|
|
3348
3231
|
(f) => {
|
|
3349
|
-
const
|
|
3350
|
-
return
|
|
3232
|
+
const j = f.tags.map((L) => g.get(L)).filter(Boolean);
|
|
3233
|
+
return j.length === 0 ? [] : [
|
|
3351
3234
|
{
|
|
3352
3235
|
type: "category",
|
|
3353
3236
|
label: f.name,
|
|
3354
|
-
items:
|
|
3237
|
+
items: j,
|
|
3355
3238
|
collapsible: !0,
|
|
3356
3239
|
collapsed: !e.options?.expandAllTags
|
|
3357
3240
|
}
|
|
@@ -3359,63 +3242,63 @@ const na = (e) => Object.entries({
|
|
|
3359
3242
|
}
|
|
3360
3243
|
),
|
|
3361
3244
|
...Array.from(g.entries()).filter(([f]) => !v.has(f)).map(([, f]) => f)
|
|
3362
|
-
],
|
|
3245
|
+
], T = h.schema.tags.find(
|
|
3363
3246
|
(f) => !f.name
|
|
3364
3247
|
)?.operations;
|
|
3365
|
-
return
|
|
3366
|
-
|
|
3248
|
+
return T && T.length > 0 && b.push(
|
|
3249
|
+
pt({
|
|
3367
3250
|
label: b.length === 0 ? "Endpoints" : "Other endpoints",
|
|
3368
|
-
path:
|
|
3369
|
-
operations:
|
|
3251
|
+
path: R(t, i, _e),
|
|
3252
|
+
operations: T,
|
|
3370
3253
|
collapsed: !e.options?.expandAllTags
|
|
3371
3254
|
})
|
|
3372
3255
|
), h.schema.components?.schemas?.length && b.push({
|
|
3373
3256
|
type: "link",
|
|
3374
3257
|
label: "Schemas",
|
|
3375
|
-
to:
|
|
3258
|
+
to: R(t, i, "~schemas")
|
|
3376
3259
|
}), b;
|
|
3377
3260
|
} catch {
|
|
3378
3261
|
return [];
|
|
3379
3262
|
}
|
|
3380
3263
|
},
|
|
3381
|
-
getRoutes: () =>
|
|
3264
|
+
getRoutes: () => ca({ basePath: t, config: e, client: s })
|
|
3382
3265
|
};
|
|
3383
3266
|
};
|
|
3384
3267
|
export {
|
|
3385
|
-
|
|
3386
|
-
|
|
3387
|
-
|
|
3388
|
-
|
|
3389
|
-
|
|
3390
|
-
|
|
3391
|
-
|
|
3268
|
+
F as C,
|
|
3269
|
+
qa as G,
|
|
3270
|
+
Vs as L,
|
|
3271
|
+
Va as O,
|
|
3272
|
+
na as P,
|
|
3273
|
+
ks as Q,
|
|
3274
|
+
It as S,
|
|
3392
3275
|
x as T,
|
|
3393
|
-
|
|
3394
|
-
|
|
3395
|
-
|
|
3396
|
-
|
|
3397
|
-
|
|
3398
|
-
|
|
3399
|
-
|
|
3400
|
-
|
|
3401
|
-
|
|
3402
|
-
|
|
3403
|
-
|
|
3404
|
-
|
|
3405
|
-
|
|
3406
|
-
|
|
3407
|
-
|
|
3408
|
-
|
|
3409
|
-
|
|
3410
|
-
|
|
3411
|
-
|
|
3412
|
-
|
|
3413
|
-
|
|
3414
|
-
|
|
3415
|
-
|
|
3416
|
-
|
|
3417
|
-
|
|
3418
|
-
|
|
3419
|
-
|
|
3276
|
+
_e as U,
|
|
3277
|
+
ir as a,
|
|
3278
|
+
zt as b,
|
|
3279
|
+
z as c,
|
|
3280
|
+
Xt as d,
|
|
3281
|
+
Cr as e,
|
|
3282
|
+
Mt as f,
|
|
3283
|
+
gr as g,
|
|
3284
|
+
qr as h,
|
|
3285
|
+
ar as i,
|
|
3286
|
+
lt as j,
|
|
3287
|
+
Fa as k,
|
|
3288
|
+
Bs as l,
|
|
3289
|
+
ze as m,
|
|
3290
|
+
kt as n,
|
|
3291
|
+
Ps as o,
|
|
3292
|
+
rr as p,
|
|
3293
|
+
je as q,
|
|
3294
|
+
Ls as r,
|
|
3295
|
+
P as s,
|
|
3296
|
+
za as t,
|
|
3297
|
+
ra as u,
|
|
3298
|
+
qs as v,
|
|
3299
|
+
Ds as w,
|
|
3300
|
+
Lt as x,
|
|
3301
|
+
Zt as y,
|
|
3302
|
+
Ba as z
|
|
3420
3303
|
};
|
|
3421
|
-
//# sourceMappingURL=index-
|
|
3304
|
+
//# sourceMappingURL=index-PdgTSEkk.js.map
|