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