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