zudoku 0.3.0-dev.9 → 0.3.0-dev.90
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cli.js +5 -1
- package/dist/app/App.d.ts +1 -2
- package/dist/app/App.js +1 -29
- package/dist/app/App.js.map +1 -1
- package/dist/app/demo.d.ts +2 -0
- package/dist/app/demo.js +33 -0
- package/dist/app/demo.js.map +1 -0
- package/dist/app/entry.client.d.ts +2 -0
- package/dist/app/entry.client.js +35 -0
- package/dist/app/entry.client.js.map +1 -0
- package/dist/app/entry.server.d.ts +14 -0
- package/dist/app/entry.server.js +105 -0
- package/dist/app/entry.server.js.map +1 -0
- package/dist/app/main.d.ts +6 -1
- package/dist/app/main.js +74 -12
- package/dist/app/main.js.map +1 -1
- package/dist/app/standalone.d.ts +2 -0
- package/dist/app/standalone.js +38 -0
- package/dist/app/standalone.js.map +1 -0
- package/dist/app/tailwind.d.ts +1 -1
- package/dist/app/tailwind.js +0 -4
- package/dist/app/tailwind.js.map +1 -1
- package/dist/cli/cmds/dev.js +5 -0
- package/dist/cli/cmds/dev.js.map +1 -1
- package/dist/cli/dev/handler.d.ts +1 -0
- package/dist/cli/dev/handler.js +3 -1
- package/dist/cli/dev/handler.js.map +1 -1
- package/dist/config/config.d.ts +21 -46
- package/dist/config/validators/InputSidebarSchema.d.ts +176 -0
- package/dist/config/validators/InputSidebarSchema.js +71 -0
- package/dist/config/validators/InputSidebarSchema.js.map +1 -0
- package/dist/config/validators/SidebarSchema.d.ts +17 -0
- package/dist/config/validators/SidebarSchema.js +76 -0
- package/dist/config/validators/SidebarSchema.js.map +1 -0
- package/dist/config/validators/validate.d.ts +1263 -2
- package/dist/config/validators/validate.js +170 -1
- package/dist/config/validators/validate.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/internal.d.ts +1 -0
- package/dist/internal.js +2 -0
- package/dist/internal.js.map +1 -0
- package/dist/lib/authentication/AuthenticationPlugin.d.ts +13 -0
- package/dist/lib/authentication/AuthenticationPlugin.js +31 -0
- package/dist/lib/authentication/AuthenticationPlugin.js.map +1 -0
- package/dist/lib/authentication/authentication.d.ts +10 -9
- package/dist/lib/authentication/components/SignIn.d.ts +1 -0
- package/dist/lib/authentication/components/SignIn.js +14 -0
- package/dist/lib/authentication/components/SignIn.js.map +1 -0
- package/dist/lib/authentication/components/SignOut.d.ts +1 -0
- package/dist/lib/authentication/components/SignOut.js +12 -0
- package/dist/lib/authentication/components/SignOut.js.map +1 -0
- package/dist/lib/authentication/components/SignUp.d.ts +1 -0
- package/dist/lib/authentication/components/SignUp.js +10 -0
- package/dist/lib/authentication/components/SignUp.js.map +1 -0
- package/dist/lib/authentication/hook.js +4 -4
- package/dist/lib/authentication/hook.js.map +1 -1
- package/dist/lib/authentication/providers/auth0.js +11 -6
- package/dist/lib/authentication/providers/auth0.js.map +1 -1
- package/dist/lib/authentication/providers/clerk.js +59 -30
- package/dist/lib/authentication/providers/clerk.js.map +1 -1
- package/dist/lib/authentication/providers/openid.d.ts +30 -7
- package/dist/lib/authentication/providers/openid.js +79 -29
- package/dist/lib/authentication/providers/openid.js.map +1 -1
- package/dist/lib/authentication/state.js +1 -1
- package/dist/lib/authentication/state.js.map +1 -1
- package/dist/lib/components/Bootstrap.d.ts +13 -0
- package/dist/lib/components/Bootstrap.js +12 -0
- package/dist/lib/components/Bootstrap.js.map +1 -0
- package/dist/lib/components/DevPortal.d.ts +5 -23
- package/dist/lib/components/DevPortal.js +43 -20
- package/dist/lib/components/DevPortal.js.map +1 -1
- package/dist/lib/components/DeveloperHint.d.ts +5 -0
- package/dist/lib/components/DeveloperHint.js +10 -0
- package/dist/lib/components/DeveloperHint.js.map +1 -0
- package/dist/lib/components/ErrorPage.d.ts +6 -0
- package/dist/lib/components/ErrorPage.js +9 -0
- package/dist/lib/components/ErrorPage.js.map +1 -0
- package/dist/lib/components/Header.js +23 -4
- package/dist/lib/components/Header.js.map +1 -1
- package/dist/lib/components/Heading.d.ts +9 -4
- package/dist/lib/components/Heading.js +17 -2
- package/dist/lib/components/Heading.js.map +1 -1
- package/dist/lib/components/InlineCode.d.ts +5 -0
- package/dist/lib/components/InlineCode.js +4 -0
- package/dist/lib/components/InlineCode.js.map +1 -0
- package/dist/lib/components/Layout.js +7 -5
- package/dist/lib/components/Layout.js.map +1 -1
- package/dist/lib/components/NotFoundPage.d.ts +1 -0
- package/dist/lib/components/NotFoundPage.js +12 -0
- package/dist/lib/components/NotFoundPage.js.map +1 -0
- package/dist/lib/components/SlotletProvider.d.ts +9 -0
- package/dist/lib/components/SlotletProvider.js +11 -0
- package/dist/lib/components/SlotletProvider.js.map +1 -0
- package/dist/lib/components/SyntaxHighlight.d.ts +3 -2
- package/dist/lib/components/SyntaxHighlight.js +24 -22
- package/dist/lib/components/SyntaxHighlight.js.map +1 -1
- package/dist/lib/components/TopNavigation.d.ts +1 -1
- package/dist/lib/components/TopNavigation.js +8 -4
- package/dist/lib/components/TopNavigation.js.map +1 -1
- package/dist/lib/components/context/ThemeContext.d.ts +1 -4
- package/dist/lib/components/context/ThemeContext.js +3 -29
- package/dist/lib/components/context/ThemeContext.js.map +1 -1
- package/dist/lib/components/context/ThemeProvider.d.ts +4 -0
- package/dist/lib/components/context/ThemeProvider.js +23 -0
- package/dist/lib/components/context/ThemeProvider.js.map +1 -0
- package/dist/lib/components/context/ZudokuContext.d.ts +15 -0
- package/dist/lib/components/context/ZudokuContext.js +43 -0
- package/dist/lib/components/context/ZudokuContext.js.map +1 -0
- package/dist/lib/components/context/ZudokuProvider.d.ts +5 -0
- package/dist/lib/components/context/ZudokuProvider.js +16 -0
- package/dist/lib/components/context/ZudokuProvider.js.map +1 -0
- package/dist/lib/components/index.d.ts +32 -3
- package/dist/lib/components/index.js +21 -3
- package/dist/lib/components/index.js.map +1 -1
- package/dist/lib/components/navigation/Sidebar.d.ts +1 -0
- package/dist/lib/components/navigation/Sidebar.js +12 -0
- package/dist/lib/components/navigation/Sidebar.js.map +1 -0
- package/dist/lib/components/navigation/SidebarBadge.d.ts +22 -0
- package/dist/lib/components/navigation/SidebarBadge.js +24 -0
- package/dist/lib/components/navigation/SidebarBadge.js.map +1 -0
- package/dist/lib/components/navigation/SidebarCategory.d.ts +5 -0
- package/dist/lib/components/navigation/SidebarCategory.js +33 -0
- package/dist/lib/components/navigation/SidebarCategory.js.map +1 -0
- package/dist/lib/components/navigation/SidebarItem.d.ts +12 -0
- package/dist/lib/components/navigation/SidebarItem.js +42 -0
- package/dist/lib/components/navigation/SidebarItem.js.map +1 -0
- package/dist/lib/components/navigation/{SideNavigationWrapper.d.ts → SidebarWrapper.d.ts} +1 -1
- package/dist/lib/components/navigation/{SideNavigationWrapper.js → SidebarWrapper.js} +2 -2
- package/dist/lib/components/navigation/SidebarWrapper.js.map +1 -0
- package/dist/lib/components/navigation/utils.d.ts +16 -0
- package/dist/lib/components/navigation/utils.js +85 -0
- package/dist/lib/components/navigation/utils.js.map +1 -0
- package/dist/lib/core/DevPortalContext.d.ts +58 -42
- package/dist/lib/core/DevPortalContext.js +18 -19
- package/dist/lib/core/DevPortalContext.js.map +1 -1
- package/dist/lib/core/plugins.d.ts +25 -10
- package/dist/lib/core/plugins.js +3 -0
- package/dist/lib/core/plugins.js.map +1 -1
- package/dist/lib/errors/ErrorAlert.d.ts +3 -0
- package/dist/lib/errors/ErrorAlert.js +8 -0
- package/dist/lib/errors/ErrorAlert.js.map +1 -0
- package/dist/lib/errors/RouterError.d.ts +1 -0
- package/dist/lib/errors/RouterError.js +12 -0
- package/dist/lib/errors/RouterError.js.map +1 -0
- package/dist/lib/errors/ServerError.d.ts +3 -0
- package/dist/lib/errors/ServerError.js +6 -0
- package/dist/lib/errors/ServerError.js.map +1 -0
- package/dist/lib/errors/TopLevelError.d.ts +2 -0
- package/dist/lib/errors/TopLevelError.js +7 -0
- package/dist/lib/errors/TopLevelError.js.map +1 -0
- package/dist/lib/oas/graphql/index.js +8 -5
- package/dist/lib/oas/graphql/index.js.map +1 -1
- package/dist/lib/oas/parser/index.d.ts +1 -1
- package/dist/lib/oas/parser/index.js +38 -12
- package/dist/lib/oas/parser/index.js.map +1 -1
- package/dist/lib/plugins/{api-key → api-keys}/CreateApiKey.js +4 -4
- package/dist/lib/plugins/api-keys/CreateApiKey.js.map +1 -0
- package/dist/lib/plugins/api-keys/ProtectedRoute.d.ts +1 -0
- package/dist/lib/plugins/api-keys/ProtectedRoute.js +14 -0
- package/dist/lib/plugins/api-keys/ProtectedRoute.js.map +1 -0
- package/dist/lib/plugins/api-keys/SettingsApiKeys.js +54 -0
- package/dist/lib/plugins/api-keys/SettingsApiKeys.js.map +1 -0
- package/dist/lib/plugins/{api-key → api-keys}/index.d.ts +4 -5
- package/dist/lib/plugins/{api-key → api-keys}/index.js +18 -20
- package/dist/lib/plugins/api-keys/index.js.map +1 -0
- package/dist/lib/plugins/custom-page/index.d.ts +8 -0
- package/dist/lib/plugins/custom-page/index.js +12 -0
- package/dist/lib/plugins/custom-page/index.js.map +1 -0
- package/dist/lib/plugins/markdown/MdxPage.d.ts +3 -2
- package/dist/lib/plugins/markdown/MdxPage.js +10 -40
- package/dist/lib/plugins/markdown/MdxPage.js.map +1 -1
- package/dist/lib/plugins/markdown/Toc.js +17 -9
- package/dist/lib/plugins/markdown/Toc.js.map +1 -1
- package/dist/lib/plugins/markdown/generateRoutes.d.ts +3 -3
- package/dist/lib/plugins/markdown/generateRoutes.js +20 -43
- package/dist/lib/plugins/markdown/generateRoutes.js.map +1 -1
- package/dist/lib/plugins/markdown/index.d.ts +4 -1
- package/dist/lib/plugins/markdown/index.js +3 -7
- package/dist/lib/plugins/markdown/index.js.map +1 -1
- package/dist/lib/plugins/openapi/ColorizedParam.d.ts +2 -1
- package/dist/lib/plugins/openapi/ColorizedParam.js +14 -9
- package/dist/lib/plugins/openapi/ColorizedParam.js.map +1 -1
- package/dist/lib/plugins/openapi/OperationList.js +17 -5
- package/dist/lib/plugins/openapi/OperationList.js.map +1 -1
- package/dist/lib/plugins/openapi/OperationListItem.js +11 -5
- package/dist/lib/plugins/openapi/OperationListItem.js.map +1 -1
- package/dist/lib/plugins/openapi/ParameterList.js +2 -1
- package/dist/lib/plugins/openapi/ParameterList.js.map +1 -1
- package/dist/lib/plugins/openapi/ParameterListItem.js +1 -1
- package/dist/lib/plugins/openapi/ParameterListItem.js.map +1 -1
- package/dist/lib/plugins/openapi/{MakeRequest.d.ts → PlaygroundDialogWrapper.d.ts} +2 -1
- package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.js +23 -0
- package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.js.map +1 -0
- package/dist/lib/plugins/openapi/RequestBodySidecarBox.js +3 -9
- package/dist/lib/plugins/openapi/RequestBodySidecarBox.js.map +1 -1
- package/dist/lib/plugins/openapi/ResponsesSidecarBox.js +1 -1
- package/dist/lib/plugins/openapi/ResponsesSidecarBox.js.map +1 -1
- package/dist/lib/plugins/openapi/Route.d.ts +6 -0
- package/dist/lib/plugins/openapi/Route.js +8 -0
- package/dist/lib/plugins/openapi/Route.js.map +1 -0
- package/dist/lib/plugins/openapi/SchemaListView.js +10 -26
- package/dist/lib/plugins/openapi/SchemaListView.js.map +1 -1
- package/dist/lib/plugins/openapi/SchemaListViewItem.d.ts +8 -0
- package/dist/lib/plugins/openapi/SchemaListViewItem.js +25 -0
- package/dist/lib/plugins/openapi/SchemaListViewItem.js.map +1 -0
- package/dist/lib/plugins/openapi/SchemaListViewItemGroup.d.ts +8 -0
- package/dist/lib/plugins/openapi/SchemaListViewItemGroup.js +17 -0
- package/dist/lib/plugins/openapi/SchemaListViewItemGroup.js.map +1 -0
- package/dist/lib/plugins/openapi/Sidecar.d.ts +4 -0
- package/dist/lib/plugins/openapi/Sidecar.js +55 -21
- package/dist/lib/plugins/openapi/Sidecar.js.map +1 -1
- package/dist/lib/plugins/openapi/SidecarBox.d.ts +1 -0
- package/dist/lib/plugins/openapi/SidecarBox.js +3 -2
- package/dist/lib/plugins/openapi/SidecarBox.js.map +1 -1
- package/dist/lib/plugins/openapi/{Select.d.ts → SimpleSelect.d.ts} +3 -2
- package/dist/lib/plugins/openapi/SimpleSelect.js +5 -0
- package/dist/lib/plugins/openapi/SimpleSelect.js.map +1 -0
- package/dist/lib/plugins/openapi/StaggeredRender.d.ts +8 -0
- package/dist/lib/plugins/openapi/StaggeredRender.js +18 -0
- package/dist/lib/plugins/openapi/StaggeredRender.js.map +1 -0
- package/dist/lib/plugins/openapi/client/createMemoryClient.d.ts +12 -0
- package/dist/lib/plugins/openapi/client/createMemoryClient.js +46 -0
- package/dist/lib/plugins/openapi/client/createMemoryClient.js.map +1 -0
- package/dist/lib/plugins/openapi/client/createServer.d.ts +4 -0
- package/dist/lib/plugins/openapi/client/createServer.js +30 -0
- package/dist/lib/plugins/openapi/client/createServer.js.map +1 -0
- package/dist/lib/plugins/openapi/client/createWorkerClient.d.ts +10 -0
- package/dist/lib/plugins/openapi/{worker/createSharedWorkerClient.js → client/createWorkerClient.js} +15 -2
- package/dist/lib/plugins/openapi/client/createWorkerClient.js.map +1 -0
- package/dist/lib/plugins/openapi/client/interfaces.d.ts +4 -0
- package/dist/lib/plugins/openapi/client/interfaces.js +2 -0
- package/dist/lib/plugins/openapi/client/interfaces.js.map +1 -0
- package/dist/lib/plugins/openapi/{worker → client}/worker.js +2 -2
- package/dist/lib/plugins/openapi/client/worker.js.map +1 -0
- package/dist/lib/plugins/openapi/context.d.ts +5 -0
- package/dist/lib/plugins/openapi/context.js +11 -0
- package/dist/lib/plugins/openapi/context.js.map +1 -0
- package/dist/lib/plugins/openapi/graphql/gql.d.ts +6 -6
- package/dist/lib/plugins/openapi/graphql/gql.js +1 -1
- package/dist/lib/plugins/openapi/graphql/gql.js.map +1 -1
- package/dist/lib/plugins/openapi/graphql/graphql.d.ts +15 -15
- package/dist/lib/plugins/openapi/graphql/graphql.js +67 -67
- package/dist/lib/plugins/openapi/graphql/graphql.js.map +1 -1
- package/dist/lib/plugins/openapi/index.d.ts +4 -18
- package/dist/lib/plugins/openapi/index.js +76 -32
- package/dist/lib/plugins/openapi/index.js.map +1 -1
- package/dist/lib/plugins/openapi/interfaces.d.ts +15 -0
- package/dist/lib/plugins/openapi/interfaces.js +2 -0
- package/dist/lib/plugins/openapi/interfaces.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/Headers.js +1 -1
- package/dist/lib/plugins/openapi/playground/Headers.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/PathParams.d.ts +4 -5
- package/dist/lib/plugins/openapi/playground/PathParams.js +9 -13
- package/dist/lib/plugins/openapi/playground/PathParams.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/Playground.d.ts +26 -14
- package/dist/lib/plugins/openapi/playground/Playground.js +54 -26
- package/dist/lib/plugins/openapi/playground/Playground.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/PlaygroundDialog.d.ts +5 -0
- package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js +12 -0
- package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/QueryParams.d.ts +4 -3
- package/dist/lib/plugins/openapi/playground/QueryParams.js +21 -12
- package/dist/lib/plugins/openapi/playground/QueryParams.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/ResponseTab.d.ts +4 -0
- package/dist/lib/plugins/openapi/playground/ResponseTab.js +40 -0
- package/dist/lib/plugins/openapi/playground/ResponseTab.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/createUrl.d.ts +1 -1
- package/dist/lib/plugins/openapi/playground/createUrl.js +5 -9
- package/dist/lib/plugins/openapi/playground/createUrl.js.map +1 -1
- package/dist/lib/plugins/openapi/util/prose.d.ts +1 -0
- package/dist/lib/plugins/openapi/util/prose.js +4 -0
- package/dist/lib/plugins/openapi/util/prose.js.map +1 -0
- package/dist/lib/plugins/openapi-worker.d.ts +1 -1
- package/dist/lib/plugins/openapi-worker.js +1 -1
- package/dist/lib/plugins/openapi-worker.js.map +1 -1
- package/dist/lib/plugins/redirect/index.d.ts +0 -1
- package/dist/lib/plugins/redirect/index.js +3 -4
- package/dist/lib/plugins/redirect/index.js.map +1 -1
- package/dist/lib/ui/Button.d.ts +5 -1
- package/dist/lib/ui/Button.js +24 -1
- package/dist/lib/ui/Button.js.map +1 -1
- package/dist/lib/ui/Callout.js +2 -2
- package/dist/lib/ui/Callout.js.map +1 -1
- package/dist/lib/ui/Card.js +1 -1
- package/dist/lib/ui/Card.js.map +1 -1
- package/dist/lib/ui/DropdownMenu.d.ts +27 -0
- package/dist/lib/ui/DropdownMenu.js +36 -0
- package/dist/lib/ui/DropdownMenu.js.map +1 -0
- package/dist/lib/ui/Input.js.map +1 -0
- package/dist/lib/util/MdxComponents.d.ts +2 -2
- package/dist/lib/util/MdxComponents.js +7 -5
- package/dist/lib/util/MdxComponents.js.map +1 -1
- package/dist/lib/util/fetchTimeout.d.ts +1 -0
- package/dist/lib/util/fetchTimeout.js +14 -0
- package/dist/lib/util/fetchTimeout.js.map +1 -0
- package/dist/lib/util/groupBy.d.ts +1 -6
- package/dist/lib/util/groupBy.js +10 -8
- package/dist/lib/util/groupBy.js.map +1 -1
- package/dist/lib/util/invariant.d.ts +6 -0
- package/dist/lib/util/invariant.js +21 -0
- package/dist/lib/util/invariant.js.map +1 -0
- package/dist/lib/util/joinPath.js +2 -1
- package/dist/lib/util/joinPath.js.map +1 -1
- package/dist/lib/util/logInit.d.ts +1 -0
- package/dist/lib/util/logInit.js +9 -0
- package/dist/lib/util/logInit.js.map +1 -0
- package/dist/lib/util/objectEntries.d.ts +4 -0
- package/dist/lib/util/objectEntries.js +2 -0
- package/dist/lib/util/objectEntries.js.map +1 -0
- package/dist/lib/util/renderIf.d.ts +1 -0
- package/dist/lib/util/renderIf.js +2 -0
- package/dist/lib/util/renderIf.js.map +1 -0
- package/dist/lib/util/requestIdleCallbackPolyfill.d.ts +1 -0
- package/dist/lib/util/requestIdleCallbackPolyfill.js +7 -0
- package/dist/lib/util/requestIdleCallbackPolyfill.js.map +1 -0
- package/dist/lib/util/useScrollToAnchor.js +31 -17
- package/dist/lib/util/useScrollToAnchor.js.map +1 -1
- package/dist/vite/build.js +30 -7
- package/dist/vite/build.js.map +1 -1
- package/dist/vite/config.d.ts +20 -12
- package/dist/vite/config.js +107 -55
- package/dist/vite/config.js.map +1 -1
- package/dist/vite/config.test.js +6 -3
- package/dist/vite/config.test.js.map +1 -1
- package/dist/vite/dev-server.d.ts +2 -1
- package/dist/vite/dev-server.js +44 -15
- package/dist/vite/dev-server.js.map +1 -1
- package/dist/vite/html.js +18 -5
- package/dist/vite/html.js.map +1 -1
- package/dist/vite/plugin-api-keys.js +7 -8
- package/dist/vite/plugin-api-keys.js.map +1 -1
- package/dist/vite/plugin-api.js +9 -20
- package/dist/vite/plugin-api.js.map +1 -1
- package/dist/vite/plugin-auth.js +5 -6
- package/dist/vite/plugin-auth.js.map +1 -1
- package/dist/vite/plugin-component.js +5 -2
- package/dist/vite/plugin-component.js.map +1 -1
- package/dist/vite/plugin-config.d.ts +3 -6
- package/dist/vite/plugin-config.js +5 -8
- package/dist/vite/plugin-config.js.map +1 -1
- package/dist/vite/plugin-custom-css.d.ts +6 -0
- package/dist/vite/plugin-custom-css.js +54 -0
- package/dist/vite/plugin-custom-css.js.map +1 -0
- package/dist/vite/plugin-docs.js +15 -5
- package/dist/vite/plugin-docs.js.map +1 -1
- package/dist/vite/plugin-mdx.d.ts +3 -1
- package/dist/vite/plugin-mdx.js +5 -5
- package/dist/vite/plugin-mdx.js.map +1 -1
- package/dist/vite/plugin-metadata.js +1 -1
- package/dist/vite/plugin-metadata.js.map +1 -1
- package/dist/vite/plugin-redirect.js +10 -10
- package/dist/vite/plugin-redirect.js.map +1 -1
- package/dist/vite/plugin-sidebar.d.ts +3 -0
- package/dist/vite/plugin-sidebar.js +23 -0
- package/dist/vite/plugin-sidebar.js.map +1 -0
- package/dist/vite/plugin.js +5 -5
- package/dist/vite/plugin.js.map +1 -1
- package/dist/vite/prerender.d.ts +17 -0
- package/dist/vite/prerender.js +79 -0
- package/dist/vite/prerender.js.map +1 -0
- package/lib/AuthenticationPlugin-C3dzfGaA.js +55 -0
- package/lib/AuthenticationPlugin-C3dzfGaA.js.map +1 -0
- package/lib/CategoryHeading-BWq12Bfa.js +10 -0
- package/lib/CategoryHeading-BWq12Bfa.js.map +1 -0
- package/lib/Combination-Djh-LWhb.js +2789 -0
- package/lib/Combination-Djh-LWhb.js.map +1 -0
- package/lib/DeveloperHint-BQSFXH01.js +10 -0
- package/lib/DeveloperHint-BQSFXH01.js.map +1 -0
- package/lib/Input-SCGD-EvD.js +2239 -0
- package/lib/Input-SCGD-EvD.js.map +1 -0
- package/lib/Markdown-B_Gax7at.js +14108 -0
- package/lib/Markdown-B_Gax7at.js.map +1 -0
- package/lib/MdxPage-d02krMBw.js +187 -0
- package/lib/MdxPage-d02krMBw.js.map +1 -0
- package/lib/OperationList-BQweX28o.js +448 -0
- package/lib/OperationList-BQweX28o.js.map +1 -0
- package/lib/Route-BPGW1TS_.js +14 -0
- package/lib/Route-BPGW1TS_.js.map +1 -0
- package/lib/SlotletProvider-CzMAO73_.js +82 -0
- package/lib/SlotletProvider-CzMAO73_.js.map +1 -0
- package/lib/Spinner-DEgs-1Gu.js +274 -0
- package/lib/Spinner-DEgs-1Gu.js.map +1 -0
- package/lib/ZudokuContext-C3JtXViU.js +1084 -0
- package/lib/ZudokuContext-C3JtXViU.js.map +1 -0
- package/lib/_commonjsHelpers-BVfed4GL.js +29 -0
- package/lib/_commonjsHelpers-BVfed4GL.js.map +1 -0
- package/lib/assets/index-BPdJm2ty.js +1 -0
- package/lib/assets/index-BPdJm2ty.js.map +1 -0
- package/lib/assets/{worker-BCcpCNJ7.js → worker-CyHZIIfE.js} +10727 -10300
- package/lib/assets/worker-CyHZIIfE.js.map +1 -0
- package/lib/index-7kcHaXD6.js +1771 -0
- package/lib/index-7kcHaXD6.js.map +1 -0
- package/lib/index-B8BCBPkc.js +124 -0
- package/lib/index-B8BCBPkc.js.map +1 -0
- package/lib/index-DoIWqOG1.js +5934 -0
- package/lib/index-DoIWqOG1.js.map +1 -0
- package/lib/index-pI9JkN46.js +4765 -0
- package/lib/index-pI9JkN46.js.map +1 -0
- package/lib/joinPath-VeNuJa7y.js +8 -0
- package/lib/joinPath-VeNuJa7y.js.map +1 -0
- package/lib/jsx-runtime-B6kdoens.js +635 -0
- package/lib/jsx-runtime-B6kdoens.js.map +1 -0
- package/lib/prism-bash.min-DadFsM4Z.js +1 -0
- package/lib/prism-bash.min-DadFsM4Z.js.map +1 -0
- package/lib/prism-csharp.min-Yizuc34Y.js +1 -0
- package/lib/prism-csharp.min-Yizuc34Y.js.map +1 -0
- package/lib/prism-java.min-d5iT_mOd.js +1 -0
- package/lib/prism-java.min-d5iT_mOd.js.map +1 -0
- package/lib/prism-json.min-B1GJqK1k.js +1 -0
- package/lib/prism-json.min-B1GJqK1k.js.map +1 -0
- package/lib/prism-markup-templating-DZrrEs0A.js +1 -0
- package/lib/prism-markup-templating-DZrrEs0A.js.map +1 -0
- package/lib/prism-objectivec.min-BXSWqpJJ.js +1 -0
- package/lib/prism-objectivec.min-BXSWqpJJ.js.map +1 -0
- package/lib/prism-php.min-o7FpoMP_.js +1 -0
- package/lib/prism-php.min-o7FpoMP_.js.map +1 -0
- package/lib/prism-ruby.min-C7LwcKyz.js +1 -0
- package/lib/prism-ruby.min-C7LwcKyz.js.map +1 -0
- package/lib/router-BiRCp01d.js +2971 -0
- package/lib/router-BiRCp01d.js.map +1 -0
- package/lib/slugify-CiPVjteN.js +28 -0
- package/lib/slugify-CiPVjteN.js.map +1 -0
- package/lib/state-DsXXkBLH.js +288 -0
- package/lib/state-DsXXkBLH.js.map +1 -0
- package/lib/{urql-DMlBWUKL.js → urql-DrBfkb92.js} +2 -2
- package/lib/urql-DrBfkb92.js.map +1 -0
- package/lib/utils-D3fcGEot.js +749 -0
- package/lib/utils-D3fcGEot.js.map +1 -0
- package/lib/zudoku.auth-auth0.js +31 -20
- package/lib/zudoku.auth-auth0.js.map +1 -0
- package/lib/zudoku.auth-clerk.js +59 -29
- package/lib/zudoku.auth-clerk.js.map +1 -0
- package/lib/zudoku.auth-openid.js +742 -573
- package/lib/zudoku.auth-openid.js.map +1 -0
- package/lib/zudoku.components.js +2008 -684
- package/lib/zudoku.components.js.map +1 -0
- package/lib/zudoku.openapi-worker.js +15035 -146
- package/lib/zudoku.openapi-worker.js.map +1 -0
- package/lib/zudoku.plugin-api-keys.js +325 -0
- package/lib/zudoku.plugin-api-keys.js.map +1 -0
- package/lib/zudoku.plugin-custom-page.js +13 -0
- package/lib/zudoku.plugin-custom-page.js.map +1 -0
- package/lib/zudoku.plugin-markdown.js +31 -0
- package/lib/zudoku.plugin-markdown.js.map +1 -0
- package/lib/zudoku.plugin-openapi.js +14 -0
- package/lib/zudoku.plugin-openapi.js.map +1 -0
- package/lib/zudoku.plugin-redirect.js +11 -0
- package/lib/zudoku.plugin-redirect.js.map +1 -0
- package/package.json +64 -25
- package/src/app/App.tsx +0 -41
- package/src/app/demo-cdn.html +26 -0
- package/src/app/demo.html +18 -0
- package/src/app/demo.tsx +46 -0
- package/src/app/entry.client.tsx +47 -0
- package/src/app/entry.server.tsx +160 -0
- package/src/app/main.css +83 -3
- package/src/app/main.tsx +87 -15
- package/src/app/standalone.html +20 -0
- package/src/app/standalone.tsx +52 -0
- package/src/app/tailwind.ts +2 -6
- package/src/lib/authentication/AuthenticationPlugin.tsx +38 -0
- package/src/lib/authentication/authentication.ts +6 -12
- package/src/lib/authentication/components/SignIn.tsx +15 -0
- package/src/lib/authentication/components/SignOut.tsx +13 -0
- package/src/lib/authentication/components/SignUp.tsx +11 -0
- package/src/lib/authentication/hook.ts +4 -4
- package/src/lib/authentication/providers/auth0.tsx +16 -6
- package/src/lib/authentication/providers/clerk.tsx +63 -31
- package/src/lib/authentication/providers/openid.tsx +104 -34
- package/src/lib/authentication/state.ts +1 -1
- package/src/lib/components/Bootstrap.tsx +44 -0
- package/src/lib/components/DevPortal.tsx +75 -66
- package/src/lib/components/DeveloperHint.tsx +25 -0
- package/src/lib/components/ErrorPage.tsx +28 -0
- package/src/lib/components/Header.tsx +106 -31
- package/src/lib/components/Heading.tsx +26 -7
- package/src/lib/components/InlineCode.tsx +19 -0
- package/src/lib/components/Layout.tsx +16 -11
- package/src/lib/components/NotFoundPage.tsx +33 -0
- package/src/lib/components/SlotletProvider.tsx +25 -0
- package/src/lib/components/SyntaxHighlight.tsx +53 -44
- package/src/lib/components/TopNavigation.tsx +10 -5
- package/src/lib/components/context/ThemeContext.tsx +3 -41
- package/src/lib/components/context/ThemeProvider.tsx +27 -0
- package/src/lib/components/context/ZudokuContext.ts +55 -0
- package/src/lib/components/context/ZudokuProvider.tsx +26 -0
- package/src/lib/components/index.ts +25 -3
- package/src/lib/components/navigation/Sidebar.tsx +24 -0
- package/src/lib/components/navigation/SidebarBadge.tsx +40 -0
- package/src/lib/components/navigation/SidebarCategory.tsx +105 -0
- package/src/lib/components/navigation/SidebarItem.tsx +100 -0
- package/src/lib/components/navigation/{SideNavigationWrapper.tsx → SidebarWrapper.tsx} +1 -1
- package/src/lib/components/navigation/utils.ts +117 -0
- package/src/lib/core/DevPortalContext.ts +72 -68
- package/src/lib/core/plugins.ts +40 -16
- package/src/lib/errors/ErrorAlert.tsx +21 -0
- package/src/lib/errors/RouterError.tsx +13 -0
- package/src/lib/errors/ServerError.tsx +5 -0
- package/src/lib/errors/TopLevelError.tsx +8 -0
- package/src/lib/oas/graphql/index.ts +11 -6
- package/src/lib/oas/parser/index.ts +41 -20
- package/src/lib/plugins/{api-key → api-keys}/CreateApiKey.tsx +4 -4
- package/src/lib/plugins/api-keys/ProtectedRoute.tsx +29 -0
- package/src/lib/plugins/{api-key → api-keys}/SettingsApiKeys.tsx +49 -16
- package/src/lib/plugins/{api-key → api-keys}/index.tsx +27 -41
- package/src/lib/plugins/custom-page/index.tsx +22 -0
- package/src/lib/plugins/markdown/MdxPage.tsx +54 -73
- package/src/lib/plugins/markdown/Toc.tsx +53 -40
- package/src/lib/plugins/markdown/generateRoutes.tsx +35 -53
- package/src/lib/plugins/markdown/index.tsx +10 -7
- package/src/lib/plugins/openapi/ColorizedParam.tsx +23 -16
- package/src/lib/plugins/openapi/OperationList.tsx +46 -10
- package/src/lib/plugins/openapi/OperationListItem.tsx +51 -30
- package/src/lib/plugins/openapi/ParameterList.tsx +13 -10
- package/src/lib/plugins/openapi/ParameterListItem.tsx +3 -4
- package/src/lib/plugins/openapi/PlaygroundDialogWrapper.tsx +39 -0
- package/src/lib/plugins/openapi/RequestBodySidecarBox.tsx +3 -15
- package/src/lib/plugins/openapi/ResponsesSidecarBox.tsx +3 -2
- package/src/lib/plugins/openapi/Route.tsx +21 -0
- package/src/lib/plugins/openapi/SchemaListView.tsx +39 -192
- package/src/lib/plugins/openapi/SchemaListViewItem.tsx +125 -0
- package/src/lib/plugins/openapi/SchemaListViewItemGroup.tsx +63 -0
- package/src/lib/plugins/openapi/Sidecar.tsx +77 -30
- package/src/lib/plugins/openapi/SidecarBox.tsx +13 -2
- package/src/lib/plugins/openapi/{Select.tsx → SimpleSelect.tsx} +6 -3
- package/src/lib/plugins/openapi/StaggeredRender.tsx +31 -0
- package/src/lib/plugins/openapi/client/createMemoryClient.ts +56 -0
- package/src/lib/plugins/openapi/client/createServer.ts +33 -0
- package/src/lib/plugins/openapi/{worker/createSharedWorkerClient.ts → client/createWorkerClient.ts} +21 -2
- package/src/lib/plugins/openapi/client/interfaces.ts +5 -0
- package/src/lib/plugins/openapi/{worker → client}/worker.ts +3 -3
- package/src/lib/plugins/openapi/context.tsx +16 -0
- package/src/lib/plugins/openapi/graphql/gql.ts +8 -8
- package/src/lib/plugins/openapi/graphql/graphql.ts +80 -80
- package/src/lib/plugins/openapi/index.tsx +134 -76
- package/src/lib/plugins/openapi/interfaces.ts +9 -0
- package/src/lib/plugins/openapi/playground/Headers.tsx +1 -1
- package/src/lib/plugins/openapi/playground/PathParams.tsx +76 -50
- package/src/lib/plugins/openapi/playground/Playground.tsx +240 -230
- package/src/lib/plugins/openapi/playground/PlaygroundDialog.tsx +40 -0
- package/src/lib/plugins/openapi/playground/QueryParams.tsx +107 -66
- package/src/lib/plugins/openapi/playground/ResponseTab.tsx +76 -0
- package/src/lib/plugins/openapi/playground/createUrl.ts +12 -15
- package/src/lib/plugins/openapi/util/prose.ts +7 -0
- package/src/lib/plugins/openapi-worker.ts +1 -1
- package/src/lib/plugins/redirect/index.tsx +3 -4
- package/src/lib/ui/Button.tsx +32 -2
- package/src/lib/ui/Callout.tsx +4 -4
- package/src/lib/ui/Card.tsx +1 -1
- package/src/lib/ui/DropdownMenu.tsx +199 -0
- package/src/lib/util/MdxComponents.tsx +7 -15
- package/src/lib/util/fetchTimeout.tsx +21 -0
- package/src/lib/util/groupBy.ts +7 -12
- package/src/lib/util/invariant.ts +26 -0
- package/src/lib/util/joinPath.tsx +2 -1
- package/src/lib/util/logInit.ts +9 -0
- package/src/lib/util/objectEntries.ts +5 -0
- package/src/lib/util/renderIf.ts +4 -0
- package/src/lib/util/requestIdleCallbackPolyfill.ts +6 -0
- package/src/lib/util/useScrollToAnchor.ts +39 -18
- package/dist/lib/authentication/Callback.d.ts +0 -3
- package/dist/lib/authentication/Callback.js +0 -34
- package/dist/lib/authentication/Callback.js.map +0 -1
- package/dist/lib/components/Input.js.map +0 -1
- package/dist/lib/components/Link.d.ts +0 -1
- package/dist/lib/components/Link.js +0 -2
- package/dist/lib/components/Link.js.map +0 -1
- package/dist/lib/components/Router.d.ts +0 -4
- package/dist/lib/components/Router.js +0 -20
- package/dist/lib/components/Router.js.map +0 -1
- package/dist/lib/components/context/DevPortalProvider.d.ts +0 -9
- package/dist/lib/components/context/DevPortalProvider.js +0 -39
- package/dist/lib/components/context/DevPortalProvider.js.map +0 -1
- package/dist/lib/components/navigation/SideNavigation.d.ts +0 -1
- package/dist/lib/components/navigation/SideNavigation.js +0 -11
- package/dist/lib/components/navigation/SideNavigation.js.map +0 -1
- package/dist/lib/components/navigation/SideNavigationCategory.d.ts +0 -4
- package/dist/lib/components/navigation/SideNavigationCategory.js +0 -26
- package/dist/lib/components/navigation/SideNavigationCategory.js.map +0 -1
- package/dist/lib/components/navigation/SideNavigationItem.d.ts +0 -13
- package/dist/lib/components/navigation/SideNavigationItem.js +0 -44
- package/dist/lib/components/navigation/SideNavigationItem.js.map +0 -1
- package/dist/lib/components/navigation/SideNavigationWrapper.js.map +0 -1
- package/dist/lib/components/navigation/useNavigationCollapsibleState.d.ts +0 -6
- package/dist/lib/components/navigation/useNavigationCollapsibleState.js +0 -16
- package/dist/lib/components/navigation/useNavigationCollapsibleState.js.map +0 -1
- package/dist/lib/components/navigation/util.d.ts +0 -8
- package/dist/lib/components/navigation/util.js +0 -15
- package/dist/lib/components/navigation/util.js.map +0 -1
- package/dist/lib/core/helmet.d.ts +0 -4
- package/dist/lib/core/helmet.js +0 -5
- package/dist/lib/core/helmet.js.map +0 -1
- package/dist/lib/core/icons.d.ts +0 -1
- package/dist/lib/core/icons.js +0 -2
- package/dist/lib/core/icons.js.map +0 -1
- package/dist/lib/core/router.d.ts +0 -1
- package/dist/lib/core/router.js +0 -2
- package/dist/lib/core/router.js.map +0 -1
- package/dist/lib/plugins/api-key/CreateApiKey.js.map +0 -1
- package/dist/lib/plugins/api-key/SettingsApiKeys.js +0 -38
- package/dist/lib/plugins/api-key/SettingsApiKeys.js.map +0 -1
- package/dist/lib/plugins/api-key/index.js.map +0 -1
- package/dist/lib/plugins/index.d.ts +0 -4
- package/dist/lib/plugins/index.js +0 -5
- package/dist/lib/plugins/index.js.map +0 -1
- package/dist/lib/plugins/openapi/MakeRequest.js +0 -43
- package/dist/lib/plugins/openapi/MakeRequest.js.map +0 -1
- package/dist/lib/plugins/openapi/MethodBadge.d.ts +0 -13
- package/dist/lib/plugins/openapi/MethodBadge.js +0 -26
- package/dist/lib/plugins/openapi/MethodBadge.js.map +0 -1
- package/dist/lib/plugins/openapi/Select.js +0 -5
- package/dist/lib/plugins/openapi/Select.js.map +0 -1
- package/dist/lib/plugins/openapi/worker/createSharedWorkerClient.d.ts +0 -5
- package/dist/lib/plugins/openapi/worker/createSharedWorkerClient.js.map +0 -1
- package/dist/lib/plugins/openapi/worker/shared-worker.d.ts +0 -1
- package/dist/lib/plugins/openapi/worker/shared-worker.js +0 -6
- package/dist/lib/plugins/openapi/worker/shared-worker.js.map +0 -1
- package/dist/lib/plugins/openapi/worker/worker.js.map +0 -1
- package/dist/lib/ui/button-variants.d.ts +0 -4
- package/dist/lib/ui/button-variants.js +0 -24
- package/dist/lib/ui/button-variants.js.map +0 -1
- package/dist/lib/util/traverseNavigation.d.ts +0 -6
- package/dist/lib/util/traverseNavigation.js +0 -30
- package/dist/lib/util/traverseNavigation.js.map +0 -1
- package/dist/vite/common.d.ts +0 -1
- package/dist/vite/common.js +0 -5
- package/dist/vite/common.js.map +0 -1
- package/dist/vite/plugin-html.d.ts +0 -3
- package/dist/vite/plugin-html.js +0 -47
- package/dist/vite/plugin-html.js.map +0 -1
- package/dist/vite/plugin-openapi-worker.d.ts +0 -4
- package/dist/vite/plugin-openapi-worker.js +0 -28
- package/dist/vite/plugin-openapi-worker.js.map +0 -1
- package/lib/Spinner-BewqqUU-.js +0 -8413
- package/lib/clerk-Wslx_mPo.js +0 -19685
- package/lib/index-PyGcnQFX.js +0 -3462
- package/lib/loglevel-CoH7VSwE.js +0 -152
- package/lib/state-2Hu1renZ.js +0 -313
- package/lib/zudoku.plugins.js +0 -19904
- package/src/lib/authentication/Callback.tsx +0 -60
- package/src/lib/components/Link.tsx +0 -1
- package/src/lib/components/Router.tsx +0 -28
- package/src/lib/components/context/DevPortalProvider.ts +0 -54
- package/src/lib/components/navigation/SideNavigation.tsx +0 -21
- package/src/lib/components/navigation/SideNavigationCategory.tsx +0 -76
- package/src/lib/components/navigation/SideNavigationItem.tsx +0 -152
- package/src/lib/components/navigation/useNavigationCollapsibleState.ts +0 -27
- package/src/lib/components/navigation/util.ts +0 -38
- package/src/lib/core/helmet.ts +0 -5
- package/src/lib/core/icons.tsx +0 -1
- package/src/lib/core/router.tsx +0 -1
- package/src/lib/plugins/index.ts +0 -4
- package/src/lib/plugins/openapi/MakeRequest.tsx +0 -63
- package/src/lib/plugins/openapi/MethodBadge.tsx +0 -36
- package/src/lib/plugins/openapi/worker/shared-worker.ts +0 -5
- package/src/lib/ui/button-variants.ts +0 -31
- package/src/lib/util/traverseNavigation.ts +0 -55
- /package/dist/lib/plugins/{api-key → api-keys}/CreateApiKey.d.ts +0 -0
- /package/dist/lib/plugins/{api-key → api-keys}/SettingsApiKeys.d.ts +0 -0
- /package/dist/lib/plugins/openapi/{worker → client}/worker.d.ts +0 -0
- /package/dist/lib/{components → ui}/Input.d.ts +0 -0
- /package/dist/lib/{components → ui}/Input.js +0 -0
- /package/src/lib/{components → ui}/Input.tsx +0 -0
|
@@ -0,0 +1,749 @@
|
|
|
1
|
+
var le = Object.defineProperty;
|
|
2
|
+
var ce = (e, t, r) => t in e ? le(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
|
|
3
|
+
var T = (e, t, r) => ce(e, typeof t != "symbol" ? t + "" : t, r);
|
|
4
|
+
import h, { Component as U } from "react";
|
|
5
|
+
import { a as q } from "./_commonjsHelpers-BVfed4GL.js";
|
|
6
|
+
import { j as ue } from "./jsx-runtime-B6kdoens.js";
|
|
7
|
+
import { u as $, L as fe } from "./index-7kcHaXD6.js";
|
|
8
|
+
import { j as S } from "./joinPath-VeNuJa7y.js";
|
|
9
|
+
import { l as K, u as Q } from "./ZudokuContext-C3JtXViU.js";
|
|
10
|
+
const _ = {}, N = h.createContext(_);
|
|
11
|
+
function de(e) {
|
|
12
|
+
const t = h.useContext(N);
|
|
13
|
+
return h.useMemo(
|
|
14
|
+
function() {
|
|
15
|
+
return typeof e == "function" ? e(t) : { ...t, ...e };
|
|
16
|
+
},
|
|
17
|
+
[t, e]
|
|
18
|
+
);
|
|
19
|
+
}
|
|
20
|
+
function We(e) {
|
|
21
|
+
let t;
|
|
22
|
+
return e.disableParentContext ? t = typeof e.components == "function" ? e.components(_) : e.components || _ : t = de(e.components), h.createElement(
|
|
23
|
+
N.Provider,
|
|
24
|
+
{ value: t },
|
|
25
|
+
e.children
|
|
26
|
+
);
|
|
27
|
+
}
|
|
28
|
+
var pe = typeof Element < "u", he = typeof Map == "function", me = typeof Set == "function", ye = typeof ArrayBuffer == "function" && !!ArrayBuffer.isView;
|
|
29
|
+
function P(e, t) {
|
|
30
|
+
if (e === t) return !0;
|
|
31
|
+
if (e && t && typeof e == "object" && typeof t == "object") {
|
|
32
|
+
if (e.constructor !== t.constructor) return !1;
|
|
33
|
+
var r, n, s;
|
|
34
|
+
if (Array.isArray(e)) {
|
|
35
|
+
if (r = e.length, r != t.length) return !1;
|
|
36
|
+
for (n = r; n-- !== 0; )
|
|
37
|
+
if (!P(e[n], t[n])) return !1;
|
|
38
|
+
return !0;
|
|
39
|
+
}
|
|
40
|
+
var o;
|
|
41
|
+
if (he && e instanceof Map && t instanceof Map) {
|
|
42
|
+
if (e.size !== t.size) return !1;
|
|
43
|
+
for (o = e.entries(); !(n = o.next()).done; )
|
|
44
|
+
if (!t.has(n.value[0])) return !1;
|
|
45
|
+
for (o = e.entries(); !(n = o.next()).done; )
|
|
46
|
+
if (!P(n.value[1], t.get(n.value[0]))) return !1;
|
|
47
|
+
return !0;
|
|
48
|
+
}
|
|
49
|
+
if (me && e instanceof Set && t instanceof Set) {
|
|
50
|
+
if (e.size !== t.size) return !1;
|
|
51
|
+
for (o = e.entries(); !(n = o.next()).done; )
|
|
52
|
+
if (!t.has(n.value[0])) return !1;
|
|
53
|
+
return !0;
|
|
54
|
+
}
|
|
55
|
+
if (ye && ArrayBuffer.isView(e) && ArrayBuffer.isView(t)) {
|
|
56
|
+
if (r = e.length, r != t.length) return !1;
|
|
57
|
+
for (n = r; n-- !== 0; )
|
|
58
|
+
if (e[n] !== t[n]) return !1;
|
|
59
|
+
return !0;
|
|
60
|
+
}
|
|
61
|
+
if (e.constructor === RegExp) return e.source === t.source && e.flags === t.flags;
|
|
62
|
+
if (e.valueOf !== Object.prototype.valueOf && typeof e.valueOf == "function" && typeof t.valueOf == "function") return e.valueOf() === t.valueOf();
|
|
63
|
+
if (e.toString !== Object.prototype.toString && typeof e.toString == "function" && typeof t.toString == "function") return e.toString() === t.toString();
|
|
64
|
+
if (s = Object.keys(e), r = s.length, r !== Object.keys(t).length) return !1;
|
|
65
|
+
for (n = r; n-- !== 0; )
|
|
66
|
+
if (!Object.prototype.hasOwnProperty.call(t, s[n])) return !1;
|
|
67
|
+
if (pe && e instanceof Element) return !1;
|
|
68
|
+
for (n = r; n-- !== 0; )
|
|
69
|
+
if (!((s[n] === "_owner" || s[n] === "__v" || s[n] === "__o") && e.$$typeof) && !P(e[s[n]], t[s[n]]))
|
|
70
|
+
return !1;
|
|
71
|
+
return !0;
|
|
72
|
+
}
|
|
73
|
+
return e !== e && t !== t;
|
|
74
|
+
}
|
|
75
|
+
var Te = function(t, r) {
|
|
76
|
+
try {
|
|
77
|
+
return P(t, r);
|
|
78
|
+
} catch (n) {
|
|
79
|
+
if ((n.message || "").match(/stack|recursion/i))
|
|
80
|
+
return console.warn("react-fast-compare cannot handle circular refs"), !1;
|
|
81
|
+
throw n;
|
|
82
|
+
}
|
|
83
|
+
};
|
|
84
|
+
const ge = /* @__PURE__ */ q(Te);
|
|
85
|
+
var ve = function(e, t, r, n, s, o, c, i) {
|
|
86
|
+
if (process.env.NODE_ENV !== "production" && t === void 0)
|
|
87
|
+
throw new Error("invariant requires an error message argument");
|
|
88
|
+
if (!e) {
|
|
89
|
+
var a;
|
|
90
|
+
if (t === void 0)
|
|
91
|
+
a = new Error(
|
|
92
|
+
"Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings."
|
|
93
|
+
);
|
|
94
|
+
else {
|
|
95
|
+
var l = [r, n, s, o, c, i], u = 0;
|
|
96
|
+
a = new Error(
|
|
97
|
+
t.replace(/%s/g, function() {
|
|
98
|
+
return l[u++];
|
|
99
|
+
})
|
|
100
|
+
), a.name = "Invariant Violation";
|
|
101
|
+
}
|
|
102
|
+
throw a.framesToPop = 1, a;
|
|
103
|
+
}
|
|
104
|
+
}, Ae = ve;
|
|
105
|
+
const X = /* @__PURE__ */ q(Ae);
|
|
106
|
+
var be = function(t, r, n, s) {
|
|
107
|
+
var o = n ? n.call(s, t, r) : void 0;
|
|
108
|
+
if (o !== void 0)
|
|
109
|
+
return !!o;
|
|
110
|
+
if (t === r)
|
|
111
|
+
return !0;
|
|
112
|
+
if (typeof t != "object" || !t || typeof r != "object" || !r)
|
|
113
|
+
return !1;
|
|
114
|
+
var c = Object.keys(t), i = Object.keys(r);
|
|
115
|
+
if (c.length !== i.length)
|
|
116
|
+
return !1;
|
|
117
|
+
for (var a = Object.prototype.hasOwnProperty.bind(r), l = 0; l < c.length; l++) {
|
|
118
|
+
var u = c[l];
|
|
119
|
+
if (!a(u))
|
|
120
|
+
return !1;
|
|
121
|
+
var f = t[u], m = r[u];
|
|
122
|
+
if (o = n ? n.call(s, f, m, u) : void 0, o === !1 || o === void 0 && f !== m)
|
|
123
|
+
return !1;
|
|
124
|
+
}
|
|
125
|
+
return !0;
|
|
126
|
+
};
|
|
127
|
+
const Ce = /* @__PURE__ */ q(be);
|
|
128
|
+
var ee = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "head", e.HTML = "html", e.LINK = "link", e.META = "meta", e.NOSCRIPT = "noscript", e.SCRIPT = "script", e.STYLE = "style", e.TITLE = "title", e.FRAGMENT = "Symbol(react.fragment)", e))(ee || {}), D = {
|
|
129
|
+
link: { rel: ["amphtml", "canonical", "alternate"] },
|
|
130
|
+
script: { type: ["application/ld+json"] },
|
|
131
|
+
meta: {
|
|
132
|
+
charset: "",
|
|
133
|
+
name: ["generator", "robots", "description"],
|
|
134
|
+
property: [
|
|
135
|
+
"og:type",
|
|
136
|
+
"og:title",
|
|
137
|
+
"og:url",
|
|
138
|
+
"og:image",
|
|
139
|
+
"og:image:alt",
|
|
140
|
+
"og:description",
|
|
141
|
+
"twitter:url",
|
|
142
|
+
"twitter:title",
|
|
143
|
+
"twitter:description",
|
|
144
|
+
"twitter:image",
|
|
145
|
+
"twitter:image:alt",
|
|
146
|
+
"twitter:card",
|
|
147
|
+
"twitter:site"
|
|
148
|
+
]
|
|
149
|
+
}
|
|
150
|
+
}, Z = Object.values(ee), z = {
|
|
151
|
+
accesskey: "accessKey",
|
|
152
|
+
charset: "charSet",
|
|
153
|
+
class: "className",
|
|
154
|
+
contenteditable: "contentEditable",
|
|
155
|
+
contextmenu: "contextMenu",
|
|
156
|
+
"http-equiv": "httpEquiv",
|
|
157
|
+
itemprop: "itemProp",
|
|
158
|
+
tabindex: "tabIndex"
|
|
159
|
+
}, Ee = Object.entries(z).reduce(
|
|
160
|
+
(e, [t, r]) => (e[r] = t, e),
|
|
161
|
+
{}
|
|
162
|
+
), y = "data-rh", b = {
|
|
163
|
+
DEFAULT_TITLE: "defaultTitle",
|
|
164
|
+
DEFER: "defer",
|
|
165
|
+
ENCODE_SPECIAL_CHARACTERS: "encodeSpecialCharacters",
|
|
166
|
+
ON_CHANGE_CLIENT_STATE: "onChangeClientState",
|
|
167
|
+
TITLE_TEMPLATE: "titleTemplate",
|
|
168
|
+
PRIORITIZE_SEO_TAGS: "prioritizeSeoTags"
|
|
169
|
+
}, C = (e, t) => {
|
|
170
|
+
for (let r = e.length - 1; r >= 0; r -= 1) {
|
|
171
|
+
const n = e[r];
|
|
172
|
+
if (Object.prototype.hasOwnProperty.call(n, t))
|
|
173
|
+
return n[t];
|
|
174
|
+
}
|
|
175
|
+
return null;
|
|
176
|
+
}, Oe = (e) => {
|
|
177
|
+
let t = C(
|
|
178
|
+
e,
|
|
179
|
+
"title"
|
|
180
|
+
/* TITLE */
|
|
181
|
+
);
|
|
182
|
+
const r = C(e, b.TITLE_TEMPLATE);
|
|
183
|
+
if (Array.isArray(t) && (t = t.join("")), r && t)
|
|
184
|
+
return r.replace(/%s/g, () => t);
|
|
185
|
+
const n = C(e, b.DEFAULT_TITLE);
|
|
186
|
+
return t || n || void 0;
|
|
187
|
+
}, Se = (e) => C(e, b.ON_CHANGE_CLIENT_STATE) || (() => {
|
|
188
|
+
}), M = (e, t) => t.filter((r) => typeof r[e] < "u").map((r) => r[e]).reduce((r, n) => ({ ...r, ...n }), {}), we = (e, t) => t.filter((r) => typeof r.base < "u").map((r) => r.base).reverse().reduce((r, n) => {
|
|
189
|
+
if (!r.length) {
|
|
190
|
+
const s = Object.keys(n);
|
|
191
|
+
for (let o = 0; o < s.length; o += 1) {
|
|
192
|
+
const i = s[o].toLowerCase();
|
|
193
|
+
if (e.indexOf(i) !== -1 && n[i])
|
|
194
|
+
return r.concat(n);
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
return r;
|
|
198
|
+
}, []), xe = (e) => console && typeof console.warn == "function" && console.warn(e), E = (e, t, r) => {
|
|
199
|
+
const n = {};
|
|
200
|
+
return r.filter((s) => Array.isArray(s[e]) ? !0 : (typeof s[e] < "u" && xe(
|
|
201
|
+
`Helmet: ${e} should be of type "Array". Instead found type "${typeof s[e]}"`
|
|
202
|
+
), !1)).map((s) => s[e]).reverse().reduce((s, o) => {
|
|
203
|
+
const c = {};
|
|
204
|
+
o.filter((a) => {
|
|
205
|
+
let l;
|
|
206
|
+
const u = Object.keys(a);
|
|
207
|
+
for (let m = 0; m < u.length; m += 1) {
|
|
208
|
+
const d = u[m], g = d.toLowerCase();
|
|
209
|
+
t.indexOf(g) !== -1 && !(l === "rel" && a[l].toLowerCase() === "canonical") && !(g === "rel" && a[g].toLowerCase() === "stylesheet") && (l = g), t.indexOf(d) !== -1 && (d === "innerHTML" || d === "cssText" || d === "itemprop") && (l = d);
|
|
210
|
+
}
|
|
211
|
+
if (!l || !a[l])
|
|
212
|
+
return !1;
|
|
213
|
+
const f = a[l].toLowerCase();
|
|
214
|
+
return n[l] || (n[l] = {}), c[l] || (c[l] = {}), n[l][f] ? !1 : (c[l][f] = !0, !0);
|
|
215
|
+
}).reverse().forEach((a) => s.push(a));
|
|
216
|
+
const i = Object.keys(c);
|
|
217
|
+
for (let a = 0; a < i.length; a += 1) {
|
|
218
|
+
const l = i[a], u = {
|
|
219
|
+
...n[l],
|
|
220
|
+
...c[l]
|
|
221
|
+
};
|
|
222
|
+
n[l] = u;
|
|
223
|
+
}
|
|
224
|
+
return s;
|
|
225
|
+
}, []).reverse();
|
|
226
|
+
}, Pe = (e, t) => {
|
|
227
|
+
if (Array.isArray(e) && e.length) {
|
|
228
|
+
for (let r = 0; r < e.length; r += 1)
|
|
229
|
+
if (e[r][t])
|
|
230
|
+
return !0;
|
|
231
|
+
}
|
|
232
|
+
return !1;
|
|
233
|
+
}, ke = (e) => ({
|
|
234
|
+
baseTag: we([
|
|
235
|
+
"href"
|
|
236
|
+
/* HREF */
|
|
237
|
+
], e),
|
|
238
|
+
bodyAttributes: M("bodyAttributes", e),
|
|
239
|
+
defer: C(e, b.DEFER),
|
|
240
|
+
encode: C(e, b.ENCODE_SPECIAL_CHARACTERS),
|
|
241
|
+
htmlAttributes: M("htmlAttributes", e),
|
|
242
|
+
linkTags: E(
|
|
243
|
+
"link",
|
|
244
|
+
[
|
|
245
|
+
"rel",
|
|
246
|
+
"href"
|
|
247
|
+
/* HREF */
|
|
248
|
+
],
|
|
249
|
+
e
|
|
250
|
+
),
|
|
251
|
+
metaTags: E(
|
|
252
|
+
"meta",
|
|
253
|
+
[
|
|
254
|
+
"name",
|
|
255
|
+
"charset",
|
|
256
|
+
"http-equiv",
|
|
257
|
+
"property",
|
|
258
|
+
"itemprop"
|
|
259
|
+
/* ITEM_PROP */
|
|
260
|
+
],
|
|
261
|
+
e
|
|
262
|
+
),
|
|
263
|
+
noscriptTags: E("noscript", [
|
|
264
|
+
"innerHTML"
|
|
265
|
+
/* INNER_HTML */
|
|
266
|
+
], e),
|
|
267
|
+
onChangeClientState: Se(e),
|
|
268
|
+
scriptTags: E(
|
|
269
|
+
"script",
|
|
270
|
+
[
|
|
271
|
+
"src",
|
|
272
|
+
"innerHTML"
|
|
273
|
+
/* INNER_HTML */
|
|
274
|
+
],
|
|
275
|
+
e
|
|
276
|
+
),
|
|
277
|
+
styleTags: E("style", [
|
|
278
|
+
"cssText"
|
|
279
|
+
/* CSS_TEXT */
|
|
280
|
+
], e),
|
|
281
|
+
title: Oe(e),
|
|
282
|
+
titleAttributes: M("titleAttributes", e),
|
|
283
|
+
prioritizeSeoTags: Pe(e, b.PRIORITIZE_SEO_TAGS)
|
|
284
|
+
}), te = (e) => Array.isArray(e) ? e.join("") : e, $e = (e, t) => {
|
|
285
|
+
const r = Object.keys(e);
|
|
286
|
+
for (let n = 0; n < r.length; n += 1)
|
|
287
|
+
if (t[r[n]] && t[r[n]].includes(e[r[n]]))
|
|
288
|
+
return !0;
|
|
289
|
+
return !1;
|
|
290
|
+
}, I = (e, t) => Array.isArray(e) ? e.reduce(
|
|
291
|
+
(r, n) => ($e(n, t) ? r.priority.push(n) : r.default.push(n), r),
|
|
292
|
+
{ priority: [], default: [] }
|
|
293
|
+
) : { default: e, priority: [] }, W = (e, t) => ({
|
|
294
|
+
...e,
|
|
295
|
+
[t]: void 0
|
|
296
|
+
}), De = [
|
|
297
|
+
"noscript",
|
|
298
|
+
"script",
|
|
299
|
+
"style"
|
|
300
|
+
/* STYLE */
|
|
301
|
+
], R = (e, t = !0) => t === !1 ? String(e) : String(e).replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'"), re = (e) => Object.keys(e).reduce((t, r) => {
|
|
302
|
+
const n = typeof e[r] < "u" ? `${r}="${e[r]}"` : `${r}`;
|
|
303
|
+
return t ? `${t} ${n}` : n;
|
|
304
|
+
}, ""), Me = (e, t, r, n) => {
|
|
305
|
+
const s = re(r), o = te(t);
|
|
306
|
+
return s ? `<${e} ${y}="true" ${s}>${R(
|
|
307
|
+
o,
|
|
308
|
+
n
|
|
309
|
+
)}</${e}>` : `<${e} ${y}="true">${R(
|
|
310
|
+
o,
|
|
311
|
+
n
|
|
312
|
+
)}</${e}>`;
|
|
313
|
+
}, Ie = (e, t, r = !0) => t.reduce((n, s) => {
|
|
314
|
+
const o = s, c = Object.keys(o).filter(
|
|
315
|
+
(l) => !(l === "innerHTML" || l === "cssText")
|
|
316
|
+
).reduce((l, u) => {
|
|
317
|
+
const f = typeof o[u] > "u" ? u : `${u}="${R(o[u], r)}"`;
|
|
318
|
+
return l ? `${l} ${f}` : f;
|
|
319
|
+
}, ""), i = o.innerHTML || o.cssText || "", a = De.indexOf(e) === -1;
|
|
320
|
+
return `${n}<${e} ${y}="true" ${c}${a ? "/>" : `>${i}</${e}>`}`;
|
|
321
|
+
}, ""), ne = (e, t = {}) => Object.keys(e).reduce((r, n) => {
|
|
322
|
+
const s = z[n];
|
|
323
|
+
return r[s || n] = e[n], r;
|
|
324
|
+
}, t), He = (e, t, r) => {
|
|
325
|
+
const n = {
|
|
326
|
+
key: t,
|
|
327
|
+
[y]: !0
|
|
328
|
+
}, s = ne(r, n);
|
|
329
|
+
return [h.createElement("title", s, t)];
|
|
330
|
+
}, k = (e, t) => t.map((r, n) => {
|
|
331
|
+
const s = {
|
|
332
|
+
key: n,
|
|
333
|
+
[y]: !0
|
|
334
|
+
};
|
|
335
|
+
return Object.keys(r).forEach((o) => {
|
|
336
|
+
const i = z[o] || o;
|
|
337
|
+
if (i === "innerHTML" || i === "cssText") {
|
|
338
|
+
const a = r.innerHTML || r.cssText;
|
|
339
|
+
s.dangerouslySetInnerHTML = { __html: a };
|
|
340
|
+
} else
|
|
341
|
+
s[i] = r[o];
|
|
342
|
+
}), h.createElement(e, s);
|
|
343
|
+
}), p = (e, t, r = !0) => {
|
|
344
|
+
switch (e) {
|
|
345
|
+
case "title":
|
|
346
|
+
return {
|
|
347
|
+
toComponent: () => He(e, t.title, t.titleAttributes),
|
|
348
|
+
toString: () => Me(e, t.title, t.titleAttributes, r)
|
|
349
|
+
};
|
|
350
|
+
case "bodyAttributes":
|
|
351
|
+
case "htmlAttributes":
|
|
352
|
+
return {
|
|
353
|
+
toComponent: () => ne(t),
|
|
354
|
+
toString: () => re(t)
|
|
355
|
+
};
|
|
356
|
+
default:
|
|
357
|
+
return {
|
|
358
|
+
toComponent: () => k(e, t),
|
|
359
|
+
toString: () => Ie(e, t, r)
|
|
360
|
+
};
|
|
361
|
+
}
|
|
362
|
+
}, _e = ({ metaTags: e, linkTags: t, scriptTags: r, encode: n }) => {
|
|
363
|
+
const s = I(e, D.meta), o = I(t, D.link), c = I(r, D.script);
|
|
364
|
+
return {
|
|
365
|
+
priorityMethods: {
|
|
366
|
+
toComponent: () => [
|
|
367
|
+
...k("meta", s.priority),
|
|
368
|
+
...k("link", o.priority),
|
|
369
|
+
...k("script", c.priority)
|
|
370
|
+
],
|
|
371
|
+
toString: () => (
|
|
372
|
+
// generate all the tags as strings and concatenate them
|
|
373
|
+
`${p("meta", s.priority, n)} ${p(
|
|
374
|
+
"link",
|
|
375
|
+
o.priority,
|
|
376
|
+
n
|
|
377
|
+
)} ${p("script", c.priority, n)}`
|
|
378
|
+
)
|
|
379
|
+
},
|
|
380
|
+
metaTags: s.default,
|
|
381
|
+
linkTags: o.default,
|
|
382
|
+
scriptTags: c.default
|
|
383
|
+
};
|
|
384
|
+
}, Re = (e) => {
|
|
385
|
+
const {
|
|
386
|
+
baseTag: t,
|
|
387
|
+
bodyAttributes: r,
|
|
388
|
+
encode: n = !0,
|
|
389
|
+
htmlAttributes: s,
|
|
390
|
+
noscriptTags: o,
|
|
391
|
+
styleTags: c,
|
|
392
|
+
title: i = "",
|
|
393
|
+
titleAttributes: a,
|
|
394
|
+
prioritizeSeoTags: l
|
|
395
|
+
} = e;
|
|
396
|
+
let { linkTags: u, metaTags: f, scriptTags: m } = e, d = {
|
|
397
|
+
toComponent: () => {
|
|
398
|
+
},
|
|
399
|
+
toString: () => ""
|
|
400
|
+
};
|
|
401
|
+
return l && ({ priorityMethods: d, linkTags: u, metaTags: f, scriptTags: m } = _e(e)), {
|
|
402
|
+
priority: d,
|
|
403
|
+
base: p("base", t, n),
|
|
404
|
+
bodyAttributes: p("bodyAttributes", r, n),
|
|
405
|
+
htmlAttributes: p("htmlAttributes", s, n),
|
|
406
|
+
link: p("link", u, n),
|
|
407
|
+
meta: p("meta", f, n),
|
|
408
|
+
noscript: p("noscript", o, n),
|
|
409
|
+
script: p("script", m, n),
|
|
410
|
+
style: p("style", c, n),
|
|
411
|
+
title: p("title", { title: i, titleAttributes: a }, n)
|
|
412
|
+
};
|
|
413
|
+
}, j = Re, x = [], se = !!(typeof window < "u" && window.document && window.document.createElement), L = class {
|
|
414
|
+
constructor(e, t) {
|
|
415
|
+
T(this, "instances", []);
|
|
416
|
+
T(this, "canUseDOM", se);
|
|
417
|
+
T(this, "context");
|
|
418
|
+
T(this, "value", {
|
|
419
|
+
setHelmet: (e) => {
|
|
420
|
+
this.context.helmet = e;
|
|
421
|
+
},
|
|
422
|
+
helmetInstances: {
|
|
423
|
+
get: () => this.canUseDOM ? x : this.instances,
|
|
424
|
+
add: (e) => {
|
|
425
|
+
(this.canUseDOM ? x : this.instances).push(e);
|
|
426
|
+
},
|
|
427
|
+
remove: (e) => {
|
|
428
|
+
const t = (this.canUseDOM ? x : this.instances).indexOf(e);
|
|
429
|
+
(this.canUseDOM ? x : this.instances).splice(t, 1);
|
|
430
|
+
}
|
|
431
|
+
}
|
|
432
|
+
});
|
|
433
|
+
this.context = e, this.canUseDOM = t || !1, t || (e.helmet = j({
|
|
434
|
+
baseTag: [],
|
|
435
|
+
bodyAttributes: {},
|
|
436
|
+
encodeSpecialCharacters: !0,
|
|
437
|
+
htmlAttributes: {},
|
|
438
|
+
linkTags: [],
|
|
439
|
+
metaTags: [],
|
|
440
|
+
noscriptTags: [],
|
|
441
|
+
scriptTags: [],
|
|
442
|
+
styleTags: [],
|
|
443
|
+
title: "",
|
|
444
|
+
titleAttributes: {}
|
|
445
|
+
}));
|
|
446
|
+
}
|
|
447
|
+
}, je = {}, oe = h.createContext(je), v, Le = (v = class extends U {
|
|
448
|
+
constructor(r) {
|
|
449
|
+
super(r);
|
|
450
|
+
T(this, "helmetData");
|
|
451
|
+
this.helmetData = new L(this.props.context || {}, v.canUseDOM);
|
|
452
|
+
}
|
|
453
|
+
render() {
|
|
454
|
+
return /* @__PURE__ */ h.createElement(oe.Provider, { value: this.helmetData.value }, this.props.children);
|
|
455
|
+
}
|
|
456
|
+
}, T(v, "canUseDOM", se), v), A = (e, t) => {
|
|
457
|
+
const r = document.head || document.querySelector(
|
|
458
|
+
"head"
|
|
459
|
+
/* HEAD */
|
|
460
|
+
), n = r.querySelectorAll(`${e}[${y}]`), s = [].slice.call(n), o = [];
|
|
461
|
+
let c;
|
|
462
|
+
return t && t.length && t.forEach((i) => {
|
|
463
|
+
const a = document.createElement(e);
|
|
464
|
+
for (const l in i)
|
|
465
|
+
if (Object.prototype.hasOwnProperty.call(i, l))
|
|
466
|
+
if (l === "innerHTML")
|
|
467
|
+
a.innerHTML = i.innerHTML;
|
|
468
|
+
else if (l === "cssText")
|
|
469
|
+
a.styleSheet ? a.styleSheet.cssText = i.cssText : a.appendChild(document.createTextNode(i.cssText));
|
|
470
|
+
else {
|
|
471
|
+
const u = l, f = typeof i[u] > "u" ? "" : i[u];
|
|
472
|
+
a.setAttribute(l, f);
|
|
473
|
+
}
|
|
474
|
+
a.setAttribute(y, "true"), s.some((l, u) => (c = u, a.isEqualNode(l))) ? s.splice(c, 1) : o.push(a);
|
|
475
|
+
}), s.forEach((i) => {
|
|
476
|
+
var a;
|
|
477
|
+
return (a = i.parentNode) == null ? void 0 : a.removeChild(i);
|
|
478
|
+
}), o.forEach((i) => r.appendChild(i)), {
|
|
479
|
+
oldTags: s,
|
|
480
|
+
newTags: o
|
|
481
|
+
};
|
|
482
|
+
}, F = (e, t) => {
|
|
483
|
+
const r = document.getElementsByTagName(e)[0];
|
|
484
|
+
if (!r)
|
|
485
|
+
return;
|
|
486
|
+
const n = r.getAttribute(y), s = n ? n.split(",") : [], o = [...s], c = Object.keys(t);
|
|
487
|
+
for (const i of c) {
|
|
488
|
+
const a = t[i] || "";
|
|
489
|
+
r.getAttribute(i) !== a && r.setAttribute(i, a), s.indexOf(i) === -1 && s.push(i);
|
|
490
|
+
const l = o.indexOf(i);
|
|
491
|
+
l !== -1 && o.splice(l, 1);
|
|
492
|
+
}
|
|
493
|
+
for (let i = o.length - 1; i >= 0; i -= 1)
|
|
494
|
+
r.removeAttribute(o[i]);
|
|
495
|
+
s.length === o.length ? r.removeAttribute(y) : r.getAttribute(y) !== c.join(",") && r.setAttribute(y, c.join(","));
|
|
496
|
+
}, Fe = (e, t) => {
|
|
497
|
+
typeof e < "u" && document.title !== e && (document.title = te(e)), F("title", t);
|
|
498
|
+
}, G = (e, t) => {
|
|
499
|
+
const {
|
|
500
|
+
baseTag: r,
|
|
501
|
+
bodyAttributes: n,
|
|
502
|
+
htmlAttributes: s,
|
|
503
|
+
linkTags: o,
|
|
504
|
+
metaTags: c,
|
|
505
|
+
noscriptTags: i,
|
|
506
|
+
onChangeClientState: a,
|
|
507
|
+
scriptTags: l,
|
|
508
|
+
styleTags: u,
|
|
509
|
+
title: f,
|
|
510
|
+
titleAttributes: m
|
|
511
|
+
} = e;
|
|
512
|
+
F("body", n), F("html", s), Fe(f, m);
|
|
513
|
+
const d = {
|
|
514
|
+
baseTag: A("base", r),
|
|
515
|
+
linkTags: A("link", o),
|
|
516
|
+
metaTags: A("meta", c),
|
|
517
|
+
noscriptTags: A("noscript", i),
|
|
518
|
+
scriptTags: A("script", l),
|
|
519
|
+
styleTags: A("style", u)
|
|
520
|
+
}, g = {}, Y = {};
|
|
521
|
+
Object.keys(d).forEach((w) => {
|
|
522
|
+
const { newTags: B, oldTags: ae } = d[w];
|
|
523
|
+
B.length && (g[w] = B), ae.length && (Y[w] = d[w].oldTags);
|
|
524
|
+
}), t && t(), a(e, g, Y);
|
|
525
|
+
}, O = null, Ue = (e) => {
|
|
526
|
+
O && cancelAnimationFrame(O), e.defer ? O = requestAnimationFrame(() => {
|
|
527
|
+
G(e, () => {
|
|
528
|
+
O = null;
|
|
529
|
+
});
|
|
530
|
+
}) : (G(e), O = null);
|
|
531
|
+
}, qe = Ue, J = class extends U {
|
|
532
|
+
constructor() {
|
|
533
|
+
super(...arguments);
|
|
534
|
+
T(this, "rendered", !1);
|
|
535
|
+
}
|
|
536
|
+
shouldComponentUpdate(t) {
|
|
537
|
+
return !Ce(t, this.props);
|
|
538
|
+
}
|
|
539
|
+
componentDidUpdate() {
|
|
540
|
+
this.emitChange();
|
|
541
|
+
}
|
|
542
|
+
componentWillUnmount() {
|
|
543
|
+
const { helmetInstances: t } = this.props.context;
|
|
544
|
+
t.remove(this), this.emitChange();
|
|
545
|
+
}
|
|
546
|
+
emitChange() {
|
|
547
|
+
const { helmetInstances: t, setHelmet: r } = this.props.context;
|
|
548
|
+
let n = null;
|
|
549
|
+
const s = ke(
|
|
550
|
+
t.get().map((o) => {
|
|
551
|
+
const c = { ...o.props };
|
|
552
|
+
return delete c.context, c;
|
|
553
|
+
})
|
|
554
|
+
);
|
|
555
|
+
Le.canUseDOM ? qe(s) : j && (n = j(s)), r(n);
|
|
556
|
+
}
|
|
557
|
+
// componentWillMount will be deprecated
|
|
558
|
+
// for SSR, initialize on first render
|
|
559
|
+
// constructor is also unsafe in StrictMode
|
|
560
|
+
init() {
|
|
561
|
+
if (this.rendered)
|
|
562
|
+
return;
|
|
563
|
+
this.rendered = !0;
|
|
564
|
+
const { helmetInstances: t } = this.props.context;
|
|
565
|
+
t.add(this), this.emitChange();
|
|
566
|
+
}
|
|
567
|
+
render() {
|
|
568
|
+
return this.init(), null;
|
|
569
|
+
}
|
|
570
|
+
}, H, Ge = (H = class extends U {
|
|
571
|
+
shouldComponentUpdate(e) {
|
|
572
|
+
return !ge(W(this.props, "helmetData"), W(e, "helmetData"));
|
|
573
|
+
}
|
|
574
|
+
mapNestedChildrenToProps(e, t) {
|
|
575
|
+
if (!t)
|
|
576
|
+
return null;
|
|
577
|
+
switch (e.type) {
|
|
578
|
+
case "script":
|
|
579
|
+
case "noscript":
|
|
580
|
+
return {
|
|
581
|
+
innerHTML: t
|
|
582
|
+
};
|
|
583
|
+
case "style":
|
|
584
|
+
return {
|
|
585
|
+
cssText: t
|
|
586
|
+
};
|
|
587
|
+
default:
|
|
588
|
+
throw new Error(
|
|
589
|
+
`<${e.type} /> elements are self-closing and can not contain children. Refer to our API for more information.`
|
|
590
|
+
);
|
|
591
|
+
}
|
|
592
|
+
}
|
|
593
|
+
flattenArrayTypeChildren(e, t, r, n) {
|
|
594
|
+
return {
|
|
595
|
+
...t,
|
|
596
|
+
[e.type]: [
|
|
597
|
+
...t[e.type] || [],
|
|
598
|
+
{
|
|
599
|
+
...r,
|
|
600
|
+
...this.mapNestedChildrenToProps(e, n)
|
|
601
|
+
}
|
|
602
|
+
]
|
|
603
|
+
};
|
|
604
|
+
}
|
|
605
|
+
mapObjectTypeChildren(e, t, r, n) {
|
|
606
|
+
switch (e.type) {
|
|
607
|
+
case "title":
|
|
608
|
+
return {
|
|
609
|
+
...t,
|
|
610
|
+
[e.type]: n,
|
|
611
|
+
titleAttributes: { ...r }
|
|
612
|
+
};
|
|
613
|
+
case "body":
|
|
614
|
+
return {
|
|
615
|
+
...t,
|
|
616
|
+
bodyAttributes: { ...r }
|
|
617
|
+
};
|
|
618
|
+
case "html":
|
|
619
|
+
return {
|
|
620
|
+
...t,
|
|
621
|
+
htmlAttributes: { ...r }
|
|
622
|
+
};
|
|
623
|
+
default:
|
|
624
|
+
return {
|
|
625
|
+
...t,
|
|
626
|
+
[e.type]: { ...r }
|
|
627
|
+
};
|
|
628
|
+
}
|
|
629
|
+
}
|
|
630
|
+
mapArrayTypeChildrenToProps(e, t) {
|
|
631
|
+
let r = { ...t };
|
|
632
|
+
return Object.keys(e).forEach((n) => {
|
|
633
|
+
r = {
|
|
634
|
+
...r,
|
|
635
|
+
[n]: e[n]
|
|
636
|
+
};
|
|
637
|
+
}), r;
|
|
638
|
+
}
|
|
639
|
+
warnOnInvalidChildren(e, t) {
|
|
640
|
+
return X(
|
|
641
|
+
Z.some((r) => e.type === r),
|
|
642
|
+
typeof e.type == "function" ? "You may be attempting to nest <Helmet> components within each other, which is not allowed. Refer to our API for more information." : `Only elements types ${Z.join(
|
|
643
|
+
", "
|
|
644
|
+
)} are allowed. Helmet does not support rendering <${e.type}> elements. Refer to our API for more information.`
|
|
645
|
+
), X(
|
|
646
|
+
!t || typeof t == "string" || Array.isArray(t) && !t.some((r) => typeof r != "string"),
|
|
647
|
+
`Helmet expects a string as a child of <${e.type}>. Did you forget to wrap your children in braces? ( <${e.type}>{\`\`}</${e.type}> ) Refer to our API for more information.`
|
|
648
|
+
), !0;
|
|
649
|
+
}
|
|
650
|
+
mapChildrenToProps(e, t) {
|
|
651
|
+
let r = {};
|
|
652
|
+
return h.Children.forEach(e, (n) => {
|
|
653
|
+
if (!n || !n.props)
|
|
654
|
+
return;
|
|
655
|
+
const { children: s, ...o } = n.props, c = Object.keys(o).reduce((a, l) => (a[Ee[l] || l] = o[l], a), {});
|
|
656
|
+
let { type: i } = n;
|
|
657
|
+
switch (typeof i == "symbol" ? i = i.toString() : this.warnOnInvalidChildren(n, s), i) {
|
|
658
|
+
case "Symbol(react.fragment)":
|
|
659
|
+
t = this.mapChildrenToProps(s, t);
|
|
660
|
+
break;
|
|
661
|
+
case "link":
|
|
662
|
+
case "meta":
|
|
663
|
+
case "noscript":
|
|
664
|
+
case "script":
|
|
665
|
+
case "style":
|
|
666
|
+
r = this.flattenArrayTypeChildren(
|
|
667
|
+
n,
|
|
668
|
+
r,
|
|
669
|
+
c,
|
|
670
|
+
s
|
|
671
|
+
);
|
|
672
|
+
break;
|
|
673
|
+
default:
|
|
674
|
+
t = this.mapObjectTypeChildren(n, t, c, s);
|
|
675
|
+
break;
|
|
676
|
+
}
|
|
677
|
+
}), this.mapArrayTypeChildrenToProps(r, t);
|
|
678
|
+
}
|
|
679
|
+
render() {
|
|
680
|
+
const { children: e, ...t } = this.props;
|
|
681
|
+
let r = { ...t }, { helmetData: n } = t;
|
|
682
|
+
if (e && (r = this.mapChildrenToProps(e, r)), n && !(n instanceof L)) {
|
|
683
|
+
const s = n;
|
|
684
|
+
n = new L(s.context, !0), delete r.helmetData;
|
|
685
|
+
}
|
|
686
|
+
return n ? /* @__PURE__ */ h.createElement(J, { ...r, context: n.value }) : /* @__PURE__ */ h.createElement(oe.Consumer, null, (s) => /* @__PURE__ */ h.createElement(J, { ...r, context: s }));
|
|
687
|
+
}
|
|
688
|
+
}, T(H, "defaultProps", {
|
|
689
|
+
defer: !0,
|
|
690
|
+
encodeSpecialCharacters: !0,
|
|
691
|
+
prioritizeSeoTags: !1
|
|
692
|
+
}), H);
|
|
693
|
+
const Je = (e) => {
|
|
694
|
+
const t = $(), r = typeof e.to == "string" ? e.to : e.to.hash, n = (s) => {
|
|
695
|
+
var o;
|
|
696
|
+
!(r != null && r.startsWith("#")) || r !== t.hash || (s.preventDefault(), (o = document.getElementById(r.slice(1))) == null || o.scrollIntoView());
|
|
697
|
+
};
|
|
698
|
+
return /* @__PURE__ */ ue.jsx(fe, { onClick: n, ...e });
|
|
699
|
+
}, ie = (e, t) => {
|
|
700
|
+
for (const r of e) {
|
|
701
|
+
const n = V(r, t);
|
|
702
|
+
if (n !== void 0) return n;
|
|
703
|
+
}
|
|
704
|
+
}, V = (e, t, r = []) => {
|
|
705
|
+
const n = t(e, r);
|
|
706
|
+
if (n !== void 0) return n;
|
|
707
|
+
if (e.type === "category")
|
|
708
|
+
for (const s of e.items) {
|
|
709
|
+
const o = V(s, t, [
|
|
710
|
+
...r,
|
|
711
|
+
e
|
|
712
|
+
]);
|
|
713
|
+
if (o !== void 0) return o;
|
|
714
|
+
}
|
|
715
|
+
}, Qe = () => {
|
|
716
|
+
const e = $(), t = K(), { sidebars: r } = Q(), n = t != null && t.id ? r[t.id] : [];
|
|
717
|
+
return ie(n, (s) => {
|
|
718
|
+
if (s.type === "doc" && S(t == null ? void 0 : t.id, s.id) === e.pathname)
|
|
719
|
+
return s;
|
|
720
|
+
});
|
|
721
|
+
}, Ne = (e) => {
|
|
722
|
+
const t = $(), r = K();
|
|
723
|
+
return V(e, (n) => {
|
|
724
|
+
if (n.type === "category" && n.link && S(r == null ? void 0 : r.id, n.link.id) === t.pathname || n.type === "doc" && S(r == null ? void 0 : r.id, n.id) === t.pathname)
|
|
725
|
+
return !0;
|
|
726
|
+
});
|
|
727
|
+
}, et = () => {
|
|
728
|
+
const e = $().pathname, { sidebars: t } = Q(), r = K(), n = r != null && r.id ? t[r.id] : [];
|
|
729
|
+
let s, o, c = !1;
|
|
730
|
+
return ie(n, (i) => {
|
|
731
|
+
const a = i.type === "doc" ? S(r == null ? void 0 : r.id, i.id) : i.type === "category" && i.link ? S(r == null ? void 0 : r.id, i.link.id) : void 0;
|
|
732
|
+
if (a) {
|
|
733
|
+
if (c)
|
|
734
|
+
return o = { label: i.label, id: a }, !0;
|
|
735
|
+
e === a ? c = !0 : s = { label: i.label, id: a };
|
|
736
|
+
}
|
|
737
|
+
}), { prev: s, next: o };
|
|
738
|
+
};
|
|
739
|
+
export {
|
|
740
|
+
Je as A,
|
|
741
|
+
Le as H,
|
|
742
|
+
We as M,
|
|
743
|
+
Ge as a,
|
|
744
|
+
de as b,
|
|
745
|
+
Qe as c,
|
|
746
|
+
et as d,
|
|
747
|
+
Ne as u
|
|
748
|
+
};
|
|
749
|
+
//# sourceMappingURL=utils-D3fcGEot.js.map
|