zudoku 0.1.1-dev.4 → 0.1.1-dev.41
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 +17 -38
- package/dist/app/App.js.map +1 -1
- package/dist/app/main.js +3 -15
- 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/cmds/dev.js +0 -1
- package/dist/cli/cmds/dev.js.map +1 -1
- package/dist/cli/common/logger.d.ts +1 -2
- package/dist/cli/common/logger.js +3 -3
- 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.d.ts +1 -1
- package/dist/cli/dev/handler.js +14 -3
- package/dist/cli/dev/handler.js.map +1 -1
- package/dist/config/config.d.ts +20 -7
- package/dist/index.d.ts +2 -6
- package/dist/index.js +1 -5
- package/dist/index.js.map +1 -1
- package/dist/lib/authentication/authentication.js.map +1 -0
- package/dist/{app → lib}/authentication/clerk.d.ts +2 -2
- package/dist/{app → lib}/authentication/clerk.js +9 -5
- package/dist/lib/authentication/clerk.js.map +1 -0
- package/dist/{app → lib}/authentication/openid.js.map +1 -1
- package/dist/{app → lib}/components/AnchorLink.js.map +1 -1
- package/dist/{app → lib}/components/CategoryHeading.js.map +1 -1
- package/dist/{app → lib/components}/DevPortal.d.ts +8 -7
- package/dist/lib/components/DevPortal.js +28 -0
- package/dist/lib/components/DevPortal.js.map +1 -0
- package/dist/{app → lib}/components/Dialog.js +1 -1
- package/dist/lib/components/Dialog.js.map +1 -0
- package/dist/{app → lib}/components/DynamicIcon.js.map +1 -1
- package/dist/{app → lib}/components/Header.js +1 -1
- package/dist/{app → lib}/components/Header.js.map +1 -1
- 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 +1 -2
- 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/{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.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.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/lib/components/navigation/SideNavigation.js.map +1 -0
- 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 +11 -4
- 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 +5 -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 +2 -1
- package/dist/{app → lib}/core/DevPortalContext.js +2 -2
- 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 +1 -1
- 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/lib/core/types/combine.js.map +1 -0
- package/dist/{app → lib}/oas/graphql/index.js.map +1 -1
- package/dist/{app → lib}/oas/graphql/server.js.map +1 -1
- 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/CreateApiKeys.d.ts +5 -0
- package/dist/lib/plugins/api-key/CreateApiKeys.js +37 -0
- package/dist/lib/plugins/api-key/CreateApiKeys.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 +76 -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/{app → lib}/plugins/markdown/MdxPage.js +8 -3
- 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 +1 -1
- package/dist/lib/plugins/openapi/ColorizedParam.js.map +1 -0
- package/dist/lib/plugins/openapi/MakeRequest.js +38 -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 +2 -2
- package/dist/{app → lib}/plugins/openapi/OperationList.js.map +1 -1
- package/dist/lib/plugins/openapi/OperationListItem.js +38 -0
- package/dist/lib/plugins/openapi/OperationListItem.js.map +1 -0
- package/dist/{app → lib}/plugins/openapi/ParameterList.js +1 -1
- package/dist/{app → lib}/plugins/openapi/ParameterList.js.map +1 -1
- package/dist/{app → lib}/plugins/openapi/ParameterListItem.js +1 -1
- 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 +2 -2
- package/dist/{app → lib}/plugins/openapi/ResponsesSidecarBox.js.map +1 -1
- package/dist/{app → lib}/plugins/openapi/Select.js.map +1 -1
- package/dist/{app → lib}/plugins/openapi/Sidecar.js +13 -13
- 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.js.map +1 -1
- package/dist/{app → lib}/plugins/openapi/graphql/gql.d.ts +2 -2
- package/dist/{app → lib}/plugins/openapi/graphql/gql.js +1 -1
- package/dist/{app → lib}/plugins/openapi/graphql/gql.js.map +1 -1
- package/dist/{app → lib}/plugins/openapi/graphql/graphql.d.ts +1 -0
- package/dist/{app → lib}/plugins/openapi/graphql/graphql.js +4 -0
- package/dist/{app → lib}/plugins/openapi/graphql/graphql.js.map +1 -1
- 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 +29 -0
- package/dist/lib/plugins/openapi/playground/Playground.js +90 -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 +35 -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 +19 -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 +1 -1
- package/dist/{app → lib}/plugins/openapi/worker/createSharedWorkerClient.js.map +1 -1
- 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/{app → lib}/ui/Button.d.ts +1 -1
- package/dist/{app → lib}/ui/Button.js.map +1 -1
- 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.js.map +1 -1
- package/dist/{app → lib}/util/MdxComponents.js +2 -2
- 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.d.ts +6 -0
- package/dist/ts.js +62 -0
- package/dist/ts.js.map +1 -0
- 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 +2 -0
- package/dist/vite/common.js.map +1 -0
- package/dist/vite/config.d.ts +10 -3
- package/dist/vite/config.js +108 -58
- package/dist/vite/config.js.map +1 -1
- package/dist/vite/config.test.js +4 -3
- package/dist/vite/config.test.js.map +1 -1
- package/dist/vite/dev-server.d.ts +2 -0
- package/dist/vite/dev-server.js +28 -8
- package/dist/vite/dev-server.js.map +1 -1
- package/dist/vite/html.d.ts +1 -1
- package/dist/vite/html.js +2 -3
- package/dist/vite/html.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.d.ts +4 -0
- package/dist/vite/plugin-api.js +49 -0
- package/dist/vite/plugin-api.js.map +1 -0
- package/dist/vite/plugin-auth.d.ts +4 -0
- package/dist/vite/plugin-auth.js +30 -0
- package/dist/vite/plugin-auth.js.map +1 -0
- 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 +7 -0
- package/dist/vite/plugin-config.js +25 -0
- package/dist/vite/plugin-config.js.map +1 -0
- package/dist/vite/plugin-docs.d.ts +4 -0
- package/dist/vite/plugin-docs.js +45 -0
- package/dist/vite/plugin-docs.js.map +1 -0
- package/dist/vite/plugin-docs.test.d.ts +1 -0
- package/dist/vite/plugin-docs.test.js +30 -0
- package/dist/vite/plugin-docs.test.js.map +1 -0
- package/dist/vite/plugin-html.d.ts +3 -0
- package/dist/vite/plugin-html.js +47 -0
- package/dist/vite/plugin-html.js.map +1 -0
- package/dist/vite/plugin-mdx.d.ts +8 -0
- package/dist/vite/plugin-mdx.js +61 -0
- package/dist/vite/plugin-mdx.js.map +1 -0
- 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.d.ts +2 -6
- package/dist/vite/plugin.js +22 -104
- package/dist/vite/plugin.js.map +1 -1
- package/lib/assets/index-BPdJm2ty.js +4764 -0
- package/lib/assets/worker-W78u54MC.js +14473 -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/urql-DMlBWUKL.js +1591 -0
- package/lib/util-c0rdJnKP.js +11742 -0
- package/lib/zudoku.auth-clerk.js +32 -0
- package/lib/zudoku.components.js +1294 -0
- package/lib/zudoku.openapi-worker.js +225 -0
- package/lib/zudoku.plugins.js +17280 -0
- package/package.json +69 -51
- package/src/app/App.tsx +19 -42
- package/src/app/main.tsx +5 -18
- package/src/{app → lib}/authentication/clerk.ts +11 -9
- package/src/{app → lib/components}/DevPortal.tsx +23 -42
- package/src/{app → lib}/components/Dialog.tsx +32 -32
- package/src/{app → lib}/components/Header.tsx +3 -3
- package/src/{app → lib/components}/Heading.tsx +2 -2
- package/src/{app → lib}/components/Layout.tsx +10 -6
- package/src/lib/components/Link.tsx +1 -0
- package/src/lib/components/Router.tsx +28 -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 +15 -5
- package/src/lib/components/navigation/SideNavigationWrapper.tsx +18 -0
- package/src/{app → lib}/core/DevPortalContext.ts +7 -3
- package/src/{app → lib}/core/plugins.ts +1 -1
- package/src/lib/plugins/api-key/CreateApiKeys.tsx +84 -0
- package/src/lib/plugins/api-key/SettingsApiKeys.tsx +122 -0
- package/src/lib/plugins/api-key/index.tsx +126 -0
- package/src/lib/plugins/index.ts +4 -0
- package/src/{app → lib}/plugins/markdown/MdxPage.tsx +23 -6
- package/src/{app → lib}/plugins/markdown/generateRoutes.tsx +1 -16
- package/src/{app → lib}/plugins/openapi/ColorizedParam.tsx +0 -2
- package/src/lib/plugins/openapi/MakeRequest.tsx +58 -0
- package/src/{app → lib}/plugins/openapi/OperationList.tsx +3 -3
- package/src/lib/plugins/openapi/OperationListItem.tsx +191 -0
- package/src/{app → lib}/plugins/openapi/ParameterList.tsx +1 -1
- package/src/{app → lib}/plugins/openapi/ParameterListItem.tsx +4 -1
- package/src/{app → lib}/plugins/openapi/RequestBodySidecarBox.tsx +1 -1
- package/src/{app → lib}/plugins/openapi/ResponsesSidecarBox.tsx +1 -2
- package/src/{app → lib}/plugins/openapi/Sidecar.tsx +20 -20
- package/src/{app → lib}/plugins/openapi/graphql/gql.ts +3 -3
- package/src/{app → lib}/plugins/openapi/graphql/graphql.ts +5 -0
- package/src/{app → lib}/plugins/openapi/index.tsx +8 -2
- package/src/lib/plugins/openapi/playground/Editor.tsx +6 -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 +324 -0
- package/src/lib/plugins/openapi/playground/QueryParams.tsx +111 -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 +24 -9
- package/src/{app → lib}/plugins/openapi/worker/createSharedWorkerClient.ts +1 -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/{app → lib}/util/MdxComponents.tsx +2 -1
- package/src/{app → lib}/util/createVariantComponent.tsx +13 -8
- 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.js.map +0 -1
- package/dist/app/authentication/clerk.js.map +0 -1
- package/dist/app/components/Dialog.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/SideNavigation.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/config.d.ts +0 -3
- package/dist/app/config.js +0 -9
- package/dist/app/config.js.map +0 -1
- 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.js.map +0 -1
- package/dist/app/markdowns.d.ts +0 -3
- package/dist/app/markdowns.js +0 -5
- package/dist/app/markdowns.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.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/OperationListItem.js +0 -15
- package/dist/app/plugins/openapi/OperationListItem.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/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/components/navigation/SideNavigationWrapper.tsx +0 -15
- package/src/app/config.ts +0 -20
- package/src/app/markdowns.ts +0 -7
- 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/OperationListItem.tsx +0 -55
- 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.d.ts +0 -0
- /package/dist/{app → lib}/authentication/authentication.js +0 -0
- /package/dist/{app → lib}/authentication/openid.d.ts +0 -0
- /package/dist/{app → lib}/authentication/openid.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/Dialog.d.ts +0 -0
- /package/dist/{app → lib}/components/DynamicIcon.d.ts +0 -0
- /package/dist/{app → lib}/components/DynamicIcon.js +0 -0
- /package/dist/{app → lib}/components/Header.d.ts +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.d.ts +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/ThemeContext.js +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}/core/types/combine.d.ts +0 -0
- /package/dist/{app → lib}/core/types/combine.js +0 -0
- /package/dist/{app → lib}/oas/graphql/index.d.ts +0 -0
- /package/dist/{app → lib}/oas/graphql/index.js +0 -0
- /package/dist/{app → lib}/oas/graphql/server.d.ts +0 -0
- /package/dist/{app → lib}/oas/graphql/server.js +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/ParameterList.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.d.ts +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/Button.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}/ui/Tabs.d.ts +0 -0
- /package/dist/{app → lib}/ui/Tabs.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}/authentication/authentication.ts +0 -0
- /package/src/{app → lib}/authentication/openid.ts +0 -0
- /package/src/{app → lib}/components/AnchorLink.tsx +0 -0
- /package/src/{app → lib}/components/CategoryHeading.tsx +0 -0
- /package/src/{app → lib}/components/DynamicIcon.tsx +0 -0
- /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 +0 -0
- /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}/core/types/combine.ts +0 -0
- /package/src/{app → lib}/oas/graphql/index.ts +0 -0
- /package/src/{app → lib}/oas/graphql/server.ts +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 +0 -0
- /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/Button.tsx +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}/ui/Tabs.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,1294 @@
|
|
|
1
|
+
var pt = Object.defineProperty;
|
|
2
|
+
var we = (t) => {
|
|
3
|
+
throw TypeError(t);
|
|
4
|
+
};
|
|
5
|
+
var vt = (t, e, n) => e in t ? pt(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
|
|
6
|
+
var C = (t, e, n) => vt(t, typeof e != "symbol" ? e + "" : e, n), je = (t, e, n) => e.has(t) || we("Cannot " + n);
|
|
7
|
+
var o = (t, e, n) => (je(t, e, "read from private field"), n ? n.call(t) : e.get(t)), T = (t, e, n) => e.has(t) ? we("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, n), P = (t, e, n, r) => (je(t, e, "write to private field"), r ? r.call(t, n) : e.set(t, n), n);
|
|
8
|
+
var X = (t, e, n, r) => ({
|
|
9
|
+
set _(s) {
|
|
10
|
+
P(t, e, s, n);
|
|
11
|
+
},
|
|
12
|
+
get _() {
|
|
13
|
+
return o(t, e, r);
|
|
14
|
+
}
|
|
15
|
+
});
|
|
16
|
+
import { S as We, h as Ue, Q as mt, n as D, m as Ce, M as gt, a as Pe, b as I, e as yt, c as xt, d as bt, f as St, o as Ae, r as Ne, g as Ot, i as Re, p as De, s as _t, j as Et, k as $, u as ge, l as a, N as fe, q as wt, t as jt, v as z, w as ye, x as Ct, y as Pt, z as At, P as xe, A as Nt, B as Rt, C as Dt, D as Tt, E as be, F as pe, G as Ge, H as Mt, I as ne, J as Lt, K as It, L as kt, O as qt, R as Qt, T as Vt, U as Ft, V as Ht, W as Kt, X as Bt, Y as zt, Z as Wt, _ as Ut, $ as Gt, a0 as $t } from "./util-c0rdJnKP.js";
|
|
17
|
+
import { a1 as Gn } from "./util-c0rdJnKP.js";
|
|
18
|
+
import * as M from "react";
|
|
19
|
+
import Y, { memo as $e, createContext as Yt, useEffect as B, useRef as re, useState as Xt, forwardRef as Jt, Suspense as Ye, useMemo as te } from "react";
|
|
20
|
+
var L, Ke, Zt = (Ke = class extends We {
|
|
21
|
+
constructor(e = {}) {
|
|
22
|
+
super();
|
|
23
|
+
T(this, L);
|
|
24
|
+
this.config = e, P(this, L, /* @__PURE__ */ new Map());
|
|
25
|
+
}
|
|
26
|
+
build(e, n, r) {
|
|
27
|
+
const s = n.queryKey, i = n.queryHash ?? Ue(s, n);
|
|
28
|
+
let c = this.get(i);
|
|
29
|
+
return c || (c = new mt({
|
|
30
|
+
cache: this,
|
|
31
|
+
queryKey: s,
|
|
32
|
+
queryHash: i,
|
|
33
|
+
options: e.defaultQueryOptions(n),
|
|
34
|
+
state: r,
|
|
35
|
+
defaultOptions: e.getQueryDefaults(s)
|
|
36
|
+
}), this.add(c)), c;
|
|
37
|
+
}
|
|
38
|
+
add(e) {
|
|
39
|
+
o(this, L).has(e.queryHash) || (o(this, L).set(e.queryHash, e), this.notify({
|
|
40
|
+
type: "added",
|
|
41
|
+
query: e
|
|
42
|
+
}));
|
|
43
|
+
}
|
|
44
|
+
remove(e) {
|
|
45
|
+
const n = o(this, L).get(e.queryHash);
|
|
46
|
+
n && (e.destroy(), n === e && o(this, L).delete(e.queryHash), this.notify({ type: "removed", query: e }));
|
|
47
|
+
}
|
|
48
|
+
clear() {
|
|
49
|
+
D.batch(() => {
|
|
50
|
+
this.getAll().forEach((e) => {
|
|
51
|
+
this.remove(e);
|
|
52
|
+
});
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
get(e) {
|
|
56
|
+
return o(this, L).get(e);
|
|
57
|
+
}
|
|
58
|
+
getAll() {
|
|
59
|
+
return [...o(this, L).values()];
|
|
60
|
+
}
|
|
61
|
+
find(e) {
|
|
62
|
+
const n = { exact: !0, ...e };
|
|
63
|
+
return this.getAll().find(
|
|
64
|
+
(r) => Ce(n, r)
|
|
65
|
+
);
|
|
66
|
+
}
|
|
67
|
+
findAll(e = {}) {
|
|
68
|
+
const n = this.getAll();
|
|
69
|
+
return Object.keys(e).length > 0 ? n.filter((r) => Ce(e, r)) : n;
|
|
70
|
+
}
|
|
71
|
+
notify(e) {
|
|
72
|
+
D.batch(() => {
|
|
73
|
+
this.listeners.forEach((n) => {
|
|
74
|
+
n(e);
|
|
75
|
+
});
|
|
76
|
+
});
|
|
77
|
+
}
|
|
78
|
+
onFocus() {
|
|
79
|
+
D.batch(() => {
|
|
80
|
+
this.getAll().forEach((e) => {
|
|
81
|
+
e.onFocus();
|
|
82
|
+
});
|
|
83
|
+
});
|
|
84
|
+
}
|
|
85
|
+
onOnline() {
|
|
86
|
+
D.batch(() => {
|
|
87
|
+
this.getAll().forEach((e) => {
|
|
88
|
+
e.onOnline();
|
|
89
|
+
});
|
|
90
|
+
});
|
|
91
|
+
}
|
|
92
|
+
}, L = new WeakMap(), Ke), R, G, Be, en = (Be = class extends We {
|
|
93
|
+
constructor(e = {}) {
|
|
94
|
+
super();
|
|
95
|
+
T(this, R);
|
|
96
|
+
T(this, G);
|
|
97
|
+
this.config = e, P(this, R, /* @__PURE__ */ new Map()), P(this, G, Date.now());
|
|
98
|
+
}
|
|
99
|
+
build(e, n, r) {
|
|
100
|
+
const s = new gt({
|
|
101
|
+
mutationCache: this,
|
|
102
|
+
mutationId: ++X(this, G)._,
|
|
103
|
+
options: e.defaultMutationOptions(n),
|
|
104
|
+
state: r
|
|
105
|
+
});
|
|
106
|
+
return this.add(s), s;
|
|
107
|
+
}
|
|
108
|
+
add(e) {
|
|
109
|
+
const n = J(e), r = o(this, R).get(n) ?? [];
|
|
110
|
+
r.push(e), o(this, R).set(n, r), this.notify({ type: "added", mutation: e });
|
|
111
|
+
}
|
|
112
|
+
remove(e) {
|
|
113
|
+
var r;
|
|
114
|
+
const n = J(e);
|
|
115
|
+
if (o(this, R).has(n)) {
|
|
116
|
+
const s = (r = o(this, R).get(n)) == null ? void 0 : r.filter((i) => i !== e);
|
|
117
|
+
s && (s.length === 0 ? o(this, R).delete(n) : o(this, R).set(n, s));
|
|
118
|
+
}
|
|
119
|
+
this.notify({ type: "removed", mutation: e });
|
|
120
|
+
}
|
|
121
|
+
canRun(e) {
|
|
122
|
+
var r;
|
|
123
|
+
const n = (r = o(this, R).get(J(e))) == null ? void 0 : r.find((s) => s.state.status === "pending");
|
|
124
|
+
return !n || n === e;
|
|
125
|
+
}
|
|
126
|
+
runNext(e) {
|
|
127
|
+
var r;
|
|
128
|
+
const n = (r = o(this, R).get(J(e))) == null ? void 0 : r.find((s) => s !== e && s.state.isPaused);
|
|
129
|
+
return (n == null ? void 0 : n.continue()) ?? Promise.resolve();
|
|
130
|
+
}
|
|
131
|
+
clear() {
|
|
132
|
+
D.batch(() => {
|
|
133
|
+
this.getAll().forEach((e) => {
|
|
134
|
+
this.remove(e);
|
|
135
|
+
});
|
|
136
|
+
});
|
|
137
|
+
}
|
|
138
|
+
getAll() {
|
|
139
|
+
return [...o(this, R).values()].flat();
|
|
140
|
+
}
|
|
141
|
+
find(e) {
|
|
142
|
+
const n = { exact: !0, ...e };
|
|
143
|
+
return this.getAll().find(
|
|
144
|
+
(r) => Pe(n, r)
|
|
145
|
+
);
|
|
146
|
+
}
|
|
147
|
+
findAll(e = {}) {
|
|
148
|
+
return this.getAll().filter((n) => Pe(e, n));
|
|
149
|
+
}
|
|
150
|
+
notify(e) {
|
|
151
|
+
D.batch(() => {
|
|
152
|
+
this.listeners.forEach((n) => {
|
|
153
|
+
n(e);
|
|
154
|
+
});
|
|
155
|
+
});
|
|
156
|
+
}
|
|
157
|
+
resumePausedMutations() {
|
|
158
|
+
const e = this.getAll().filter((n) => n.state.isPaused);
|
|
159
|
+
return D.batch(
|
|
160
|
+
() => Promise.all(
|
|
161
|
+
e.map((n) => n.continue().catch(I))
|
|
162
|
+
)
|
|
163
|
+
);
|
|
164
|
+
}
|
|
165
|
+
}, R = new WeakMap(), G = new WeakMap(), Be);
|
|
166
|
+
function J(t) {
|
|
167
|
+
var e;
|
|
168
|
+
return ((e = t.options.scope) == null ? void 0 : e.id) ?? String(t.mutationId);
|
|
169
|
+
}
|
|
170
|
+
function tn(t) {
|
|
171
|
+
return {
|
|
172
|
+
onFetch: (e, n) => {
|
|
173
|
+
const r = async () => {
|
|
174
|
+
var x, y, b, A, E;
|
|
175
|
+
const s = e.options, i = (b = (y = (x = e.fetchOptions) == null ? void 0 : x.meta) == null ? void 0 : y.fetchMore) == null ? void 0 : b.direction, c = ((A = e.state.data) == null ? void 0 : A.pages) || [], m = ((E = e.state.data) == null ? void 0 : E.pageParams) || [], _ = { pages: [], pageParams: [] };
|
|
176
|
+
let g = !1;
|
|
177
|
+
const l = (h) => {
|
|
178
|
+
Object.defineProperty(h, "signal", {
|
|
179
|
+
enumerable: !0,
|
|
180
|
+
get: () => (e.signal.aborted ? g = !0 : e.signal.addEventListener("abort", () => {
|
|
181
|
+
g = !0;
|
|
182
|
+
}), e.signal)
|
|
183
|
+
});
|
|
184
|
+
}, d = yt(e.options, e.fetchOptions), f = async (h, u, S) => {
|
|
185
|
+
if (g)
|
|
186
|
+
return Promise.reject();
|
|
187
|
+
if (u == null && h.pages.length)
|
|
188
|
+
return Promise.resolve(h);
|
|
189
|
+
const v = {
|
|
190
|
+
queryKey: e.queryKey,
|
|
191
|
+
pageParam: u,
|
|
192
|
+
direction: S ? "backward" : "forward",
|
|
193
|
+
meta: e.options.meta
|
|
194
|
+
};
|
|
195
|
+
l(v);
|
|
196
|
+
const w = await d(
|
|
197
|
+
v
|
|
198
|
+
), { maxPages: N } = e.options, j = S ? xt : bt;
|
|
199
|
+
return {
|
|
200
|
+
pages: j(h.pages, w, N),
|
|
201
|
+
pageParams: j(h.pageParams, u, N)
|
|
202
|
+
};
|
|
203
|
+
};
|
|
204
|
+
let p;
|
|
205
|
+
if (i && c.length) {
|
|
206
|
+
const h = i === "backward", u = h ? nn : Te, S = {
|
|
207
|
+
pages: c,
|
|
208
|
+
pageParams: m
|
|
209
|
+
}, v = u(s, S);
|
|
210
|
+
p = await f(S, v, h);
|
|
211
|
+
} else {
|
|
212
|
+
p = await f(
|
|
213
|
+
_,
|
|
214
|
+
m[0] ?? s.initialPageParam
|
|
215
|
+
);
|
|
216
|
+
const h = t ?? c.length;
|
|
217
|
+
for (let u = 1; u < h; u++) {
|
|
218
|
+
const S = Te(s, p);
|
|
219
|
+
p = await f(p, S);
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
return p;
|
|
223
|
+
};
|
|
224
|
+
e.options.persister ? e.fetchFn = () => {
|
|
225
|
+
var s, i;
|
|
226
|
+
return (i = (s = e.options).persister) == null ? void 0 : i.call(
|
|
227
|
+
s,
|
|
228
|
+
r,
|
|
229
|
+
{
|
|
230
|
+
queryKey: e.queryKey,
|
|
231
|
+
meta: e.options.meta,
|
|
232
|
+
signal: e.signal
|
|
233
|
+
},
|
|
234
|
+
n
|
|
235
|
+
);
|
|
236
|
+
} : e.fetchFn = r;
|
|
237
|
+
}
|
|
238
|
+
};
|
|
239
|
+
}
|
|
240
|
+
function Te(t, { pages: e, pageParams: n }) {
|
|
241
|
+
const r = e.length - 1;
|
|
242
|
+
return t.getNextPageParam(
|
|
243
|
+
e[r],
|
|
244
|
+
e,
|
|
245
|
+
n[r],
|
|
246
|
+
n
|
|
247
|
+
);
|
|
248
|
+
}
|
|
249
|
+
function nn(t, { pages: e, pageParams: n }) {
|
|
250
|
+
var r;
|
|
251
|
+
return (r = t.getPreviousPageParam) == null ? void 0 : r.call(
|
|
252
|
+
t,
|
|
253
|
+
e[0],
|
|
254
|
+
e,
|
|
255
|
+
n[0],
|
|
256
|
+
n
|
|
257
|
+
);
|
|
258
|
+
}
|
|
259
|
+
var O, k, q, V, F, Q, H, K, ze, rn = (ze = class {
|
|
260
|
+
constructor(t = {}) {
|
|
261
|
+
T(this, O);
|
|
262
|
+
T(this, k);
|
|
263
|
+
T(this, q);
|
|
264
|
+
T(this, V);
|
|
265
|
+
T(this, F);
|
|
266
|
+
T(this, Q);
|
|
267
|
+
T(this, H);
|
|
268
|
+
T(this, K);
|
|
269
|
+
P(this, O, t.queryCache || new Zt()), P(this, k, t.mutationCache || new en()), P(this, q, t.defaultOptions || {}), P(this, V, /* @__PURE__ */ new Map()), P(this, F, /* @__PURE__ */ new Map()), P(this, Q, 0);
|
|
270
|
+
}
|
|
271
|
+
mount() {
|
|
272
|
+
X(this, Q)._++, o(this, Q) === 1 && (P(this, H, St.subscribe(async (t) => {
|
|
273
|
+
t && (await this.resumePausedMutations(), o(this, O).onFocus());
|
|
274
|
+
})), P(this, K, Ae.subscribe(async (t) => {
|
|
275
|
+
t && (await this.resumePausedMutations(), o(this, O).onOnline());
|
|
276
|
+
})));
|
|
277
|
+
}
|
|
278
|
+
unmount() {
|
|
279
|
+
var t, e;
|
|
280
|
+
X(this, Q)._--, o(this, Q) === 0 && ((t = o(this, H)) == null || t.call(this), P(this, H, void 0), (e = o(this, K)) == null || e.call(this), P(this, K, void 0));
|
|
281
|
+
}
|
|
282
|
+
isFetching(t) {
|
|
283
|
+
return o(this, O).findAll({ ...t, fetchStatus: "fetching" }).length;
|
|
284
|
+
}
|
|
285
|
+
isMutating(t) {
|
|
286
|
+
return o(this, k).findAll({ ...t, status: "pending" }).length;
|
|
287
|
+
}
|
|
288
|
+
getQueryData(t) {
|
|
289
|
+
var n;
|
|
290
|
+
const e = this.defaultQueryOptions({ queryKey: t });
|
|
291
|
+
return (n = o(this, O).get(e.queryHash)) == null ? void 0 : n.state.data;
|
|
292
|
+
}
|
|
293
|
+
ensureQueryData(t) {
|
|
294
|
+
const e = this.getQueryData(t.queryKey);
|
|
295
|
+
if (e === void 0)
|
|
296
|
+
return this.fetchQuery(t);
|
|
297
|
+
{
|
|
298
|
+
const n = this.defaultQueryOptions(t), r = o(this, O).build(this, n);
|
|
299
|
+
return t.revalidateIfStale && r.isStaleByTime(Ne(n.staleTime, r)) && this.prefetchQuery(n), Promise.resolve(e);
|
|
300
|
+
}
|
|
301
|
+
}
|
|
302
|
+
getQueriesData(t) {
|
|
303
|
+
return o(this, O).findAll(t).map(({ queryKey: e, state: n }) => {
|
|
304
|
+
const r = n.data;
|
|
305
|
+
return [e, r];
|
|
306
|
+
});
|
|
307
|
+
}
|
|
308
|
+
setQueryData(t, e, n) {
|
|
309
|
+
const r = this.defaultQueryOptions({ queryKey: t }), s = o(this, O).get(
|
|
310
|
+
r.queryHash
|
|
311
|
+
), i = s == null ? void 0 : s.state.data, c = Ot(e, i);
|
|
312
|
+
if (c !== void 0)
|
|
313
|
+
return o(this, O).build(this, r).setData(c, { ...n, manual: !0 });
|
|
314
|
+
}
|
|
315
|
+
setQueriesData(t, e, n) {
|
|
316
|
+
return D.batch(
|
|
317
|
+
() => o(this, O).findAll(t).map(({ queryKey: r }) => [
|
|
318
|
+
r,
|
|
319
|
+
this.setQueryData(r, e, n)
|
|
320
|
+
])
|
|
321
|
+
);
|
|
322
|
+
}
|
|
323
|
+
getQueryState(t) {
|
|
324
|
+
var n;
|
|
325
|
+
const e = this.defaultQueryOptions({ queryKey: t });
|
|
326
|
+
return (n = o(this, O).get(e.queryHash)) == null ? void 0 : n.state;
|
|
327
|
+
}
|
|
328
|
+
removeQueries(t) {
|
|
329
|
+
const e = o(this, O);
|
|
330
|
+
D.batch(() => {
|
|
331
|
+
e.findAll(t).forEach((n) => {
|
|
332
|
+
e.remove(n);
|
|
333
|
+
});
|
|
334
|
+
});
|
|
335
|
+
}
|
|
336
|
+
resetQueries(t, e) {
|
|
337
|
+
const n = o(this, O), r = {
|
|
338
|
+
type: "active",
|
|
339
|
+
...t
|
|
340
|
+
};
|
|
341
|
+
return D.batch(() => (n.findAll(t).forEach((s) => {
|
|
342
|
+
s.reset();
|
|
343
|
+
}), this.refetchQueries(r, e)));
|
|
344
|
+
}
|
|
345
|
+
cancelQueries(t = {}, e = {}) {
|
|
346
|
+
const n = { revert: !0, ...e }, r = D.batch(
|
|
347
|
+
() => o(this, O).findAll(t).map((s) => s.cancel(n))
|
|
348
|
+
);
|
|
349
|
+
return Promise.all(r).then(I).catch(I);
|
|
350
|
+
}
|
|
351
|
+
invalidateQueries(t = {}, e = {}) {
|
|
352
|
+
return D.batch(() => {
|
|
353
|
+
if (o(this, O).findAll(t).forEach((r) => {
|
|
354
|
+
r.invalidate();
|
|
355
|
+
}), t.refetchType === "none")
|
|
356
|
+
return Promise.resolve();
|
|
357
|
+
const n = {
|
|
358
|
+
...t,
|
|
359
|
+
type: t.refetchType ?? t.type ?? "active"
|
|
360
|
+
};
|
|
361
|
+
return this.refetchQueries(n, e);
|
|
362
|
+
});
|
|
363
|
+
}
|
|
364
|
+
refetchQueries(t = {}, e) {
|
|
365
|
+
const n = {
|
|
366
|
+
...e,
|
|
367
|
+
cancelRefetch: (e == null ? void 0 : e.cancelRefetch) ?? !0
|
|
368
|
+
}, r = D.batch(
|
|
369
|
+
() => o(this, O).findAll(t).filter((s) => !s.isDisabled()).map((s) => {
|
|
370
|
+
let i = s.fetch(void 0, n);
|
|
371
|
+
return n.throwOnError || (i = i.catch(I)), s.state.fetchStatus === "paused" ? Promise.resolve() : i;
|
|
372
|
+
})
|
|
373
|
+
);
|
|
374
|
+
return Promise.all(r).then(I);
|
|
375
|
+
}
|
|
376
|
+
fetchQuery(t) {
|
|
377
|
+
const e = this.defaultQueryOptions(t);
|
|
378
|
+
e.retry === void 0 && (e.retry = !1);
|
|
379
|
+
const n = o(this, O).build(this, e);
|
|
380
|
+
return n.isStaleByTime(
|
|
381
|
+
Ne(e.staleTime, n)
|
|
382
|
+
) ? n.fetch(e) : Promise.resolve(n.state.data);
|
|
383
|
+
}
|
|
384
|
+
prefetchQuery(t) {
|
|
385
|
+
return this.fetchQuery(t).then(I).catch(I);
|
|
386
|
+
}
|
|
387
|
+
fetchInfiniteQuery(t) {
|
|
388
|
+
return t.behavior = tn(t.pages), this.fetchQuery(t);
|
|
389
|
+
}
|
|
390
|
+
prefetchInfiniteQuery(t) {
|
|
391
|
+
return this.fetchInfiniteQuery(t).then(I).catch(I);
|
|
392
|
+
}
|
|
393
|
+
resumePausedMutations() {
|
|
394
|
+
return Ae.isOnline() ? o(this, k).resumePausedMutations() : Promise.resolve();
|
|
395
|
+
}
|
|
396
|
+
getQueryCache() {
|
|
397
|
+
return o(this, O);
|
|
398
|
+
}
|
|
399
|
+
getMutationCache() {
|
|
400
|
+
return o(this, k);
|
|
401
|
+
}
|
|
402
|
+
getDefaultOptions() {
|
|
403
|
+
return o(this, q);
|
|
404
|
+
}
|
|
405
|
+
setDefaultOptions(t) {
|
|
406
|
+
P(this, q, t);
|
|
407
|
+
}
|
|
408
|
+
setQueryDefaults(t, e) {
|
|
409
|
+
o(this, V).set(Re(t), {
|
|
410
|
+
queryKey: t,
|
|
411
|
+
defaultOptions: e
|
|
412
|
+
});
|
|
413
|
+
}
|
|
414
|
+
getQueryDefaults(t) {
|
|
415
|
+
const e = [...o(this, V).values()];
|
|
416
|
+
let n = {};
|
|
417
|
+
return e.forEach((r) => {
|
|
418
|
+
De(t, r.queryKey) && (n = { ...n, ...r.defaultOptions });
|
|
419
|
+
}), n;
|
|
420
|
+
}
|
|
421
|
+
setMutationDefaults(t, e) {
|
|
422
|
+
o(this, F).set(Re(t), {
|
|
423
|
+
mutationKey: t,
|
|
424
|
+
defaultOptions: e
|
|
425
|
+
});
|
|
426
|
+
}
|
|
427
|
+
getMutationDefaults(t) {
|
|
428
|
+
const e = [...o(this, F).values()];
|
|
429
|
+
let n = {};
|
|
430
|
+
return e.forEach((r) => {
|
|
431
|
+
De(t, r.mutationKey) && (n = { ...n, ...r.defaultOptions });
|
|
432
|
+
}), n;
|
|
433
|
+
}
|
|
434
|
+
defaultQueryOptions(t) {
|
|
435
|
+
if (t._defaulted)
|
|
436
|
+
return t;
|
|
437
|
+
const e = {
|
|
438
|
+
...o(this, q).queries,
|
|
439
|
+
...this.getQueryDefaults(t.queryKey),
|
|
440
|
+
...t,
|
|
441
|
+
_defaulted: !0
|
|
442
|
+
};
|
|
443
|
+
return e.queryHash || (e.queryHash = Ue(
|
|
444
|
+
e.queryKey,
|
|
445
|
+
e
|
|
446
|
+
)), 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 === _t && (e.enabled = !1), e;
|
|
447
|
+
}
|
|
448
|
+
defaultMutationOptions(t) {
|
|
449
|
+
return t != null && t._defaulted ? t : {
|
|
450
|
+
...o(this, q).mutations,
|
|
451
|
+
...(t == null ? void 0 : t.mutationKey) && this.getMutationDefaults(t.mutationKey),
|
|
452
|
+
...t,
|
|
453
|
+
_defaulted: !0
|
|
454
|
+
};
|
|
455
|
+
}
|
|
456
|
+
clear() {
|
|
457
|
+
o(this, O).clear(), o(this, k).clear();
|
|
458
|
+
}
|
|
459
|
+
}, O = new WeakMap(), k = new WeakMap(), q = new WeakMap(), V = new WeakMap(), F = new WeakMap(), Q = new WeakMap(), H = new WeakMap(), K = new WeakMap(), ze), sn = { BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 };
|
|
460
|
+
const Me = (t) => {
|
|
461
|
+
let e;
|
|
462
|
+
const n = /* @__PURE__ */ new Set(), r = (l, d) => {
|
|
463
|
+
const f = typeof l == "function" ? l(e) : l;
|
|
464
|
+
if (!Object.is(f, e)) {
|
|
465
|
+
const p = e;
|
|
466
|
+
e = d ?? (typeof f != "object" || f === null) ? f : Object.assign({}, e, f), n.forEach((x) => x(e, p));
|
|
467
|
+
}
|
|
468
|
+
}, s = () => e, _ = { setState: r, getState: s, getInitialState: () => g, subscribe: (l) => (n.add(l), () => n.delete(l)), destroy: () => {
|
|
469
|
+
(sn ? "production" : void 0) !== "production" && console.warn(
|
|
470
|
+
"[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."
|
|
471
|
+
), n.clear();
|
|
472
|
+
} }, g = e = t(r, s, _);
|
|
473
|
+
return _;
|
|
474
|
+
}, an = (t) => t ? Me(t) : Me;
|
|
475
|
+
var ve = { exports: {} }, le = {}, Z = { exports: {} }, ue = {};
|
|
476
|
+
/**
|
|
477
|
+
* @license React
|
|
478
|
+
* use-sync-external-store-shim.production.min.js
|
|
479
|
+
*
|
|
480
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
481
|
+
*
|
|
482
|
+
* This source code is licensed under the MIT license found in the
|
|
483
|
+
* LICENSE file in the root directory of this source tree.
|
|
484
|
+
*/
|
|
485
|
+
var Le;
|
|
486
|
+
function on() {
|
|
487
|
+
if (Le) return ue;
|
|
488
|
+
Le = 1;
|
|
489
|
+
var t = Y;
|
|
490
|
+
function e(d, f) {
|
|
491
|
+
return d === f && (d !== 0 || 1 / d === 1 / f) || d !== d && f !== f;
|
|
492
|
+
}
|
|
493
|
+
var n = typeof Object.is == "function" ? Object.is : e, r = t.useState, s = t.useEffect, i = t.useLayoutEffect, c = t.useDebugValue;
|
|
494
|
+
function m(d, f) {
|
|
495
|
+
var p = f(), x = r({ inst: { value: p, getSnapshot: f } }), y = x[0].inst, b = x[1];
|
|
496
|
+
return i(function() {
|
|
497
|
+
y.value = p, y.getSnapshot = f, _(y) && b({ inst: y });
|
|
498
|
+
}, [d, p, f]), s(function() {
|
|
499
|
+
return _(y) && b({ inst: y }), d(function() {
|
|
500
|
+
_(y) && b({ inst: y });
|
|
501
|
+
});
|
|
502
|
+
}, [d]), c(p), p;
|
|
503
|
+
}
|
|
504
|
+
function _(d) {
|
|
505
|
+
var f = d.getSnapshot;
|
|
506
|
+
d = d.value;
|
|
507
|
+
try {
|
|
508
|
+
var p = f();
|
|
509
|
+
return !n(d, p);
|
|
510
|
+
} catch {
|
|
511
|
+
return !0;
|
|
512
|
+
}
|
|
513
|
+
}
|
|
514
|
+
function g(d, f) {
|
|
515
|
+
return f();
|
|
516
|
+
}
|
|
517
|
+
var l = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? g : m;
|
|
518
|
+
return ue.useSyncExternalStore = t.useSyncExternalStore !== void 0 ? t.useSyncExternalStore : l, ue;
|
|
519
|
+
}
|
|
520
|
+
var de = {};
|
|
521
|
+
/**
|
|
522
|
+
* @license React
|
|
523
|
+
* use-sync-external-store-shim.development.js
|
|
524
|
+
*
|
|
525
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
526
|
+
*
|
|
527
|
+
* This source code is licensed under the MIT license found in the
|
|
528
|
+
* LICENSE file in the root directory of this source tree.
|
|
529
|
+
*/
|
|
530
|
+
var Ie;
|
|
531
|
+
function cn() {
|
|
532
|
+
return Ie || (Ie = 1, process.env.NODE_ENV !== "production" && function() {
|
|
533
|
+
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
|
|
534
|
+
var t = Y, e = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
535
|
+
function n(h) {
|
|
536
|
+
{
|
|
537
|
+
for (var u = arguments.length, S = new Array(u > 1 ? u - 1 : 0), v = 1; v < u; v++)
|
|
538
|
+
S[v - 1] = arguments[v];
|
|
539
|
+
r("error", h, S);
|
|
540
|
+
}
|
|
541
|
+
}
|
|
542
|
+
function r(h, u, S) {
|
|
543
|
+
{
|
|
544
|
+
var v = e.ReactDebugCurrentFrame, w = v.getStackAddendum();
|
|
545
|
+
w !== "" && (u += "%s", S = S.concat([w]));
|
|
546
|
+
var N = S.map(function(j) {
|
|
547
|
+
return String(j);
|
|
548
|
+
});
|
|
549
|
+
N.unshift("Warning: " + u), Function.prototype.apply.call(console[h], console, N);
|
|
550
|
+
}
|
|
551
|
+
}
|
|
552
|
+
function s(h, u) {
|
|
553
|
+
return h === u && (h !== 0 || 1 / h === 1 / u) || h !== h && u !== u;
|
|
554
|
+
}
|
|
555
|
+
var i = typeof Object.is == "function" ? Object.is : s, c = t.useState, m = t.useEffect, _ = t.useLayoutEffect, g = t.useDebugValue, l = !1, d = !1;
|
|
556
|
+
function f(h, u, S) {
|
|
557
|
+
l || t.startTransition !== void 0 && (l = !0, n("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));
|
|
558
|
+
var v = u();
|
|
559
|
+
if (!d) {
|
|
560
|
+
var w = u();
|
|
561
|
+
i(v, w) || (n("The result of getSnapshot should be cached to avoid an infinite loop"), d = !0);
|
|
562
|
+
}
|
|
563
|
+
var N = c({
|
|
564
|
+
inst: {
|
|
565
|
+
value: v,
|
|
566
|
+
getSnapshot: u
|
|
567
|
+
}
|
|
568
|
+
}), j = N[0].inst, W = N[1];
|
|
569
|
+
return _(function() {
|
|
570
|
+
j.value = v, j.getSnapshot = u, p(j) && W({
|
|
571
|
+
inst: j
|
|
572
|
+
});
|
|
573
|
+
}, [h, v, u]), m(function() {
|
|
574
|
+
p(j) && W({
|
|
575
|
+
inst: j
|
|
576
|
+
});
|
|
577
|
+
var se = function() {
|
|
578
|
+
p(j) && W({
|
|
579
|
+
inst: j
|
|
580
|
+
});
|
|
581
|
+
};
|
|
582
|
+
return h(se);
|
|
583
|
+
}, [h]), g(v), v;
|
|
584
|
+
}
|
|
585
|
+
function p(h) {
|
|
586
|
+
var u = h.getSnapshot, S = h.value;
|
|
587
|
+
try {
|
|
588
|
+
var v = u();
|
|
589
|
+
return !i(S, v);
|
|
590
|
+
} catch {
|
|
591
|
+
return !0;
|
|
592
|
+
}
|
|
593
|
+
}
|
|
594
|
+
function x(h, u, S) {
|
|
595
|
+
return u();
|
|
596
|
+
}
|
|
597
|
+
var y = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u", b = !y, A = b ? x : f, E = t.useSyncExternalStore !== void 0 ? t.useSyncExternalStore : A;
|
|
598
|
+
de.useSyncExternalStore = E, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
|
|
599
|
+
}()), de;
|
|
600
|
+
}
|
|
601
|
+
var ke;
|
|
602
|
+
function Xe() {
|
|
603
|
+
return ke || (ke = 1, process.env.NODE_ENV === "production" ? Z.exports = on() : Z.exports = cn()), Z.exports;
|
|
604
|
+
}
|
|
605
|
+
/**
|
|
606
|
+
* @license React
|
|
607
|
+
* use-sync-external-store-shim/with-selector.production.min.js
|
|
608
|
+
*
|
|
609
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
610
|
+
*
|
|
611
|
+
* This source code is licensed under the MIT license found in the
|
|
612
|
+
* LICENSE file in the root directory of this source tree.
|
|
613
|
+
*/
|
|
614
|
+
var qe;
|
|
615
|
+
function ln() {
|
|
616
|
+
if (qe) return le;
|
|
617
|
+
qe = 1;
|
|
618
|
+
var t = Y, e = Xe();
|
|
619
|
+
function n(g, l) {
|
|
620
|
+
return g === l && (g !== 0 || 1 / g === 1 / l) || g !== g && l !== l;
|
|
621
|
+
}
|
|
622
|
+
var r = typeof Object.is == "function" ? Object.is : n, s = e.useSyncExternalStore, i = t.useRef, c = t.useEffect, m = t.useMemo, _ = t.useDebugValue;
|
|
623
|
+
return le.useSyncExternalStoreWithSelector = function(g, l, d, f, p) {
|
|
624
|
+
var x = i(null);
|
|
625
|
+
if (x.current === null) {
|
|
626
|
+
var y = { hasValue: !1, value: null };
|
|
627
|
+
x.current = y;
|
|
628
|
+
} else y = x.current;
|
|
629
|
+
x = m(function() {
|
|
630
|
+
function A(v) {
|
|
631
|
+
if (!E) {
|
|
632
|
+
if (E = !0, h = v, v = f(v), p !== void 0 && y.hasValue) {
|
|
633
|
+
var w = y.value;
|
|
634
|
+
if (p(w, v)) return u = w;
|
|
635
|
+
}
|
|
636
|
+
return u = v;
|
|
637
|
+
}
|
|
638
|
+
if (w = u, r(h, v)) return w;
|
|
639
|
+
var N = f(v);
|
|
640
|
+
return p !== void 0 && p(w, N) ? w : (h = v, u = N);
|
|
641
|
+
}
|
|
642
|
+
var E = !1, h, u, S = d === void 0 ? null : d;
|
|
643
|
+
return [function() {
|
|
644
|
+
return A(l());
|
|
645
|
+
}, S === null ? void 0 : function() {
|
|
646
|
+
return A(S());
|
|
647
|
+
}];
|
|
648
|
+
}, [l, d, f, p]);
|
|
649
|
+
var b = s(g, x[0], x[1]);
|
|
650
|
+
return c(function() {
|
|
651
|
+
y.hasValue = !0, y.value = b;
|
|
652
|
+
}, [b]), _(b), b;
|
|
653
|
+
}, le;
|
|
654
|
+
}
|
|
655
|
+
var he = {};
|
|
656
|
+
/**
|
|
657
|
+
* @license React
|
|
658
|
+
* use-sync-external-store-shim/with-selector.development.js
|
|
659
|
+
*
|
|
660
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
661
|
+
*
|
|
662
|
+
* This source code is licensed under the MIT license found in the
|
|
663
|
+
* LICENSE file in the root directory of this source tree.
|
|
664
|
+
*/
|
|
665
|
+
var Qe;
|
|
666
|
+
function un() {
|
|
667
|
+
return Qe || (Qe = 1, process.env.NODE_ENV !== "production" && function() {
|
|
668
|
+
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
|
|
669
|
+
var t = Y, e = Xe();
|
|
670
|
+
function n(l, d) {
|
|
671
|
+
return l === d && (l !== 0 || 1 / l === 1 / d) || l !== l && d !== d;
|
|
672
|
+
}
|
|
673
|
+
var r = typeof Object.is == "function" ? Object.is : n, s = e.useSyncExternalStore, i = t.useRef, c = t.useEffect, m = t.useMemo, _ = t.useDebugValue;
|
|
674
|
+
function g(l, d, f, p, x) {
|
|
675
|
+
var y = i(null), b;
|
|
676
|
+
y.current === null ? (b = {
|
|
677
|
+
hasValue: !1,
|
|
678
|
+
value: null
|
|
679
|
+
}, y.current = b) : b = y.current;
|
|
680
|
+
var A = m(function() {
|
|
681
|
+
var S = !1, v, w, N = function(U) {
|
|
682
|
+
if (!S) {
|
|
683
|
+
S = !0, v = U;
|
|
684
|
+
var ae = p(U);
|
|
685
|
+
if (x !== void 0 && b.hasValue) {
|
|
686
|
+
var ie = b.value;
|
|
687
|
+
if (x(ie, ae))
|
|
688
|
+
return w = ie, ie;
|
|
689
|
+
}
|
|
690
|
+
return w = ae, ae;
|
|
691
|
+
}
|
|
692
|
+
var ft = v, oe = w;
|
|
693
|
+
if (r(ft, U))
|
|
694
|
+
return oe;
|
|
695
|
+
var ce = p(U);
|
|
696
|
+
return x !== void 0 && x(oe, ce) ? oe : (v = U, w = ce, ce);
|
|
697
|
+
}, j = f === void 0 ? null : f, W = function() {
|
|
698
|
+
return N(d());
|
|
699
|
+
}, se = j === null ? void 0 : function() {
|
|
700
|
+
return N(j());
|
|
701
|
+
};
|
|
702
|
+
return [W, se];
|
|
703
|
+
}, [d, f, p, x]), E = A[0], h = A[1], u = s(l, E, h);
|
|
704
|
+
return c(function() {
|
|
705
|
+
b.hasValue = !0, b.value = u;
|
|
706
|
+
}, [u]), _(u), u;
|
|
707
|
+
}
|
|
708
|
+
he.useSyncExternalStoreWithSelector = g, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
|
|
709
|
+
}()), he;
|
|
710
|
+
}
|
|
711
|
+
process.env.NODE_ENV === "production" ? ve.exports = ln() : ve.exports = un();
|
|
712
|
+
var dn = ve.exports;
|
|
713
|
+
const hn = /* @__PURE__ */ Et(dn);
|
|
714
|
+
var Je = { BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 };
|
|
715
|
+
const { useDebugValue: fn } = Y, { useSyncExternalStoreWithSelector: pn } = hn;
|
|
716
|
+
let Ve = !1;
|
|
717
|
+
const vn = (t) => t;
|
|
718
|
+
function mn(t, e = vn, n) {
|
|
719
|
+
(Je ? "production" : void 0) !== "production" && n && !Ve && (console.warn(
|
|
720
|
+
"[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"
|
|
721
|
+
), Ve = !0);
|
|
722
|
+
const r = pn(
|
|
723
|
+
t.subscribe,
|
|
724
|
+
t.getState,
|
|
725
|
+
t.getServerState || t.getInitialState,
|
|
726
|
+
e,
|
|
727
|
+
n
|
|
728
|
+
);
|
|
729
|
+
return fn(r), r;
|
|
730
|
+
}
|
|
731
|
+
const Fe = (t) => {
|
|
732
|
+
(Je ? "production" : void 0) !== "production" && typeof t != "function" && console.warn(
|
|
733
|
+
"[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`."
|
|
734
|
+
);
|
|
735
|
+
const e = typeof t == "function" ? an(t) : t, n = (r, s) => mn(e, r, s);
|
|
736
|
+
return Object.assign(n, e), n;
|
|
737
|
+
}, gn = (t) => t ? Fe(t) : Fe, Ze = (t) => "getRoutes" in t && typeof t.getRoutes == "function", yn = (t) => "initialize" in t && typeof t.initialize == "function", xn = (t) => "getIdentities" in t && typeof t.getIdentities == "function", et = new rn(), me = gn(
|
|
738
|
+
() => ({
|
|
739
|
+
isLoggedIn: !1
|
|
740
|
+
})
|
|
741
|
+
);
|
|
742
|
+
class bn {
|
|
743
|
+
constructor(e) {
|
|
744
|
+
C(this, "plugins", []);
|
|
745
|
+
C(this, "navigationPlugins");
|
|
746
|
+
C(this, "navigation");
|
|
747
|
+
C(this, "meta");
|
|
748
|
+
C(this, "authentication");
|
|
749
|
+
C(this, "state");
|
|
750
|
+
C(this, "initialize", async () => {
|
|
751
|
+
var e;
|
|
752
|
+
this.plugins.filter(yn).forEach((n) => n.initialize(this)), (e = this.authentication) == null || e.initialize(this);
|
|
753
|
+
});
|
|
754
|
+
C(this, "setUserProfile", async (e) => me.setState(e));
|
|
755
|
+
C(this, "invalidateCache", async (e) => {
|
|
756
|
+
et.invalidateQueries({ queryKey: e });
|
|
757
|
+
});
|
|
758
|
+
C(this, "getApiIdentities", async () => (await Promise.all(
|
|
759
|
+
this.plugins.filter(xn).map((n) => n.getIdentities(this))
|
|
760
|
+
)).flat());
|
|
761
|
+
C(this, "login", async () => {
|
|
762
|
+
if (!this.authentication)
|
|
763
|
+
throw new Error("No authentication configured");
|
|
764
|
+
return this.authentication.login(this);
|
|
765
|
+
});
|
|
766
|
+
C(this, "logout", async () => {
|
|
767
|
+
if (!this.authentication)
|
|
768
|
+
throw new Error("No authentication configured");
|
|
769
|
+
return this.authentication.signOut(this);
|
|
770
|
+
});
|
|
771
|
+
C(this, "handleAuthenticationResponse", async (e) => {
|
|
772
|
+
var n, r;
|
|
773
|
+
(r = (n = this.config.authentication) == null ? void 0 : n.handleAuthenticationResponse) == null || r.call(n, e, this);
|
|
774
|
+
});
|
|
775
|
+
C(this, "getNavigation", async (e) => (await Promise.all(
|
|
776
|
+
this.navigationPlugins.map(
|
|
777
|
+
async (r) => {
|
|
778
|
+
var s;
|
|
779
|
+
return (s = r.getNavigation) == null ? void 0 : s.call(r, e);
|
|
780
|
+
}
|
|
781
|
+
)
|
|
782
|
+
)).flatMap((r) => r ?? []));
|
|
783
|
+
C(this, "sessionStorage", {
|
|
784
|
+
get: async (e) => localStorage.getItem(`session-${e}`) ?? "",
|
|
785
|
+
setProfile: async () => {
|
|
786
|
+
},
|
|
787
|
+
set: async (e, n) => localStorage.setItem(`session-${e}`, n)
|
|
788
|
+
});
|
|
789
|
+
this.config = e, this.plugins = e.plugins ?? [], this.navigation = e.navigation, this.navigationPlugins = this.plugins.filter(Ze), this.authentication = e.authentication, this.meta = e.meta, this.state = me;
|
|
790
|
+
}
|
|
791
|
+
}
|
|
792
|
+
/**
|
|
793
|
+
* @license lucide-react v0.378.0 - ISC
|
|
794
|
+
*
|
|
795
|
+
* This source code is licensed under the ISC license.
|
|
796
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
797
|
+
*/
|
|
798
|
+
const tt = $("ChevronRight", [
|
|
799
|
+
["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]
|
|
800
|
+
]);
|
|
801
|
+
/**
|
|
802
|
+
* @license lucide-react v0.378.0 - ISC
|
|
803
|
+
*
|
|
804
|
+
* This source code is licensed under the ISC license.
|
|
805
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
806
|
+
*/
|
|
807
|
+
const Sn = $("ExternalLink", [
|
|
808
|
+
["path", { d: "M15 3h6v6", key: "1q9fwt" }],
|
|
809
|
+
["path", { d: "M10 14 21 3", key: "gplh6r" }],
|
|
810
|
+
["path", { d: "M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6", key: "a6xqqp" }]
|
|
811
|
+
]);
|
|
812
|
+
/**
|
|
813
|
+
* @license lucide-react v0.378.0 - ISC
|
|
814
|
+
*
|
|
815
|
+
* This source code is licensed under the ISC license.
|
|
816
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
817
|
+
*/
|
|
818
|
+
const On = $("MoonStar", [
|
|
819
|
+
["path", { d: "M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9", key: "4ay0iu" }],
|
|
820
|
+
["path", { d: "M20 3v4", key: "1olli1" }],
|
|
821
|
+
["path", { d: "M22 5h-4", key: "1gvqau" }]
|
|
822
|
+
]);
|
|
823
|
+
/**
|
|
824
|
+
* @license lucide-react v0.378.0 - ISC
|
|
825
|
+
*
|
|
826
|
+
* This source code is licensed under the ISC license.
|
|
827
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
828
|
+
*/
|
|
829
|
+
const _n = $("Search", [
|
|
830
|
+
["circle", { cx: "11", cy: "11", r: "8", key: "4ej97u" }],
|
|
831
|
+
["path", { d: "m21 21-4.3-4.3", key: "1qie3q" }]
|
|
832
|
+
]);
|
|
833
|
+
/**
|
|
834
|
+
* @license lucide-react v0.378.0 - ISC
|
|
835
|
+
*
|
|
836
|
+
* This source code is licensed under the ISC license.
|
|
837
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
838
|
+
*/
|
|
839
|
+
const En = $("Sun", [
|
|
840
|
+
["circle", { cx: "12", cy: "12", r: "4", key: "4exip2" }],
|
|
841
|
+
["path", { d: "M12 2v2", key: "tus03m" }],
|
|
842
|
+
["path", { d: "M12 20v2", key: "1lh1kg" }],
|
|
843
|
+
["path", { d: "m4.93 4.93 1.41 1.41", key: "149t6j" }],
|
|
844
|
+
["path", { d: "m17.66 17.66 1.41 1.41", key: "ptbguv" }],
|
|
845
|
+
["path", { d: "M2 12h2", key: "1t8f8n" }],
|
|
846
|
+
["path", { d: "M20 12h2", key: "1q8mjw" }],
|
|
847
|
+
["path", { d: "m6.34 17.66-1.41 1.41", key: "1m8zz5" }],
|
|
848
|
+
["path", { d: "m19.07 4.93-1.41 1.41", key: "1shlcs" }]
|
|
849
|
+
]), wn = () => {
|
|
850
|
+
const { navigation: t } = ge();
|
|
851
|
+
return /* @__PURE__ */ a.jsx("nav", { className: "border-b border-border text-sm px-12 h-[--top-nav-height]", children: /* @__PURE__ */ a.jsx("ul", { className: "flex flex-row items-center gap-8", children: t.map((e) => /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsx(
|
|
852
|
+
fe,
|
|
853
|
+
{
|
|
854
|
+
className: ({ isActive: n }) => wt(
|
|
855
|
+
"block py-3.5 font-medium -mb-px border-b-2",
|
|
856
|
+
n ? "border-primary text-foreground" : "border-transparent text-foreground/75 hover:text-foreground hover:border-accent-foreground/25"
|
|
857
|
+
),
|
|
858
|
+
to: e.path,
|
|
859
|
+
children: e.label
|
|
860
|
+
}
|
|
861
|
+
) }, e.label)) }) });
|
|
862
|
+
}, nt = $e(() => {
|
|
863
|
+
const [t, e] = jt(), { isLoggedIn: n, email: r } = me(), { login: s, logout: i, meta: c } = ge(), m = t ? On : En;
|
|
864
|
+
return /* @__PURE__ */ a.jsx("header", { className: "fixed top-0 w-full z-10 bg-background/80 backdrop-blur", children: /* @__PURE__ */ a.jsxs("div", { className: "max-w-screen-2xl mx-auto", children: [
|
|
865
|
+
/* @__PURE__ */ a.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: [
|
|
866
|
+
/* @__PURE__ */ a.jsxs("div", { className: "flex items-center gap-3.5", children: [
|
|
867
|
+
(c == null ? void 0 : c.logo) && /* @__PURE__ */ a.jsx("img", { src: c.logo, alt: "My Dev Portal", className: "h-10" }),
|
|
868
|
+
/* @__PURE__ */ a.jsx("span", { className: "font-bold text-2xl text-foreground/85 tracking-wide", children: c == null ? void 0 : c.headerTitle })
|
|
869
|
+
] }),
|
|
870
|
+
/* @__PURE__ */ a.jsxs("div", { className: "grid grid-cols-[--sidecar-grid-cols] items-center gap-8", children: [
|
|
871
|
+
/* @__PURE__ */ a.jsx("div", { className: "w-full max-w-prose", children: /* @__PURE__ */ a.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: [
|
|
872
|
+
/* @__PURE__ */ a.jsxs("div", { className: "flex items-center gap-2 flex-grow", children: [
|
|
873
|
+
/* @__PURE__ */ a.jsx(_n, { size: 14 }),
|
|
874
|
+
"Search"
|
|
875
|
+
] }),
|
|
876
|
+
/* @__PURE__ */ a.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" })
|
|
877
|
+
] }) }),
|
|
878
|
+
/* @__PURE__ */ a.jsxs("div", { className: "items-center justify-self-end text-sm hidden lg:flex", children: [
|
|
879
|
+
n ? /* @__PURE__ */ a.jsxs(
|
|
880
|
+
"button",
|
|
881
|
+
{
|
|
882
|
+
className: "cursor-pointer hover:bg-secondary p-1 px-2 mx-2 rounded text-nowrap",
|
|
883
|
+
onClick: i,
|
|
884
|
+
children: [
|
|
885
|
+
"Logout ",
|
|
886
|
+
r ? `(${r})` : null
|
|
887
|
+
]
|
|
888
|
+
}
|
|
889
|
+
) : /* @__PURE__ */ a.jsx(
|
|
890
|
+
"button",
|
|
891
|
+
{
|
|
892
|
+
className: "cursor-pointer hover:bg-secondary p-1 px-2 mx-2 rounded",
|
|
893
|
+
onClick: s,
|
|
894
|
+
children: "Login"
|
|
895
|
+
}
|
|
896
|
+
),
|
|
897
|
+
/* @__PURE__ */ a.jsx(
|
|
898
|
+
"button",
|
|
899
|
+
{
|
|
900
|
+
className: "cursor-pointer hover:bg-secondary p-2.5 -m-2.5 rounded-full",
|
|
901
|
+
onClick: e,
|
|
902
|
+
children: /* @__PURE__ */ a.jsx(m, { size: 18 })
|
|
903
|
+
}
|
|
904
|
+
)
|
|
905
|
+
] })
|
|
906
|
+
] })
|
|
907
|
+
] }),
|
|
908
|
+
/* @__PURE__ */ a.jsx(wn, {})
|
|
909
|
+
] }) });
|
|
910
|
+
}), rt = {
|
|
911
|
+
Header: nt
|
|
912
|
+
}, jn = Yt(rt), Cn = jn.Provider, Pn = () => {
|
|
913
|
+
const t = z(), { setActiveAnchor: e } = ye();
|
|
914
|
+
B(() => {
|
|
915
|
+
if (!t.hash) return;
|
|
916
|
+
const n = t.hash.split("/")[0].slice(1), r = document.getElementById(decodeURIComponent(n));
|
|
917
|
+
if (r) {
|
|
918
|
+
requestAnimationFrame(() => {
|
|
919
|
+
r.scrollIntoView(), requestIdleCallback(() => e(n));
|
|
920
|
+
});
|
|
921
|
+
return;
|
|
922
|
+
}
|
|
923
|
+
const s = new MutationObserver((i, c) => {
|
|
924
|
+
const m = document.getElementById(decodeURIComponent(n));
|
|
925
|
+
m && (m.scrollIntoView(), requestIdleCallback(() => e(n)), c.disconnect());
|
|
926
|
+
});
|
|
927
|
+
return s.observe(document.body, { childList: !0, subtree: !0 }), () => s.disconnect();
|
|
928
|
+
}, [t.hash, e]);
|
|
929
|
+
}, An = () => {
|
|
930
|
+
const t = z(), e = re(t.pathname);
|
|
931
|
+
B(() => {
|
|
932
|
+
e.current !== t.pathname && (window.scrollTo(0, 0), e.current = t.pathname);
|
|
933
|
+
}, [t.pathname]);
|
|
934
|
+
};
|
|
935
|
+
var Se = "Collapsible", [Nn, zn] = Ct(Se), [Rn, Oe] = Nn(Se), st = M.forwardRef(
|
|
936
|
+
(t, e) => {
|
|
937
|
+
const {
|
|
938
|
+
__scopeCollapsible: n,
|
|
939
|
+
open: r,
|
|
940
|
+
defaultOpen: s,
|
|
941
|
+
disabled: i,
|
|
942
|
+
onOpenChange: c,
|
|
943
|
+
...m
|
|
944
|
+
} = t, [_ = !1, g] = Pt({
|
|
945
|
+
prop: r,
|
|
946
|
+
defaultProp: s,
|
|
947
|
+
onChange: c
|
|
948
|
+
});
|
|
949
|
+
return /* @__PURE__ */ a.jsx(
|
|
950
|
+
Rn,
|
|
951
|
+
{
|
|
952
|
+
scope: n,
|
|
953
|
+
disabled: i,
|
|
954
|
+
contentId: At(),
|
|
955
|
+
open: _,
|
|
956
|
+
onOpenToggle: M.useCallback(() => g((l) => !l), [g]),
|
|
957
|
+
children: /* @__PURE__ */ a.jsx(
|
|
958
|
+
xe.div,
|
|
959
|
+
{
|
|
960
|
+
"data-state": Ee(_),
|
|
961
|
+
"data-disabled": i ? "" : void 0,
|
|
962
|
+
...m,
|
|
963
|
+
ref: e
|
|
964
|
+
}
|
|
965
|
+
)
|
|
966
|
+
}
|
|
967
|
+
);
|
|
968
|
+
}
|
|
969
|
+
);
|
|
970
|
+
st.displayName = Se;
|
|
971
|
+
var at = "CollapsibleTrigger", it = M.forwardRef(
|
|
972
|
+
(t, e) => {
|
|
973
|
+
const { __scopeCollapsible: n, ...r } = t, s = Oe(at, n);
|
|
974
|
+
return /* @__PURE__ */ a.jsx(
|
|
975
|
+
xe.button,
|
|
976
|
+
{
|
|
977
|
+
type: "button",
|
|
978
|
+
"aria-controls": s.contentId,
|
|
979
|
+
"aria-expanded": s.open || !1,
|
|
980
|
+
"data-state": Ee(s.open),
|
|
981
|
+
"data-disabled": s.disabled ? "" : void 0,
|
|
982
|
+
disabled: s.disabled,
|
|
983
|
+
...r,
|
|
984
|
+
ref: e,
|
|
985
|
+
onClick: Nt(t.onClick, s.onOpenToggle)
|
|
986
|
+
}
|
|
987
|
+
);
|
|
988
|
+
}
|
|
989
|
+
);
|
|
990
|
+
it.displayName = at;
|
|
991
|
+
var _e = "CollapsibleContent", ot = M.forwardRef(
|
|
992
|
+
(t, e) => {
|
|
993
|
+
const { forceMount: n, ...r } = t, s = Oe(_e, t.__scopeCollapsible);
|
|
994
|
+
return /* @__PURE__ */ a.jsx(Rt, { present: n || s.open, children: ({ present: i }) => /* @__PURE__ */ a.jsx(Dn, { ...r, ref: e, present: i }) });
|
|
995
|
+
}
|
|
996
|
+
);
|
|
997
|
+
ot.displayName = _e;
|
|
998
|
+
var Dn = M.forwardRef((t, e) => {
|
|
999
|
+
const { __scopeCollapsible: n, present: r, children: s, ...i } = t, c = Oe(_e, n), [m, _] = M.useState(r), g = M.useRef(null), l = Dt(e, g), d = M.useRef(0), f = d.current, p = M.useRef(0), x = p.current, y = c.open || m, b = M.useRef(y), A = M.useRef();
|
|
1000
|
+
return M.useEffect(() => {
|
|
1001
|
+
const E = requestAnimationFrame(() => b.current = !1);
|
|
1002
|
+
return () => cancelAnimationFrame(E);
|
|
1003
|
+
}, []), Tt(() => {
|
|
1004
|
+
const E = g.current;
|
|
1005
|
+
if (E) {
|
|
1006
|
+
A.current = A.current || {
|
|
1007
|
+
transitionDuration: E.style.transitionDuration,
|
|
1008
|
+
animationName: E.style.animationName
|
|
1009
|
+
}, E.style.transitionDuration = "0s", E.style.animationName = "none";
|
|
1010
|
+
const h = E.getBoundingClientRect();
|
|
1011
|
+
d.current = h.height, p.current = h.width, b.current || (E.style.transitionDuration = A.current.transitionDuration, E.style.animationName = A.current.animationName), _(r);
|
|
1012
|
+
}
|
|
1013
|
+
}, [c.open, r]), /* @__PURE__ */ a.jsx(
|
|
1014
|
+
xe.div,
|
|
1015
|
+
{
|
|
1016
|
+
"data-state": Ee(c.open),
|
|
1017
|
+
"data-disabled": c.disabled ? "" : void 0,
|
|
1018
|
+
id: c.contentId,
|
|
1019
|
+
hidden: !y,
|
|
1020
|
+
...i,
|
|
1021
|
+
ref: l,
|
|
1022
|
+
style: {
|
|
1023
|
+
"--radix-collapsible-content-height": f ? `${f}px` : void 0,
|
|
1024
|
+
"--radix-collapsible-content-width": x ? `${x}px` : void 0,
|
|
1025
|
+
...t.style
|
|
1026
|
+
},
|
|
1027
|
+
children: y && s
|
|
1028
|
+
}
|
|
1029
|
+
);
|
|
1030
|
+
});
|
|
1031
|
+
function Ee(t) {
|
|
1032
|
+
return t ? "open" : "closed";
|
|
1033
|
+
}
|
|
1034
|
+
var ct = st, lt = it, ut = ot;
|
|
1035
|
+
function Tn(t) {
|
|
1036
|
+
return !0;
|
|
1037
|
+
}
|
|
1038
|
+
const Mn = (t) => /* @__PURE__ */ a.jsx("div", {}), dt = ({
|
|
1039
|
+
item: t,
|
|
1040
|
+
defaultOpen: e,
|
|
1041
|
+
path: n
|
|
1042
|
+
}) => {
|
|
1043
|
+
const [r, s] = Xt(e), i = z(), c = re(i.pathname);
|
|
1044
|
+
return B(() => {
|
|
1045
|
+
!r && c.current !== i.pathname && s(be(t, i.pathname, n)), c.current = i.pathname;
|
|
1046
|
+
}, [r, t, n, i.pathname]), [r, s];
|
|
1047
|
+
}, ee = It(
|
|
1048
|
+
"flex px-[--padding-nav-item] py-1.5 rounded-lg hover:bg-accent transition-colors duration-300",
|
|
1049
|
+
{
|
|
1050
|
+
variants: {
|
|
1051
|
+
isActive: {
|
|
1052
|
+
true: "text-primary font-medium",
|
|
1053
|
+
false: "text-foreground/80"
|
|
1054
|
+
},
|
|
1055
|
+
isMuted: {
|
|
1056
|
+
true: "text-foreground/30",
|
|
1057
|
+
false: ""
|
|
1058
|
+
}
|
|
1059
|
+
}
|
|
1060
|
+
}
|
|
1061
|
+
), Ln = "data-anchor", ht = ({
|
|
1062
|
+
category: t,
|
|
1063
|
+
item: e,
|
|
1064
|
+
activeAnchor: n,
|
|
1065
|
+
currentTopNavItem: r,
|
|
1066
|
+
basePath: s = ""
|
|
1067
|
+
}) => {
|
|
1068
|
+
const i = pe(e) ? Ge(s, e.path) : "", c = z(), [m, _] = dt({
|
|
1069
|
+
item: e,
|
|
1070
|
+
path: i,
|
|
1071
|
+
defaultOpen: () => be(e, c.pathname, i)
|
|
1072
|
+
});
|
|
1073
|
+
if (Mt(e)) {
|
|
1074
|
+
const l = ne(
|
|
1075
|
+
"flex items-center gap-2",
|
|
1076
|
+
ee({
|
|
1077
|
+
isActive: e.href === c.pathname
|
|
1078
|
+
})
|
|
1079
|
+
);
|
|
1080
|
+
return e.href.startsWith("http") ? /* @__PURE__ */ a.jsxs(
|
|
1081
|
+
"a",
|
|
1082
|
+
{
|
|
1083
|
+
className: l,
|
|
1084
|
+
href: e.href,
|
|
1085
|
+
target: "_blank",
|
|
1086
|
+
rel: "noopener noreferrer",
|
|
1087
|
+
children: [
|
|
1088
|
+
e.label,
|
|
1089
|
+
/* @__PURE__ */ a.jsx(Sn, { size: 14 })
|
|
1090
|
+
]
|
|
1091
|
+
}
|
|
1092
|
+
) : /* @__PURE__ */ a.jsx(fe, { className: l, to: e.href, children: e.label });
|
|
1093
|
+
}
|
|
1094
|
+
const g = /* @__PURE__ */ a.jsxs("div", { className: "flex justify-between w-full", children: [
|
|
1095
|
+
/* @__PURE__ */ a.jsxs("div", { className: "flex items-center gap-2 truncate w-full", children: [
|
|
1096
|
+
Tn(e.icon) && /* @__PURE__ */ a.jsx(Mn, { name: e.icon, size: 16 }),
|
|
1097
|
+
typeof e.label != "string" ? e.label : /* @__PURE__ */ a.jsx("span", { className: "truncate", children: e.label })
|
|
1098
|
+
] }),
|
|
1099
|
+
e.children && /* @__PURE__ */ a.jsx(
|
|
1100
|
+
tt,
|
|
1101
|
+
{
|
|
1102
|
+
size: 16,
|
|
1103
|
+
className: "transition shrink-0 group-data-[state=open]:rotate-90"
|
|
1104
|
+
}
|
|
1105
|
+
)
|
|
1106
|
+
] });
|
|
1107
|
+
return /* @__PURE__ */ a.jsx("li", { title: typeof e.label == "string" ? e.label : e.title, children: e.children ? /* @__PURE__ */ a.jsxs(
|
|
1108
|
+
ct,
|
|
1109
|
+
{
|
|
1110
|
+
open: m,
|
|
1111
|
+
onOpenChange: () => _((l) => !l),
|
|
1112
|
+
className: "flex flex-col",
|
|
1113
|
+
children: [
|
|
1114
|
+
/* @__PURE__ */ a.jsx(
|
|
1115
|
+
lt,
|
|
1116
|
+
{
|
|
1117
|
+
className: ne(
|
|
1118
|
+
"group text-start",
|
|
1119
|
+
ee({ isActive: !1 })
|
|
1120
|
+
),
|
|
1121
|
+
children: g
|
|
1122
|
+
}
|
|
1123
|
+
),
|
|
1124
|
+
/* @__PURE__ */ a.jsx(ut, { className: "CollapsibleContent ms-[calc(var(--padding-nav-item)*1.125)]", children: /* @__PURE__ */ a.jsx("ul", { className: "mt-1 border-border border-l ps-1.5", children: e.children.map((l) => /* @__PURE__ */ a.jsx(
|
|
1125
|
+
ht,
|
|
1126
|
+
{
|
|
1127
|
+
category: t,
|
|
1128
|
+
item: l,
|
|
1129
|
+
activeAnchor: n,
|
|
1130
|
+
currentTopNavItem: r,
|
|
1131
|
+
basePath: i
|
|
1132
|
+
},
|
|
1133
|
+
pe(l) ? l.path : l.href
|
|
1134
|
+
)) }) })
|
|
1135
|
+
]
|
|
1136
|
+
}
|
|
1137
|
+
) : e.path.startsWith("#") ? /* @__PURE__ */ a.jsx(
|
|
1138
|
+
Lt,
|
|
1139
|
+
{
|
|
1140
|
+
to: e.path,
|
|
1141
|
+
[Ln]: e.path,
|
|
1142
|
+
className: ee({
|
|
1143
|
+
isActive: e.path.slice(1) === n,
|
|
1144
|
+
isMuted: e.muted
|
|
1145
|
+
}),
|
|
1146
|
+
children: g
|
|
1147
|
+
}
|
|
1148
|
+
) : /* @__PURE__ */ a.jsx(
|
|
1149
|
+
fe,
|
|
1150
|
+
{
|
|
1151
|
+
className: ({ isActive: l }) => ee({ isActive: l }),
|
|
1152
|
+
to: i,
|
|
1153
|
+
children: g
|
|
1154
|
+
}
|
|
1155
|
+
) });
|
|
1156
|
+
}, In = ({
|
|
1157
|
+
category: t
|
|
1158
|
+
}) => {
|
|
1159
|
+
const { activeAnchor: e } = ye(), n = kt(), r = z(), s = t.collapsible ?? !0, [i, c] = dt({
|
|
1160
|
+
item: t,
|
|
1161
|
+
path: (n == null ? void 0 : n.path) ?? "",
|
|
1162
|
+
defaultOpen: () => !s || t.expanded || be(t, r.pathname, (n == null ? void 0 : n.path) ?? "")
|
|
1163
|
+
});
|
|
1164
|
+
return /* @__PURE__ */ a.jsxs(
|
|
1165
|
+
ct,
|
|
1166
|
+
{
|
|
1167
|
+
open: i,
|
|
1168
|
+
onOpenChange: () => c((m) => !m),
|
|
1169
|
+
children: [
|
|
1170
|
+
t.label.length > 0 ? /* @__PURE__ */ a.jsx(lt, { asChild: s, disabled: !s, children: /* @__PURE__ */ a.jsxs(
|
|
1171
|
+
"h5",
|
|
1172
|
+
{
|
|
1173
|
+
className: ne(
|
|
1174
|
+
"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]",
|
|
1175
|
+
s ? "hover:bg-accent" : "cursor-auto"
|
|
1176
|
+
),
|
|
1177
|
+
children: [
|
|
1178
|
+
t.label,
|
|
1179
|
+
s && /* @__PURE__ */ a.jsx(
|
|
1180
|
+
tt,
|
|
1181
|
+
{
|
|
1182
|
+
className: "group-data-[state=open]:rotate-90 transition",
|
|
1183
|
+
size: 16
|
|
1184
|
+
}
|
|
1185
|
+
)
|
|
1186
|
+
]
|
|
1187
|
+
}
|
|
1188
|
+
) }) : "Endpoints",
|
|
1189
|
+
/* @__PURE__ */ a.jsx(ut, { className: "CollapsibleContent -mx-[--padding-nav-item]", children: /* @__PURE__ */ a.jsx("ul", { className: "space-y-0.5 mt-1.5 mb-4 ms-3", children: t.children.map((m) => /* @__PURE__ */ a.jsx(
|
|
1190
|
+
ht,
|
|
1191
|
+
{
|
|
1192
|
+
category: t,
|
|
1193
|
+
item: m,
|
|
1194
|
+
activeAnchor: e,
|
|
1195
|
+
currentTopNavItem: n,
|
|
1196
|
+
basePath: Ge(n == null ? void 0 : n.path, t.path)
|
|
1197
|
+
},
|
|
1198
|
+
pe(m) ? m.path + m.label : m.href
|
|
1199
|
+
)) }) })
|
|
1200
|
+
]
|
|
1201
|
+
},
|
|
1202
|
+
t.label
|
|
1203
|
+
);
|
|
1204
|
+
}, kn = Jt(({ children: t, className: e, data: n }, r) => /* @__PURE__ */ a.jsx(
|
|
1205
|
+
"nav",
|
|
1206
|
+
{
|
|
1207
|
+
"data-navigation": n,
|
|
1208
|
+
className: ne(
|
|
1209
|
+
"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",
|
|
1210
|
+
e
|
|
1211
|
+
),
|
|
1212
|
+
ref: r,
|
|
1213
|
+
children: t
|
|
1214
|
+
}
|
|
1215
|
+
)), qn = () => {
|
|
1216
|
+
const t = re(null), e = qt();
|
|
1217
|
+
return /* @__PURE__ */ a.jsx(
|
|
1218
|
+
kn,
|
|
1219
|
+
{
|
|
1220
|
+
ref: t,
|
|
1221
|
+
data: e.data.items.length > 0 ? "true" : "false",
|
|
1222
|
+
children: e.data.items.map((n) => /* @__PURE__ */ a.jsx(In, { category: n }, n.label))
|
|
1223
|
+
}
|
|
1224
|
+
);
|
|
1225
|
+
}, He = ({ children: t }) => {
|
|
1226
|
+
const e = z(), { setActiveAnchor: n } = ye(), { meta: r, handleAuthenticationResponse: s } = ge();
|
|
1227
|
+
B(() => {
|
|
1228
|
+
s(e);
|
|
1229
|
+
}, [s, e]), Pn(), An();
|
|
1230
|
+
const i = re(e.pathname);
|
|
1231
|
+
return B(() => {
|
|
1232
|
+
e.pathname !== i.current && n(""), i.current = e.pathname;
|
|
1233
|
+
}, [e.pathname, n]), /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
1234
|
+
/* @__PURE__ */ a.jsxs(Qt, { titleTemplate: r == null ? void 0 : r.pageTitle, children: [
|
|
1235
|
+
/* @__PURE__ */ a.jsx("title", { children: "Home" }),
|
|
1236
|
+
(r == null ? void 0 : r.description) && /* @__PURE__ */ a.jsx("meta", { name: "description", content: r.description }),
|
|
1237
|
+
(r == null ? void 0 : r.favicon) && /* @__PURE__ */ a.jsx("link", { rel: "icon", href: r.favicon })
|
|
1238
|
+
] }),
|
|
1239
|
+
/* @__PURE__ */ a.jsx(nt, {}),
|
|
1240
|
+
/* @__PURE__ */ a.jsx("div", { className: "max-w-screen-2xl mx-auto pt-[--header-height] px-10 lg:px-12", children: /* @__PURE__ */ a.jsxs(Ye, { fallback: /* @__PURE__ */ a.jsx("div", {}), children: [
|
|
1241
|
+
/* @__PURE__ */ a.jsx(qn, {}),
|
|
1242
|
+
/* @__PURE__ */ a.jsx(
|
|
1243
|
+
"main",
|
|
1244
|
+
{
|
|
1245
|
+
className: `dark:border-white/10 translate-x-0
|
|
1246
|
+
lg:overflow-visible
|
|
1247
|
+
lg:peer-data-[navigation=true]:w-[calc(100%-var(--side-nav-width))]
|
|
1248
|
+
lg:peer-data-[navigation=true]:translate-x-[--side-nav-width] peer-data-[navigation=true]:pl-12`,
|
|
1249
|
+
children: t ?? /* @__PURE__ */ a.jsx(Vt, {})
|
|
1250
|
+
}
|
|
1251
|
+
)
|
|
1252
|
+
] }) })
|
|
1253
|
+
] });
|
|
1254
|
+
};
|
|
1255
|
+
function Qn({ plugins: t }) {
|
|
1256
|
+
const e = te(() => {
|
|
1257
|
+
const n = (t ?? []).flatMap(
|
|
1258
|
+
(r) => Ze(r) ? r.getRoutes() : []
|
|
1259
|
+
);
|
|
1260
|
+
return Ft([
|
|
1261
|
+
{
|
|
1262
|
+
path: "/",
|
|
1263
|
+
element: /* @__PURE__ */ a.jsx(He, {}),
|
|
1264
|
+
errorElement: /* @__PURE__ */ a.jsx(He, { children: /* @__PURE__ */ a.jsx("div", { className: "h-[75vh] flex items-center justify-center", children: "Error, look at the console" }) }),
|
|
1265
|
+
children: n
|
|
1266
|
+
}
|
|
1267
|
+
]);
|
|
1268
|
+
}, [t]);
|
|
1269
|
+
return /* @__PURE__ */ a.jsx(Ht, { router: e });
|
|
1270
|
+
}
|
|
1271
|
+
const Vn = (t) => {
|
|
1272
|
+
const e = te(
|
|
1273
|
+
() => ({ ...rt, ...t.overrides }),
|
|
1274
|
+
[t.overrides]
|
|
1275
|
+
), n = te(
|
|
1276
|
+
() => ({ ...Kt, ...t.mdxComponents }),
|
|
1277
|
+
[t.mdxComponents]
|
|
1278
|
+
), r = te(() => new bn(t), [t]);
|
|
1279
|
+
return B(() => {
|
|
1280
|
+
r.initialize();
|
|
1281
|
+
}, [r]), /* @__PURE__ */ a.jsx(Bt, { client: et, children: /* @__PURE__ */ a.jsx(zt, { children: /* @__PURE__ */ a.jsx(Wt, { value: r, children: /* @__PURE__ */ a.jsx(Ut, { components: n, children: /* @__PURE__ */ a.jsx(Gt, { children: /* @__PURE__ */ a.jsx(Cn, { value: e, children: /* @__PURE__ */ a.jsx($t, { children: /* @__PURE__ */ a.jsx(
|
|
1282
|
+
Ye,
|
|
1283
|
+
{
|
|
1284
|
+
fallback: /* @__PURE__ */ a.jsx("div", { className: "grid place-items-center h-full", children: "Loading..." }),
|
|
1285
|
+
children: /* @__PURE__ */ a.jsx(Qn, { plugins: t.plugins })
|
|
1286
|
+
}
|
|
1287
|
+
) }) }) }) }) }) }) });
|
|
1288
|
+
}, Fn = $e(Vn);
|
|
1289
|
+
Fn.displayName = "DevPortal";
|
|
1290
|
+
export {
|
|
1291
|
+
Fn as DevPortal,
|
|
1292
|
+
Mn as DynamicIcon,
|
|
1293
|
+
Gn as Link
|
|
1294
|
+
};
|