zudoku 0.1.1-dev.9 → 0.3.0-dev.3
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/App.js +15 -6
- package/dist/app/App.js.map +1 -1
- package/dist/app/main.js +10 -2
- package/dist/app/main.js.map +1 -1
- package/dist/cli/build/handler.js +3 -1
- package/dist/cli/build/handler.js.map +1 -1
- package/dist/cli/common/analytics/lib.js +1 -1
- package/dist/cli/common/analytics/lib.js.map +1 -1
- package/dist/cli/common/logger.js +3 -1
- package/dist/cli/common/logger.js.map +1 -1
- package/dist/cli/common/outdated.js +4 -4
- package/dist/cli/common/outdated.js.map +1 -1
- package/dist/cli/common/output.js +4 -4
- package/dist/cli/common/output.js.map +1 -1
- package/dist/cli/common/utils/box.js +2 -2
- package/dist/cli/common/utils/box.js.map +1 -1
- package/dist/cli/dev/handler.js +4 -2
- package/dist/cli/dev/handler.js.map +1 -1
- package/dist/config/config.d.ts +30 -6
- package/dist/config/validators/auth.d.ts +2 -0
- package/dist/config/validators/auth.js +2 -0
- package/dist/config/validators/auth.js.map +1 -0
- package/dist/config/validators/validate.d.ts +2 -0
- package/dist/config/validators/validate.js +4 -0
- package/dist/config/validators/validate.js.map +1 -0
- package/dist/index.d.ts +2 -6
- package/dist/index.js +1 -5
- package/dist/index.js.map +1 -1
- package/dist/lib/authentication/Callback.d.ts +3 -0
- package/dist/lib/authentication/Callback.js +34 -0
- package/dist/lib/authentication/Callback.js.map +1 -0
- package/dist/lib/authentication/authentication.d.ts +14 -0
- package/dist/lib/authentication/authentication.js.map +1 -0
- package/dist/lib/authentication/errors.d.ts +15 -0
- package/dist/lib/authentication/errors.js +10 -0
- package/dist/lib/authentication/errors.js.map +1 -0
- package/dist/lib/authentication/hook.d.ts +7 -0
- package/dist/lib/authentication/hook.js +29 -0
- package/dist/lib/authentication/hook.js.map +1 -0
- package/dist/lib/authentication/providers/auth0.d.ts +4 -0
- package/dist/lib/authentication/providers/auth0.js +40 -0
- package/dist/lib/authentication/providers/auth0.js.map +1 -0
- package/dist/lib/authentication/providers/clerk.d.ts +4 -0
- package/dist/lib/authentication/providers/clerk.js +54 -0
- package/dist/lib/authentication/providers/clerk.js.map +1 -0
- package/dist/lib/authentication/providers/openid.d.ts +35 -0
- package/dist/lib/authentication/providers/openid.js +204 -0
- package/dist/lib/authentication/providers/openid.js.map +1 -0
- package/dist/lib/authentication/state.d.ts +13 -0
- package/dist/lib/authentication/state.js +5 -0
- package/dist/lib/authentication/state.js.map +1 -0
- package/dist/{app → lib}/components/AnchorLink.js.map +1 -1
- package/dist/{app → lib}/components/CategoryHeading.js.map +1 -1
- package/dist/lib/components/DevPortal.d.ts +25 -0
- package/dist/lib/components/DevPortal.js +32 -0
- package/dist/lib/components/DevPortal.js.map +1 -0
- package/dist/{app → lib}/components/Dialog.d.ts +2 -2
- package/dist/{app → lib}/components/Dialog.js +3 -3
- package/dist/lib/components/Dialog.js.map +1 -0
- package/dist/lib/components/Header.d.ts +1 -0
- package/dist/lib/components/Header.js +15 -0
- package/dist/lib/components/Header.js.map +1 -0
- package/dist/{app → lib/components}/Heading.js +2 -2
- package/dist/lib/components/Heading.js.map +1 -0
- package/dist/{app → lib}/components/Input.js.map +1 -1
- package/dist/{app → lib}/components/Layout.js +4 -7
- package/dist/lib/components/Layout.js.map +1 -0
- package/dist/lib/components/Link.d.ts +1 -0
- package/dist/lib/components/Link.js +2 -0
- package/dist/lib/components/Link.js.map +1 -0
- package/dist/{app → lib}/components/Markdown.js.map +1 -1
- package/dist/lib/components/Router.d.ts +4 -0
- package/dist/lib/components/Router.js +20 -0
- package/dist/lib/components/Router.js.map +1 -0
- package/dist/lib/components/Select.d.ts +13 -0
- package/dist/lib/components/Select.js +27 -0
- package/dist/lib/components/Select.js.map +1 -0
- package/dist/lib/components/Spinner.d.ts +3 -0
- package/dist/lib/components/Spinner.js +4 -0
- package/dist/lib/components/Spinner.js.map +1 -0
- package/dist/{app → lib}/components/SyntaxHighlight.d.ts +2 -1
- package/dist/{app → lib}/components/SyntaxHighlight.js +4 -1
- package/dist/lib/components/SyntaxHighlight.js.map +1 -0
- package/dist/{app → lib}/components/TopNavigation.js.map +1 -1
- package/dist/{app → lib}/components/context/ComponentsContext.d.ts +1 -1
- package/dist/{app → lib}/components/context/ComponentsContext.js.map +1 -1
- package/dist/{app → lib}/components/context/DevPortalProvider.js +1 -1
- package/dist/lib/components/context/DevPortalProvider.js.map +1 -0
- package/dist/lib/components/context/PluginSystem.js.map +1 -0
- package/dist/{app → lib}/components/context/ThemeContext.js +1 -1
- package/dist/{app → lib}/components/context/ThemeContext.js.map +1 -1
- package/dist/{app → lib}/components/context/ViewportAnchorContext.js.map +1 -1
- package/dist/lib/components/index.d.ts +3 -0
- package/dist/lib/components/index.js +4 -0
- package/dist/lib/components/index.js.map +1 -0
- package/dist/{app → lib}/components/navigation/SideNavigation.js +1 -1
- package/dist/{app → lib}/components/navigation/SideNavigation.js.map +1 -1
- package/dist/{app → lib}/components/navigation/SideNavigationCategory.js +1 -1
- package/dist/{app → lib}/components/navigation/SideNavigationCategory.js.map +1 -1
- package/dist/{app → lib}/components/navigation/SideNavigationItem.d.ts +2 -1
- package/dist/{app → lib}/components/navigation/SideNavigationItem.js +12 -6
- package/dist/lib/components/navigation/SideNavigationItem.js.map +1 -0
- package/dist/{app → lib}/components/navigation/SideNavigationWrapper.d.ts +3 -0
- package/dist/lib/components/navigation/SideNavigationWrapper.js +7 -0
- package/dist/lib/components/navigation/SideNavigationWrapper.js.map +1 -0
- package/dist/{app → lib}/components/navigation/useNavigationCollapsibleState.js.map +1 -1
- package/dist/{app → lib}/components/navigation/util.js.map +1 -1
- package/dist/{app → lib}/core/DevPortalContext.d.ts +10 -32
- package/dist/lib/core/DevPortalContext.js +48 -0
- package/dist/lib/core/DevPortalContext.js.map +1 -0
- package/dist/{app → lib}/core/helmet.js.map +1 -1
- package/dist/lib/core/icons.js.map +1 -0
- package/dist/{app → lib}/core/plugins.d.ts +2 -7
- package/dist/{app → lib}/core/plugins.js +1 -1
- package/dist/{app → lib}/core/plugins.js.map +1 -1
- package/dist/lib/core/router.js.map +1 -0
- package/dist/{app → lib}/oas/graphql/index.js +2 -2
- package/dist/lib/oas/graphql/index.js.map +1 -0
- package/dist/{app → lib}/oas/parser/dereference/index.js.map +1 -1
- package/dist/{app → lib}/oas/parser/dereference/resolveRef.js.map +1 -1
- package/dist/{app → lib}/oas/parser/index.js.map +1 -1
- package/dist/{app → lib}/oas/parser/upgrade/index.js.map +1 -1
- package/dist/lib/plugins/api-key/CreateApiKey.d.ts +5 -0
- package/dist/lib/plugins/api-key/CreateApiKey.js +37 -0
- package/dist/lib/plugins/api-key/CreateApiKey.js.map +1 -0
- package/dist/lib/plugins/api-key/SettingsApiKeys.d.ts +5 -0
- package/dist/lib/plugins/api-key/SettingsApiKeys.js +38 -0
- package/dist/lib/plugins/api-key/SettingsApiKeys.js.map +1 -0
- package/dist/lib/plugins/api-key/index.d.ts +30 -0
- package/dist/lib/plugins/api-key/index.js +67 -0
- package/dist/lib/plugins/api-key/index.js.map +1 -0
- package/dist/lib/plugins/index.d.ts +4 -0
- package/dist/lib/plugins/index.js +5 -0
- package/dist/lib/plugins/index.js.map +1 -0
- package/dist/lib/plugins/markdown/MdxPage.d.ts +5 -0
- package/dist/lib/plugins/markdown/MdxPage.js +60 -0
- package/dist/lib/plugins/markdown/MdxPage.js.map +1 -0
- package/dist/{app → lib}/plugins/markdown/Toc.js.map +1 -1
- package/dist/{app → lib}/plugins/markdown/generateRoutes.js +1 -6
- package/dist/lib/plugins/markdown/generateRoutes.js.map +1 -0
- package/dist/{app → lib}/plugins/markdown/index.js.map +1 -1
- package/dist/{app → lib}/plugins/openapi/ColorizedParam.d.ts +1 -2
- package/dist/{app → lib}/plugins/openapi/ColorizedParam.js +2 -2
- package/dist/lib/plugins/openapi/ColorizedParam.js.map +1 -0
- package/dist/lib/plugins/openapi/MakeRequest.js +43 -0
- package/dist/lib/plugins/openapi/MakeRequest.js.map +1 -0
- package/dist/{app → lib}/plugins/openapi/MethodBadge.js.map +1 -1
- package/dist/{app → lib}/plugins/openapi/OperationList.js +12 -3
- package/dist/lib/plugins/openapi/OperationList.js.map +1 -0
- package/dist/lib/plugins/openapi/OperationListItem.js +17 -0
- package/dist/lib/plugins/openapi/OperationListItem.js.map +1 -0
- package/dist/{app → lib}/plugins/openapi/ParameterList.d.ts +2 -2
- package/dist/lib/plugins/openapi/ParameterList.js +5 -0
- package/dist/lib/plugins/openapi/ParameterList.js.map +1 -0
- package/dist/lib/plugins/openapi/ParameterListItem.js +13 -0
- package/dist/{app → lib}/plugins/openapi/ParameterListItem.js.map +1 -1
- package/dist/{app → lib}/plugins/openapi/RequestBodySidecarBox.js +1 -1
- package/dist/{app → lib}/plugins/openapi/RequestBodySidecarBox.js.map +1 -1
- package/dist/{app → lib}/plugins/openapi/ResponsesSidecarBox.js +3 -3
- package/dist/{app → lib}/plugins/openapi/ResponsesSidecarBox.js.map +1 -1
- package/dist/lib/plugins/openapi/SchemaListView.d.ts +7 -0
- package/dist/lib/plugins/openapi/SchemaListView.js +43 -0
- package/dist/lib/plugins/openapi/SchemaListView.js.map +1 -0
- package/dist/{app → lib}/plugins/openapi/Select.js.map +1 -1
- package/dist/{app → lib}/plugins/openapi/Sidecar.js +15 -15
- package/dist/{app → lib}/plugins/openapi/Sidecar.js.map +1 -1
- package/dist/{app → lib}/plugins/openapi/SidecarBox.js.map +1 -1
- package/dist/{app → lib}/plugins/openapi/graphql/fragment-masking.d.ts +1 -1
- package/dist/{app → lib}/plugins/openapi/graphql/fragment-masking.js.map +1 -1
- package/dist/{app → lib}/plugins/openapi/graphql/gql.d.ts +5 -5
- package/dist/{app → lib}/plugins/openapi/graphql/gql.js +2 -3
- package/dist/lib/plugins/openapi/graphql/gql.js.map +1 -0
- package/dist/{app → lib}/plugins/openapi/graphql/graphql.d.ts +9 -0
- package/dist/{app → lib}/plugins/openapi/graphql/graphql.js +50 -0
- package/dist/lib/plugins/openapi/graphql/graphql.js.map +1 -0
- package/dist/lib/plugins/openapi/graphql/index.js.map +1 -0
- package/dist/{app → lib}/plugins/openapi/index.js +3 -1
- package/dist/lib/plugins/openapi/index.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/Editor.d.ts +1 -0
- package/dist/lib/plugins/openapi/playground/Editor.js +5 -0
- package/dist/lib/plugins/openapi/playground/Editor.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/Headers.d.ts +7 -0
- package/dist/lib/plugins/openapi/playground/Headers.js +15 -0
- package/dist/lib/plugins/openapi/playground/Headers.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/InlineInput.d.ts +4 -0
- package/dist/lib/plugins/openapi/playground/InlineInput.js +3 -0
- package/dist/lib/plugins/openapi/playground/InlineInput.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/PathParams.d.ts +6 -0
- package/dist/lib/plugins/openapi/playground/PathParams.js +21 -0
- package/dist/lib/plugins/openapi/playground/PathParams.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/Playground.d.ts +31 -0
- package/dist/lib/plugins/openapi/playground/Playground.js +97 -0
- package/dist/lib/plugins/openapi/playground/Playground.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/QueryParams.d.ts +5 -0
- package/dist/lib/plugins/openapi/playground/QueryParams.js +22 -0
- package/dist/lib/plugins/openapi/playground/QueryParams.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/UrlDisplay.d.ts +4 -0
- package/dist/lib/plugins/openapi/playground/UrlDisplay.js +22 -0
- package/dist/lib/plugins/openapi/playground/UrlDisplay.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/createUrl.d.ts +2 -0
- package/dist/lib/plugins/openapi/playground/createUrl.js +15 -0
- package/dist/lib/plugins/openapi/playground/createUrl.js.map +1 -0
- package/dist/{app → lib}/plugins/openapi/util/generateSchemaExample.d.ts +1 -1
- package/dist/{app → lib}/plugins/openapi/util/generateSchemaExample.js +17 -9
- package/dist/lib/plugins/openapi/util/generateSchemaExample.js.map +1 -0
- package/dist/{app → lib}/plugins/openapi/util/urql.js.map +1 -1
- package/dist/{app → lib}/plugins/openapi/worker/createSharedWorkerClient.js +2 -1
- package/dist/lib/plugins/openapi/worker/createSharedWorkerClient.js.map +1 -0
- package/dist/lib/plugins/openapi/worker/shared-worker.d.ts +1 -0
- package/dist/lib/plugins/openapi/worker/shared-worker.js +6 -0
- package/dist/lib/plugins/openapi/worker/shared-worker.js.map +1 -0
- package/dist/{app → lib}/plugins/openapi/worker/worker.js.map +1 -1
- package/dist/lib/plugins/openapi-worker.d.ts +1 -0
- package/dist/lib/plugins/openapi-worker.js +2 -0
- package/dist/lib/plugins/openapi-worker.js.map +1 -0
- package/dist/{app → lib}/plugins/redirect/index.d.ts +1 -2
- package/dist/{app → lib}/plugins/redirect/index.js.map +1 -1
- package/dist/lib/ui/Button.d.ts +7 -0
- package/dist/lib/ui/Button.js +11 -0
- package/dist/lib/ui/Button.js.map +1 -0
- package/dist/{app → lib}/ui/Callout.js.map +1 -1
- package/dist/{app → lib}/ui/Card.js.map +1 -1
- package/dist/{app → lib}/ui/Note.js.map +1 -1
- package/dist/{app → lib}/ui/Tabs.d.ts +2 -2
- package/dist/{app → lib}/ui/Tabs.js +2 -2
- package/dist/{app → lib}/ui/Tabs.js.map +1 -1
- package/dist/lib/ui/button-variants.d.ts +4 -0
- package/dist/{app/ui/Button.js → lib/ui/button-variants.js} +2 -12
- package/dist/lib/ui/button-variants.js.map +1 -0
- package/dist/{app → lib}/util/MdxComponents.js +9 -9
- package/dist/lib/util/MdxComponents.js.map +1 -0
- package/dist/{app → lib}/util/cn.js.map +1 -1
- package/dist/lib/util/createVariantComponent.d.ts +9 -0
- package/dist/lib/util/createVariantComponent.js +17 -0
- package/dist/lib/util/createVariantComponent.js.map +1 -0
- package/dist/{app → lib}/util/createWaitForNotify.js.map +1 -1
- package/dist/{app → lib}/util/groupBy.js.map +1 -1
- package/dist/{app → lib}/util/joinPath.js.map +1 -1
- package/dist/{app → lib}/util/pastellize.js.map +1 -1
- package/dist/lib/util/slugify.js.map +1 -0
- package/dist/{app → lib}/util/traverseNavigation.js.map +1 -1
- package/dist/{app → lib}/util/useScrollToAnchor.js.map +1 -1
- package/dist/{app → lib}/util/useScrollToTop.js.map +1 -1
- package/dist/ts.js +1 -2
- package/dist/ts.js.map +1 -1
- package/dist/vite/build.js +2 -8
- package/dist/vite/build.js.map +1 -1
- package/dist/vite/common.d.ts +1 -0
- package/dist/vite/common.js +5 -0
- package/dist/vite/common.js.map +1 -0
- package/dist/vite/config.d.ts +9 -2
- package/dist/vite/config.js +69 -28
- package/dist/vite/config.js.map +1 -1
- package/dist/vite/dev-server.d.ts +2 -0
- package/dist/vite/dev-server.js +30 -10
- package/dist/vite/dev-server.js.map +1 -1
- package/dist/vite/plugin-api-keys.d.ts +4 -0
- package/dist/vite/plugin-api-keys.js +33 -0
- package/dist/vite/plugin-api-keys.js.map +1 -0
- package/dist/vite/plugin-api.js +4 -2
- package/dist/vite/plugin-api.js.map +1 -1
- package/dist/vite/plugin-auth.js +3 -2
- package/dist/vite/plugin-auth.js.map +1 -1
- package/dist/vite/plugin-component.d.ts +4 -0
- package/dist/vite/plugin-component.js +16 -0
- package/dist/vite/plugin-component.js.map +1 -0
- package/dist/vite/plugin-config.d.ts +1 -0
- package/dist/vite/plugin-config.js +4 -3
- package/dist/vite/plugin-config.js.map +1 -1
- package/dist/vite/plugin-docs.js +4 -2
- package/dist/vite/plugin-docs.js.map +1 -1
- package/dist/vite/plugin-docs.test.js +1 -2
- package/dist/vite/plugin-docs.test.js.map +1 -1
- package/dist/vite/plugin-html.js +0 -3
- package/dist/vite/plugin-html.js.map +1 -1
- package/dist/vite/plugin-mdx.js +3 -1
- package/dist/vite/plugin-mdx.js.map +1 -1
- package/dist/vite/plugin-metadata.d.ts +6 -0
- package/dist/vite/plugin-metadata.js +24 -0
- package/dist/vite/plugin-metadata.js.map +1 -0
- package/dist/vite/plugin-openapi-worker.d.ts +4 -0
- package/dist/vite/plugin-openapi-worker.js +28 -0
- package/dist/vite/plugin-openapi-worker.js.map +1 -0
- package/dist/vite/plugin-redirect.d.ts +4 -0
- package/dist/vite/plugin-redirect.js +32 -0
- package/dist/vite/plugin-redirect.js.map +1 -0
- package/dist/vite/plugin.js +8 -0
- package/dist/vite/plugin.js.map +1 -1
- package/lib/Spinner-7LezPqGn.js +8393 -0
- package/lib/_commonjsHelpers-BkfeUUK-.js +28 -0
- package/lib/assets/index-BPdJm2ty.js +4764 -0
- package/lib/assets/worker-BCcpCNJ7.js +14473 -0
- package/lib/clerk-Wslx_mPo.js +19685 -0
- package/lib/index-DNx3xWa2.js +3461 -0
- package/lib/prism-bash.min-DadFsM4Z.js +6 -0
- package/lib/prism-java.min-d5iT_mOd.js +6 -0
- package/lib/prism-json.min-B1GJqK1k.js +1 -0
- package/lib/prism-markup-templating-DZrrEs0A.js +61 -0
- package/lib/prism-php.min-o7FpoMP_.js +10 -0
- package/lib/prism-ruby.min-C7LwcKyz.js +9 -0
- package/lib/state-oycsxkHz.js +287 -0
- package/lib/urql-DMlBWUKL.js +1591 -0
- package/lib/zudoku.auth-auth0.js +26 -0
- package/lib/zudoku.auth-clerk.js +47 -0
- package/lib/zudoku.auth-openid.js +1058 -0
- package/lib/zudoku.components.js +925 -0
- package/lib/zudoku.openapi-worker.js +225 -0
- package/lib/zudoku.plugins.js +19863 -0
- package/package.json +69 -39
- package/src/app/App.tsx +16 -6
- package/src/app/main.css +1 -0
- package/src/app/main.tsx +12 -3
- package/src/lib/authentication/Callback.tsx +60 -0
- package/src/lib/authentication/authentication.ts +19 -0
- package/src/lib/authentication/errors.ts +21 -0
- package/src/lib/authentication/hook.ts +33 -0
- package/src/lib/authentication/providers/auth0.tsx +52 -0
- package/src/lib/authentication/providers/clerk.tsx +64 -0
- package/src/lib/authentication/providers/openid.tsx +312 -0
- package/src/lib/authentication/state.ts +19 -0
- package/src/{app → lib/components}/DevPortal.tsx +30 -42
- package/src/{app → lib}/components/Dialog.tsx +37 -37
- package/src/{app → lib}/components/Header.tsx +25 -20
- package/src/{app → lib/components}/Heading.tsx +2 -2
- package/src/{app → lib}/components/Layout.tsx +18 -12
- package/src/lib/components/Link.tsx +1 -0
- package/src/lib/components/Router.tsx +28 -0
- package/src/lib/components/Select.tsx +157 -0
- package/src/lib/components/Spinner.tsx +5 -0
- package/src/{app → lib}/components/SyntaxHighlight.tsx +10 -3
- package/src/{app → lib}/components/context/DevPortalProvider.ts +1 -1
- package/src/lib/components/index.ts +3 -0
- package/src/{app → lib}/components/navigation/SideNavigation.tsx +4 -1
- package/src/{app → lib}/components/navigation/SideNavigationCategory.tsx +3 -1
- package/src/{app → lib}/components/navigation/SideNavigationItem.tsx +16 -7
- package/src/lib/components/navigation/SideNavigationWrapper.tsx +24 -0
- package/src/{app → lib}/core/DevPortalContext.ts +28 -64
- package/src/{app → lib}/core/plugins.ts +5 -5
- package/src/{app → lib}/oas/graphql/index.ts +2 -2
- package/src/lib/plugins/api-key/CreateApiKey.tsx +100 -0
- package/src/lib/plugins/api-key/SettingsApiKeys.tsx +125 -0
- package/src/lib/plugins/api-key/index.tsx +115 -0
- package/src/lib/plugins/index.ts +4 -0
- package/src/{app → lib}/plugins/markdown/MdxPage.tsx +32 -10
- package/src/{app → lib}/plugins/markdown/generateRoutes.tsx +1 -16
- package/src/{app → lib}/plugins/openapi/ColorizedParam.tsx +1 -3
- package/src/lib/plugins/openapi/MakeRequest.tsx +63 -0
- package/src/{app → lib}/plugins/openapi/OperationList.tsx +14 -4
- package/src/{app → lib}/plugins/openapi/OperationListItem.tsx +40 -6
- package/src/{app → lib}/plugins/openapi/ParameterList.tsx +4 -4
- package/src/{app → lib}/plugins/openapi/ParameterListItem.tsx +5 -2
- package/src/{app → lib}/plugins/openapi/RequestBodySidecarBox.tsx +1 -1
- package/src/{app → lib}/plugins/openapi/ResponsesSidecarBox.tsx +2 -3
- package/src/lib/plugins/openapi/SchemaListView.tsx +228 -0
- package/src/{app → lib}/plugins/openapi/Sidecar.tsx +23 -23
- package/src/{app → lib}/plugins/openapi/graphql/gql.ts +7 -7
- package/src/{app → lib}/plugins/openapi/graphql/graphql.ts +59 -0
- package/src/{app → lib}/plugins/openapi/index.tsx +8 -2
- package/src/lib/plugins/openapi/playground/Editor.tsx +4 -0
- package/src/lib/plugins/openapi/playground/Headers.tsx +60 -0
- package/src/lib/plugins/openapi/playground/InlineInput.tsx +6 -0
- package/src/lib/plugins/openapi/playground/PathParams.tsx +63 -0
- package/src/lib/plugins/openapi/playground/Playground.tsx +366 -0
- package/src/lib/plugins/openapi/playground/QueryParams.tsx +89 -0
- package/src/lib/plugins/openapi/playground/UrlDisplay.tsx +32 -0
- package/src/lib/plugins/openapi/playground/createUrl.ts +22 -0
- package/src/{app → lib}/plugins/openapi/util/generateSchemaExample.ts +22 -9
- package/src/{app → lib}/plugins/openapi/worker/createSharedWorkerClient.ts +2 -1
- package/src/lib/plugins/openapi/worker/shared-worker.ts +5 -0
- package/src/lib/plugins/openapi-worker.ts +1 -0
- package/src/{app → lib}/plugins/redirect/index.tsx +1 -1
- package/src/lib/ui/Button.tsx +25 -0
- package/src/{app → lib}/ui/Tabs.tsx +2 -2
- package/src/{app/ui/Button.tsx → lib/ui/button-variants.ts} +4 -29
- package/src/{app → lib}/util/MdxComponents.tsx +33 -8
- package/src/{app → lib}/util/createVariantComponent.tsx +12 -7
- package/dist/app/DevPortal.d.ts +0 -25
- package/dist/app/DevPortal.js +0 -41
- package/dist/app/DevPortal.js.map +0 -1
- package/dist/app/Heading.js.map +0 -1
- package/dist/app/authentication/authentication.d.ts +0 -13
- package/dist/app/authentication/authentication.js.map +0 -1
- package/dist/app/authentication/clerk.d.ts +0 -5
- package/dist/app/authentication/clerk.js +0 -36
- package/dist/app/authentication/clerk.js.map +0 -1
- package/dist/app/authentication/openid.d.ts +0 -11
- package/dist/app/authentication/openid.js +0 -118
- package/dist/app/authentication/openid.js.map +0 -1
- package/dist/app/components/Dialog.js.map +0 -1
- package/dist/app/components/DynamicIcon.d.ts +0 -6
- package/dist/app/components/DynamicIcon.js +0 -6
- package/dist/app/components/DynamicIcon.js.map +0 -1
- package/dist/app/components/Header.d.ts +0 -1
- package/dist/app/components/Header.js +0 -15
- package/dist/app/components/Header.js.map +0 -1
- package/dist/app/components/Layout.js.map +0 -1
- package/dist/app/components/SyntaxHighlight.js.map +0 -1
- package/dist/app/components/context/DevPortalProvider.js.map +0 -1
- package/dist/app/components/context/PluginSystem.js.map +0 -1
- package/dist/app/components/navigation/SideNavigationItem.js.map +0 -1
- package/dist/app/components/navigation/SideNavigationWrapper.js +0 -6
- package/dist/app/components/navigation/SideNavigationWrapper.js.map +0 -1
- package/dist/app/core/DevPortalContext.js +0 -68
- package/dist/app/core/DevPortalContext.js.map +0 -1
- package/dist/app/core/icons.js.map +0 -1
- package/dist/app/core/router.js.map +0 -1
- package/dist/app/core/types/combine.d.ts +0 -4
- package/dist/app/core/types/combine.js +0 -2
- package/dist/app/core/types/combine.js.map +0 -1
- package/dist/app/oas/graphql/index.js.map +0 -1
- package/dist/app/oas/graphql/server.d.ts +0 -1
- package/dist/app/oas/graphql/server.js +0 -8
- package/dist/app/oas/graphql/server.js.map +0 -1
- package/dist/app/plugins/api-key/SettingsApiKeys.d.ts +0 -4
- package/dist/app/plugins/api-key/SettingsApiKeys.js +0 -7
- package/dist/app/plugins/api-key/SettingsApiKeys.js.map +0 -1
- package/dist/app/plugins/api-key/index.d.ts +0 -32
- package/dist/app/plugins/api-key/index.js +0 -55
- package/dist/app/plugins/api-key/index.js.map +0 -1
- package/dist/app/plugins/markdown/MdxPage.d.ts +0 -3
- package/dist/app/plugins/markdown/MdxPage.js +0 -55
- package/dist/app/plugins/markdown/MdxPage.js.map +0 -1
- package/dist/app/plugins/markdown/generateRoutes.js.map +0 -1
- package/dist/app/plugins/openapi/ColorizedParam.js.map +0 -1
- package/dist/app/plugins/openapi/MakeRequest.js +0 -23
- package/dist/app/plugins/openapi/MakeRequest.js.map +0 -1
- package/dist/app/plugins/openapi/OperationList.js.map +0 -1
- package/dist/app/plugins/openapi/OperationListItem.js +0 -15
- package/dist/app/plugins/openapi/OperationListItem.js.map +0 -1
- package/dist/app/plugins/openapi/ParameterList.js +0 -5
- package/dist/app/plugins/openapi/ParameterList.js.map +0 -1
- package/dist/app/plugins/openapi/ParameterListItem.js +0 -13
- package/dist/app/plugins/openapi/graphql/gql.js.map +0 -1
- package/dist/app/plugins/openapi/graphql/graphql.js.map +0 -1
- package/dist/app/plugins/openapi/graphql/index.js.map +0 -1
- package/dist/app/plugins/openapi/index.js.map +0 -1
- package/dist/app/plugins/openapi/playground/Playground.d.ts +0 -8
- package/dist/app/plugins/openapi/playground/Playground.js +0 -98
- package/dist/app/plugins/openapi/playground/Playground.js.map +0 -1
- package/dist/app/plugins/openapi/util/generateSchemaExample.js.map +0 -1
- package/dist/app/plugins/openapi/worker/createSharedWorkerClient.js.map +0 -1
- package/dist/app/ui/Button.d.ts +0 -11
- package/dist/app/ui/Button.js.map +0 -1
- package/dist/app/util/MdxComponents.js.map +0 -1
- package/dist/app/util/createVariantComponent.d.ts +0 -15
- package/dist/app/util/createVariantComponent.js +0 -12
- package/dist/app/util/createVariantComponent.js.map +0 -1
- package/dist/app/util/slugify.js.map +0 -1
- package/dist/auth.d.ts +0 -2
- package/dist/auth.js +0 -3
- package/dist/auth.js.map +0 -1
- package/dist/plugins.d.ts +0 -4
- package/dist/plugins.js +0 -6
- package/dist/plugins.js.map +0 -1
- package/src/app/authentication/authentication.ts +0 -18
- package/src/app/authentication/clerk.ts +0 -47
- package/src/app/authentication/openid.ts +0 -192
- package/src/app/components/DynamicIcon.tsx +0 -60
- package/src/app/components/navigation/SideNavigationWrapper.tsx +0 -15
- package/src/app/core/types/combine.ts +0 -16
- package/src/app/oas/graphql/server.ts +0 -10
- package/src/app/plugins/api-key/SettingsApiKeys.tsx +0 -22
- package/src/app/plugins/api-key/index.tsx +0 -123
- package/src/app/plugins/openapi/MakeRequest.tsx +0 -49
- package/src/app/plugins/openapi/playground/Playground.tsx +0 -309
- package/src/app/plugins/openapi/queries.graphql +0 -6
- package/dist/{app → lib}/authentication/authentication.js +0 -0
- package/dist/{app → lib}/components/AnchorLink.d.ts +0 -0
- package/dist/{app → lib}/components/AnchorLink.js +0 -0
- package/dist/{app → lib}/components/CategoryHeading.d.ts +0 -0
- package/dist/{app → lib}/components/CategoryHeading.js +0 -0
- package/dist/{app → lib/components}/Heading.d.ts +0 -0
- package/dist/{app → lib}/components/Input.d.ts +0 -0
- package/dist/{app → lib}/components/Input.js +0 -0
- package/dist/{app → lib}/components/Layout.d.ts +0 -0
- package/dist/{app → lib}/components/Markdown.d.ts +0 -0
- package/dist/{app → lib}/components/Markdown.js +0 -0
- package/dist/{app → lib}/components/TopNavigation.d.ts +0 -0
- package/dist/{app → lib}/components/TopNavigation.js +0 -0
- package/dist/{app → lib}/components/context/ComponentsContext.js +0 -0
- package/dist/{app → lib}/components/context/DevPortalProvider.d.ts +0 -0
- package/dist/{app → lib}/components/context/PluginSystem.d.ts +0 -0
- package/dist/{app → lib}/components/context/PluginSystem.js +0 -0
- package/dist/{app → lib}/components/context/ThemeContext.d.ts +0 -0
- package/dist/{app → lib}/components/context/ViewportAnchorContext.d.ts +0 -0
- package/dist/{app → lib}/components/context/ViewportAnchorContext.js +0 -0
- package/dist/{app → lib}/components/navigation/SideNavigation.d.ts +0 -0
- package/dist/{app → lib}/components/navigation/SideNavigationCategory.d.ts +0 -0
- package/dist/{app → lib}/components/navigation/useNavigationCollapsibleState.d.ts +0 -0
- package/dist/{app → lib}/components/navigation/useNavigationCollapsibleState.js +0 -0
- package/dist/{app → lib}/components/navigation/util.d.ts +0 -0
- package/dist/{app → lib}/components/navigation/util.js +0 -0
- package/dist/{app → lib}/core/helmet.d.ts +0 -0
- package/dist/{app → lib}/core/helmet.js +0 -0
- package/dist/{app → lib}/core/icons.d.ts +0 -0
- package/dist/{app → lib}/core/icons.js +0 -0
- package/dist/{app → lib}/core/router.d.ts +0 -0
- package/dist/{app → lib}/core/router.js +0 -0
- package/dist/{app → lib}/oas/graphql/index.d.ts +0 -0
- package/dist/{app → lib}/oas/parser/dereference/index.d.ts +0 -0
- package/dist/{app → lib}/oas/parser/dereference/index.js +0 -0
- package/dist/{app → lib}/oas/parser/dereference/resolveRef.d.ts +0 -0
- package/dist/{app → lib}/oas/parser/dereference/resolveRef.js +0 -0
- package/dist/{app → lib}/oas/parser/index.d.ts +0 -0
- package/dist/{app → lib}/oas/parser/index.js +0 -0
- package/dist/{app → lib}/oas/parser/upgrade/index.d.ts +0 -0
- package/dist/{app → lib}/oas/parser/upgrade/index.js +0 -0
- package/dist/{app → lib}/plugins/markdown/Toc.d.ts +0 -0
- package/dist/{app → lib}/plugins/markdown/Toc.js +0 -0
- package/dist/{app → lib}/plugins/markdown/generateRoutes.d.ts +0 -0
- package/dist/{app → lib}/plugins/markdown/index.d.ts +0 -0
- package/dist/{app → lib}/plugins/markdown/index.js +0 -0
- package/dist/{app → lib}/plugins/openapi/MakeRequest.d.ts +0 -0
- package/dist/{app → lib}/plugins/openapi/MethodBadge.d.ts +0 -0
- package/dist/{app → lib}/plugins/openapi/MethodBadge.js +0 -0
- package/dist/{app → lib}/plugins/openapi/OperationList.d.ts +0 -0
- package/dist/{app → lib}/plugins/openapi/OperationListItem.d.ts +0 -0
- package/dist/{app → lib}/plugins/openapi/ParameterListItem.d.ts +0 -0
- package/dist/{app → lib}/plugins/openapi/RequestBodySidecarBox.d.ts +0 -0
- package/dist/{app → lib}/plugins/openapi/ResponsesSidecarBox.d.ts +0 -0
- package/dist/{app → lib}/plugins/openapi/Select.d.ts +0 -0
- package/dist/{app → lib}/plugins/openapi/Select.js +0 -0
- package/dist/{app → lib}/plugins/openapi/Sidecar.d.ts +0 -0
- package/dist/{app → lib}/plugins/openapi/SidecarBox.d.ts +0 -0
- package/dist/{app → lib}/plugins/openapi/SidecarBox.js +0 -0
- package/dist/{app → lib}/plugins/openapi/graphql/fragment-masking.js +0 -0
- package/dist/{app → lib}/plugins/openapi/graphql/index.d.ts +0 -0
- package/dist/{app → lib}/plugins/openapi/graphql/index.js +0 -0
- package/dist/{app → lib}/plugins/openapi/index.d.ts +0 -0
- package/dist/{app → lib}/plugins/openapi/util/urql.d.ts +0 -0
- package/dist/{app → lib}/plugins/openapi/util/urql.js +0 -0
- package/dist/{app → lib}/plugins/openapi/worker/createSharedWorkerClient.d.ts +0 -0
- package/dist/{app → lib}/plugins/openapi/worker/worker.d.ts +0 -0
- package/dist/{app → lib}/plugins/openapi/worker/worker.js +0 -0
- package/dist/{app → lib}/plugins/redirect/index.js +0 -0
- package/dist/{app → lib}/ui/Callout.d.ts +0 -0
- package/dist/{app → lib}/ui/Callout.js +0 -0
- package/dist/{app → lib}/ui/Card.d.ts +0 -0
- package/dist/{app → lib}/ui/Card.js +0 -0
- package/dist/{app → lib}/ui/Note.d.ts +0 -0
- package/dist/{app → lib}/ui/Note.js +0 -0
- package/dist/{app → lib}/util/MdxComponents.d.ts +0 -0
- package/dist/{app → lib}/util/cn.d.ts +0 -0
- package/dist/{app → lib}/util/cn.js +0 -0
- package/dist/{app → lib}/util/createWaitForNotify.d.ts +0 -0
- package/dist/{app → lib}/util/createWaitForNotify.js +0 -0
- package/dist/{app → lib}/util/groupBy.d.ts +0 -0
- package/dist/{app → lib}/util/groupBy.js +0 -0
- package/dist/{app → lib}/util/joinPath.d.ts +0 -0
- package/dist/{app → lib}/util/joinPath.js +0 -0
- package/dist/{app → lib}/util/pastellize.d.ts +0 -0
- package/dist/{app → lib}/util/pastellize.js +0 -0
- package/dist/{app → lib}/util/slugify.d.ts +0 -0
- package/dist/{app → lib}/util/slugify.js +0 -0
- package/dist/{app → lib}/util/traverseNavigation.d.ts +0 -0
- package/dist/{app → lib}/util/traverseNavigation.js +0 -0
- package/dist/{app → lib}/util/useScrollToAnchor.d.ts +0 -0
- package/dist/{app → lib}/util/useScrollToAnchor.js +0 -0
- package/dist/{app → lib}/util/useScrollToTop.d.ts +0 -0
- package/dist/{app → lib}/util/useScrollToTop.js +0 -0
- package/src/{app → lib}/components/AnchorLink.tsx +0 -0
- package/src/{app → lib}/components/CategoryHeading.tsx +1 -1
- package/src/{app → lib}/components/Input.tsx +0 -0
- package/src/{app → lib}/components/Markdown.tsx +0 -0
- package/src/{app → lib}/components/TopNavigation.tsx +0 -0
- package/src/{app → lib}/components/context/ComponentsContext.tsx +0 -0
- package/src/{app → lib}/components/context/PluginSystem.ts +0 -0
- package/src/{app → lib}/components/context/ThemeContext.tsx +1 -1
- package/src/{app → lib}/components/context/ViewportAnchorContext.tsx +0 -0
- package/src/{app → lib}/components/navigation/useNavigationCollapsibleState.ts +0 -0
- package/src/{app → lib}/components/navigation/util.ts +0 -0
- package/src/{app → lib}/core/helmet.ts +0 -0
- package/src/{app → lib}/core/icons.tsx +0 -0
- package/src/{app → lib}/core/router.tsx +0 -0
- package/src/{app → lib}/oas/parser/dereference/index.ts +0 -0
- package/src/{app → lib}/oas/parser/dereference/resolveRef.ts +0 -0
- package/src/{app → lib}/oas/parser/index.ts +0 -0
- package/src/{app → lib}/oas/parser/schemas/v3.0.json +0 -0
- package/src/{app → lib}/oas/parser/schemas/v3.1.json +0 -0
- package/src/{app → lib}/oas/parser/upgrade/index.ts +0 -0
- package/src/{app → lib}/plugins/markdown/Toc.tsx +0 -0
- package/src/{app → lib}/plugins/markdown/index.tsx +0 -0
- package/src/{app → lib}/plugins/openapi/MethodBadge.tsx +0 -0
- package/src/{app → lib}/plugins/openapi/Select.tsx +0 -0
- package/src/{app → lib}/plugins/openapi/SidecarBox.tsx +0 -0
- package/src/{app → lib}/plugins/openapi/graphql/fragment-masking.ts +1 -1
- /package/src/{app → lib}/plugins/openapi/graphql/index.ts +0 -0
- /package/src/{app → lib}/plugins/openapi/util/urql.ts +0 -0
- /package/src/{app → lib}/plugins/openapi/worker/worker.ts +0 -0
- /package/src/{app → lib}/ui/Callout.tsx +0 -0
- /package/src/{app → lib}/ui/Card.tsx +0 -0
- /package/src/{app → lib}/ui/Note.tsx +0 -0
- /package/src/{app → lib}/util/cn.ts +0 -0
- /package/src/{app → lib}/util/createWaitForNotify.ts +0 -0
- /package/src/{app → lib}/util/groupBy.ts +0 -0
- /package/src/{app → lib}/util/joinPath.tsx +0 -0
- /package/src/{app → lib}/util/pastellize.ts +0 -0
- /package/src/{app → lib}/util/slugify.ts +0 -0
- /package/src/{app → lib}/util/traverseNavigation.ts +0 -0
- /package/src/{app → lib}/util/useScrollToAnchor.ts +0 -0
- /package/src/{app → lib}/util/useScrollToTop.ts +0 -0
|
@@ -0,0 +1,925 @@
|
|
|
1
|
+
var De = Object.defineProperty;
|
|
2
|
+
var se = (t) => {
|
|
3
|
+
throw TypeError(t);
|
|
4
|
+
};
|
|
5
|
+
var Se = (t, e, s) => e in t ? De(t, e, { enumerable: !0, configurable: !0, writable: !0, value: s }) : t[e] = s;
|
|
6
|
+
var y = (t, e, s) => Se(t, typeof e != "symbol" ? e + "" : e, s), ae = (t, e, s) => e.has(t) || se("Cannot " + s);
|
|
7
|
+
var i = (t, e, s) => (ae(t, e, "read from private field"), s ? s.call(t) : e.get(t)), m = (t, e, s) => e.has(t) ? se("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, s), u = (t, e, s, a) => (ae(t, e, "write to private field"), a ? a.call(t, s) : e.set(t, s), s);
|
|
8
|
+
var F = (t, e, s, a) => ({
|
|
9
|
+
set _(r) {
|
|
10
|
+
u(t, e, r, s);
|
|
11
|
+
},
|
|
12
|
+
get _() {
|
|
13
|
+
return i(t, e, a);
|
|
14
|
+
}
|
|
15
|
+
});
|
|
16
|
+
import { j as n, u as D, O as Ee } from "./index-DNx3xWa2.js";
|
|
17
|
+
import { S as me, h as ge, Q as Te, n as p, m as ne, M as Ie, a as re, b as j, e as Fe, c as Re, d as He, f as Le, o as ie, r as oe, g as ze, i as le, p as ce, s as Ke, j as E, u as K, N as V, k as _e, l as Be, q as W, t as X, v as U, w as ve, x as Ve, y as z, R as ye, T as xe, C as be, A as Ue, z as We, B as Xe, D as $e, H as Ge, E as Je, F as Ye, G as Ze, I as et, J as tt, K as st, L as at, O as nt, P as rt, V as it } from "./Spinner-7LezPqGn.js";
|
|
18
|
+
import { W as Vt, U as Ut } from "./Spinner-7LezPqGn.js";
|
|
19
|
+
import { memo as je, createContext as ot, useEffect as T, useRef as _, useState as lt, forwardRef as ct, Suspense as we, useMemo as L } from "react";
|
|
20
|
+
import { c as ht, u as ut } from "./state-oycsxkHz.js";
|
|
21
|
+
var x, de, dt = (de = class extends me {
|
|
22
|
+
constructor(e = {}) {
|
|
23
|
+
super();
|
|
24
|
+
m(this, x);
|
|
25
|
+
this.config = e, u(this, x, /* @__PURE__ */ new Map());
|
|
26
|
+
}
|
|
27
|
+
build(e, s, a) {
|
|
28
|
+
const r = s.queryKey, o = s.queryHash ?? ge(r, s);
|
|
29
|
+
let l = this.get(o);
|
|
30
|
+
return l || (l = new Te({
|
|
31
|
+
cache: this,
|
|
32
|
+
queryKey: r,
|
|
33
|
+
queryHash: o,
|
|
34
|
+
options: e.defaultQueryOptions(s),
|
|
35
|
+
state: a,
|
|
36
|
+
defaultOptions: e.getQueryDefaults(r)
|
|
37
|
+
}), this.add(l)), l;
|
|
38
|
+
}
|
|
39
|
+
add(e) {
|
|
40
|
+
i(this, x).has(e.queryHash) || (i(this, x).set(e.queryHash, e), this.notify({
|
|
41
|
+
type: "added",
|
|
42
|
+
query: e
|
|
43
|
+
}));
|
|
44
|
+
}
|
|
45
|
+
remove(e) {
|
|
46
|
+
const s = i(this, x).get(e.queryHash);
|
|
47
|
+
s && (e.destroy(), s === e && i(this, x).delete(e.queryHash), this.notify({ type: "removed", query: e }));
|
|
48
|
+
}
|
|
49
|
+
clear() {
|
|
50
|
+
p.batch(() => {
|
|
51
|
+
this.getAll().forEach((e) => {
|
|
52
|
+
this.remove(e);
|
|
53
|
+
});
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
get(e) {
|
|
57
|
+
return i(this, x).get(e);
|
|
58
|
+
}
|
|
59
|
+
getAll() {
|
|
60
|
+
return [...i(this, x).values()];
|
|
61
|
+
}
|
|
62
|
+
find(e) {
|
|
63
|
+
const s = { exact: !0, ...e };
|
|
64
|
+
return this.getAll().find(
|
|
65
|
+
(a) => ne(s, a)
|
|
66
|
+
);
|
|
67
|
+
}
|
|
68
|
+
findAll(e = {}) {
|
|
69
|
+
const s = this.getAll();
|
|
70
|
+
return Object.keys(e).length > 0 ? s.filter((a) => ne(e, a)) : s;
|
|
71
|
+
}
|
|
72
|
+
notify(e) {
|
|
73
|
+
p.batch(() => {
|
|
74
|
+
this.listeners.forEach((s) => {
|
|
75
|
+
s(e);
|
|
76
|
+
});
|
|
77
|
+
});
|
|
78
|
+
}
|
|
79
|
+
onFocus() {
|
|
80
|
+
p.batch(() => {
|
|
81
|
+
this.getAll().forEach((e) => {
|
|
82
|
+
e.onFocus();
|
|
83
|
+
});
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
onOnline() {
|
|
87
|
+
p.batch(() => {
|
|
88
|
+
this.getAll().forEach((e) => {
|
|
89
|
+
e.onOnline();
|
|
90
|
+
});
|
|
91
|
+
});
|
|
92
|
+
}
|
|
93
|
+
}, x = new WeakMap(), de), f, S, fe, ft = (fe = class extends me {
|
|
94
|
+
constructor(e = {}) {
|
|
95
|
+
super();
|
|
96
|
+
m(this, f);
|
|
97
|
+
m(this, S);
|
|
98
|
+
this.config = e, u(this, f, /* @__PURE__ */ new Map()), u(this, S, Date.now());
|
|
99
|
+
}
|
|
100
|
+
build(e, s, a) {
|
|
101
|
+
const r = new Ie({
|
|
102
|
+
mutationCache: this,
|
|
103
|
+
mutationId: ++F(this, S)._,
|
|
104
|
+
options: e.defaultMutationOptions(s),
|
|
105
|
+
state: a
|
|
106
|
+
});
|
|
107
|
+
return this.add(r), r;
|
|
108
|
+
}
|
|
109
|
+
add(e) {
|
|
110
|
+
const s = R(e), a = i(this, f).get(s) ?? [];
|
|
111
|
+
a.push(e), i(this, f).set(s, a), this.notify({ type: "added", mutation: e });
|
|
112
|
+
}
|
|
113
|
+
remove(e) {
|
|
114
|
+
var a;
|
|
115
|
+
const s = R(e);
|
|
116
|
+
if (i(this, f).has(s)) {
|
|
117
|
+
const r = (a = i(this, f).get(s)) == null ? void 0 : a.filter((o) => o !== e);
|
|
118
|
+
r && (r.length === 0 ? i(this, f).delete(s) : i(this, f).set(s, r));
|
|
119
|
+
}
|
|
120
|
+
this.notify({ type: "removed", mutation: e });
|
|
121
|
+
}
|
|
122
|
+
canRun(e) {
|
|
123
|
+
var a;
|
|
124
|
+
const s = (a = i(this, f).get(R(e))) == null ? void 0 : a.find((r) => r.state.status === "pending");
|
|
125
|
+
return !s || s === e;
|
|
126
|
+
}
|
|
127
|
+
runNext(e) {
|
|
128
|
+
var a;
|
|
129
|
+
const s = (a = i(this, f).get(R(e))) == null ? void 0 : a.find((r) => r !== e && r.state.isPaused);
|
|
130
|
+
return (s == null ? void 0 : s.continue()) ?? Promise.resolve();
|
|
131
|
+
}
|
|
132
|
+
clear() {
|
|
133
|
+
p.batch(() => {
|
|
134
|
+
this.getAll().forEach((e) => {
|
|
135
|
+
this.remove(e);
|
|
136
|
+
});
|
|
137
|
+
});
|
|
138
|
+
}
|
|
139
|
+
getAll() {
|
|
140
|
+
return [...i(this, f).values()].flat();
|
|
141
|
+
}
|
|
142
|
+
find(e) {
|
|
143
|
+
const s = { exact: !0, ...e };
|
|
144
|
+
return this.getAll().find(
|
|
145
|
+
(a) => re(s, a)
|
|
146
|
+
);
|
|
147
|
+
}
|
|
148
|
+
findAll(e = {}) {
|
|
149
|
+
return this.getAll().filter((s) => re(e, s));
|
|
150
|
+
}
|
|
151
|
+
notify(e) {
|
|
152
|
+
p.batch(() => {
|
|
153
|
+
this.listeners.forEach((s) => {
|
|
154
|
+
s(e);
|
|
155
|
+
});
|
|
156
|
+
});
|
|
157
|
+
}
|
|
158
|
+
resumePausedMutations() {
|
|
159
|
+
const e = this.getAll().filter((s) => s.state.isPaused);
|
|
160
|
+
return p.batch(
|
|
161
|
+
() => Promise.all(
|
|
162
|
+
e.map((s) => s.continue().catch(j))
|
|
163
|
+
)
|
|
164
|
+
);
|
|
165
|
+
}
|
|
166
|
+
}, f = new WeakMap(), S = new WeakMap(), fe);
|
|
167
|
+
function R(t) {
|
|
168
|
+
var e;
|
|
169
|
+
return ((e = t.options.scope) == null ? void 0 : e.id) ?? String(t.mutationId);
|
|
170
|
+
}
|
|
171
|
+
function pt(t) {
|
|
172
|
+
return {
|
|
173
|
+
onFetch: (e, s) => {
|
|
174
|
+
const a = async () => {
|
|
175
|
+
var $, G, J, Y, Z;
|
|
176
|
+
const r = e.options, o = (J = (G = ($ = e.fetchOptions) == null ? void 0 : $.meta) == null ? void 0 : G.fetchMore) == null ? void 0 : J.direction, l = ((Y = e.state.data) == null ? void 0 : Y.pages) || [], h = ((Z = e.state.data) == null ? void 0 : Z.pageParams) || [], g = { pages: [], pageParams: [] };
|
|
177
|
+
let b = !1;
|
|
178
|
+
const d = (v) => {
|
|
179
|
+
Object.defineProperty(v, "signal", {
|
|
180
|
+
enumerable: !0,
|
|
181
|
+
get: () => (e.signal.aborted ? b = !0 : e.signal.addEventListener("abort", () => {
|
|
182
|
+
b = !0;
|
|
183
|
+
}), e.signal)
|
|
184
|
+
});
|
|
185
|
+
}, Qe = Fe(e.options, e.fetchOptions), B = async (v, w, O) => {
|
|
186
|
+
if (b)
|
|
187
|
+
return Promise.reject();
|
|
188
|
+
if (w == null && v.pages.length)
|
|
189
|
+
return Promise.resolve(v);
|
|
190
|
+
const I = {
|
|
191
|
+
queryKey: e.queryKey,
|
|
192
|
+
pageParam: w,
|
|
193
|
+
direction: O ? "backward" : "forward",
|
|
194
|
+
meta: e.options.meta
|
|
195
|
+
};
|
|
196
|
+
d(I);
|
|
197
|
+
const qe = await Qe(
|
|
198
|
+
I
|
|
199
|
+
), { maxPages: ee } = e.options, te = O ? Re : He;
|
|
200
|
+
return {
|
|
201
|
+
pages: te(v.pages, qe, ee),
|
|
202
|
+
pageParams: te(v.pageParams, w, ee)
|
|
203
|
+
};
|
|
204
|
+
};
|
|
205
|
+
let A;
|
|
206
|
+
if (o && l.length) {
|
|
207
|
+
const v = o === "backward", w = v ? mt : he, O = {
|
|
208
|
+
pages: l,
|
|
209
|
+
pageParams: h
|
|
210
|
+
}, I = w(r, O);
|
|
211
|
+
A = await B(O, I, v);
|
|
212
|
+
} else {
|
|
213
|
+
A = await B(
|
|
214
|
+
g,
|
|
215
|
+
h[0] ?? r.initialPageParam
|
|
216
|
+
);
|
|
217
|
+
const v = t ?? l.length;
|
|
218
|
+
for (let w = 1; w < v; w++) {
|
|
219
|
+
const O = he(r, A);
|
|
220
|
+
A = await B(A, O);
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
return A;
|
|
224
|
+
};
|
|
225
|
+
e.options.persister ? e.fetchFn = () => {
|
|
226
|
+
var r, o;
|
|
227
|
+
return (o = (r = e.options).persister) == null ? void 0 : o.call(
|
|
228
|
+
r,
|
|
229
|
+
a,
|
|
230
|
+
{
|
|
231
|
+
queryKey: e.queryKey,
|
|
232
|
+
meta: e.options.meta,
|
|
233
|
+
signal: e.signal
|
|
234
|
+
},
|
|
235
|
+
s
|
|
236
|
+
);
|
|
237
|
+
} : e.fetchFn = a;
|
|
238
|
+
}
|
|
239
|
+
};
|
|
240
|
+
}
|
|
241
|
+
function he(t, { pages: e, pageParams: s }) {
|
|
242
|
+
const a = e.length - 1;
|
|
243
|
+
return t.getNextPageParam(
|
|
244
|
+
e[a],
|
|
245
|
+
e,
|
|
246
|
+
s[a],
|
|
247
|
+
s
|
|
248
|
+
);
|
|
249
|
+
}
|
|
250
|
+
function mt(t, { pages: e, pageParams: s }) {
|
|
251
|
+
var a;
|
|
252
|
+
return (a = t.getPreviousPageParam) == null ? void 0 : a.call(
|
|
253
|
+
t,
|
|
254
|
+
e[0],
|
|
255
|
+
e,
|
|
256
|
+
s[0],
|
|
257
|
+
s
|
|
258
|
+
);
|
|
259
|
+
}
|
|
260
|
+
var c, P, N, C, M, k, Q, q, pe, gt = (pe = class {
|
|
261
|
+
constructor(t = {}) {
|
|
262
|
+
m(this, c);
|
|
263
|
+
m(this, P);
|
|
264
|
+
m(this, N);
|
|
265
|
+
m(this, C);
|
|
266
|
+
m(this, M);
|
|
267
|
+
m(this, k);
|
|
268
|
+
m(this, Q);
|
|
269
|
+
m(this, q);
|
|
270
|
+
u(this, c, t.queryCache || new dt()), u(this, P, t.mutationCache || new ft()), u(this, N, t.defaultOptions || {}), u(this, C, /* @__PURE__ */ new Map()), u(this, M, /* @__PURE__ */ new Map()), u(this, k, 0);
|
|
271
|
+
}
|
|
272
|
+
mount() {
|
|
273
|
+
F(this, k)._++, i(this, k) === 1 && (u(this, Q, Le.subscribe(async (t) => {
|
|
274
|
+
t && (await this.resumePausedMutations(), i(this, c).onFocus());
|
|
275
|
+
})), u(this, q, ie.subscribe(async (t) => {
|
|
276
|
+
t && (await this.resumePausedMutations(), i(this, c).onOnline());
|
|
277
|
+
})));
|
|
278
|
+
}
|
|
279
|
+
unmount() {
|
|
280
|
+
var t, e;
|
|
281
|
+
F(this, k)._--, i(this, k) === 0 && ((t = i(this, Q)) == null || t.call(this), u(this, Q, void 0), (e = i(this, q)) == null || e.call(this), u(this, q, void 0));
|
|
282
|
+
}
|
|
283
|
+
isFetching(t) {
|
|
284
|
+
return i(this, c).findAll({ ...t, fetchStatus: "fetching" }).length;
|
|
285
|
+
}
|
|
286
|
+
isMutating(t) {
|
|
287
|
+
return i(this, P).findAll({ ...t, status: "pending" }).length;
|
|
288
|
+
}
|
|
289
|
+
getQueryData(t) {
|
|
290
|
+
var s;
|
|
291
|
+
const e = this.defaultQueryOptions({ queryKey: t });
|
|
292
|
+
return (s = i(this, c).get(e.queryHash)) == null ? void 0 : s.state.data;
|
|
293
|
+
}
|
|
294
|
+
ensureQueryData(t) {
|
|
295
|
+
const e = this.getQueryData(t.queryKey);
|
|
296
|
+
if (e === void 0)
|
|
297
|
+
return this.fetchQuery(t);
|
|
298
|
+
{
|
|
299
|
+
const s = this.defaultQueryOptions(t), a = i(this, c).build(this, s);
|
|
300
|
+
return t.revalidateIfStale && a.isStaleByTime(oe(s.staleTime, a)) && this.prefetchQuery(s), Promise.resolve(e);
|
|
301
|
+
}
|
|
302
|
+
}
|
|
303
|
+
getQueriesData(t) {
|
|
304
|
+
return i(this, c).findAll(t).map(({ queryKey: e, state: s }) => {
|
|
305
|
+
const a = s.data;
|
|
306
|
+
return [e, a];
|
|
307
|
+
});
|
|
308
|
+
}
|
|
309
|
+
setQueryData(t, e, s) {
|
|
310
|
+
const a = this.defaultQueryOptions({ queryKey: t }), r = i(this, c).get(
|
|
311
|
+
a.queryHash
|
|
312
|
+
), o = r == null ? void 0 : r.state.data, l = ze(e, o);
|
|
313
|
+
if (l !== void 0)
|
|
314
|
+
return i(this, c).build(this, a).setData(l, { ...s, manual: !0 });
|
|
315
|
+
}
|
|
316
|
+
setQueriesData(t, e, s) {
|
|
317
|
+
return p.batch(
|
|
318
|
+
() => i(this, c).findAll(t).map(({ queryKey: a }) => [
|
|
319
|
+
a,
|
|
320
|
+
this.setQueryData(a, e, s)
|
|
321
|
+
])
|
|
322
|
+
);
|
|
323
|
+
}
|
|
324
|
+
getQueryState(t) {
|
|
325
|
+
var s;
|
|
326
|
+
const e = this.defaultQueryOptions({ queryKey: t });
|
|
327
|
+
return (s = i(this, c).get(e.queryHash)) == null ? void 0 : s.state;
|
|
328
|
+
}
|
|
329
|
+
removeQueries(t) {
|
|
330
|
+
const e = i(this, c);
|
|
331
|
+
p.batch(() => {
|
|
332
|
+
e.findAll(t).forEach((s) => {
|
|
333
|
+
e.remove(s);
|
|
334
|
+
});
|
|
335
|
+
});
|
|
336
|
+
}
|
|
337
|
+
resetQueries(t, e) {
|
|
338
|
+
const s = i(this, c), a = {
|
|
339
|
+
type: "active",
|
|
340
|
+
...t
|
|
341
|
+
};
|
|
342
|
+
return p.batch(() => (s.findAll(t).forEach((r) => {
|
|
343
|
+
r.reset();
|
|
344
|
+
}), this.refetchQueries(a, e)));
|
|
345
|
+
}
|
|
346
|
+
cancelQueries(t = {}, e = {}) {
|
|
347
|
+
const s = { revert: !0, ...e }, a = p.batch(
|
|
348
|
+
() => i(this, c).findAll(t).map((r) => r.cancel(s))
|
|
349
|
+
);
|
|
350
|
+
return Promise.all(a).then(j).catch(j);
|
|
351
|
+
}
|
|
352
|
+
invalidateQueries(t = {}, e = {}) {
|
|
353
|
+
return p.batch(() => {
|
|
354
|
+
if (i(this, c).findAll(t).forEach((a) => {
|
|
355
|
+
a.invalidate();
|
|
356
|
+
}), t.refetchType === "none")
|
|
357
|
+
return Promise.resolve();
|
|
358
|
+
const s = {
|
|
359
|
+
...t,
|
|
360
|
+
type: t.refetchType ?? t.type ?? "active"
|
|
361
|
+
};
|
|
362
|
+
return this.refetchQueries(s, e);
|
|
363
|
+
});
|
|
364
|
+
}
|
|
365
|
+
refetchQueries(t = {}, e) {
|
|
366
|
+
const s = {
|
|
367
|
+
...e,
|
|
368
|
+
cancelRefetch: (e == null ? void 0 : e.cancelRefetch) ?? !0
|
|
369
|
+
}, a = p.batch(
|
|
370
|
+
() => i(this, c).findAll(t).filter((r) => !r.isDisabled()).map((r) => {
|
|
371
|
+
let o = r.fetch(void 0, s);
|
|
372
|
+
return s.throwOnError || (o = o.catch(j)), r.state.fetchStatus === "paused" ? Promise.resolve() : o;
|
|
373
|
+
})
|
|
374
|
+
);
|
|
375
|
+
return Promise.all(a).then(j);
|
|
376
|
+
}
|
|
377
|
+
fetchQuery(t) {
|
|
378
|
+
const e = this.defaultQueryOptions(t);
|
|
379
|
+
e.retry === void 0 && (e.retry = !1);
|
|
380
|
+
const s = i(this, c).build(this, e);
|
|
381
|
+
return s.isStaleByTime(
|
|
382
|
+
oe(e.staleTime, s)
|
|
383
|
+
) ? s.fetch(e) : Promise.resolve(s.state.data);
|
|
384
|
+
}
|
|
385
|
+
prefetchQuery(t) {
|
|
386
|
+
return this.fetchQuery(t).then(j).catch(j);
|
|
387
|
+
}
|
|
388
|
+
fetchInfiniteQuery(t) {
|
|
389
|
+
return t.behavior = pt(t.pages), this.fetchQuery(t);
|
|
390
|
+
}
|
|
391
|
+
prefetchInfiniteQuery(t) {
|
|
392
|
+
return this.fetchInfiniteQuery(t).then(j).catch(j);
|
|
393
|
+
}
|
|
394
|
+
resumePausedMutations() {
|
|
395
|
+
return ie.isOnline() ? i(this, P).resumePausedMutations() : Promise.resolve();
|
|
396
|
+
}
|
|
397
|
+
getQueryCache() {
|
|
398
|
+
return i(this, c);
|
|
399
|
+
}
|
|
400
|
+
getMutationCache() {
|
|
401
|
+
return i(this, P);
|
|
402
|
+
}
|
|
403
|
+
getDefaultOptions() {
|
|
404
|
+
return i(this, N);
|
|
405
|
+
}
|
|
406
|
+
setDefaultOptions(t) {
|
|
407
|
+
u(this, N, t);
|
|
408
|
+
}
|
|
409
|
+
setQueryDefaults(t, e) {
|
|
410
|
+
i(this, C).set(le(t), {
|
|
411
|
+
queryKey: t,
|
|
412
|
+
defaultOptions: e
|
|
413
|
+
});
|
|
414
|
+
}
|
|
415
|
+
getQueryDefaults(t) {
|
|
416
|
+
const e = [...i(this, C).values()];
|
|
417
|
+
let s = {};
|
|
418
|
+
return e.forEach((a) => {
|
|
419
|
+
ce(t, a.queryKey) && (s = { ...s, ...a.defaultOptions });
|
|
420
|
+
}), s;
|
|
421
|
+
}
|
|
422
|
+
setMutationDefaults(t, e) {
|
|
423
|
+
i(this, M).set(le(t), {
|
|
424
|
+
mutationKey: t,
|
|
425
|
+
defaultOptions: e
|
|
426
|
+
});
|
|
427
|
+
}
|
|
428
|
+
getMutationDefaults(t) {
|
|
429
|
+
const e = [...i(this, M).values()];
|
|
430
|
+
let s = {};
|
|
431
|
+
return e.forEach((a) => {
|
|
432
|
+
ce(t, a.mutationKey) && (s = { ...s, ...a.defaultOptions });
|
|
433
|
+
}), s;
|
|
434
|
+
}
|
|
435
|
+
defaultQueryOptions(t) {
|
|
436
|
+
if (t._defaulted)
|
|
437
|
+
return t;
|
|
438
|
+
const e = {
|
|
439
|
+
...i(this, N).queries,
|
|
440
|
+
...this.getQueryDefaults(t.queryKey),
|
|
441
|
+
...t,
|
|
442
|
+
_defaulted: !0
|
|
443
|
+
};
|
|
444
|
+
return e.queryHash || (e.queryHash = ge(
|
|
445
|
+
e.queryKey,
|
|
446
|
+
e
|
|
447
|
+
)), e.refetchOnReconnect === void 0 && (e.refetchOnReconnect = e.networkMode !== "always"), e.throwOnError === void 0 && (e.throwOnError = !!e.suspense), !e.networkMode && e.persister && (e.networkMode = "offlineFirst"), e.enabled !== !0 && e.queryFn === Ke && (e.enabled = !1), e;
|
|
448
|
+
}
|
|
449
|
+
defaultMutationOptions(t) {
|
|
450
|
+
return t != null && t._defaulted ? t : {
|
|
451
|
+
...i(this, N).mutations,
|
|
452
|
+
...(t == null ? void 0 : t.mutationKey) && this.getMutationDefaults(t.mutationKey),
|
|
453
|
+
...t,
|
|
454
|
+
_defaulted: !0
|
|
455
|
+
};
|
|
456
|
+
}
|
|
457
|
+
clear() {
|
|
458
|
+
i(this, c).clear(), i(this, P).clear();
|
|
459
|
+
}
|
|
460
|
+
}, c = new WeakMap(), P = new WeakMap(), N = new WeakMap(), C = new WeakMap(), M = new WeakMap(), k = new WeakMap(), Q = new WeakMap(), q = new WeakMap(), pe);
|
|
461
|
+
const Pe = (t) => "getRoutes" in t && typeof t.getRoutes == "function", vt = (t) => "initialize" in t && typeof t.initialize == "function", yt = (t) => "getIdentities" in t && typeof t.getIdentities == "function", Ne = new gt(), xt = ht(() => ({}));
|
|
462
|
+
class bt {
|
|
463
|
+
constructor(e) {
|
|
464
|
+
y(this, "plugins", []);
|
|
465
|
+
y(this, "navigationPlugins");
|
|
466
|
+
y(this, "navigation");
|
|
467
|
+
y(this, "meta");
|
|
468
|
+
y(this, "authentication");
|
|
469
|
+
y(this, "state");
|
|
470
|
+
y(this, "initialize", async () => {
|
|
471
|
+
this.plugins.filter(vt).forEach((e) => e.initialize(this));
|
|
472
|
+
});
|
|
473
|
+
y(this, "invalidateCache", async (e) => {
|
|
474
|
+
await Ne.invalidateQueries({ queryKey: e });
|
|
475
|
+
});
|
|
476
|
+
y(this, "getApiIdentities", async () => (await Promise.all(
|
|
477
|
+
this.plugins.filter(yt).map((s) => s.getIdentities(this))
|
|
478
|
+
)).flat());
|
|
479
|
+
y(this, "getNavigation", async (e) => (await Promise.all(
|
|
480
|
+
this.navigationPlugins.map(
|
|
481
|
+
async (a) => {
|
|
482
|
+
var r;
|
|
483
|
+
return (r = a.getNavigation) == null ? void 0 : r.call(a, e);
|
|
484
|
+
}
|
|
485
|
+
)
|
|
486
|
+
)).flatMap((a) => a ?? []));
|
|
487
|
+
this.plugins = e.plugins ?? [], this.navigation = e.navigation, this.navigationPlugins = this.plugins.filter(Pe), this.authentication = e.authentication, this.meta = e.meta, this.state = xt;
|
|
488
|
+
}
|
|
489
|
+
async signRequest(e) {
|
|
490
|
+
if (!this.authentication)
|
|
491
|
+
throw new Error("No authentication provider configured");
|
|
492
|
+
const s = await this.authentication.getAccessToken();
|
|
493
|
+
return e.headers.set("Authorization", `Bearer ${s}`), e;
|
|
494
|
+
}
|
|
495
|
+
}
|
|
496
|
+
/**
|
|
497
|
+
* @license lucide-react v0.378.0 - ISC
|
|
498
|
+
*
|
|
499
|
+
* This source code is licensed under the ISC license.
|
|
500
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
501
|
+
*/
|
|
502
|
+
const ke = E("ChevronRight", [
|
|
503
|
+
["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]
|
|
504
|
+
]);
|
|
505
|
+
/**
|
|
506
|
+
* @license lucide-react v0.378.0 - ISC
|
|
507
|
+
*
|
|
508
|
+
* This source code is licensed under the ISC license.
|
|
509
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
510
|
+
*/
|
|
511
|
+
const jt = E("ExternalLink", [
|
|
512
|
+
["path", { d: "M15 3h6v6", key: "1q9fwt" }],
|
|
513
|
+
["path", { d: "M10 14 21 3", key: "gplh6r" }],
|
|
514
|
+
["path", { d: "M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6", key: "a6xqqp" }]
|
|
515
|
+
]);
|
|
516
|
+
/**
|
|
517
|
+
* @license lucide-react v0.378.0 - ISC
|
|
518
|
+
*
|
|
519
|
+
* This source code is licensed under the ISC license.
|
|
520
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
521
|
+
*/
|
|
522
|
+
const wt = E("MoonStar", [
|
|
523
|
+
["path", { d: "M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9", key: "4ay0iu" }],
|
|
524
|
+
["path", { d: "M20 3v4", key: "1olli1" }],
|
|
525
|
+
["path", { d: "M22 5h-4", key: "1gvqau" }]
|
|
526
|
+
]);
|
|
527
|
+
/**
|
|
528
|
+
* @license lucide-react v0.378.0 - ISC
|
|
529
|
+
*
|
|
530
|
+
* This source code is licensed under the ISC license.
|
|
531
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
532
|
+
*/
|
|
533
|
+
const Pt = E("Search", [
|
|
534
|
+
["circle", { cx: "11", cy: "11", r: "8", key: "4ej97u" }],
|
|
535
|
+
["path", { d: "m21 21-4.3-4.3", key: "1qie3q" }]
|
|
536
|
+
]);
|
|
537
|
+
/**
|
|
538
|
+
* @license lucide-react v0.378.0 - ISC
|
|
539
|
+
*
|
|
540
|
+
* This source code is licensed under the ISC license.
|
|
541
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
542
|
+
*/
|
|
543
|
+
const Nt = E("Sun", [
|
|
544
|
+
["circle", { cx: "12", cy: "12", r: "4", key: "4exip2" }],
|
|
545
|
+
["path", { d: "M12 2v2", key: "tus03m" }],
|
|
546
|
+
["path", { d: "M12 20v2", key: "1lh1kg" }],
|
|
547
|
+
["path", { d: "m4.93 4.93 1.41 1.41", key: "149t6j" }],
|
|
548
|
+
["path", { d: "m17.66 17.66 1.41 1.41", key: "ptbguv" }],
|
|
549
|
+
["path", { d: "M2 12h2", key: "1t8f8n" }],
|
|
550
|
+
["path", { d: "M20 12h2", key: "1q8mjw" }],
|
|
551
|
+
["path", { d: "m6.34 17.66-1.41 1.41", key: "1m8zz5" }],
|
|
552
|
+
["path", { d: "m19.07 4.93-1.41 1.41", key: "1shlcs" }]
|
|
553
|
+
]), kt = () => {
|
|
554
|
+
const { authentication: t } = K(), e = ut(), s = typeof t < "u";
|
|
555
|
+
return {
|
|
556
|
+
isAuthEnabled: s,
|
|
557
|
+
profile: e.profile,
|
|
558
|
+
isAuthenticated: e.profile,
|
|
559
|
+
login: async () => {
|
|
560
|
+
if (!s)
|
|
561
|
+
throw new Error("Authentication is not enabled.");
|
|
562
|
+
await t.login();
|
|
563
|
+
},
|
|
564
|
+
logout: async () => {
|
|
565
|
+
if (!s)
|
|
566
|
+
throw new Error("Authentication is not enabled.");
|
|
567
|
+
await t.logout(), window.location.href = "/";
|
|
568
|
+
}
|
|
569
|
+
};
|
|
570
|
+
}, Ot = () => {
|
|
571
|
+
const { navigation: t } = K();
|
|
572
|
+
return /* @__PURE__ */ n.jsx("nav", { className: "border-b border-border text-sm px-12 h-[--top-nav-height]", children: /* @__PURE__ */ n.jsx("ul", { className: "flex flex-row items-center gap-8", children: t.map((e) => /* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsx(
|
|
573
|
+
V,
|
|
574
|
+
{
|
|
575
|
+
className: ({ isActive: s }) => _e(
|
|
576
|
+
"block py-3.5 font-medium -mb-px border-b-2",
|
|
577
|
+
s ? "border-primary text-foreground" : "border-transparent text-foreground/75 hover:text-foreground hover:border-accent-foreground/25"
|
|
578
|
+
),
|
|
579
|
+
to: e.path,
|
|
580
|
+
children: e.label
|
|
581
|
+
}
|
|
582
|
+
) }, e.label)) }) });
|
|
583
|
+
}, Oe = je(function() {
|
|
584
|
+
const [e, s] = Be(), { isAuthenticated: a, profile: r, isAuthEnabled: o, login: l, logout: h } = kt(), { meta: g } = K(), b = e ? wt : Nt;
|
|
585
|
+
return /* @__PURE__ */ n.jsx("header", { className: "fixed top-0 w-full z-10 bg-background/80 backdrop-blur", children: /* @__PURE__ */ n.jsxs("div", { className: "max-w-screen-2xl mx-auto", children: [
|
|
586
|
+
/* @__PURE__ */ n.jsxs("div", { className: "grid grid-cols-[calc(var(--side-nav-width))_1fr] lg:gap-12 items-center border-b border-border px-12 h-[--top-header-height]", children: [
|
|
587
|
+
/* @__PURE__ */ n.jsxs("div", { className: "flex items-center gap-3.5", children: [
|
|
588
|
+
(g == null ? void 0 : g.logo) && /* @__PURE__ */ n.jsx("img", { src: g.logo, alt: "My Dev Portal", className: "h-10" }),
|
|
589
|
+
/* @__PURE__ */ n.jsx("span", { className: "font-bold text-2xl text-foreground/85 tracking-wide", children: g == null ? void 0 : g.headerTitle })
|
|
590
|
+
] }),
|
|
591
|
+
/* @__PURE__ */ n.jsxs("div", { className: "grid grid-cols-[--sidecar-grid-cols] items-center gap-8", children: [
|
|
592
|
+
/* @__PURE__ */ n.jsx("div", { className: "w-full max-w-prose", children: /* @__PURE__ */ n.jsxs("button", { className: "flex items-center border border-input hover:bg-accent hover:text-accent-foreground p-4 relative h-8 justify-start rounded-lg bg-background text-sm text-muted-foreground shadow-none w-40 sm:w-72", children: [
|
|
593
|
+
/* @__PURE__ */ n.jsxs("div", { className: "flex items-center gap-2 flex-grow", children: [
|
|
594
|
+
/* @__PURE__ */ n.jsx(Pt, { size: 14 }),
|
|
595
|
+
"Search"
|
|
596
|
+
] }),
|
|
597
|
+
/* @__PURE__ */ n.jsx("kbd", { className: "absolute right-[0.3rem] top-[0.3rem] hidden h-5 select-none items-center gap-1 rounded border border-border bg-muted px-1.5 font-mono text-[11px] font-medium opacity-100 sm:flex", children: "⌘K" })
|
|
598
|
+
] }) }),
|
|
599
|
+
/* @__PURE__ */ n.jsxs("div", { className: "items-center justify-self-end text-sm hidden lg:flex", children: [
|
|
600
|
+
o && /* @__PURE__ */ n.jsx(n.Fragment, { children: a ? /* @__PURE__ */ n.jsxs(
|
|
601
|
+
"button",
|
|
602
|
+
{
|
|
603
|
+
className: "cursor-pointer hover:bg-secondary p-1 px-2 mx-2 rounded text-nowrap",
|
|
604
|
+
onClick: h,
|
|
605
|
+
children: [
|
|
606
|
+
"Logout ",
|
|
607
|
+
r != null && r.email ? `(${r.email})` : null
|
|
608
|
+
]
|
|
609
|
+
}
|
|
610
|
+
) : /* @__PURE__ */ n.jsx(
|
|
611
|
+
"button",
|
|
612
|
+
{
|
|
613
|
+
className: "cursor-pointer hover:bg-secondary p-1 px-2 mx-2 rounded",
|
|
614
|
+
onClick: l,
|
|
615
|
+
children: "Login"
|
|
616
|
+
}
|
|
617
|
+
) }),
|
|
618
|
+
/* @__PURE__ */ n.jsx(
|
|
619
|
+
"button",
|
|
620
|
+
{
|
|
621
|
+
className: "cursor-pointer hover:bg-secondary p-2.5 -m-2.5 rounded-full",
|
|
622
|
+
onClick: s,
|
|
623
|
+
children: /* @__PURE__ */ n.jsx(b, { size: 18 })
|
|
624
|
+
}
|
|
625
|
+
)
|
|
626
|
+
] })
|
|
627
|
+
] })
|
|
628
|
+
] }),
|
|
629
|
+
/* @__PURE__ */ n.jsx(Ot, {})
|
|
630
|
+
] }) });
|
|
631
|
+
}), Ae = {
|
|
632
|
+
Header: Oe
|
|
633
|
+
}, At = ot(Ae), Ct = At.Provider, Mt = () => {
|
|
634
|
+
const t = D(), { setActiveAnchor: e } = W();
|
|
635
|
+
T(() => {
|
|
636
|
+
if (!t.hash) return;
|
|
637
|
+
const s = t.hash.split("/")[0].slice(1), a = document.getElementById(decodeURIComponent(s));
|
|
638
|
+
if (a) {
|
|
639
|
+
requestAnimationFrame(() => {
|
|
640
|
+
a.scrollIntoView(), requestIdleCallback(() => e(s));
|
|
641
|
+
});
|
|
642
|
+
return;
|
|
643
|
+
}
|
|
644
|
+
const r = new MutationObserver((o, l) => {
|
|
645
|
+
const h = document.getElementById(decodeURIComponent(s));
|
|
646
|
+
h && (h.scrollIntoView(), requestIdleCallback(() => e(s)), l.disconnect());
|
|
647
|
+
});
|
|
648
|
+
return r.observe(document.body, { childList: !0, subtree: !0 }), () => r.disconnect();
|
|
649
|
+
}, [t.hash, e]);
|
|
650
|
+
}, Qt = () => {
|
|
651
|
+
const t = D(), e = _(t.pathname);
|
|
652
|
+
T(() => {
|
|
653
|
+
e.current !== t.pathname && (window.scrollTo(0, 0), e.current = t.pathname);
|
|
654
|
+
}, [t.pathname]);
|
|
655
|
+
}, Ce = ({
|
|
656
|
+
item: t,
|
|
657
|
+
defaultOpen: e,
|
|
658
|
+
path: s
|
|
659
|
+
}) => {
|
|
660
|
+
const [a, r] = lt(e), o = D(), l = _(o.pathname);
|
|
661
|
+
return T(() => {
|
|
662
|
+
!a && l.current !== o.pathname && r(X(t, o.pathname, s)), l.current = o.pathname;
|
|
663
|
+
}, [a, t, s, o.pathname]), [a, r];
|
|
664
|
+
}, H = We(
|
|
665
|
+
"flex px-[--padding-nav-item] py-1.5 rounded-lg hover:bg-accent transition-colors duration-300",
|
|
666
|
+
{
|
|
667
|
+
variants: {
|
|
668
|
+
isActive: {
|
|
669
|
+
true: "text-primary font-medium",
|
|
670
|
+
false: "text-foreground/80"
|
|
671
|
+
},
|
|
672
|
+
isMuted: {
|
|
673
|
+
true: "text-foreground/30",
|
|
674
|
+
false: ""
|
|
675
|
+
}
|
|
676
|
+
}
|
|
677
|
+
}
|
|
678
|
+
), qt = "data-anchor", Me = ({
|
|
679
|
+
category: t,
|
|
680
|
+
item: e,
|
|
681
|
+
activeAnchor: s,
|
|
682
|
+
currentTopNavItem: a,
|
|
683
|
+
basePath: r = ""
|
|
684
|
+
}) => {
|
|
685
|
+
const o = U(e) ? ve(r, e.path) : "", l = D(), [h, g] = Ce({
|
|
686
|
+
item: e,
|
|
687
|
+
path: o,
|
|
688
|
+
defaultOpen: () => X(e, l.pathname, o)
|
|
689
|
+
});
|
|
690
|
+
if (Ve(e)) {
|
|
691
|
+
const d = z(
|
|
692
|
+
"flex items-center gap-2",
|
|
693
|
+
H({
|
|
694
|
+
isActive: e.href === l.pathname
|
|
695
|
+
})
|
|
696
|
+
);
|
|
697
|
+
return e.href.startsWith("http") ? /* @__PURE__ */ n.jsxs(
|
|
698
|
+
"a",
|
|
699
|
+
{
|
|
700
|
+
className: d,
|
|
701
|
+
href: e.href,
|
|
702
|
+
target: "_blank",
|
|
703
|
+
rel: "noopener noreferrer",
|
|
704
|
+
children: [
|
|
705
|
+
e.label,
|
|
706
|
+
/* @__PURE__ */ n.jsx(jt, { size: 14 })
|
|
707
|
+
]
|
|
708
|
+
}
|
|
709
|
+
) : /* @__PURE__ */ n.jsx(V, { className: d, to: e.href, children: e.label });
|
|
710
|
+
}
|
|
711
|
+
const b = /* @__PURE__ */ n.jsxs("div", { className: "flex justify-between w-full", children: [
|
|
712
|
+
/* @__PURE__ */ n.jsxs("div", { className: "flex items-center gap-2 truncate w-full", children: [
|
|
713
|
+
e.icon,
|
|
714
|
+
typeof e.label != "string" ? e.label : /* @__PURE__ */ n.jsx("span", { className: "truncate", children: e.label })
|
|
715
|
+
] }),
|
|
716
|
+
e.children && /* @__PURE__ */ n.jsx(
|
|
717
|
+
ke,
|
|
718
|
+
{
|
|
719
|
+
size: 16,
|
|
720
|
+
className: "transition shrink-0 group-data-[state=open]:rotate-90"
|
|
721
|
+
}
|
|
722
|
+
)
|
|
723
|
+
] });
|
|
724
|
+
return /* @__PURE__ */ n.jsx("li", { title: typeof e.label == "string" ? e.label : e.title, children: e.children ? /* @__PURE__ */ n.jsxs(
|
|
725
|
+
ye,
|
|
726
|
+
{
|
|
727
|
+
open: h,
|
|
728
|
+
onOpenChange: () => g((d) => !d),
|
|
729
|
+
className: "flex flex-col",
|
|
730
|
+
children: [
|
|
731
|
+
/* @__PURE__ */ n.jsx(
|
|
732
|
+
xe,
|
|
733
|
+
{
|
|
734
|
+
className: z(
|
|
735
|
+
"group text-start",
|
|
736
|
+
H({ isActive: !1 })
|
|
737
|
+
),
|
|
738
|
+
children: b
|
|
739
|
+
}
|
|
740
|
+
),
|
|
741
|
+
/* @__PURE__ */ n.jsx(be, { className: "CollapsibleContent ms-[calc(var(--padding-nav-item)*1.125)]", children: /* @__PURE__ */ n.jsx("ul", { className: "mt-1 border-border border-l ps-1.5", children: e.children.map((d) => /* @__PURE__ */ n.jsx(
|
|
742
|
+
Me,
|
|
743
|
+
{
|
|
744
|
+
category: t,
|
|
745
|
+
item: d,
|
|
746
|
+
activeAnchor: s,
|
|
747
|
+
currentTopNavItem: a,
|
|
748
|
+
basePath: o
|
|
749
|
+
},
|
|
750
|
+
U(d) ? d.path : d.href
|
|
751
|
+
)) }) })
|
|
752
|
+
]
|
|
753
|
+
}
|
|
754
|
+
) : e.path.startsWith("#") ? /* @__PURE__ */ n.jsx(
|
|
755
|
+
Ue,
|
|
756
|
+
{
|
|
757
|
+
to: e.path,
|
|
758
|
+
[qt]: e.path,
|
|
759
|
+
className: H({
|
|
760
|
+
isActive: e.path.slice(1) === s,
|
|
761
|
+
isMuted: e.muted
|
|
762
|
+
}),
|
|
763
|
+
children: b
|
|
764
|
+
}
|
|
765
|
+
) : /* @__PURE__ */ n.jsx(
|
|
766
|
+
V,
|
|
767
|
+
{
|
|
768
|
+
className: ({ isActive: d }) => H({ isActive: d }),
|
|
769
|
+
to: o,
|
|
770
|
+
children: b
|
|
771
|
+
}
|
|
772
|
+
) });
|
|
773
|
+
}, Dt = ({
|
|
774
|
+
category: t
|
|
775
|
+
}) => {
|
|
776
|
+
const { activeAnchor: e } = W(), s = Xe(), a = D(), r = t.collapsible ?? !0, [o, l] = Ce({
|
|
777
|
+
item: t,
|
|
778
|
+
path: (s == null ? void 0 : s.path) ?? "",
|
|
779
|
+
defaultOpen: () => !r || t.expanded || X(t, a.pathname, (s == null ? void 0 : s.path) ?? "")
|
|
780
|
+
});
|
|
781
|
+
return /* @__PURE__ */ n.jsxs(
|
|
782
|
+
ye,
|
|
783
|
+
{
|
|
784
|
+
open: o,
|
|
785
|
+
onOpenChange: () => l((h) => !h),
|
|
786
|
+
children: [
|
|
787
|
+
t.label.length > 0 ? /* @__PURE__ */ n.jsx(xe, { asChild: r, disabled: !r, children: /* @__PURE__ */ n.jsxs(
|
|
788
|
+
"h5",
|
|
789
|
+
{
|
|
790
|
+
className: z(
|
|
791
|
+
"flex group items-center justify-between cursor-pointer font-semibold text-foreground/90 px-[--padding-nav-item] py-1.5 rounded-lg transition-colors duration-300 -mx-[--padding-nav-item]",
|
|
792
|
+
r ? "hover:bg-accent" : "cursor-auto"
|
|
793
|
+
),
|
|
794
|
+
children: [
|
|
795
|
+
t.label,
|
|
796
|
+
r && /* @__PURE__ */ n.jsx(
|
|
797
|
+
ke,
|
|
798
|
+
{
|
|
799
|
+
className: "group-data-[state=open]:rotate-90 transition",
|
|
800
|
+
size: 16
|
|
801
|
+
}
|
|
802
|
+
)
|
|
803
|
+
]
|
|
804
|
+
}
|
|
805
|
+
) }) : "Endpoints",
|
|
806
|
+
/* @__PURE__ */ n.jsx(be, { className: "CollapsibleContent -mx-[--padding-nav-item]", children: /* @__PURE__ */ n.jsx("ul", { className: "space-y-0.5 mt-1.5 mb-4 ms-3", children: t.children.map((h) => /* @__PURE__ */ n.jsx(
|
|
807
|
+
Me,
|
|
808
|
+
{
|
|
809
|
+
category: t,
|
|
810
|
+
item: h,
|
|
811
|
+
activeAnchor: e,
|
|
812
|
+
currentTopNavItem: s,
|
|
813
|
+
basePath: ve(s == null ? void 0 : s.path, t.path)
|
|
814
|
+
},
|
|
815
|
+
U(h) ? h.path + h.label : h.href
|
|
816
|
+
)) }) })
|
|
817
|
+
]
|
|
818
|
+
},
|
|
819
|
+
t.label
|
|
820
|
+
);
|
|
821
|
+
}, St = ct(function({ children: e, className: s, pushMainContent: a }, r) {
|
|
822
|
+
return /* @__PURE__ */ n.jsx(
|
|
823
|
+
"nav",
|
|
824
|
+
{
|
|
825
|
+
"data-navigation": String(a),
|
|
826
|
+
className: z(
|
|
827
|
+
"peer hidden lg:flex flex-col fixed text-sm overflow-y-auto shrink-0 p-[--padding-nav-item] -mx-[--padding-nav-item] pb-20 pt-[--padding-content-top] w-[--side-nav-width] h-[calc(100%-var(--header-height))] scroll-pt-2 gap-2",
|
|
828
|
+
s
|
|
829
|
+
),
|
|
830
|
+
ref: r,
|
|
831
|
+
children: e
|
|
832
|
+
}
|
|
833
|
+
);
|
|
834
|
+
}), Et = () => {
|
|
835
|
+
const t = _(null), e = $e();
|
|
836
|
+
return /* @__PURE__ */ n.jsx(
|
|
837
|
+
St,
|
|
838
|
+
{
|
|
839
|
+
ref: t,
|
|
840
|
+
pushMainContent: e.data.items.length > 0,
|
|
841
|
+
children: e.data.items.map((s) => /* @__PURE__ */ n.jsx(Dt, { category: s }, s.label))
|
|
842
|
+
}
|
|
843
|
+
);
|
|
844
|
+
}, ue = ({ children: t }) => {
|
|
845
|
+
const e = D(), { setActiveAnchor: s } = W(), { meta: a } = K();
|
|
846
|
+
Mt(), Qt();
|
|
847
|
+
const r = _(e.pathname);
|
|
848
|
+
return T(() => {
|
|
849
|
+
e.pathname !== r.current && s(""), r.current = e.pathname;
|
|
850
|
+
}, [e.pathname, s]), /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
851
|
+
/* @__PURE__ */ n.jsxs(Ge, { titleTemplate: a == null ? void 0 : a.pageTitle, children: [
|
|
852
|
+
/* @__PURE__ */ n.jsx("title", { children: "Home" }),
|
|
853
|
+
(a == null ? void 0 : a.description) && /* @__PURE__ */ n.jsx("meta", { name: "description", content: a.description }),
|
|
854
|
+
(a == null ? void 0 : a.favicon) && /* @__PURE__ */ n.jsx("link", { rel: "icon", href: a.favicon })
|
|
855
|
+
] }),
|
|
856
|
+
/* @__PURE__ */ n.jsx(Oe, {}),
|
|
857
|
+
/* @__PURE__ */ n.jsx("div", { className: "max-w-screen-2xl mx-auto pt-[--header-height] px-10 lg:px-12 h-full", children: /* @__PURE__ */ n.jsxs(
|
|
858
|
+
we,
|
|
859
|
+
{
|
|
860
|
+
fallback: /* @__PURE__ */ n.jsx("div", { className: "grid h-full place-items-center", children: /* @__PURE__ */ n.jsx(Je, {}) }),
|
|
861
|
+
children: [
|
|
862
|
+
/* @__PURE__ */ n.jsx(Et, {}),
|
|
863
|
+
/* @__PURE__ */ n.jsx(
|
|
864
|
+
"main",
|
|
865
|
+
{
|
|
866
|
+
className: `dark:border-white/10 translate-x-0
|
|
867
|
+
lg:overflow-visible
|
|
868
|
+
lg:peer-data-[navigation=true]:w-[calc(100%-var(--side-nav-width))]
|
|
869
|
+
lg:peer-data-[navigation=true]:translate-x-[--side-nav-width] peer-data-[navigation=true]:pl-12`,
|
|
870
|
+
children: t ?? /* @__PURE__ */ n.jsx(Ee, {})
|
|
871
|
+
}
|
|
872
|
+
)
|
|
873
|
+
]
|
|
874
|
+
}
|
|
875
|
+
) })
|
|
876
|
+
] });
|
|
877
|
+
};
|
|
878
|
+
function Tt({ plugins: t }) {
|
|
879
|
+
const e = L(() => {
|
|
880
|
+
const s = (t ?? []).flatMap(
|
|
881
|
+
(a) => Pe(a) ? a.getRoutes() : []
|
|
882
|
+
);
|
|
883
|
+
return Ye([
|
|
884
|
+
{
|
|
885
|
+
path: "/",
|
|
886
|
+
element: /* @__PURE__ */ n.jsx(ue, {}),
|
|
887
|
+
errorElement: /* @__PURE__ */ n.jsx(ue, { children: /* @__PURE__ */ n.jsx("div", { className: "h-[75vh] flex items-center justify-center", children: "Error, look at the console" }) }),
|
|
888
|
+
children: s
|
|
889
|
+
}
|
|
890
|
+
]);
|
|
891
|
+
}, [t]);
|
|
892
|
+
return /* @__PURE__ */ n.jsx(Ze, { router: e });
|
|
893
|
+
}
|
|
894
|
+
const It = (t) => {
|
|
895
|
+
const e = L(
|
|
896
|
+
() => ({ ...Ae, ...t.overrides }),
|
|
897
|
+
[t.overrides]
|
|
898
|
+
), s = L(
|
|
899
|
+
() => ({ ...et, ...t.mdxComponents }),
|
|
900
|
+
[t.mdxComponents]
|
|
901
|
+
), a = L(() => new bt(t), [t]);
|
|
902
|
+
return T(() => {
|
|
903
|
+
a.initialize();
|
|
904
|
+
}, [a]), /* @__PURE__ */ n.jsx(tt, { client: Ne, children: /* @__PURE__ */ n.jsx(st, { children: /* @__PURE__ */ n.jsx(at, { value: a, children: /* @__PURE__ */ n.jsx(nt, { components: s, children: /* @__PURE__ */ n.jsx(rt, { children: /* @__PURE__ */ n.jsx(Ct, { value: e, children: /* @__PURE__ */ n.jsx(it, { children: /* @__PURE__ */ n.jsx(
|
|
905
|
+
we,
|
|
906
|
+
{
|
|
907
|
+
fallback: /* @__PURE__ */ n.jsx("div", { className: "grid place-items-center h-full", children: "Loading..." }),
|
|
908
|
+
children: /* @__PURE__ */ n.jsx(
|
|
909
|
+
Tt,
|
|
910
|
+
{
|
|
911
|
+
plugins: [
|
|
912
|
+
...t.plugins ?? [],
|
|
913
|
+
...t.authentication ? [t.authentication] : []
|
|
914
|
+
]
|
|
915
|
+
}
|
|
916
|
+
)
|
|
917
|
+
}
|
|
918
|
+
) }) }) }) }) }) }) });
|
|
919
|
+
}, Ft = je(It);
|
|
920
|
+
Ft.displayName = "DevPortal";
|
|
921
|
+
export {
|
|
922
|
+
Ft as DevPortal,
|
|
923
|
+
Vt as Link,
|
|
924
|
+
Ut as useMDXComponents
|
|
925
|
+
};
|