zudoku 0.45.1 → 0.46.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/app/main.js +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 +3 -3
- 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-tTTaDsLc.js → MdxPage-B3v1BSKr.js} +11 -11
- package/lib/MdxPage-B3v1BSKr.js.map +1 -0
- package/lib/{OasProvider-DalHQixM.js → OasProvider-5jrFuhVk.js} +3 -3
- package/lib/{OasProvider-DalHQixM.js.map → OasProvider-5jrFuhVk.js.map} +1 -1
- package/lib/{OperationList-BB09ENaq.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-BH9bgMRw.js → SchemaList-B4riYLoP.js} +61 -47
- package/lib/SchemaList-B4riYLoP.js.map +1 -0
- package/lib/{SchemaView-BsB7EFRl.js → SchemaView-CPZ6RgsF.js} +100 -95
- package/lib/SchemaView-CPZ6RgsF.js.map +1 -0
- package/lib/{AuthenticationPlugin-BTJ37DKg.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-CZaZtOBs.js → circular-oB4auIIg.js} +2 -2
- package/lib/{circular-CZaZtOBs.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-DmqFeMgf.js → createServer-DCB82j2t.js} +81 -81
- package/lib/{createServer-DmqFeMgf.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-sS7O9W-R.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 -15
- package/src/app/defaultTheme.css +54 -0
- package/src/app/font.geist.css +73 -0
- package/src/app/main.css +114 -157
- 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 +4 -4
- 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-BTJ37DKg.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-tTTaDsLc.js.map +0 -1
- package/lib/OperationList-BB09ENaq.js.map +0 -1
- package/lib/Pagination-CtmnJOJi.js +0 -48
- package/lib/Pagination-CtmnJOJi.js.map +0 -1
- package/lib/RouteGuard-lkdEJoDV.js.map +0 -1
- package/lib/SchemaList-BH9bgMRw.js.map +0 -1
- package/lib/SchemaView-BsB7EFRl.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-BnT4-Efz.js +0 -4975
- package/lib/index-BnT4-Efz.js.map +0 -1
- package/lib/index-sS7O9W-R.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,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { K as p, i as Fe, a as $, b as ie, c as re, d as Q, G as Pe, p as Y, e as L, f as _o, t as Qr, g as No, h as Ro, j as pe, k as je, l as bt, m as ce, n as ne, o as Gt, q as Hr, r as vt, s as Te, u as Se, v as
|
|
1
|
+
import { n as To, o as Eo, L as wo, T as O, s as Be, p as fe, q as So, r as Oo, t as b, v as R, w as $e, x as Gr, y as Je, z as Ae, A as Io } from "./index-BXYvD5-7.js";
|
|
2
|
+
import { K as p, i as Fe, a as $, b as ie, c as re, d as Q, G as Pe, p as Y, e as L, f as _o, t as Qr, g as No, h as Ro, j as pe, k as je, l as bt, m as ce, n as ne, o as Gt, q as Hr, r as vt, s as Te, u as Se, v as zt, w as ko, x as fn, y as Kr, z as Me, A as zr, B as qi, D as et, E as xn, F as Et, H as Qt, I as Ao, J as Wr, L as Fo, M as Co, N as ut, O as xt, P as dn, Q as xo, C as Do, R as Lo, S as Po, T as $o } from "./circular-oB4auIIg.js";
|
|
3
3
|
import { a as jo } from "./index-BvvmIczU.js";
|
|
4
4
|
import { traverse as De } from "./processors/traverse.js";
|
|
5
5
|
import { g as Mo } from "./invariant-DAFpPywt.js";
|
|
@@ -1159,11 +1159,11 @@ function mt(t, e, n) {
|
|
|
1159
1159
|
function Bi(t, e, n) {
|
|
1160
1160
|
return e === n ? !0 : Fe(e) ? Fe(n) ? t.getPossibleTypes(e).some((i) => t.isSubType(n, i)) : t.isSubType(e, n) : Fe(n) ? t.isSubType(n, e) : !1;
|
|
1161
1161
|
}
|
|
1162
|
-
const Kn = 2147483647,
|
|
1162
|
+
const Kn = 2147483647, zn = -2147483648, Dn = new Pe({
|
|
1163
1163
|
name: "Int",
|
|
1164
1164
|
description: "The `Int` scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.",
|
|
1165
1165
|
serialize(t) {
|
|
1166
|
-
const e =
|
|
1166
|
+
const e = Wt(t);
|
|
1167
1167
|
if (typeof e == "boolean")
|
|
1168
1168
|
return e ? 1 : 0;
|
|
1169
1169
|
let n = e;
|
|
@@ -1171,7 +1171,7 @@ const Kn = 2147483647, Wn = -2147483648, Dn = new Pe({
|
|
|
1171
1171
|
throw new b(
|
|
1172
1172
|
`Int cannot represent non-integer value: ${R(e)}`
|
|
1173
1173
|
);
|
|
1174
|
-
if (n > Kn || n <
|
|
1174
|
+
if (n > Kn || n < zn)
|
|
1175
1175
|
throw new b(
|
|
1176
1176
|
"Int cannot represent non 32-bit signed integer value: " + R(e)
|
|
1177
1177
|
);
|
|
@@ -1182,7 +1182,7 @@ const Kn = 2147483647, Wn = -2147483648, Dn = new Pe({
|
|
|
1182
1182
|
throw new b(
|
|
1183
1183
|
`Int cannot represent non-integer value: ${R(t)}`
|
|
1184
1184
|
);
|
|
1185
|
-
if (t > Kn || t <
|
|
1185
|
+
if (t > Kn || t < zn)
|
|
1186
1186
|
throw new b(
|
|
1187
1187
|
`Int cannot represent non 32-bit signed integer value: ${t}`
|
|
1188
1188
|
);
|
|
@@ -1197,7 +1197,7 @@ const Kn = 2147483647, Wn = -2147483648, Dn = new Pe({
|
|
|
1197
1197
|
}
|
|
1198
1198
|
);
|
|
1199
1199
|
const e = parseInt(t.value, 10);
|
|
1200
|
-
if (e > Kn || e <
|
|
1200
|
+
if (e > Kn || e < zn)
|
|
1201
1201
|
throw new b(
|
|
1202
1202
|
`Int cannot represent non 32-bit signed integer value: ${t.value}`,
|
|
1203
1203
|
{
|
|
@@ -1210,7 +1210,7 @@ const Kn = 2147483647, Wn = -2147483648, Dn = new Pe({
|
|
|
1210
1210
|
name: "Float",
|
|
1211
1211
|
description: "The `Float` scalar type represents signed double-precision fractional values as specified by [IEEE 754](https://en.wikipedia.org/wiki/IEEE_floating_point).",
|
|
1212
1212
|
serialize(t) {
|
|
1213
|
-
const e =
|
|
1213
|
+
const e = Wt(t);
|
|
1214
1214
|
if (typeof e == "boolean")
|
|
1215
1215
|
return e ? 1 : 0;
|
|
1216
1216
|
let n = e;
|
|
@@ -1239,7 +1239,7 @@ const Kn = 2147483647, Wn = -2147483648, Dn = new Pe({
|
|
|
1239
1239
|
name: "String",
|
|
1240
1240
|
description: "The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.",
|
|
1241
1241
|
serialize(t) {
|
|
1242
|
-
const e =
|
|
1242
|
+
const e = Wt(t);
|
|
1243
1243
|
if (typeof e == "string")
|
|
1244
1244
|
return e;
|
|
1245
1245
|
if (typeof e == "boolean")
|
|
@@ -1271,7 +1271,7 @@ const Kn = 2147483647, Wn = -2147483648, Dn = new Pe({
|
|
|
1271
1271
|
name: "Boolean",
|
|
1272
1272
|
description: "The `Boolean` scalar type represents `true` or `false`.",
|
|
1273
1273
|
serialize(t) {
|
|
1274
|
-
const e =
|
|
1274
|
+
const e = Wt(t);
|
|
1275
1275
|
if (typeof e == "boolean")
|
|
1276
1276
|
return e;
|
|
1277
1277
|
if (Number.isFinite(e))
|
|
@@ -1301,7 +1301,7 @@ const Kn = 2147483647, Wn = -2147483648, Dn = new Pe({
|
|
|
1301
1301
|
name: "ID",
|
|
1302
1302
|
description: 'The `ID` scalar type represents a unique identifier, often used to refetch an object or as key for a cache. The ID type appears in a JSON response as a String; however, it is not intended to be human-readable. When expected as an input type, any string (such as `"4"`) or integer (such as `4`) input value will be accepted as an ID.',
|
|
1303
1303
|
serialize(t) {
|
|
1304
|
-
const e =
|
|
1304
|
+
const e = Wt(t);
|
|
1305
1305
|
if (typeof e == "string")
|
|
1306
1306
|
return e;
|
|
1307
1307
|
if (Number.isInteger(e))
|
|
@@ -1334,7 +1334,7 @@ const Kn = 2147483647, Wn = -2147483648, Dn = new Pe({
|
|
|
1334
1334
|
X,
|
|
1335
1335
|
Ln
|
|
1336
1336
|
]);
|
|
1337
|
-
function
|
|
1337
|
+
function Wt(t) {
|
|
1338
1338
|
if ($e(t)) {
|
|
1339
1339
|
if (typeof t.valueOf == "function") {
|
|
1340
1340
|
const e = t.valueOf();
|
|
@@ -1987,7 +1987,7 @@ function as(t) {
|
|
|
1987
1987
|
function ls(t) {
|
|
1988
1988
|
return Gr(t, Oi);
|
|
1989
1989
|
}
|
|
1990
|
-
function
|
|
1990
|
+
function zo(t) {
|
|
1991
1991
|
if (!ls(t))
|
|
1992
1992
|
throw new Error(`Expected ${R(t)} to be a GraphQL schema.`);
|
|
1993
1993
|
return t;
|
|
@@ -2141,8 +2141,8 @@ function ve(t, e) {
|
|
|
2141
2141
|
}
|
|
2142
2142
|
return e;
|
|
2143
2143
|
}
|
|
2144
|
-
function
|
|
2145
|
-
if (
|
|
2144
|
+
function Wo(t) {
|
|
2145
|
+
if (zo(t), t.__validationErrors)
|
|
2146
2146
|
return t.__validationErrors;
|
|
2147
2147
|
const e = new Jo(t);
|
|
2148
2148
|
Yo(e), Xo(e), Zo(e);
|
|
@@ -2150,7 +2150,7 @@ function zo(t) {
|
|
|
2150
2150
|
return t.__validationErrors = n, n;
|
|
2151
2151
|
}
|
|
2152
2152
|
function us(t) {
|
|
2153
|
-
const e =
|
|
2153
|
+
const e = Wo(t);
|
|
2154
2154
|
if (e.length !== 0)
|
|
2155
2155
|
throw new Error(e.map((n) => n.message).join(`
|
|
2156
2156
|
|
|
@@ -2182,7 +2182,7 @@ function Yo(t) {
|
|
|
2182
2182
|
`Query root type must be Object type, it cannot be ${R(
|
|
2183
2183
|
n
|
|
2184
2184
|
)}.`,
|
|
2185
|
-
(i =
|
|
2185
|
+
(i = Wn(
|
|
2186
2186
|
e,
|
|
2187
2187
|
fe.QUERY
|
|
2188
2188
|
)) !== null && i !== void 0 ? i : n.astNode
|
|
@@ -2193,7 +2193,7 @@ function Yo(t) {
|
|
|
2193
2193
|
var s;
|
|
2194
2194
|
t.reportError(
|
|
2195
2195
|
`Mutation root type must be Object type if provided, it cannot be ${R(r)}.`,
|
|
2196
|
-
(s =
|
|
2196
|
+
(s = Wn(
|
|
2197
2197
|
e,
|
|
2198
2198
|
fe.MUTATION
|
|
2199
2199
|
)) !== null && s !== void 0 ? s : r.astNode
|
|
@@ -2204,14 +2204,14 @@ function Yo(t) {
|
|
|
2204
2204
|
var a;
|
|
2205
2205
|
t.reportError(
|
|
2206
2206
|
`Subscription root type must be Object type if provided, it cannot be ${R(o)}.`,
|
|
2207
|
-
(a =
|
|
2207
|
+
(a = Wn(
|
|
2208
2208
|
e,
|
|
2209
2209
|
fe.SUBSCRIPTION
|
|
2210
2210
|
)) !== null && a !== void 0 ? a : o.astNode
|
|
2211
2211
|
);
|
|
2212
2212
|
}
|
|
2213
2213
|
}
|
|
2214
|
-
function
|
|
2214
|
+
function Wn(t, e) {
|
|
2215
2215
|
var n;
|
|
2216
2216
|
return (n = [t.astNode, ...t.extensionASTNodes].flatMap(
|
|
2217
2217
|
// FIXME: https://github.com/graphql/graphql-js/issues/2203
|
|
@@ -2241,7 +2241,7 @@ function Xo(t) {
|
|
|
2241
2241
|
if (tt(t, i), Se(i.type) || t.reportError(
|
|
2242
2242
|
`The type of @${n.name}(${i.name}:) must be Input Type but got: ${R(i.type)}.`,
|
|
2243
2243
|
i.astNode
|
|
2244
|
-
),
|
|
2244
|
+
), zt(i) && i.deprecationReason != null) {
|
|
2245
2245
|
var e;
|
|
2246
2246
|
t.reportError(
|
|
2247
2247
|
`Required argument @${n.name}(${i.name}:) cannot be deprecated.`,
|
|
@@ -2295,7 +2295,7 @@ function Qi(t, e) {
|
|
|
2295
2295
|
(r = a.astNode) === null || r === void 0 ? void 0 : r.type
|
|
2296
2296
|
);
|
|
2297
2297
|
}
|
|
2298
|
-
if (
|
|
2298
|
+
if (zt(a) && a.deprecationReason != null) {
|
|
2299
2299
|
var s;
|
|
2300
2300
|
t.reportError(
|
|
2301
2301
|
`Required argument ${e.name}.${o.name}(${l}:) cannot be deprecated.`,
|
|
@@ -2378,7 +2378,7 @@ function ea(t, e, n) {
|
|
|
2378
2378
|
}
|
|
2379
2379
|
for (const f of c.args) {
|
|
2380
2380
|
const d = f.name;
|
|
2381
|
-
!l.args.find((m) => m.name === d) &&
|
|
2381
|
+
!l.args.find((m) => m.name === d) && zt(f) && t.reportError(
|
|
2382
2382
|
`Object field ${e.name}.${u} includes required argument ${d} that is missing from the Interface field ${n.name}.${u}.`,
|
|
2383
2383
|
[f.astNode, l.astNode]
|
|
2384
2384
|
);
|
|
@@ -2618,7 +2618,7 @@ class cs {
|
|
|
2618
2618
|
break;
|
|
2619
2619
|
}
|
|
2620
2620
|
case p.LIST: {
|
|
2621
|
-
const r =
|
|
2621
|
+
const r = zr(this.getInputType()), s = ie(r) ? r.ofType : r;
|
|
2622
2622
|
this._defaultValueStack.push(void 0), this._inputTypeStack.push(Se(s) ? s : void 0);
|
|
2623
2623
|
break;
|
|
2624
2624
|
}
|
|
@@ -2982,11 +2982,11 @@ function wa(t) {
|
|
|
2982
2982
|
if (!n[c] && !i[c]) {
|
|
2983
2983
|
var f;
|
|
2984
2984
|
const d = (f = u[2]) !== null && f !== void 0 ? f : a, h = d != null && Sa(d);
|
|
2985
|
-
if (h &&
|
|
2985
|
+
if (h && zi.includes(c))
|
|
2986
2986
|
return;
|
|
2987
2987
|
const m = Et(
|
|
2988
2988
|
c,
|
|
2989
|
-
h ?
|
|
2989
|
+
h ? zi.concat(r) : r
|
|
2990
2990
|
);
|
|
2991
2991
|
t.reportError(
|
|
2992
2992
|
new b(
|
|
@@ -3000,7 +3000,7 @@ function wa(t) {
|
|
|
3000
3000
|
}
|
|
3001
3001
|
};
|
|
3002
3002
|
}
|
|
3003
|
-
const
|
|
3003
|
+
const zi = [...Go, ...os].map(
|
|
3004
3004
|
(t) => t.name
|
|
3005
3005
|
);
|
|
3006
3006
|
function Sa(t) {
|
|
@@ -3529,10 +3529,10 @@ function Pa(t, e) {
|
|
|
3529
3529
|
const r = new Map(i.map(({ name: s, value: o }) => [s.value, o]));
|
|
3530
3530
|
return n.every((s) => {
|
|
3531
3531
|
const o = s.value, a = r.get(s.name.value);
|
|
3532
|
-
return a === void 0 ? !1 :
|
|
3532
|
+
return a === void 0 ? !1 : Wi(o) === Wi(a);
|
|
3533
3533
|
});
|
|
3534
3534
|
}
|
|
3535
|
-
function
|
|
3535
|
+
function Wi(t) {
|
|
3536
3536
|
return Y(Ni(t));
|
|
3537
3537
|
}
|
|
3538
3538
|
function ci(t, e) {
|
|
@@ -3682,7 +3682,7 @@ function Va(t) {
|
|
|
3682
3682
|
(n = e.arguments) === null || n === void 0 ? void 0 : n.map((s) => s.name.value)
|
|
3683
3683
|
);
|
|
3684
3684
|
for (const s of i.args)
|
|
3685
|
-
if (!r.has(s.name) &&
|
|
3685
|
+
if (!r.has(s.name) && zt(s)) {
|
|
3686
3686
|
const o = R(s.type);
|
|
3687
3687
|
t.reportError(
|
|
3688
3688
|
new b(
|
|
@@ -3702,7 +3702,7 @@ function qa(t) {
|
|
|
3702
3702
|
const n = /* @__PURE__ */ Object.create(null), i = t.getSchema(), r = (e = i?.getDirectives()) !== null && e !== void 0 ? e : Jt;
|
|
3703
3703
|
for (const a of r)
|
|
3704
3704
|
n[a.name] = Qt(
|
|
3705
|
-
a.args.filter(
|
|
3705
|
+
a.args.filter(zt),
|
|
3706
3706
|
(l) => l.name
|
|
3707
3707
|
);
|
|
3708
3708
|
const s = t.getDocument().definitions;
|
|
@@ -3995,7 +3995,7 @@ function Ye(t, e, n) {
|
|
|
3995
3995
|
function Yi(t, e) {
|
|
3996
3996
|
return t.kind === p.VARIABLE && (e == null || e[t.name.value] === void 0);
|
|
3997
3997
|
}
|
|
3998
|
-
function
|
|
3998
|
+
function za(t, e, n) {
|
|
3999
3999
|
var i;
|
|
4000
4000
|
const r = {}, s = (i = e.arguments) !== null && i !== void 0 ? i : [], o = Qt(s, (a) => a.name.value);
|
|
4001
4001
|
for (const a of t.args) {
|
|
@@ -4016,7 +4016,7 @@ function Wa(t, e, n) {
|
|
|
4016
4016
|
let d = f.kind === p.NULL;
|
|
4017
4017
|
if (f.kind === p.VARIABLE) {
|
|
4018
4018
|
const m = f.name.value;
|
|
4019
|
-
if (n == null || !
|
|
4019
|
+
if (n == null || !Wa(n, m)) {
|
|
4020
4020
|
if (a.defaultValue !== void 0)
|
|
4021
4021
|
r[l] = a.defaultValue;
|
|
4022
4022
|
else if ($(u))
|
|
@@ -4055,9 +4055,9 @@ function Tt(t, e, n) {
|
|
|
4055
4055
|
(s) => s.name.value === t.name
|
|
4056
4056
|
);
|
|
4057
4057
|
if (r)
|
|
4058
|
-
return
|
|
4058
|
+
return za(t, r, n);
|
|
4059
4059
|
}
|
|
4060
|
-
function
|
|
4060
|
+
function Wa(t, e) {
|
|
4061
4061
|
return Object.prototype.hasOwnProperty.call(t, e);
|
|
4062
4062
|
}
|
|
4063
4063
|
function Ja(t, e, n, i, r) {
|
|
@@ -4338,7 +4338,7 @@ function sl(t) {
|
|
|
4338
4338
|
e[n.variable.name.value] = n;
|
|
4339
4339
|
},
|
|
4340
4340
|
ListValue(n) {
|
|
4341
|
-
const i =
|
|
4341
|
+
const i = zr(t.getParentInputType());
|
|
4342
4342
|
if (!ie(i))
|
|
4343
4343
|
return Ge(t, n), !1;
|
|
4344
4344
|
},
|
|
@@ -4650,7 +4650,7 @@ class dl extends fl {
|
|
|
4650
4650
|
let n = this._variableUsages.get(e);
|
|
4651
4651
|
if (!n) {
|
|
4652
4652
|
const i = [], r = new cs(this._schema);
|
|
4653
|
-
|
|
4653
|
+
Wr(
|
|
4654
4654
|
e,
|
|
4655
4655
|
fs(r, {
|
|
4656
4656
|
VariableDefinition: () => !1,
|
|
@@ -4720,7 +4720,7 @@ function pl(t, e, n = bs, i, r = new cs(t)) {
|
|
|
4720
4720
|
}
|
|
4721
4721
|
), c = Fo(n.map((f) => f(u)));
|
|
4722
4722
|
try {
|
|
4723
|
-
|
|
4723
|
+
Wr(e, fs(r, c));
|
|
4724
4724
|
} catch (f) {
|
|
4725
4725
|
if (f !== a)
|
|
4726
4726
|
throw f;
|
|
@@ -5286,8 +5286,8 @@ function kl({ plugins: t }) {
|
|
|
5286
5286
|
for (const te of c.validate) {
|
|
5287
5287
|
const K = te({
|
|
5288
5288
|
context: P,
|
|
5289
|
-
extendContext: (
|
|
5290
|
-
Object.assign(P,
|
|
5289
|
+
extendContext: (z) => {
|
|
5290
|
+
Object.assign(P, z);
|
|
5291
5291
|
},
|
|
5292
5292
|
params: {
|
|
5293
5293
|
schema: N,
|
|
@@ -5297,14 +5297,14 @@ function kl({ plugins: t }) {
|
|
|
5297
5297
|
options: E
|
|
5298
5298
|
},
|
|
5299
5299
|
validateFn: _,
|
|
5300
|
-
addValidationRule: (
|
|
5301
|
-
S || (S = []), S.push(
|
|
5300
|
+
addValidationRule: (z) => {
|
|
5301
|
+
S || (S = []), S.push(z);
|
|
5302
5302
|
},
|
|
5303
|
-
setValidationFn: (
|
|
5304
|
-
_ =
|
|
5303
|
+
setValidationFn: (z) => {
|
|
5304
|
+
_ = z;
|
|
5305
5305
|
},
|
|
5306
|
-
setResult: (
|
|
5307
|
-
k =
|
|
5306
|
+
setResult: (z) => {
|
|
5307
|
+
k = z;
|
|
5308
5308
|
}
|
|
5309
5309
|
});
|
|
5310
5310
|
K && U.push(K);
|
|
@@ -5850,10 +5850,10 @@ function ot(t, e, n) {
|
|
|
5850
5850
|
writable: !0
|
|
5851
5851
|
}) : t[e] = n, t;
|
|
5852
5852
|
}
|
|
5853
|
-
let
|
|
5853
|
+
let zl = wt, Wl = Yt, Jl = Mn;
|
|
5854
5854
|
class ws extends Z {
|
|
5855
5855
|
constructor(e, n) {
|
|
5856
|
-
super("Scalar", e, n), ot(this, "kind", "Scalar"), ot(this, "$inferType", void 0), ot(this, "$inferInput", void 0), ot(this,
|
|
5856
|
+
super("Scalar", e, n), ot(this, "kind", "Scalar"), ot(this, "$inferType", void 0), ot(this, "$inferInput", void 0), ot(this, zl, void 0), ot(this, Wl, void 0), ot(this, Jl, void 0);
|
|
5857
5857
|
}
|
|
5858
5858
|
}
|
|
5859
5859
|
function Yl(t, e, n) {
|
|
@@ -7685,13 +7685,13 @@ function Ku(t) {
|
|
|
7685
7685
|
function F(t, e) {
|
|
7686
7686
|
return e?.originalError && !(e.originalError instanceof Error) && Ku(e.originalError) && (e.originalError = F(e.originalError.message, e.originalError)), Jr.major >= 17 ? new b(t, e) : new b(t, e?.nodes, e?.source, e?.positions, e?.path, e?.originalError, e?.extensions);
|
|
7687
7687
|
}
|
|
7688
|
-
function
|
|
7688
|
+
function zu(t) {
|
|
7689
7689
|
return t != null && typeof t == "object" && Symbol.iterator in t;
|
|
7690
7690
|
}
|
|
7691
7691
|
function Fs(t) {
|
|
7692
7692
|
return typeof t == "object" && t !== null;
|
|
7693
7693
|
}
|
|
7694
|
-
function
|
|
7694
|
+
function Wu(t, e, n) {
|
|
7695
7695
|
let i = n;
|
|
7696
7696
|
for (const r of t)
|
|
7697
7697
|
i = C(() => i, (s) => e(s, r));
|
|
@@ -8310,7 +8310,7 @@ function gc(t) {
|
|
|
8310
8310
|
return c;
|
|
8311
8311
|
}
|
|
8312
8312
|
function mc(t, e, n, i, r) {
|
|
8313
|
-
return
|
|
8313
|
+
return Wu(r, (s, [o, a]) => {
|
|
8314
8314
|
const l = St(i, o, e.name);
|
|
8315
8315
|
return t.signal?.throwIfAborted(), new he(() => js(t, e, n, a, l)).then((u) => (u === void 0 || (s[o] = u), s));
|
|
8316
8316
|
}, /* @__PURE__ */ Object.create(null)).resolve();
|
|
@@ -8447,7 +8447,7 @@ function vc(t, e, n, i, r, s, o) {
|
|
|
8447
8447
|
const m = s[Symbol.asyncIterator]();
|
|
8448
8448
|
return bc(t, a, n, i, r, m, o);
|
|
8449
8449
|
}
|
|
8450
|
-
if (!
|
|
8450
|
+
if (!zu(s))
|
|
8451
8451
|
throw F(`Expected Iterable, but did not find one for field "${i.parentType.name}.${i.fieldName}".`);
|
|
8452
8452
|
const u = Us(t, n, r);
|
|
8453
8453
|
let c = !1, f = o;
|
|
@@ -9065,11 +9065,11 @@ function Gc(t, e) {
|
|
|
9065
9065
|
duplex: "half"
|
|
9066
9066
|
});
|
|
9067
9067
|
}
|
|
9068
|
-
function
|
|
9068
|
+
function zs(t) {
|
|
9069
9069
|
return t.read != null;
|
|
9070
9070
|
}
|
|
9071
9071
|
function Qc(t) {
|
|
9072
|
-
return
|
|
9072
|
+
return zs(t);
|
|
9073
9073
|
}
|
|
9074
9074
|
function Rr(t) {
|
|
9075
9075
|
return t != null && t.setHeader != null && t.end != null && t.once != null && t.write != null;
|
|
@@ -9080,13 +9080,13 @@ function Hc(t) {
|
|
|
9080
9080
|
function Kc(t) {
|
|
9081
9081
|
return t != null && t.request != null && t.respondWith != null;
|
|
9082
9082
|
}
|
|
9083
|
-
function
|
|
9083
|
+
function zc(t) {
|
|
9084
9084
|
t?.socket?.setTimeout?.(0), t?.socket?.setNoDelay?.(!0), t?.socket?.setKeepAlive?.(!0);
|
|
9085
9085
|
}
|
|
9086
9086
|
function ht(t) {
|
|
9087
9087
|
t.end(null, null, null);
|
|
9088
9088
|
}
|
|
9089
|
-
function
|
|
9089
|
+
function Wc(t, e) {
|
|
9090
9090
|
let n = !1;
|
|
9091
9091
|
const i = () => {
|
|
9092
9092
|
n = !0;
|
|
@@ -9159,7 +9159,7 @@ function Jc(t, e, n) {
|
|
|
9159
9159
|
e.write(s), ht(e);
|
|
9160
9160
|
return;
|
|
9161
9161
|
}
|
|
9162
|
-
if (
|
|
9162
|
+
if (zc(n), zs(s)) {
|
|
9163
9163
|
e.once("close", () => {
|
|
9164
9164
|
s.destroy();
|
|
9165
9165
|
}), s.pipe(e, {
|
|
@@ -9170,7 +9170,7 @@ function Jc(t, e, n) {
|
|
|
9170
9170
|
if (Hc(s))
|
|
9171
9171
|
return Yc(n, e, s);
|
|
9172
9172
|
if (Ks(s))
|
|
9173
|
-
return
|
|
9173
|
+
return Wc(e, s);
|
|
9174
9174
|
}
|
|
9175
9175
|
async function Yc(t, e, n) {
|
|
9176
9176
|
const i = n.getReader();
|
|
@@ -9511,14 +9511,14 @@ function uf(t, e) {
|
|
|
9511
9511
|
res: g,
|
|
9512
9512
|
req: y,
|
|
9513
9513
|
waitUntil: c
|
|
9514
|
-
}, k = E.filter((
|
|
9514
|
+
}, k = E.filter((z) => z != null).length > 0 ? jt(S, ...E) : S, P = new AbortController(), U = g.end.bind(g);
|
|
9515
9515
|
let M = !1;
|
|
9516
|
-
g.end = function(
|
|
9517
|
-
return M = !0, U(
|
|
9516
|
+
g.end = function(z) {
|
|
9517
|
+
return M = !0, U(z);
|
|
9518
9518
|
}, g.onAborted.bind(g)(function() {
|
|
9519
9519
|
P.abort();
|
|
9520
|
-
}), g.onAborted = function(
|
|
9521
|
-
P.signal.addEventListener("abort",
|
|
9520
|
+
}), g.onAborted = function(z) {
|
|
9521
|
+
P.signal.addEventListener("abort", z, { once: !0 });
|
|
9522
9522
|
};
|
|
9523
9523
|
const K = rf({
|
|
9524
9524
|
req: y,
|
|
@@ -9526,9 +9526,9 @@ function uf(t, e) {
|
|
|
9526
9526
|
fetchAPI: n,
|
|
9527
9527
|
controller: P
|
|
9528
9528
|
});
|
|
9529
|
-
return C(() => C(() => f(K, k), (
|
|
9529
|
+
return C(() => C(() => f(K, k), (z) => z, (z) => kr(z, n.Response)), (z) => {
|
|
9530
9530
|
if (!P.signal.aborted && !M)
|
|
9531
|
-
return C(() => of(g,
|
|
9531
|
+
return C(() => of(g, z, P, n), (en) => en, (en) => {
|
|
9532
9532
|
console.error(`Unexpected error while handling request: ${en.message || en}`);
|
|
9533
9533
|
});
|
|
9534
9534
|
});
|
|
@@ -9673,10 +9673,10 @@ function pf(t = Xt.Response) {
|
|
|
9673
9673
|
return n.details || n.status || n.headers || n.name === "HTTPError" ? new t(typeof n.details == "object" ? JSON.stringify(n.details) : n.message, {
|
|
9674
9674
|
status: n.status,
|
|
9675
9675
|
headers: n.headers || {}
|
|
9676
|
-
}) : (console.error(n),
|
|
9676
|
+
}) : (console.error(n), Ws(t));
|
|
9677
9677
|
};
|
|
9678
9678
|
}
|
|
9679
|
-
function
|
|
9679
|
+
function Ws(t) {
|
|
9680
9680
|
return t.error ? t.error() : new t(null, { status: 500 });
|
|
9681
9681
|
}
|
|
9682
9682
|
function hf(t) {
|
|
@@ -9684,7 +9684,7 @@ function hf(t) {
|
|
|
9684
9684
|
onRequest({ requestHandler: e, setRequestHandler: n, fetchAPI: i }) {
|
|
9685
9685
|
const r = t || pf(i.Response);
|
|
9686
9686
|
n(function(o, a) {
|
|
9687
|
-
return C(() => e(o, a), (l) => l, (l) => r(l, o, a) ||
|
|
9687
|
+
return C(() => e(o, a), (l) => l, (l) => r(l, o, a) || Ws(i.Response));
|
|
9688
9688
|
});
|
|
9689
9689
|
}
|
|
9690
9690
|
};
|
|
@@ -11091,7 +11091,7 @@ function Kf(t) {
|
|
|
11091
11091
|
}
|
|
11092
11092
|
return n.reverse();
|
|
11093
11093
|
}
|
|
11094
|
-
function
|
|
11094
|
+
function zf(t, e) {
|
|
11095
11095
|
const [n, i] = t.split("/"), [r, s] = e.split("/");
|
|
11096
11096
|
return (r === "*" || r === n) && (s === "*" || s === i);
|
|
11097
11097
|
}
|
|
@@ -11129,7 +11129,7 @@ function to(t) {
|
|
|
11129
11129
|
}
|
|
11130
11130
|
return t;
|
|
11131
11131
|
}
|
|
11132
|
-
function
|
|
11132
|
+
function Wf(t, e) {
|
|
11133
11133
|
const i = Pi(t, {
|
|
11134
11134
|
Connection: "keep-alive",
|
|
11135
11135
|
"Content-Type": 'multipart/mixed; boundary="-"',
|
|
@@ -11256,7 +11256,7 @@ function Yf() {
|
|
|
11256
11256
|
const Xf = {
|
|
11257
11257
|
mediaTypes: ["multipart/mixed"],
|
|
11258
11258
|
asyncIterables: !0,
|
|
11259
|
-
processResult:
|
|
11259
|
+
processResult: Wf
|
|
11260
11260
|
};
|
|
11261
11261
|
function Zf() {
|
|
11262
11262
|
return {
|
|
@@ -11282,7 +11282,7 @@ function ed() {
|
|
|
11282
11282
|
for (const h of c)
|
|
11283
11283
|
if (!(f && !d.asyncIterables))
|
|
11284
11284
|
for (const m of d.mediaTypes)
|
|
11285
|
-
o.push(m),
|
|
11285
|
+
o.push(m), zf(m, h) && a(d.processResult, m);
|
|
11286
11286
|
}
|
|
11287
11287
|
};
|
|
11288
11288
|
}
|
|
@@ -11828,7 +11828,7 @@ const uo = (t) => {
|
|
|
11828
11828
|
u === void 0 ? e.mergeError(s) : n[r] = u;
|
|
11829
11829
|
}
|
|
11830
11830
|
return Object.keys(n).length ? n : void 0;
|
|
11831
|
-
}, we = (t) => t[t.length - 1],
|
|
11831
|
+
}, we = (t) => t[t.length - 1], ze = (t) => t.reduce((e, n) => e || n, !1), Ft = (t) => Math.min(...t), Ct = (t) => Math.max(...t), Od = (t) => t.length > 1 ? t.reduce((e, n) => `${e}(?=${n})`, "") : t[0], co = ([t, ...e]) => e.reduce((n, i) => n.filter((r) => i.includes(r)), t), Id = ([t, ...e]) => e.find((n) => !md(n, t)) ? void 0 : t, ge = ([t, ...e]) => e.reduce((n, i) => ro(n, i), t), Vt = (t) => uo(t).map((e) => ({ allOf: e })), _d = (t) => ({ anyOf: t }), Nd = (t) => bd(t), Rd = (t, e) => {
|
|
11832
11832
|
const n = t.map((r) => r.map((s) => JSON.stringify(s))), i = co(n).map((r) => JSON.parse(r)).sort();
|
|
11833
11833
|
return i.length || e.mergeError(t), i;
|
|
11834
11834
|
}, kd = (t, e) => {
|
|
@@ -11865,7 +11865,7 @@ const uo = (t) => {
|
|
|
11865
11865
|
const n = [], i = [];
|
|
11866
11866
|
for (const r of e.allOfItems) "items" in r && !Array.isArray(r.items) && i.push(r.items), "additionalItems" in r && "items" in r && Array.isArray(r.items) && n.push(r.additionalItems);
|
|
11867
11867
|
return i.length && n.forEach((r) => r.allOf = i), Zt(n, e);
|
|
11868
|
-
},
|
|
11868
|
+
}, W = (t = "draft-06", e = {}) => Object.assign(Object.assign(Object.assign(Object.assign({ "/maximum": { $: Ft }, "/exclusiveMaximum": { $: ze }, "/minimum": { $: Ct }, "/exclusiveMinimum": { $: ze }, "/maxLength": { $: Ft }, "/minLength": { $: Ct }, "/maxItems": { $: Ft }, "/minItems": { $: Ct }, "/uniqueItems": { $: ze }, "/maxProperties": { $: Ft }, "/minProperties": { $: Ct }, "/required": { $: fo }, "/multipleOf": { $: Nd }, "/enum": { $: Rd }, "/type": { $: kd }, "/allOf": { "/*": () => W(t, e), $: Vt }, "/not": { $: _d }, "/oneOf": { "/*": () => W(t, e), $: Vt, sibling: ["definitions", "$defs", "$id", "$schema"] }, "/anyOf": { "/*": () => W(t, e), $: Vt, sibling: ["definitions", "$defs", "$id", "$schema"] }, "/properties": { "/*": () => W(t, e), $: $r }, "/items": () => Object.assign(Object.assign({}, W(t, e)), { $: po, "/*": ({ key: n }) => typeof n == "number" ? W(t, e) : {} }), "/additionalProperties": () => Object.assign(Object.assign({}, W(t, e)), { $: Ed }), "/additionalItems": () => Object.assign(Object.assign({}, W(t, e)), { $: Fd }), "/patternProperties": { "/*": () => W(t, e), $: $r }, "/pattern": { $: Od }, "/readOnly": { $: ze }, "/writeOnly": { $: ze }, "/example": { $: ge }, "/examples": { $: ge }, "/deprecated": { $: ze } }, t !== "draft-04" ? { "/propertyNames": () => W(t, e), "/contains": () => W(t, e), "/dependencies": { "/*": () => W(t, e), $: Ad }, "/const": { $: Id }, "/exclusiveMaximum": { $: Ft }, "/exclusiveMinimum": { $: Ct }, "/$defs": { "/*": () => W(t, e), $: ge } } : {}), { "/definitions": { "/*": () => W(t, e), $: ge }, "/xml": { $: ge }, "/externalDocs": { $: we }, "/description": { $: we }, "/title": { $: we }, "/format": { $: we }, "/default": { $: we }, "/?": { $: we } }), e), { $: Zt }), qt = (t) => W(t, { "/discriminator": { $: ge }, "/oneOf": { "/*": () => qt(t), $: Vt, sibling: ["discriminator"] }, "/anyOf": { "/*": () => qt(t), $: Vt, sibling: ["discriminator"] } }), Hn = (t) => t === "3.0.x" ? Object.assign(Object.assign({}, qt("draft-04")), { "/items": ({ key: e }) => Object.assign(Object.assign({}, qt("draft-04")), { $: po }) }) : qt("draft-06"), Xe = (t) => ({ "/*": { "/schema": Hn(t) } }), jr = (t) => ({ "/content": { "/*": { "/schema": Hn(t), "/encoding": { "/headers": Xe(t) } } } }), Mr = (t) => ({ "/*": { "/headers": Xe(t), "/content": { "/*": { "/schema": Hn(t), "/encoding": { "/headers": Xe(t) } } } } }), Cd = (t = "3.0.x") => ({ "/paths": { "/*": { "/*": { "/parameters": Xe(t), "/requestBody": jr(t), "/responses": Mr(t) }, "/parameters": Xe(t) } }, "/components": { "/schemas": { "/*": Hn(t) }, "/responses": Mr(t), "/parameters": Xe(t), "/requestBodies": { "/*": jr(t) }, "/headers": Xe(t) } }), We = W("draft-06", { "/args": () => We, "/nullable": { $: ze }, "/specifiedByURL": { $: we }, "/values": { $: ge, "/*": { $: ge, "/description": { $: we }, "/deprecated": { $: we, "/reason": { $: we } } } }, "/interfaces": { $: ge, "/*": { $: ge } }, "/directives": { $: ge, "/*": () => Object.assign(Object.assign({}, We), { "/meta": { $: ge } }) } }), xd = { "/queries": { "/*": () => We }, "/mutations": { "/*": () => We }, "/subscriptions": { "/*": () => We }, "/components": { "/*": { "/*": We }, "/directives": { "/*": { "/args": () => We } } } }, Ur = (t, e, n) => {
|
|
11869
11869
|
const i = n.sibling || [], r = t, s = e, o = r[s], a = Kt(r, [typeof s == "symbol" ? s : s + ""]), l = dd(a, i);
|
|
11870
11870
|
return Object.keys(a).length ? Object.assign({ [e]: o.map((u) => ({ allOf: [a, u] })) }, l) : t;
|
|
11871
11871
|
}, ho = (t, e, n, i) => {
|
|
@@ -11889,12 +11889,12 @@ const uo = (t) => {
|
|
|
11889
11889
|
} else e.push(n);
|
|
11890
11890
|
return e;
|
|
11891
11891
|
}, Dd = (t) => {
|
|
11892
|
-
if (typeof t != "object" || !t) return
|
|
11892
|
+
if (typeof t != "object" || !t) return W();
|
|
11893
11893
|
if ("openapi" in t && typeof t.openapi == "string" && /3.+/.test(t.openapi)) {
|
|
11894
11894
|
const e = t.openapi.startsWith("3.1") ? "3.1.x" : "3.0.x";
|
|
11895
11895
|
return Cd(e);
|
|
11896
11896
|
}
|
|
11897
|
-
return "graphapi" in t && typeof t.graphapi == "string" ? xd :
|
|
11897
|
+
return "graphapi" in t && typeof t.graphapi == "string" ? xd : W();
|
|
11898
11898
|
}, Ld = (t, e) => {
|
|
11899
11899
|
var n;
|
|
11900
11900
|
const i = (n = void 0) !== null && n !== void 0 ? n : Dd(t);
|
|
@@ -12082,7 +12082,7 @@ const Qd = Object.values(Md.OpenAPIV3.HttpMethods), Hd = async (t) => {
|
|
|
12082
12082
|
throw new dt.GraphQLError("OpenAPI version is not defined");
|
|
12083
12083
|
const n = await qd(e), i = Bd(n);
|
|
12084
12084
|
return Ld(i);
|
|
12085
|
-
},
|
|
12085
|
+
}, zd = (t, e) => {
|
|
12086
12086
|
const n = e.summary || e.operationId || `${e.method}-${e.path}`;
|
|
12087
12087
|
return t(n);
|
|
12088
12088
|
}, H = new Cu({
|
|
@@ -12105,7 +12105,7 @@ const Qd = Object.values(Md.OpenAPIV3.HttpMethods), Hd = async (t) => {
|
|
|
12105
12105
|
// Add untagged operations if there are any
|
|
12106
12106
|
...r ? [{ name: void 0, slug: void 0 }] : []
|
|
12107
12107
|
];
|
|
12108
|
-
},
|
|
12108
|
+
}, Wd = (t, e = []) => {
|
|
12109
12109
|
const n = jo(), i = Array.from(
|
|
12110
12110
|
/* @__PURE__ */ new Set([
|
|
12111
12111
|
...t.flatMap((r) => r.tags ?? []),
|
|
@@ -12116,7 +12116,7 @@ const Qd = Object.values(Md.OpenAPIV3.HttpMethods), Hd = async (t) => {
|
|
|
12116
12116
|
operations: Object.fromEntries(
|
|
12117
12117
|
t.map((r) => [
|
|
12118
12118
|
vi(r),
|
|
12119
|
-
|
|
12119
|
+
zd(n, r)
|
|
12120
12120
|
])
|
|
12121
12121
|
),
|
|
12122
12122
|
tags: Object.fromEntries(i.map((r) => [r, n(r)]))
|
|
@@ -12470,7 +12470,7 @@ H.queryType({
|
|
|
12470
12470
|
const { schema: s, slugs: o } = await r();
|
|
12471
12471
|
i.schema = s, i.operations = Br(s.paths), i.slugs = o, i.tags = qr(s, i.slugs.tags);
|
|
12472
12472
|
} else
|
|
12473
|
-
i.schema = await Kd(n.input), i.operations = Br(i.schema.paths), i.slugs =
|
|
12473
|
+
i.schema = await Kd(n.input), i.operations = Br(i.schema.paths), i.slugs = Wd(i.operations), i.tags = qr(i.schema, i.slugs.tags);
|
|
12474
12474
|
return i.schema;
|
|
12475
12475
|
}
|
|
12476
12476
|
})
|
|
@@ -12491,4 +12491,4 @@ const ap = H.toSchema(), lp = (t) => ad({ schema: ap, batching: !0, ...t }), mp
|
|
|
12491
12491
|
export {
|
|
12492
12492
|
mp as createServer
|
|
12493
12493
|
};
|
|
12494
|
-
//# sourceMappingURL=createServer-
|
|
12494
|
+
//# sourceMappingURL=createServer-DCB82j2t.js.map
|