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