zudoku 0.0.0-fix-image-base-path.c9e0e61c → 0.0.0-fix-create-zudoku-run-build.e225126d
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 +1 -0
- package/dist/app/ZuploBuildConfig.d.ts +1 -1
- package/dist/app/ZuploBuildConfig.js +1 -1
- package/dist/app/ZuploBuildConfig.js.map +1 -1
- package/dist/app/demo.js +1 -1
- package/dist/app/entry.client.js +6 -5
- package/dist/app/entry.client.js.map +1 -1
- package/dist/app/entry.server.js +3 -3
- package/dist/app/entry.server.js.map +1 -1
- package/dist/app/env.js +6 -6
- package/dist/app/env.js.map +1 -1
- package/dist/app/main.js +12 -4
- package/dist/app/main.js.map +1 -1
- package/dist/app/standalone.js +5 -2
- package/dist/app/standalone.js.map +1 -1
- package/dist/cli/cli.js +2 -1
- package/dist/cli/cli.js.map +1 -1
- package/dist/cli/cmds/build.d.ts +1 -1
- package/dist/cli/cmds/dev.d.ts +1 -1
- package/dist/cli/cmds/preview.d.ts +1 -1
- package/dist/cli/common/analytics/lib.js +1 -1
- package/dist/cli/common/analytics/lib.js.map +1 -1
- package/dist/cli/common/logger.js +0 -1
- package/dist/cli/common/logger.js.map +1 -1
- package/dist/cli/common/machine-id/lib.js +3 -2
- package/dist/cli/common/machine-id/lib.js.map +1 -1
- package/dist/cli/common/outdated.js +2 -1
- package/dist/cli/common/outdated.js.map +1 -1
- package/dist/cli/common/output.js +2 -3
- 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/common/validators/lib.js +1 -1
- package/dist/cli/common/validators/lib.js.map +1 -1
- package/dist/cli/dev/handler.js +0 -4
- package/dist/cli/dev/handler.js.map +1 -1
- package/dist/codegen.js +2 -2
- package/dist/codegen.js.map +1 -1
- package/dist/config/loader.js.map +1 -1
- package/dist/config/validators/BuildSchema.d.ts +1 -1
- package/dist/config/validators/BuildSchema.js +3 -3
- package/dist/config/validators/BuildSchema.js.map +1 -1
- package/dist/config/validators/InputNavigationSchema.d.ts +27 -1
- package/dist/config/validators/InputNavigationSchema.js +5 -2
- package/dist/config/validators/InputNavigationSchema.js.map +1 -1
- package/dist/config/validators/InputNavigationSchema.test-d.js +2 -1
- package/dist/config/validators/InputNavigationSchema.test-d.js.map +1 -1
- package/dist/config/validators/NavigationSchema.d.ts +1 -1
- package/dist/config/validators/NavigationSchema.js +2 -2
- package/dist/config/validators/NavigationSchema.js.map +1 -1
- package/dist/config/validators/ProtectedRoutesSchema.d.ts +6 -5
- package/dist/config/validators/ProtectedRoutesSchema.js +5 -14
- package/dist/config/validators/ProtectedRoutesSchema.js.map +1 -1
- package/dist/config/validators/auth.d.ts +2 -2
- package/dist/config/validators/auth.js +1 -1
- package/dist/config/validators/auth.js.map +1 -1
- package/dist/config/validators/icon-types.d.ts +1 -1
- package/dist/config/validators/icon-types.js +4 -0
- package/dist/config/validators/icon-types.js.map +1 -1
- package/dist/config/validators/validate.d.ts +3 -14
- package/dist/config/validators/validate.js +4 -3
- package/dist/config/validators/validate.js.map +1 -1
- package/dist/config/validators/validate.test.js +1 -2
- package/dist/config/validators/validate.test.js.map +1 -1
- package/dist/index.d.ts +6 -5
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/dist/lib/MissingIcon.d.ts +1 -1
- package/dist/lib/MissingIcon.js.map +1 -1
- package/dist/lib/auth/issuer.test.js +1 -0
- package/dist/lib/auth/issuer.test.js.map +1 -1
- package/dist/lib/authentication/AuthenticationPlugin.d.ts +1 -1
- package/dist/lib/authentication/authentication.d.ts +1 -3
- package/dist/lib/authentication/components/OAuthErrorPage.d.ts +1 -1
- package/dist/lib/authentication/components/OAuthErrorPage.js.map +1 -1
- package/dist/lib/authentication/components/SignOut.js +1 -1
- package/dist/lib/authentication/components/SignOut.js.map +1 -1
- package/dist/lib/authentication/providers/auth0.d.ts +2 -2
- package/dist/lib/authentication/providers/auth0.js +1 -1
- package/dist/lib/authentication/providers/auth0.js.map +1 -1
- package/dist/lib/authentication/providers/azureb2c.d.ts +2 -2
- package/dist/lib/authentication/providers/azureb2c.js.map +1 -1
- package/dist/lib/authentication/providers/clerk.d.ts +2 -2
- package/dist/lib/authentication/providers/openid.d.ts +2 -2
- package/dist/lib/authentication/providers/openid.js.map +1 -1
- package/dist/lib/authentication/providers/supabase.d.ts +2 -2
- package/dist/lib/authentication/providers/supabase.js +1 -0
- package/dist/lib/authentication/providers/supabase.js.map +1 -1
- package/dist/lib/authentication/use-broadcast/shared.d.ts +1 -1
- package/dist/lib/authentication/use-broadcast/shared.js +3 -3
- package/dist/lib/authentication/use-broadcast/shared.js.map +1 -1
- package/dist/lib/authentication/use-broadcast/useBroadcast.js +2 -2
- package/dist/lib/authentication/use-broadcast/useBroadcast.js.map +1 -1
- package/dist/lib/components/Autocomplete.js.map +1 -1
- package/dist/lib/components/Bootstrap.js.map +1 -1
- package/dist/lib/components/BuildCheck.js +9 -1
- package/dist/lib/components/BuildCheck.js.map +1 -1
- package/dist/lib/components/Header.js +2 -4
- package/dist/lib/components/Header.js.map +1 -1
- package/dist/lib/components/Heading.d.ts +1 -1
- package/dist/lib/components/Heading.js +1 -1
- package/dist/lib/components/Heading.js.map +1 -1
- package/dist/lib/components/Layout.js +4 -7
- package/dist/lib/components/Layout.js.map +1 -1
- package/dist/lib/components/Markdown.js +2 -2
- package/dist/lib/components/Markdown.js.map +1 -1
- package/dist/lib/components/Meta.d.ts +2 -0
- package/dist/lib/components/Meta.js +11 -0
- package/dist/lib/components/Meta.js.map +1 -0
- package/dist/lib/components/MobileTopNavigation.js +4 -4
- package/dist/lib/components/MobileTopNavigation.js.map +1 -1
- package/dist/lib/components/PathRenderer.js +1 -1
- package/dist/lib/components/PathRenderer.js.map +1 -1
- package/dist/lib/components/Search.js +1 -1
- package/dist/lib/components/Search.js.map +1 -1
- package/dist/lib/components/Slot.js.map +1 -1
- package/dist/lib/components/Slot.test.js +7 -3
- package/dist/lib/components/Slot.test.js.map +1 -1
- package/dist/lib/components/TopNavigation.d.ts +1 -1
- package/dist/lib/components/TopNavigation.js +2 -2
- package/dist/lib/components/TopNavigation.js.map +1 -1
- package/dist/lib/components/Zudoku.js +2 -2
- package/dist/lib/components/Zudoku.js.map +1 -1
- package/dist/lib/components/context/ComponentsContext.js.map +1 -1
- package/dist/lib/components/context/RouterEventsEmitter.js.map +1 -1
- package/dist/lib/components/context/SlotProvider.js.map +1 -1
- package/dist/lib/components/context/ViewportAnchorContext.js +1 -1
- package/dist/lib/components/context/ViewportAnchorContext.js.map +1 -1
- package/dist/lib/components/context/ZudokuContext.d.ts +1 -1
- package/dist/lib/components/context/ZudokuProvider.d.ts +1 -1
- package/dist/lib/components/index.d.ts +0 -28
- package/dist/lib/components/index.js +1 -16
- package/dist/lib/components/index.js.map +1 -1
- package/dist/lib/components/navigation/NavigationCategory.js +6 -1
- package/dist/lib/components/navigation/NavigationCategory.js.map +1 -1
- package/dist/lib/components/navigation/NavigationItem.js +2 -2
- package/dist/lib/components/navigation/NavigationItem.js.map +1 -1
- package/dist/lib/components/navigation/NavigationWrapper.js.map +1 -1
- package/dist/lib/components/navigation/Toc.js.map +1 -1
- package/dist/lib/components/navigation/ZudokuLogo.d.ts +1 -1
- package/dist/lib/components/navigation/utils.d.ts +3 -3
- package/dist/lib/components/navigation/utils.js +1 -2
- package/dist/lib/components/navigation/utils.js.map +1 -1
- package/dist/lib/core/ZudokuContext.d.ts +4 -2
- package/dist/lib/core/ZudokuContext.js +14 -3
- package/dist/lib/core/ZudokuContext.js.map +1 -1
- package/dist/lib/core/__internal.d.ts +37 -0
- package/dist/lib/core/__internal.js +26 -0
- package/dist/lib/core/__internal.js.map +1 -0
- package/dist/lib/core/router.d.ts +1 -0
- package/dist/lib/core/router.js +2 -0
- package/dist/lib/core/router.js.map +1 -0
- package/dist/lib/errors/ErrorAlert.js +0 -1
- package/dist/lib/errors/ErrorAlert.js.map +1 -1
- package/dist/lib/errors/TopLevelError.d.ts +2 -2
- package/dist/lib/errors/TopLevelError.js +1 -2
- package/dist/lib/errors/TopLevelError.js.map +1 -1
- package/dist/lib/oas/graphql/circular.js +2 -2
- package/dist/lib/oas/graphql/circular.js.map +1 -1
- package/dist/lib/oas/graphql/index.js +2 -1
- package/dist/lib/oas/graphql/index.js.map +1 -1
- package/dist/lib/oas/parser/dereference/index.js +2 -1
- package/dist/lib/oas/parser/dereference/index.js.map +1 -1
- package/dist/lib/oas/parser/dereference/resolveRef.js +3 -3
- package/dist/lib/oas/parser/dereference/resolveRef.js.map +1 -1
- package/dist/lib/oas/parser/index.js +1 -1
- package/dist/lib/oas/parser/index.js.map +1 -1
- package/dist/lib/oas/parser/upgrade/index.js +2 -1
- package/dist/lib/oas/parser/upgrade/index.js.map +1 -1
- package/dist/lib/plugins/api-keys/CreateApiKey.d.ts +1 -1
- package/dist/lib/plugins/api-keys/SettingsApiKeys.d.ts +1 -1
- package/dist/lib/plugins/api-keys/SettingsApiKeys.js +5 -6
- package/dist/lib/plugins/api-keys/SettingsApiKeys.js.map +1 -1
- package/dist/lib/plugins/api-keys/index.d.ts +3 -3
- package/dist/lib/plugins/api-keys/index.js +1 -1
- package/dist/lib/plugins/api-keys/index.js.map +1 -1
- package/dist/lib/plugins/custom-pages/index.d.ts +1 -1
- package/dist/lib/plugins/custom-pages/index.js +3 -0
- package/dist/lib/plugins/custom-pages/index.js.map +1 -1
- package/dist/lib/plugins/markdown/MdxPage.d.ts +1 -1
- package/dist/lib/plugins/markdown/MdxPage.js +3 -3
- package/dist/lib/plugins/markdown/MdxPage.js.map +1 -1
- package/dist/lib/plugins/markdown/index.d.ts +1 -1
- package/dist/lib/plugins/openapi/ColorizedParam.js +4 -1
- package/dist/lib/plugins/openapi/ColorizedParam.js.map +1 -1
- package/dist/lib/plugins/openapi/Endpoint.js +2 -2
- package/dist/lib/plugins/openapi/Endpoint.js.map +1 -1
- package/dist/lib/plugins/openapi/OasProvider.d.ts +1 -1
- package/dist/lib/plugins/openapi/OasProvider.js +1 -0
- package/dist/lib/plugins/openapi/OasProvider.js.map +1 -1
- package/dist/lib/plugins/openapi/OperationList.d.ts +1 -1
- package/dist/lib/plugins/openapi/OperationList.js +8 -4
- package/dist/lib/plugins/openapi/OperationList.js.map +1 -1
- package/dist/lib/plugins/openapi/OperationListItem.d.ts +1 -1
- package/dist/lib/plugins/openapi/OperationListItem.js +6 -4
- package/dist/lib/plugins/openapi/OperationListItem.js.map +1 -1
- package/dist/lib/plugins/openapi/ParamInfos.d.ts +1 -1
- package/dist/lib/plugins/openapi/ParamInfos.js +11 -9
- package/dist/lib/plugins/openapi/ParamInfos.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/PlaygroundDialogWrapper.d.ts +1 -1
- package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.js +2 -2
- package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.js.map +1 -1
- package/dist/lib/plugins/openapi/ResponsesSidecarBox.js.map +1 -1
- package/dist/lib/plugins/openapi/Sidecar.js +4 -2
- package/dist/lib/plugins/openapi/Sidecar.js.map +1 -1
- package/dist/lib/plugins/openapi/StaggeredRender.d.ts +1 -1
- package/dist/lib/plugins/openapi/client/GraphQLContext.d.ts +1 -1
- package/dist/lib/plugins/openapi/client/createServer.js +1 -2
- package/dist/lib/plugins/openapi/client/createServer.js.map +1 -1
- package/dist/lib/plugins/openapi/client/useCreateQuery.js.map +1 -1
- package/dist/lib/plugins/openapi/context.d.ts +1 -1
- package/dist/lib/plugins/openapi/graphql/fragment-masking.js.map +1 -1
- package/dist/lib/plugins/openapi/graphql/gql.js +0 -1
- package/dist/lib/plugins/openapi/graphql/gql.js.map +1 -1
- package/dist/lib/plugins/openapi/graphql/graphql.js.map +1 -1
- package/dist/lib/plugins/openapi/index.d.ts +2 -2
- package/dist/lib/plugins/openapi/index.js +2 -1
- package/dist/lib/plugins/openapi/index.js.map +1 -1
- package/dist/lib/plugins/openapi/interfaces.d.ts +3 -3
- package/dist/lib/plugins/openapi/playground/BodyPanel.d.ts +1 -1
- package/dist/lib/plugins/openapi/playground/Headers.d.ts +1 -1
- package/dist/lib/plugins/openapi/playground/IdentityDialog.d.ts +1 -1
- package/dist/lib/plugins/openapi/playground/IdentitySelector.d.ts +1 -1
- package/dist/lib/plugins/openapi/playground/Playground.d.ts +1 -1
- package/dist/lib/plugins/openapi/playground/Playground.js +1 -1
- package/dist/lib/plugins/openapi/playground/Playground.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/QueryParams.d.ts +1 -1
- package/dist/lib/plugins/openapi/playground/result-panel/ResponseStatusBar.js +3 -1
- package/dist/lib/plugins/openapi/playground/result-panel/ResponseStatusBar.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.d.ts +2 -2
- package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.d.ts +1 -1
- package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.js +1 -1
- package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.js.map +1 -1
- package/dist/lib/plugins/openapi/processors/removeExtensions.test.js +1 -0
- package/dist/lib/plugins/openapi/processors/removeExtensions.test.js.map +1 -1
- package/dist/lib/plugins/openapi/processors/removeParameters.test.js +1 -0
- package/dist/lib/plugins/openapi/processors/removeParameters.test.js.map +1 -1
- package/dist/lib/plugins/openapi/processors/traverse.d.ts +1 -1
- package/dist/lib/plugins/openapi/processors/traverse.js.map +1 -1
- package/dist/lib/plugins/openapi/schema/AllOfGroup/AllOfGroupConnector.d.ts +5 -0
- package/dist/lib/plugins/openapi/schema/AllOfGroup/AllOfGroupConnector.js +7 -0
- package/dist/lib/plugins/openapi/schema/AllOfGroup/AllOfGroupConnector.js.map +1 -0
- package/dist/lib/plugins/openapi/schema/{LogicalGroup/LogicalGroupItem.d.ts → AllOfGroup/AllOfGroupItem.d.ts} +1 -3
- package/dist/lib/plugins/openapi/schema/AllOfGroup/AllOfGroupItem.js +10 -0
- package/dist/lib/plugins/openapi/schema/AllOfGroup/AllOfGroupItem.js.map +1 -0
- package/dist/lib/plugins/openapi/schema/AllOfGroup/AllOfGroupView.d.ts +4 -0
- package/dist/lib/plugins/openapi/schema/AllOfGroup/AllOfGroupView.js +16 -0
- package/dist/lib/plugins/openapi/schema/AllOfGroup/AllOfGroupView.js.map +1 -0
- package/dist/lib/plugins/openapi/schema/SchemaPropertyItem.d.ts +0 -3
- package/dist/lib/plugins/openapi/schema/SchemaPropertyItem.js +7 -15
- package/dist/lib/plugins/openapi/schema/SchemaPropertyItem.js.map +1 -1
- package/dist/lib/plugins/openapi/schema/SchemaView.d.ts +2 -1
- package/dist/lib/plugins/openapi/schema/SchemaView.js +13 -8
- package/dist/lib/plugins/openapi/schema/SchemaView.js.map +1 -1
- package/dist/lib/plugins/openapi/schema/UnionView.d.ts +4 -0
- package/dist/lib/plugins/openapi/schema/UnionView.js +30 -0
- package/dist/lib/plugins/openapi/schema/UnionView.js.map +1 -0
- package/dist/lib/plugins/openapi/schema/union-helpers.d.ts +28 -0
- package/dist/lib/plugins/openapi/schema/union-helpers.js +48 -0
- package/dist/lib/plugins/openapi/schema/union-helpers.js.map +1 -0
- package/dist/lib/plugins/openapi/schema/utils.d.ts +0 -7
- package/dist/lib/plugins/openapi/schema/utils.js +0 -6
- package/dist/lib/plugins/openapi/schema/utils.js.map +1 -1
- package/dist/lib/plugins/openapi/util/createHttpSnippet.d.ts +1 -1
- package/dist/lib/plugins/openapi/util/createHttpSnippet.js +1 -1
- package/dist/lib/plugins/openapi/util/createHttpSnippet.js.map +1 -1
- package/dist/lib/plugins/openapi/util/createNavigationCategory.js +1 -0
- package/dist/lib/plugins/openapi/util/createNavigationCategory.js.map +1 -1
- package/dist/lib/plugins/openapi/util/generateSchemaExample.d.ts +1 -1
- package/dist/lib/plugins/openapi/util/generateSchemaExample.js +1 -2
- package/dist/lib/plugins/openapi/util/generateSchemaExample.js.map +1 -1
- package/dist/lib/plugins/openapi/util/getRoutes.js +1 -1
- package/dist/lib/plugins/openapi/util/getRoutes.js.map +1 -1
- package/dist/lib/plugins/openapi/util/methodColorMap.d.ts +1 -1
- package/dist/lib/plugins/search-inkeep/index.js +1 -1
- package/dist/lib/plugins/search-inkeep/index.js.map +1 -1
- package/dist/lib/plugins/search-pagefind/PagefindSearch.js +1 -1
- package/dist/lib/plugins/search-pagefind/PagefindSearch.js.map +1 -1
- package/dist/lib/plugins/search-pagefind/ResultList.d.ts +1 -1
- package/dist/lib/plugins/search-pagefind/ResultList.js +4 -1
- package/dist/lib/plugins/search-pagefind/ResultList.js.map +1 -1
- package/dist/lib/plugins/search-pagefind/get-results.js +0 -1
- package/dist/lib/plugins/search-pagefind/get-results.js.map +1 -1
- package/dist/lib/shiki.d.ts +2 -5
- package/dist/lib/shiki.js +3 -6
- package/dist/lib/shiki.js.map +1 -1
- package/dist/lib/ui/Breadcrumb.js +1 -1
- package/dist/lib/ui/Breadcrumb.js.map +1 -1
- package/dist/lib/ui/Carousel.js.map +1 -1
- package/dist/lib/ui/CodeBlock.js +3 -3
- package/dist/lib/ui/CodeBlock.js.map +1 -1
- package/dist/lib/ui/Command.d.ts +2 -2
- package/dist/lib/ui/Command.js +2 -6
- package/dist/lib/ui/Command.js.map +1 -1
- package/dist/lib/ui/Dialog.js +2 -2
- package/dist/lib/ui/Dialog.js.map +1 -1
- package/dist/lib/ui/Form.d.ts +2 -2
- package/dist/lib/ui/Pagination.d.ts +1 -1
- package/dist/lib/ui/Pagination.js +1 -1
- package/dist/lib/ui/Pagination.js.map +1 -1
- package/dist/lib/ui/ToggleGroup.d.ts +1 -1
- package/dist/lib/util/MdxComponents.d.ts +1 -1
- package/dist/lib/util/MdxComponents.js +4 -2
- package/dist/lib/util/MdxComponents.js.map +1 -1
- package/dist/lib/util/cn.js.map +1 -1
- package/dist/lib/util/createVariantComponent.d.ts +2 -2
- package/dist/lib/util/createVariantComponent.js.map +1 -1
- package/dist/lib/util/groupBy.js +1 -0
- package/dist/lib/util/groupBy.js.map +1 -1
- package/dist/lib/util/humanFileSize.js +1 -1
- package/dist/lib/util/humanFileSize.js.map +1 -1
- package/dist/lib/util/invariant.js +3 -1
- package/dist/lib/util/invariant.js.map +1 -1
- package/dist/lib/util/pastellize.js +2 -2
- package/dist/lib/util/pastellize.js.map +1 -1
- package/dist/lib/util/useIsomorphicLayoutEffect.js.map +1 -1
- package/dist/lib/util/useScrollToAnchor.js +2 -0
- package/dist/lib/util/useScrollToAnchor.js.map +1 -1
- package/dist/ts.js +3 -3
- package/dist/ts.js.map +1 -1
- package/dist/vite/api/SchemaManager.js +6 -6
- package/dist/vite/api/SchemaManager.js.map +1 -1
- package/dist/vite/api/schema-codegen.js +1 -2
- package/dist/vite/api/schema-codegen.js.map +1 -1
- package/dist/vite/api/schema-codegen.test.js +1 -1
- package/dist/vite/api/schema-codegen.test.js.map +1 -1
- package/dist/vite/build.js +1 -1
- package/dist/vite/build.js.map +1 -1
- package/dist/vite/dev-server.js +2 -2
- package/dist/vite/dev-server.js.map +1 -1
- package/dist/vite/error-handler.d.ts +2 -2
- package/dist/vite/error-handler.js.map +1 -1
- package/dist/vite/mdx/remark-inject-filepath.js.map +1 -1
- package/dist/vite/mdx/remark-last-modified.js +0 -1
- package/dist/vite/mdx/remark-last-modified.js.map +1 -1
- package/dist/vite/mdx/remark-link-rewrite.js +1 -1
- package/dist/vite/mdx/remark-link-rewrite.js.map +1 -1
- package/dist/vite/mdx/remark-static-generation.js +1 -1
- package/dist/vite/mdx/remark-static-generation.js.map +1 -1
- package/dist/vite/output.d.ts +1 -1
- package/dist/vite/output.js +1 -1
- package/dist/vite/output.js.map +1 -1
- package/dist/vite/plugin-api-keys.d.ts +1 -1
- package/dist/vite/plugin-api-keys.js +1 -1
- package/dist/vite/plugin-api-keys.js.map +1 -1
- package/dist/vite/plugin-api.js +4 -4
- package/dist/vite/plugin-api.js.map +1 -1
- package/dist/vite/plugin-auth.d.ts +1 -1
- package/dist/vite/plugin-auth.js +1 -1
- package/dist/vite/plugin-auth.js.map +1 -1
- package/dist/vite/plugin-component.d.ts +1 -1
- package/dist/vite/plugin-config-reload.d.ts +1 -1
- package/dist/vite/plugin-custom-pages.d.ts +1 -1
- package/dist/vite/plugin-custom-pages.js +1 -1
- package/dist/vite/plugin-custom-pages.js.map +1 -1
- package/dist/vite/plugin-docs.js +2 -2
- package/dist/vite/plugin-docs.js.map +1 -1
- package/dist/vite/plugin-frontmatter.js +1 -1
- package/dist/vite/plugin-frontmatter.js.map +1 -1
- package/dist/vite/plugin-mdx.d.ts +1 -1
- package/dist/vite/plugin-mdx.js +3 -2
- package/dist/vite/plugin-mdx.js.map +1 -1
- package/dist/vite/plugin-metadata.d.ts +1 -1
- package/dist/vite/plugin-navigation.d.ts +2 -2
- package/dist/vite/plugin-navigation.js +34 -35
- package/dist/vite/plugin-navigation.js.map +1 -1
- package/dist/vite/plugin-redirect.d.ts +1 -1
- package/dist/vite/plugin-redirect.js +1 -1
- package/dist/vite/plugin-redirect.js.map +1 -1
- package/dist/vite/plugin-search.d.ts +1 -1
- package/dist/vite/plugin-search.js +1 -1
- package/dist/vite/plugin-search.js.map +1 -1
- package/dist/vite/plugin-shiki-register.js +1 -1
- package/dist/vite/plugin-shiki-register.js.map +1 -1
- package/dist/vite/plugin-theme.js +6 -6
- package/dist/vite/plugin-theme.js.map +1 -1
- package/dist/vite/plugin-theme.test.js +2 -0
- package/dist/vite/plugin-theme.test.js.map +1 -1
- package/dist/vite/plugin.d.ts +1 -1
- package/dist/vite/plugin.js +2 -2
- package/dist/vite/plugin.js.map +1 -1
- package/dist/vite/prerender/FileWritingResponse.js +5 -3
- package/dist/vite/prerender/FileWritingResponse.js.map +1 -1
- package/dist/vite/prerender/InMemoryResponse.js +3 -1
- package/dist/vite/prerender/InMemoryResponse.js.map +1 -1
- package/dist/vite/prerender/prerender.js +1 -1
- package/dist/vite/prerender/prerender.js.map +1 -1
- package/dist/vite/prerender/worker.d.ts +1 -1
- package/dist/vite/prerender/worker.js.map +1 -1
- package/dist/vite/reporter.js +2 -2
- package/dist/vite/reporter.js.map +1 -1
- package/dist/vite/shadcn-registry.d.ts +8 -33
- package/dist/vite/sitemap.js +14 -13
- package/dist/vite/sitemap.js.map +1 -1
- package/dist/zuplo/enrich-with-zuplo.js +3 -3
- package/dist/zuplo/enrich-with-zuplo.js.map +1 -1
- package/dist/zuplo/policy-types.js +0 -1
- package/dist/zuplo/policy-types.js.map +1 -1
- package/dist/zuplo/with-zuplo.js +1 -1
- package/dist/zuplo/with-zuplo.js.map +1 -1
- package/lib/CategoryHeading-DCpZu3yG.js +17 -0
- package/lib/CategoryHeading-DCpZu3yG.js.map +1 -0
- package/lib/{CodeBlock-CVT6z0PP.js → CodeBlock-CX_J17Hf.js} +12 -12
- package/lib/CodeBlock-CX_J17Hf.js.map +1 -0
- package/lib/{Command-BYukybsa.js → Command-CUSlH0gJ.js} +21 -27
- package/lib/Command-CUSlH0gJ.js.map +1 -0
- package/lib/Dialog-BmgXWOaz.js +114 -0
- package/lib/Dialog-BmgXWOaz.js.map +1 -0
- package/lib/{MdxPage-plD-n8fm.js → MdxPage-yXbTtcWf.js} +19 -18
- package/lib/MdxPage-yXbTtcWf.js.map +1 -0
- package/lib/{OAuthErrorPage-BTP-t8Fq.js → OAuthErrorPage-rAKHHveX.js} +7 -7
- package/lib/OAuthErrorPage-rAKHHveX.js.map +1 -0
- package/lib/{OasProvider-CYf5xe1a.js → OasProvider-BW4OzAuR.js} +4 -3
- package/lib/OasProvider-BW4OzAuR.js.map +1 -0
- package/lib/{OperationList-C_-vAmhs.js → OperationList-CWxpdIbO.js} +309 -312
- package/lib/OperationList-CWxpdIbO.js.map +1 -0
- package/lib/{Pagination-BAO0V4os.js → Pagination-ZI2yyuxj.js} +3 -3
- package/lib/{Pagination-BAO0V4os.js.map → Pagination-ZI2yyuxj.js.map} +1 -1
- package/lib/RouteGuard-BIksrt_C.js +56 -0
- package/lib/RouteGuard-BIksrt_C.js.map +1 -0
- package/lib/RouterError-BYHrbLtD.js +41 -0
- package/lib/RouterError-BYHrbLtD.js.map +1 -0
- package/lib/{SchemaList-B8Ws7y1f.js → SchemaList-C4Sk-tLI.js} +15 -14
- package/lib/{SchemaList-B8Ws7y1f.js.map → SchemaList-C4Sk-tLI.js.map} +1 -1
- package/lib/SchemaView-B2BeAuci.js +429 -0
- package/lib/SchemaView-B2BeAuci.js.map +1 -0
- package/lib/{Select-ByPbK6BU.js → Select-DWh0wSay.js} +8 -8
- package/lib/{Select-ByPbK6BU.js.map → Select-DWh0wSay.js.map} +1 -1
- package/lib/{SignUp-BXxkBCGy.js → SignUp-CznaQsRx.js} +12 -12
- package/lib/SignUp-CznaQsRx.js.map +1 -0
- package/lib/{Slot-DDNiyFIv.js → Slot-BbdqiRXo.js} +1923 -2129
- package/lib/{Slot-DDNiyFIv.js.map → Slot-BbdqiRXo.js.map} +1 -1
- package/lib/{SyntaxHighlight-jSFm3PeK.js → SyntaxHighlight-CvzJ7DNa.js} +6 -9
- package/lib/{SyntaxHighlight-jSFm3PeK.js.map → SyntaxHighlight-CvzJ7DNa.js.map} +1 -1
- package/lib/{Toc-CKEI04R5.js → Toc-BAa-kpqN.js} +2 -2
- package/lib/{Toc-CKEI04R5.js.map → Toc-BAa-kpqN.js.map} +1 -1
- package/lib/{ZudokuContext-mDDq1hft.js → ZudokuContext-BR-lnR7O.js} +42 -43
- package/lib/{ZudokuContext-mDDq1hft.js.map → ZudokuContext-BR-lnR7O.js.map} +1 -1
- package/lib/chunk-QMGIS6GS-DqecZ6nq.js +9204 -0
- package/lib/chunk-QMGIS6GS-DqecZ6nq.js.map +1 -0
- package/lib/{circular-CyP38iiX.js → circular-BFte5TUt.js} +2 -2
- package/lib/{circular-CyP38iiX.js.map → circular-BFte5TUt.js.map} +1 -1
- package/lib/cn-dYga0KKN.js.map +1 -1
- package/lib/{createServer-B4w9HCV7.js → createServer-B4giw6jv.js} +12 -27
- package/lib/createServer-B4giw6jv.js.map +1 -0
- package/lib/{errors-v4zc7txj.js → errors-CjmCml50.js} +2 -2
- package/lib/errors-CjmCml50.js.map +1 -0
- package/lib/{hook-CGx8MPrU.js → hook-B4Q30zMI.js} +2 -2
- package/lib/{hook-CGx8MPrU.js.map → hook-B4Q30zMI.js.map} +1 -1
- package/lib/index-BuKx9nrj.js +1057 -0
- package/lib/index-BuKx9nrj.js.map +1 -0
- package/lib/{index-C5fXNRSh.js → index-CQGi1b3U.js} +2 -2
- package/lib/{index-C5fXNRSh.js.map → index-CQGi1b3U.js.map} +1 -1
- package/lib/{index-DnkZAg98.js → index-Dp3Fmnfq.js} +58 -55
- package/lib/index-Dp3Fmnfq.js.map +1 -0
- package/lib/{RouteGuard-gznKADdm.js → index.esm-BnYHxCYC.js} +226 -281
- package/lib/index.esm-BnYHxCYC.js.map +1 -0
- package/lib/invariant-Bm-FVUQE.js.map +1 -1
- package/lib/mutation-CiMUdKRU.js +196 -0
- package/lib/mutation-CiMUdKRU.js.map +1 -0
- package/lib/ui/Breadcrumb.js +22 -21
- package/lib/ui/Breadcrumb.js.map +1 -1
- package/lib/ui/Carousel.js.map +1 -1
- package/lib/ui/CodeBlock.js +1 -1
- package/lib/ui/Command.js +20 -26
- package/lib/ui/Command.js.map +1 -1
- package/lib/ui/Dialog.js +56 -41
- package/lib/ui/Dialog.js.map +1 -1
- package/lib/ui/Form.js.map +1 -1
- package/lib/ui/Pagination.js +28 -29
- package/lib/ui/Pagination.js.map +1 -1
- package/lib/ui/SyntaxHighlight.js +3 -3
- package/lib/ui/ToggleGroup.js.map +1 -1
- package/lib/{useExposedProps-DUoV7MCU.js → useExposedProps-BH9aq4MD.js} +32 -32
- package/lib/{useExposedProps-DUoV7MCU.js.map → useExposedProps-BH9aq4MD.js.map} +1 -1
- package/lib/useLatest-hmRS46UF.js +11 -0
- package/lib/useLatest-hmRS46UF.js.map +1 -0
- package/lib/zudoku.__internal.js +2974 -0
- package/lib/zudoku.__internal.js.map +1 -0
- package/lib/zudoku.auth-auth0.js +1 -1
- package/lib/zudoku.auth-auth0.js.map +1 -1
- package/lib/zudoku.auth-azureb2c.js +5 -5
- package/lib/zudoku.auth-azureb2c.js.map +1 -1
- package/lib/zudoku.auth-clerk.js +2 -2
- package/lib/zudoku.auth-clerk.js.map +1 -1
- package/lib/zudoku.auth-openid.js +5 -5
- package/lib/zudoku.auth-openid.js.map +1 -1
- package/lib/zudoku.auth-supabase.js +3 -2
- package/lib/zudoku.auth-supabase.js.map +1 -1
- package/lib/zudoku.components.js +20 -28
- package/lib/zudoku.hooks.js +4 -4
- package/lib/zudoku.icons.js.map +1 -1
- package/lib/zudoku.plugin-api-catalog.js +18 -18
- package/lib/zudoku.plugin-api-keys.js +60 -59
- package/lib/zudoku.plugin-api-keys.js.map +1 -1
- package/lib/zudoku.plugin-custom-pages.js +8 -5
- package/lib/zudoku.plugin-custom-pages.js.map +1 -1
- package/lib/zudoku.plugin-markdown.js +1 -1
- package/lib/zudoku.plugin-markdown.js.map +1 -1
- package/lib/zudoku.plugin-openapi.js +4 -4
- package/lib/zudoku.plugin-redirect.js +3 -3
- package/lib/zudoku.plugin-search-inkeep.js.map +1 -1
- package/lib/zudoku.plugin-search-pagefind.js +15 -15
- package/lib/zudoku.plugin-search-pagefind.js.map +1 -1
- package/lib/zudoku.router.js +123 -0
- package/lib/zudoku.router.js.map +1 -0
- package/package.json +17 -24
- package/src/app/ZuploBuildConfig.ts +1 -1
- package/src/app/demo.tsx +1 -1
- package/src/app/entry.client.tsx +7 -6
- package/src/app/entry.server.tsx +4 -4
- package/src/app/env.ts +6 -6
- package/src/app/main.tsx +22 -7
- package/src/app/standalone.tsx +8 -3
- package/src/lib/MissingIcon.tsx +1 -1
- package/src/lib/auth/issuer.test.ts +1 -0
- package/src/lib/authentication/AuthenticationPlugin.tsx +4 -4
- package/src/lib/authentication/authentication.ts +3 -3
- package/src/lib/authentication/components/OAuthErrorPage.tsx +1 -1
- package/src/lib/authentication/components/SignOut.tsx +1 -1
- package/src/lib/authentication/providers/auth0.tsx +5 -5
- package/src/lib/authentication/providers/azureb2c.tsx +5 -5
- package/src/lib/authentication/providers/clerk.tsx +5 -5
- package/src/lib/authentication/providers/openid.tsx +6 -6
- package/src/lib/authentication/providers/supabase.tsx +7 -6
- package/src/lib/authentication/use-broadcast/shared.ts +4 -4
- package/src/lib/authentication/use-broadcast/useBroadcast.ts +2 -2
- package/src/lib/components/AnchorLink.tsx +1 -1
- package/src/lib/components/Autocomplete.tsx +1 -1
- package/src/lib/components/Bootstrap.tsx +1 -0
- package/src/lib/components/BuildCheck.tsx +12 -1
- package/src/lib/components/Header.tsx +5 -5
- package/src/lib/components/Heading.tsx +2 -3
- package/src/lib/components/Layout.tsx +3 -22
- package/src/lib/components/Markdown.tsx +5 -2
- package/src/lib/components/Meta.tsx +32 -0
- package/src/lib/components/MobileTopNavigation.tsx +11 -13
- package/src/lib/components/PathRenderer.tsx +2 -2
- package/src/lib/components/Search.tsx +1 -1
- package/src/lib/components/Slot.test.tsx +8 -8
- package/src/lib/components/Slot.tsx +2 -2
- package/src/lib/components/TopNavigation.tsx +3 -3
- package/src/lib/components/Zudoku.tsx +2 -2
- package/src/lib/components/context/ComponentsContext.tsx +2 -2
- package/src/lib/components/context/RouterEventsEmitter.tsx +1 -1
- package/src/lib/components/context/SlotProvider.tsx +4 -4
- package/src/lib/components/context/ViewportAnchorContext.tsx +2 -2
- package/src/lib/components/context/ZudokuContext.ts +1 -1
- package/src/lib/components/context/ZudokuProvider.tsx +1 -1
- package/src/lib/components/index.ts +1 -19
- package/src/lib/components/navigation/NavigationCategory.tsx +8 -1
- package/src/lib/components/navigation/NavigationItem.tsx +2 -2
- package/src/lib/components/navigation/NavigationWrapper.tsx +1 -1
- package/src/lib/components/navigation/Toc.tsx +2 -2
- package/src/lib/components/navigation/ZudokuLogo.tsx +1 -1
- package/src/lib/components/navigation/utils.ts +5 -6
- package/src/lib/core/ZudokuContext.ts +25 -6
- package/src/lib/core/__internal.tsx +30 -0
- package/src/lib/core/router.ts +1 -0
- package/src/lib/errors/ErrorAlert.tsx +0 -1
- package/src/lib/errors/TopLevelError.tsx +2 -4
- package/src/lib/hooks/useEvent.test.tsx +2 -2
- package/src/lib/oas/graphql/circular.ts +3 -3
- package/src/lib/oas/graphql/index.ts +2 -1
- package/src/lib/oas/parser/dereference/index.ts +2 -1
- package/src/lib/oas/parser/dereference/resolveRef.ts +4 -4
- package/src/lib/oas/parser/index.ts +2 -2
- package/src/lib/oas/parser/upgrade/index.ts +2 -1
- package/src/lib/plugins/api-keys/CreateApiKey.tsx +1 -1
- package/src/lib/plugins/api-keys/SettingsApiKeys.tsx +5 -6
- package/src/lib/plugins/api-keys/index.tsx +8 -8
- package/src/lib/plugins/custom-pages/index.tsx +4 -1
- package/src/lib/plugins/markdown/MdxPage.tsx +5 -5
- package/src/lib/plugins/markdown/index.tsx +1 -1
- package/src/lib/plugins/openapi/ColorizedParam.tsx +3 -1
- package/src/lib/plugins/openapi/Endpoint.tsx +2 -2
- package/src/lib/plugins/openapi/OasProvider.tsx +2 -1
- package/src/lib/plugins/openapi/OperationList.tsx +5 -4
- package/src/lib/plugins/openapi/OperationListItem.tsx +18 -20
- package/src/lib/plugins/openapi/ParamInfos.tsx +10 -9
- package/src/lib/plugins/openapi/ParameterListItem.tsx +3 -3
- package/src/lib/plugins/openapi/PlaygroundDialogWrapper.tsx +3 -3
- package/src/lib/plugins/openapi/ResponsesSidecarBox.tsx +1 -1
- package/src/lib/plugins/openapi/Sidecar.tsx +2 -1
- package/src/lib/plugins/openapi/SidecarExamples.tsx +1 -1
- package/src/lib/plugins/openapi/StaggeredRender.tsx +1 -1
- package/src/lib/plugins/openapi/client/GraphQLContext.tsx +1 -1
- package/src/lib/plugins/openapi/client/createServer.ts +1 -2
- package/src/lib/plugins/openapi/client/useCreateQuery.ts +3 -2
- package/src/lib/plugins/openapi/context.tsx +1 -1
- package/src/lib/plugins/openapi/graphql/fragment-masking.ts +0 -1
- package/src/lib/plugins/openapi/graphql/gql.ts +0 -1
- package/src/lib/plugins/openapi/graphql/graphql.ts +0 -1
- package/src/lib/plugins/openapi/index.tsx +5 -4
- package/src/lib/plugins/openapi/interfaces.ts +5 -3
- package/src/lib/plugins/openapi/playground/BodyPanel.tsx +2 -2
- package/src/lib/plugins/openapi/playground/Headers.tsx +1 -1
- package/src/lib/plugins/openapi/playground/IdentityDialog.tsx +1 -1
- package/src/lib/plugins/openapi/playground/IdentitySelector.tsx +1 -1
- package/src/lib/plugins/openapi/playground/Playground.tsx +2 -2
- package/src/lib/plugins/openapi/playground/QueryParams.tsx +1 -1
- package/src/lib/plugins/openapi/playground/request-panel/UrlPath.tsx +1 -1
- package/src/lib/plugins/openapi/playground/request-panel/UrlQueryParams.tsx +1 -1
- package/src/lib/plugins/openapi/playground/result-panel/ResponseStatusBar.tsx +3 -1
- package/src/lib/plugins/openapi/playground/result-panel/ResultPanel.tsx +3 -3
- package/src/lib/plugins/openapi/playground/result-panel/convertToTypes.ts +1 -1
- package/src/lib/plugins/openapi/processors/removeExtensions.test.ts +1 -0
- package/src/lib/plugins/openapi/processors/removeParameters.test.ts +1 -0
- package/src/lib/plugins/openapi/processors/traverse.ts +1 -1
- package/src/lib/plugins/openapi/schema/{LogicalGroup/LogicalGroupConnector.tsx → AllOfGroup/AllOfGroupConnector.tsx} +4 -25
- package/src/lib/plugins/openapi/schema/{LogicalGroup/LogicalGroupItem.tsx → AllOfGroup/AllOfGroupItem.tsx} +3 -11
- package/src/lib/plugins/openapi/schema/AllOfGroup/AllOfGroupView.tsx +35 -0
- package/src/lib/plugins/openapi/schema/SchemaPropertyItem.tsx +9 -27
- package/src/lib/plugins/openapi/schema/SchemaView.tsx +19 -13
- package/src/lib/plugins/openapi/schema/UnionView.tsx +123 -0
- package/src/lib/plugins/openapi/schema/union-helpers.ts +96 -0
- package/src/lib/plugins/openapi/schema/utils.ts +0 -11
- package/src/lib/plugins/openapi/util/createHttpSnippet.ts +2 -2
- package/src/lib/plugins/openapi/util/createNavigationCategory.tsx +1 -0
- package/src/lib/plugins/openapi/util/generateSchemaExample.ts +3 -4
- package/src/lib/plugins/openapi/util/getRoutes.tsx +2 -2
- package/src/lib/plugins/openapi/util/methodColorMap.tsx +1 -1
- package/src/lib/plugins/search-inkeep/index.tsx +3 -3
- package/src/lib/plugins/search-pagefind/PagefindSearch.tsx +2 -4
- package/src/lib/plugins/search-pagefind/ResultList.tsx +3 -4
- package/src/lib/plugins/search-pagefind/get-results.tsx +0 -1
- package/src/lib/shiki.ts +6 -6
- package/src/lib/ui/Breadcrumb.tsx +1 -0
- package/src/lib/ui/Carousel.tsx +1 -0
- package/src/lib/ui/CodeBlock.tsx +5 -3
- package/src/lib/ui/Command.tsx +2 -4
- package/src/lib/ui/Dialog.tsx +12 -4
- package/src/lib/ui/Form.tsx +4 -4
- package/src/lib/ui/Pagination.tsx +1 -2
- package/src/lib/ui/ToggleGroup.tsx +1 -1
- package/src/lib/util/MdxComponents.tsx +9 -2
- package/src/lib/util/cn.ts +1 -1
- package/src/lib/util/createVariantComponent.tsx +2 -2
- package/src/lib/util/groupBy.ts +1 -0
- package/src/lib/util/humanFileSize.ts +2 -3
- package/src/lib/util/invariant.ts +1 -0
- package/src/lib/util/pastellize.ts +2 -2
- package/src/lib/util/types.ts +1 -1
- package/src/lib/util/useIsomorphicLayoutEffect.ts +1 -0
- package/src/lib/util/useScrollToAnchor.ts +3 -1
- package/src/shiki/langs/vue-vine.js +1 -0
- package/dist/lib/components/ReactMarkdown.d.ts +0 -29
- package/dist/lib/components/ReactMarkdown.js +0 -182
- package/dist/lib/components/ReactMarkdown.js.map +0 -1
- package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.d.ts +0 -8
- package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.js +0 -14
- package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.js.map +0 -1
- package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupConnector.d.ts +0 -7
- package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupConnector.js +0 -17
- package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupConnector.js.map +0 -1
- package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupItem.js +0 -10
- package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupItem.js.map +0 -1
- package/lib/CodeBlock-CVT6z0PP.js.map +0 -1
- package/lib/Command-BYukybsa.js.map +0 -1
- package/lib/Dialog-u9Uz9sTt.js +0 -99
- package/lib/Dialog-u9Uz9sTt.js.map +0 -1
- package/lib/MdxPage-plD-n8fm.js.map +0 -1
- package/lib/OAuthErrorPage-BTP-t8Fq.js.map +0 -1
- package/lib/OasProvider-CYf5xe1a.js.map +0 -1
- package/lib/OperationList-C_-vAmhs.js.map +0 -1
- package/lib/RouteGuard-gznKADdm.js.map +0 -1
- package/lib/SchemaView-CHb3DJ6D.js +0 -366
- package/lib/SchemaView-CHb3DJ6D.js.map +0 -1
- package/lib/SignUp-BXxkBCGy.js.map +0 -1
- package/lib/chunk-QMGIS6GS-CdEm9pzB.js +0 -1839
- package/lib/chunk-QMGIS6GS-CdEm9pzB.js.map +0 -1
- package/lib/createServer-B4w9HCV7.js.map +0 -1
- package/lib/errors-v4zc7txj.js.map +0 -1
- package/lib/index-D1LmO5Bn.js +0 -4082
- package/lib/index-D1LmO5Bn.js.map +0 -1
- package/lib/index-DnkZAg98.js.map +0 -1
- package/src/lib/components/ReactMarkdown.license.txt +0 -21
- package/src/lib/components/ReactMarkdown.tsx +0 -264
- package/src/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.tsx +0 -40
|
@@ -1,15 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
var x, K;
|
|
9
|
-
function Ee() {
|
|
10
|
-
if (K) return x;
|
|
11
|
-
K = 1;
|
|
12
|
-
var e = typeof Element < "u", t = typeof Map == "function", r = typeof Set == "function", n = typeof ArrayBuffer == "function" && !!ArrayBuffer.isView;
|
|
1
|
+
import y, { Component as k } from "react";
|
|
2
|
+
import { g as j } from "./invariant-Bm-FVUQE.js";
|
|
3
|
+
var S, U;
|
|
4
|
+
function ne() {
|
|
5
|
+
if (U) return S;
|
|
6
|
+
U = 1;
|
|
7
|
+
var e = typeof Element < "u", r = typeof Map == "function", t = typeof Set == "function", n = typeof ArrayBuffer == "function" && !!ArrayBuffer.isView;
|
|
13
8
|
function i(s, o) {
|
|
14
9
|
if (s === o) return !0;
|
|
15
10
|
if (s && o && typeof s == "object" && typeof o == "object") {
|
|
@@ -22,7 +17,7 @@ function Ee() {
|
|
|
22
17
|
return !0;
|
|
23
18
|
}
|
|
24
19
|
var u;
|
|
25
|
-
if (
|
|
20
|
+
if (r && s instanceof Map && o instanceof Map) {
|
|
26
21
|
if (s.size !== o.size) return !1;
|
|
27
22
|
for (u = s.entries(); !(a = u.next()).done; )
|
|
28
23
|
if (!o.has(a.value[0])) return !1;
|
|
@@ -30,7 +25,7 @@ function Ee() {
|
|
|
30
25
|
if (!i(a.value[1], o.get(a.value[0]))) return !1;
|
|
31
26
|
return !0;
|
|
32
27
|
}
|
|
33
|
-
if (
|
|
28
|
+
if (t && s instanceof Set && o instanceof Set) {
|
|
34
29
|
if (s.size !== o.size) return !1;
|
|
35
30
|
for (u = s.entries(); !(a = u.next()).done; )
|
|
36
31
|
if (!o.has(a.value[0])) return !1;
|
|
@@ -56,7 +51,7 @@ function Ee() {
|
|
|
56
51
|
}
|
|
57
52
|
return s !== s && o !== o;
|
|
58
53
|
}
|
|
59
|
-
return
|
|
54
|
+
return S = function(o, l) {
|
|
60
55
|
try {
|
|
61
56
|
return i(o, l);
|
|
62
57
|
} catch (a) {
|
|
@@ -64,27 +59,27 @@ function Ee() {
|
|
|
64
59
|
return console.warn("react-fast-compare cannot handle circular refs"), !1;
|
|
65
60
|
throw a;
|
|
66
61
|
}
|
|
67
|
-
},
|
|
62
|
+
}, S;
|
|
68
63
|
}
|
|
69
|
-
var
|
|
70
|
-
const
|
|
71
|
-
var
|
|
72
|
-
function
|
|
73
|
-
if (
|
|
74
|
-
|
|
75
|
-
var e = function(
|
|
76
|
-
if (process.env.NODE_ENV !== "production" &&
|
|
64
|
+
var se = ne();
|
|
65
|
+
const ae = /* @__PURE__ */ j(se);
|
|
66
|
+
var x, K;
|
|
67
|
+
function ie() {
|
|
68
|
+
if (K) return x;
|
|
69
|
+
K = 1;
|
|
70
|
+
var e = function(r, t, n, i, s, o, l, a) {
|
|
71
|
+
if (process.env.NODE_ENV !== "production" && t === void 0)
|
|
77
72
|
throw new Error("invariant requires an error message argument");
|
|
78
|
-
if (!
|
|
73
|
+
if (!r) {
|
|
79
74
|
var c;
|
|
80
|
-
if (
|
|
75
|
+
if (t === void 0)
|
|
81
76
|
c = new Error(
|
|
82
77
|
"Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings."
|
|
83
78
|
);
|
|
84
79
|
else {
|
|
85
80
|
var u = [n, i, s, o, l, a], f = 0;
|
|
86
81
|
c = new Error(
|
|
87
|
-
|
|
82
|
+
t.replace(/%s/g, function() {
|
|
88
83
|
return u[f++];
|
|
89
84
|
})
|
|
90
85
|
), c.name = "Invariant Violation";
|
|
@@ -92,37 +87,37 @@ function Oe() {
|
|
|
92
87
|
throw c.framesToPop = 1, c;
|
|
93
88
|
}
|
|
94
89
|
};
|
|
95
|
-
return
|
|
90
|
+
return x = e, x;
|
|
96
91
|
}
|
|
97
|
-
var
|
|
98
|
-
const
|
|
99
|
-
var
|
|
100
|
-
function
|
|
101
|
-
return
|
|
102
|
-
var s = n ? n.call(i,
|
|
92
|
+
var oe = ie();
|
|
93
|
+
const z = /* @__PURE__ */ j(oe);
|
|
94
|
+
var P, N;
|
|
95
|
+
function le() {
|
|
96
|
+
return N || (N = 1, P = function(r, t, n, i) {
|
|
97
|
+
var s = n ? n.call(i, r, t) : void 0;
|
|
103
98
|
if (s !== void 0)
|
|
104
99
|
return !!s;
|
|
105
|
-
if (
|
|
100
|
+
if (r === t)
|
|
106
101
|
return !0;
|
|
107
|
-
if (typeof
|
|
102
|
+
if (typeof r != "object" || !r || typeof t != "object" || !t)
|
|
108
103
|
return !1;
|
|
109
|
-
var o = Object.keys(
|
|
104
|
+
var o = Object.keys(r), l = Object.keys(t);
|
|
110
105
|
if (o.length !== l.length)
|
|
111
106
|
return !1;
|
|
112
|
-
for (var a = Object.prototype.hasOwnProperty.bind(
|
|
107
|
+
for (var a = Object.prototype.hasOwnProperty.bind(t), c = 0; c < o.length; c++) {
|
|
113
108
|
var u = o[c];
|
|
114
109
|
if (!a(u))
|
|
115
110
|
return !1;
|
|
116
|
-
var f =
|
|
111
|
+
var f = r[u], m = t[u];
|
|
117
112
|
if (s = n ? n.call(i, f, m, u) : void 0, s === !1 || s === void 0 && f !== m)
|
|
118
113
|
return !1;
|
|
119
114
|
}
|
|
120
115
|
return !0;
|
|
121
|
-
}),
|
|
116
|
+
}), P;
|
|
122
117
|
}
|
|
123
|
-
var
|
|
124
|
-
const
|
|
125
|
-
var
|
|
118
|
+
var ce = le();
|
|
119
|
+
const ue = /* @__PURE__ */ j(ce);
|
|
120
|
+
var G = /* @__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))(G || {}), $ = {
|
|
126
121
|
link: { rel: ["amphtml", "canonical", "alternate"] },
|
|
127
122
|
script: { type: ["application/ld+json"] },
|
|
128
123
|
meta: {
|
|
@@ -144,7 +139,7 @@ var Q = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "hea
|
|
|
144
139
|
"twitter:site"
|
|
145
140
|
]
|
|
146
141
|
}
|
|
147
|
-
}, V = Object.values(
|
|
142
|
+
}, V = Object.values(G), q = {
|
|
148
143
|
accesskey: "accessKey",
|
|
149
144
|
charset: "charSet",
|
|
150
145
|
class: "className",
|
|
@@ -153,48 +148,48 @@ var Q = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "hea
|
|
|
153
148
|
"http-equiv": "httpEquiv",
|
|
154
149
|
itemprop: "itemProp",
|
|
155
150
|
tabindex: "tabIndex"
|
|
156
|
-
},
|
|
157
|
-
(e, [
|
|
151
|
+
}, fe = Object.entries(q).reduce(
|
|
152
|
+
(e, [r, t]) => (e[t] = r, e),
|
|
158
153
|
{}
|
|
159
|
-
), h = "data-rh",
|
|
154
|
+
), h = "data-rh", v = {
|
|
160
155
|
DEFAULT_TITLE: "defaultTitle",
|
|
161
156
|
DEFER: "defer",
|
|
162
157
|
ENCODE_SPECIAL_CHARACTERS: "encodeSpecialCharacters",
|
|
163
158
|
ON_CHANGE_CLIENT_STATE: "onChangeClientState",
|
|
164
159
|
TITLE_TEMPLATE: "titleTemplate",
|
|
165
160
|
PRIORITIZE_SEO_TAGS: "prioritizeSeoTags"
|
|
166
|
-
},
|
|
167
|
-
for (let
|
|
168
|
-
const n = e[
|
|
169
|
-
if (Object.prototype.hasOwnProperty.call(n,
|
|
170
|
-
return n[
|
|
161
|
+
}, A = (e, r) => {
|
|
162
|
+
for (let t = e.length - 1; t >= 0; t -= 1) {
|
|
163
|
+
const n = e[t];
|
|
164
|
+
if (Object.prototype.hasOwnProperty.call(n, r))
|
|
165
|
+
return n[r];
|
|
171
166
|
}
|
|
172
167
|
return null;
|
|
173
|
-
},
|
|
174
|
-
let
|
|
168
|
+
}, pe = (e) => {
|
|
169
|
+
let r = A(
|
|
175
170
|
e,
|
|
176
171
|
"title"
|
|
177
172
|
/* TITLE */
|
|
178
173
|
);
|
|
179
|
-
const
|
|
180
|
-
if (Array.isArray(
|
|
181
|
-
return
|
|
182
|
-
const n =
|
|
183
|
-
return
|
|
184
|
-
},
|
|
185
|
-
}),
|
|
186
|
-
if (!
|
|
174
|
+
const t = A(e, v.TITLE_TEMPLATE);
|
|
175
|
+
if (Array.isArray(r) && (r = r.join("")), t && r)
|
|
176
|
+
return t.replace(/%s/g, () => r);
|
|
177
|
+
const n = A(e, v.DEFAULT_TITLE);
|
|
178
|
+
return r || n || void 0;
|
|
179
|
+
}, de = (e) => A(e, v.ON_CHANGE_CLIENT_STATE) || (() => {
|
|
180
|
+
}), I = (e, r) => r.filter((t) => typeof t[e] < "u").map((t) => t[e]).reduce((t, n) => ({ ...t, ...n }), {}), me = (e, r) => r.filter((t) => typeof t.base < "u").map((t) => t.base).reverse().reduce((t, n) => {
|
|
181
|
+
if (!t.length) {
|
|
187
182
|
const i = Object.keys(n);
|
|
188
183
|
for (let s = 0; s < i.length; s += 1) {
|
|
189
184
|
const l = i[s].toLowerCase();
|
|
190
185
|
if (e.indexOf(l) !== -1 && n[l])
|
|
191
|
-
return
|
|
186
|
+
return t.concat(n);
|
|
192
187
|
}
|
|
193
188
|
}
|
|
194
|
-
return
|
|
195
|
-
}, []),
|
|
189
|
+
return t;
|
|
190
|
+
}, []), he = (e) => console && typeof console.warn == "function" && console.warn(e), E = (e, r, t) => {
|
|
196
191
|
const n = {};
|
|
197
|
-
return
|
|
192
|
+
return t.filter((i) => Array.isArray(i[e]) ? !0 : (typeof i[e] < "u" && he(
|
|
198
193
|
`Helmet: ${e} should be of type "Array". Instead found type "${typeof i[e]}"`
|
|
199
194
|
), !1)).map((i) => i[e]).reverse().reduce((i, s) => {
|
|
200
195
|
const o = {};
|
|
@@ -202,8 +197,8 @@ var Q = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "hea
|
|
|
202
197
|
let c;
|
|
203
198
|
const u = Object.keys(a);
|
|
204
199
|
for (let m = 0; m < u.length; m += 1) {
|
|
205
|
-
const p = u[m],
|
|
206
|
-
|
|
200
|
+
const p = u[m], T = p.toLowerCase();
|
|
201
|
+
r.indexOf(T) !== -1 && !(c === "rel" && a[c].toLowerCase() === "canonical") && !(T === "rel" && a[T].toLowerCase() === "stylesheet") && (c = T), r.indexOf(p) !== -1 && (p === "innerHTML" || p === "cssText" || p === "itemprop") && (c = p);
|
|
207
202
|
}
|
|
208
203
|
if (!c || !a[c])
|
|
209
204
|
return !1;
|
|
@@ -220,23 +215,23 @@ var Q = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "hea
|
|
|
220
215
|
}
|
|
221
216
|
return i;
|
|
222
217
|
}, []).reverse();
|
|
223
|
-
},
|
|
218
|
+
}, ye = (e, r) => {
|
|
224
219
|
if (Array.isArray(e) && e.length) {
|
|
225
|
-
for (let
|
|
226
|
-
if (e[
|
|
220
|
+
for (let t = 0; t < e.length; t += 1)
|
|
221
|
+
if (e[t][r])
|
|
227
222
|
return !0;
|
|
228
223
|
}
|
|
229
224
|
return !1;
|
|
230
|
-
},
|
|
231
|
-
baseTag:
|
|
225
|
+
}, Te = (e) => ({
|
|
226
|
+
baseTag: me([
|
|
232
227
|
"href"
|
|
233
228
|
/* HREF */
|
|
234
229
|
], e),
|
|
235
|
-
bodyAttributes:
|
|
236
|
-
defer:
|
|
237
|
-
encode:
|
|
238
|
-
htmlAttributes:
|
|
239
|
-
linkTags:
|
|
230
|
+
bodyAttributes: I("bodyAttributes", e),
|
|
231
|
+
defer: A(e, v.DEFER),
|
|
232
|
+
encode: A(e, v.ENCODE_SPECIAL_CHARACTERS),
|
|
233
|
+
htmlAttributes: I("htmlAttributes", e),
|
|
234
|
+
linkTags: E(
|
|
240
235
|
"link",
|
|
241
236
|
[
|
|
242
237
|
"rel",
|
|
@@ -245,7 +240,7 @@ var Q = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "hea
|
|
|
245
240
|
],
|
|
246
241
|
e
|
|
247
242
|
),
|
|
248
|
-
metaTags:
|
|
243
|
+
metaTags: E(
|
|
249
244
|
"meta",
|
|
250
245
|
[
|
|
251
246
|
"name",
|
|
@@ -257,12 +252,12 @@ var Q = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "hea
|
|
|
257
252
|
],
|
|
258
253
|
e
|
|
259
254
|
),
|
|
260
|
-
noscriptTags:
|
|
255
|
+
noscriptTags: E("noscript", [
|
|
261
256
|
"innerHTML"
|
|
262
257
|
/* INNER_HTML */
|
|
263
258
|
], e),
|
|
264
|
-
onChangeClientState:
|
|
265
|
-
scriptTags:
|
|
259
|
+
onChangeClientState: de(e),
|
|
260
|
+
scriptTags: E(
|
|
266
261
|
"script",
|
|
267
262
|
[
|
|
268
263
|
"src",
|
|
@@ -271,99 +266,99 @@ var Q = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "hea
|
|
|
271
266
|
],
|
|
272
267
|
e
|
|
273
268
|
),
|
|
274
|
-
styleTags:
|
|
269
|
+
styleTags: E("style", [
|
|
275
270
|
"cssText"
|
|
276
271
|
/* CSS_TEXT */
|
|
277
272
|
], e),
|
|
278
|
-
title:
|
|
279
|
-
titleAttributes:
|
|
280
|
-
prioritizeSeoTags:
|
|
281
|
-
}), W = (e) => Array.isArray(e) ? e.join("") : e,
|
|
282
|
-
const
|
|
283
|
-
for (let n = 0; n <
|
|
284
|
-
if (t[
|
|
273
|
+
title: pe(e),
|
|
274
|
+
titleAttributes: I("titleAttributes", e),
|
|
275
|
+
prioritizeSeoTags: ye(e, v.PRIORITIZE_SEO_TAGS)
|
|
276
|
+
}), W = (e) => Array.isArray(e) ? e.join("") : e, ge = (e, r) => {
|
|
277
|
+
const t = Object.keys(e);
|
|
278
|
+
for (let n = 0; n < t.length; n += 1)
|
|
279
|
+
if (r[t[n]] && r[t[n]].includes(e[t[n]]))
|
|
285
280
|
return !0;
|
|
286
281
|
return !1;
|
|
287
|
-
},
|
|
288
|
-
(
|
|
282
|
+
}, H = (e, r) => Array.isArray(e) ? e.reduce(
|
|
283
|
+
(t, n) => (ge(n, r) ? t.priority.push(n) : t.default.push(n), t),
|
|
289
284
|
{ priority: [], default: [] }
|
|
290
|
-
) : { default: e, priority: [] },
|
|
285
|
+
) : { default: e, priority: [] }, B = (e, r) => ({
|
|
291
286
|
...e,
|
|
292
|
-
[
|
|
293
|
-
}),
|
|
287
|
+
[r]: void 0
|
|
288
|
+
}), ve = [
|
|
294
289
|
"noscript",
|
|
295
290
|
"script",
|
|
296
291
|
"style"
|
|
297
292
|
/* STYLE */
|
|
298
|
-
],
|
|
299
|
-
const n = typeof e[
|
|
300
|
-
return
|
|
301
|
-
}, ""),
|
|
302
|
-
const i = J(
|
|
303
|
-
return i ? `<${e} ${h}="true" ${i}>${
|
|
293
|
+
], _ = (e, r = !0) => r === !1 ? String(e) : String(e).replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'"), J = (e) => Object.keys(e).reduce((r, t) => {
|
|
294
|
+
const n = typeof e[t] < "u" ? `${t}="${e[t]}"` : `${t}`;
|
|
295
|
+
return r ? `${r} ${n}` : n;
|
|
296
|
+
}, ""), Ae = (e, r, t, n) => {
|
|
297
|
+
const i = J(t), s = W(r);
|
|
298
|
+
return i ? `<${e} ${h}="true" ${i}>${_(
|
|
304
299
|
s,
|
|
305
300
|
n
|
|
306
|
-
)}</${e}>` : `<${e} ${h}="true">${
|
|
301
|
+
)}</${e}>` : `<${e} ${h}="true">${_(
|
|
307
302
|
s,
|
|
308
303
|
n
|
|
309
304
|
)}</${e}>`;
|
|
310
|
-
},
|
|
305
|
+
}, Ee = (e, r, t = !0) => r.reduce((n, i) => {
|
|
311
306
|
const s = i, o = Object.keys(s).filter(
|
|
312
307
|
(c) => !(c === "innerHTML" || c === "cssText")
|
|
313
308
|
).reduce((c, u) => {
|
|
314
|
-
const f = typeof s[u] > "u" ? u : `${u}="${
|
|
309
|
+
const f = typeof s[u] > "u" ? u : `${u}="${_(s[u], t)}"`;
|
|
315
310
|
return c ? `${c} ${f}` : f;
|
|
316
|
-
}, ""), l = s.innerHTML || s.cssText || "", a =
|
|
311
|
+
}, ""), l = s.innerHTML || s.cssText || "", a = ve.indexOf(e) === -1;
|
|
317
312
|
return `${n}<${e} ${h}="true" ${o}${a ? "/>" : `>${l}</${e}>`}`;
|
|
318
|
-
}, ""),
|
|
313
|
+
}, ""), Q = (e, r = {}) => Object.keys(e).reduce((t, n) => {
|
|
319
314
|
const i = q[n];
|
|
320
|
-
return
|
|
321
|
-
},
|
|
315
|
+
return t[i || n] = e[n], t;
|
|
316
|
+
}, r), be = (e, r, t) => {
|
|
322
317
|
const n = {
|
|
323
|
-
key:
|
|
318
|
+
key: r,
|
|
324
319
|
[h]: !0
|
|
325
|
-
}, i =
|
|
326
|
-
return [
|
|
327
|
-
},
|
|
320
|
+
}, i = Q(t, n);
|
|
321
|
+
return [y.createElement("title", i, r)];
|
|
322
|
+
}, w = (e, r) => r.map((t, n) => {
|
|
328
323
|
const i = {
|
|
329
324
|
key: n,
|
|
330
325
|
[h]: !0
|
|
331
326
|
};
|
|
332
|
-
return Object.keys(
|
|
327
|
+
return Object.keys(t).forEach((s) => {
|
|
333
328
|
const l = q[s] || s;
|
|
334
329
|
if (l === "innerHTML" || l === "cssText") {
|
|
335
|
-
const a =
|
|
330
|
+
const a = t.innerHTML || t.cssText;
|
|
336
331
|
i.dangerouslySetInnerHTML = { __html: a };
|
|
337
332
|
} else
|
|
338
|
-
i[l] =
|
|
339
|
-
}),
|
|
340
|
-
}), d = (e,
|
|
333
|
+
i[l] = t[s];
|
|
334
|
+
}), y.createElement(e, i);
|
|
335
|
+
}), d = (e, r, t = !0) => {
|
|
341
336
|
switch (e) {
|
|
342
337
|
case "title":
|
|
343
338
|
return {
|
|
344
|
-
toComponent: () =>
|
|
345
|
-
toString: () =>
|
|
339
|
+
toComponent: () => be(e, r.title, r.titleAttributes),
|
|
340
|
+
toString: () => Ae(e, r.title, r.titleAttributes, t)
|
|
346
341
|
};
|
|
347
342
|
case "bodyAttributes":
|
|
348
343
|
case "htmlAttributes":
|
|
349
344
|
return {
|
|
350
|
-
toComponent: () =>
|
|
351
|
-
toString: () => J(
|
|
345
|
+
toComponent: () => Q(r),
|
|
346
|
+
toString: () => J(r)
|
|
352
347
|
};
|
|
353
348
|
default:
|
|
354
349
|
return {
|
|
355
|
-
toComponent: () =>
|
|
356
|
-
toString: () =>
|
|
350
|
+
toComponent: () => w(e, r),
|
|
351
|
+
toString: () => Ee(e, r, t)
|
|
357
352
|
};
|
|
358
353
|
}
|
|
359
|
-
},
|
|
360
|
-
const i =
|
|
354
|
+
}, Oe = ({ metaTags: e, linkTags: r, scriptTags: t, encode: n }) => {
|
|
355
|
+
const i = H(e, $.meta), s = H(r, $.link), o = H(t, $.script);
|
|
361
356
|
return {
|
|
362
357
|
priorityMethods: {
|
|
363
358
|
toComponent: () => [
|
|
364
|
-
...
|
|
365
|
-
...
|
|
366
|
-
...
|
|
359
|
+
...w("meta", i.priority),
|
|
360
|
+
...w("link", s.priority),
|
|
361
|
+
...w("script", o.priority)
|
|
367
362
|
],
|
|
368
363
|
toString: () => (
|
|
369
364
|
// generate all the tags as strings and concatenate them
|
|
@@ -378,10 +373,10 @@ var Q = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "hea
|
|
|
378
373
|
linkTags: s.default,
|
|
379
374
|
scriptTags: o.default
|
|
380
375
|
};
|
|
381
|
-
},
|
|
376
|
+
}, Ce = (e) => {
|
|
382
377
|
const {
|
|
383
|
-
baseTag:
|
|
384
|
-
bodyAttributes:
|
|
378
|
+
baseTag: r,
|
|
379
|
+
bodyAttributes: t,
|
|
385
380
|
encode: n = !0,
|
|
386
381
|
htmlAttributes: i,
|
|
387
382
|
noscriptTags: s,
|
|
@@ -395,10 +390,10 @@ var Q = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "hea
|
|
|
395
390
|
},
|
|
396
391
|
toString: () => ""
|
|
397
392
|
};
|
|
398
|
-
return c && ({ priorityMethods: p, linkTags: u, metaTags: f, scriptTags: m } =
|
|
393
|
+
return c && ({ priorityMethods: p, linkTags: u, metaTags: f, scriptTags: m } = Oe(e)), {
|
|
399
394
|
priority: p,
|
|
400
|
-
base: d("base",
|
|
401
|
-
bodyAttributes: d("bodyAttributes",
|
|
395
|
+
base: d("base", r, n),
|
|
396
|
+
bodyAttributes: d("bodyAttributes", t, n),
|
|
402
397
|
htmlAttributes: d("htmlAttributes", i, n),
|
|
403
398
|
link: d("link", u, n),
|
|
404
399
|
meta: d("meta", f, n),
|
|
@@ -407,27 +402,27 @@ var Q = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "hea
|
|
|
407
402
|
style: d("style", o, n),
|
|
408
403
|
title: d("title", { title: l, titleAttributes: a }, n)
|
|
409
404
|
};
|
|
410
|
-
},
|
|
405
|
+
}, D = Ce, C = [], X = !!(typeof window < "u" && window.document && window.document.createElement), R = class {
|
|
411
406
|
instances = [];
|
|
412
|
-
canUseDOM =
|
|
407
|
+
canUseDOM = X;
|
|
413
408
|
context;
|
|
414
409
|
value = {
|
|
415
410
|
setHelmet: (e) => {
|
|
416
411
|
this.context.helmet = e;
|
|
417
412
|
},
|
|
418
413
|
helmetInstances: {
|
|
419
|
-
get: () => this.canUseDOM ?
|
|
414
|
+
get: () => this.canUseDOM ? C : this.instances,
|
|
420
415
|
add: (e) => {
|
|
421
|
-
(this.canUseDOM ?
|
|
416
|
+
(this.canUseDOM ? C : this.instances).push(e);
|
|
422
417
|
},
|
|
423
418
|
remove: (e) => {
|
|
424
|
-
const
|
|
425
|
-
(this.canUseDOM ?
|
|
419
|
+
const r = (this.canUseDOM ? C : this.instances).indexOf(e);
|
|
420
|
+
(this.canUseDOM ? C : this.instances).splice(r, 1);
|
|
426
421
|
}
|
|
427
422
|
}
|
|
428
423
|
};
|
|
429
|
-
constructor(e,
|
|
430
|
-
this.context = e, this.canUseDOM =
|
|
424
|
+
constructor(e, r) {
|
|
425
|
+
this.context = e, this.canUseDOM = r || !1, r || (e.helmet = D({
|
|
431
426
|
baseTag: [],
|
|
432
427
|
bodyAttributes: {},
|
|
433
428
|
htmlAttributes: {},
|
|
@@ -440,22 +435,22 @@ var Q = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "hea
|
|
|
440
435
|
titleAttributes: {}
|
|
441
436
|
}));
|
|
442
437
|
}
|
|
443
|
-
},
|
|
444
|
-
static canUseDOM =
|
|
438
|
+
}, we = {}, ee = y.createContext(we), Se = class te extends k {
|
|
439
|
+
static canUseDOM = X;
|
|
445
440
|
helmetData;
|
|
446
|
-
constructor(
|
|
447
|
-
super(
|
|
441
|
+
constructor(r) {
|
|
442
|
+
super(r), this.helmetData = new R(this.props.context || {}, te.canUseDOM);
|
|
448
443
|
}
|
|
449
444
|
render() {
|
|
450
|
-
return /* @__PURE__ */
|
|
445
|
+
return /* @__PURE__ */ y.createElement(ee.Provider, { value: this.helmetData.value }, this.props.children);
|
|
451
446
|
}
|
|
452
|
-
},
|
|
453
|
-
const
|
|
447
|
+
}, g = (e, r) => {
|
|
448
|
+
const t = document.head || document.querySelector(
|
|
454
449
|
"head"
|
|
455
450
|
/* HEAD */
|
|
456
|
-
), n =
|
|
451
|
+
), n = t.querySelectorAll(`${e}[${h}]`), i = [].slice.call(n), s = [];
|
|
457
452
|
let o;
|
|
458
|
-
return
|
|
453
|
+
return r && r.length && r.forEach((l) => {
|
|
459
454
|
const a = document.createElement(e);
|
|
460
455
|
for (const c in l)
|
|
461
456
|
if (Object.prototype.hasOwnProperty.call(l, c))
|
|
@@ -468,29 +463,29 @@ var Q = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "hea
|
|
|
468
463
|
a.setAttribute(c, f);
|
|
469
464
|
}
|
|
470
465
|
a.setAttribute(h, "true"), i.some((c, u) => (o = u, a.isEqualNode(c))) ? i.splice(o, 1) : s.push(a);
|
|
471
|
-
}), i.forEach((l) => l.parentNode?.removeChild(l)), s.forEach((l) =>
|
|
466
|
+
}), i.forEach((l) => l.parentNode?.removeChild(l)), s.forEach((l) => t.appendChild(l)), {
|
|
472
467
|
oldTags: i,
|
|
473
468
|
newTags: s
|
|
474
469
|
};
|
|
475
|
-
},
|
|
476
|
-
const
|
|
477
|
-
if (!
|
|
470
|
+
}, M = (e, r) => {
|
|
471
|
+
const t = document.getElementsByTagName(e)[0];
|
|
472
|
+
if (!t)
|
|
478
473
|
return;
|
|
479
|
-
const n =
|
|
474
|
+
const n = t.getAttribute(h), i = n ? n.split(",") : [], s = [...i], o = Object.keys(r);
|
|
480
475
|
for (const l of o) {
|
|
481
|
-
const a =
|
|
482
|
-
|
|
476
|
+
const a = r[l] || "";
|
|
477
|
+
t.getAttribute(l) !== a && t.setAttribute(l, a), i.indexOf(l) === -1 && i.push(l);
|
|
483
478
|
const c = s.indexOf(l);
|
|
484
479
|
c !== -1 && s.splice(c, 1);
|
|
485
480
|
}
|
|
486
481
|
for (let l = s.length - 1; l >= 0; l -= 1)
|
|
487
|
-
|
|
488
|
-
i.length === s.length ?
|
|
489
|
-
},
|
|
490
|
-
typeof e < "u" && document.title !== e && (document.title = W(e)),
|
|
491
|
-
}, Y = (e,
|
|
482
|
+
t.removeAttribute(s[l]);
|
|
483
|
+
i.length === s.length ? t.removeAttribute(h) : t.getAttribute(h) !== o.join(",") && t.setAttribute(h, o.join(","));
|
|
484
|
+
}, xe = (e, r) => {
|
|
485
|
+
typeof e < "u" && document.title !== e && (document.title = W(e)), M("title", r);
|
|
486
|
+
}, Y = (e, r) => {
|
|
492
487
|
const {
|
|
493
|
-
baseTag:
|
|
488
|
+
baseTag: t,
|
|
494
489
|
bodyAttributes: n,
|
|
495
490
|
htmlAttributes: i,
|
|
496
491
|
linkTags: s,
|
|
@@ -502,29 +497,29 @@ var Q = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "hea
|
|
|
502
497
|
title: f,
|
|
503
498
|
titleAttributes: m
|
|
504
499
|
} = e;
|
|
505
|
-
|
|
500
|
+
M("body", n), M("html", i), xe(f, m);
|
|
506
501
|
const p = {
|
|
507
|
-
baseTag:
|
|
508
|
-
linkTags:
|
|
509
|
-
metaTags:
|
|
510
|
-
noscriptTags:
|
|
511
|
-
scriptTags:
|
|
512
|
-
styleTags:
|
|
513
|
-
},
|
|
502
|
+
baseTag: g("base", t),
|
|
503
|
+
linkTags: g("link", s),
|
|
504
|
+
metaTags: g("meta", o),
|
|
505
|
+
noscriptTags: g("noscript", l),
|
|
506
|
+
scriptTags: g("script", c),
|
|
507
|
+
styleTags: g("style", u)
|
|
508
|
+
}, T = {}, L = {};
|
|
514
509
|
Object.keys(p).forEach((O) => {
|
|
515
|
-
const { newTags:
|
|
516
|
-
|
|
517
|
-
}),
|
|
518
|
-
},
|
|
519
|
-
|
|
510
|
+
const { newTags: F, oldTags: re } = p[O];
|
|
511
|
+
F.length && (T[O] = F), re.length && (L[O] = p[O].oldTags);
|
|
512
|
+
}), r && r(), a(e, T, L);
|
|
513
|
+
}, b = null, Pe = (e) => {
|
|
514
|
+
b && cancelAnimationFrame(b), e.defer ? b = requestAnimationFrame(() => {
|
|
520
515
|
Y(e, () => {
|
|
521
|
-
|
|
516
|
+
b = null;
|
|
522
517
|
});
|
|
523
|
-
}) : (Y(e),
|
|
524
|
-
},
|
|
518
|
+
}) : (Y(e), b = null);
|
|
519
|
+
}, $e = Pe, Z = class extends k {
|
|
525
520
|
rendered = !1;
|
|
526
521
|
shouldComponentUpdate(e) {
|
|
527
|
-
return !
|
|
522
|
+
return !ue(e, this.props);
|
|
528
523
|
}
|
|
529
524
|
componentDidUpdate() {
|
|
530
525
|
this.emitChange();
|
|
@@ -534,15 +529,15 @@ var Q = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "hea
|
|
|
534
529
|
e.remove(this), this.emitChange();
|
|
535
530
|
}
|
|
536
531
|
emitChange() {
|
|
537
|
-
const { helmetInstances: e, setHelmet:
|
|
538
|
-
let
|
|
539
|
-
const n =
|
|
532
|
+
const { helmetInstances: e, setHelmet: r } = this.props.context;
|
|
533
|
+
let t = null;
|
|
534
|
+
const n = Te(
|
|
540
535
|
e.get().map((i) => {
|
|
541
536
|
const s = { ...i.props };
|
|
542
537
|
return delete s.context, s;
|
|
543
538
|
})
|
|
544
539
|
);
|
|
545
|
-
|
|
540
|
+
Se.canUseDOM ? $e(n) : D && (t = D(n)), r(t);
|
|
546
541
|
}
|
|
547
542
|
// componentWillMount will be deprecated
|
|
548
543
|
// for SSR, initialize on first render
|
|
@@ -557,27 +552,27 @@ var Q = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "hea
|
|
|
557
552
|
render() {
|
|
558
553
|
return this.init(), null;
|
|
559
554
|
}
|
|
560
|
-
},
|
|
555
|
+
}, _e = class extends k {
|
|
561
556
|
static defaultProps = {
|
|
562
557
|
defer: !0,
|
|
563
558
|
encodeSpecialCharacters: !0,
|
|
564
559
|
prioritizeSeoTags: !1
|
|
565
560
|
};
|
|
566
561
|
shouldComponentUpdate(e) {
|
|
567
|
-
return !
|
|
562
|
+
return !ae(B(this.props, "helmetData"), B(e, "helmetData"));
|
|
568
563
|
}
|
|
569
|
-
mapNestedChildrenToProps(e,
|
|
570
|
-
if (!
|
|
564
|
+
mapNestedChildrenToProps(e, r) {
|
|
565
|
+
if (!r)
|
|
571
566
|
return null;
|
|
572
567
|
switch (e.type) {
|
|
573
568
|
case "script":
|
|
574
569
|
case "noscript":
|
|
575
570
|
return {
|
|
576
|
-
innerHTML:
|
|
571
|
+
innerHTML: r
|
|
577
572
|
};
|
|
578
573
|
case "style":
|
|
579
574
|
return {
|
|
580
|
-
cssText:
|
|
575
|
+
cssText: r
|
|
581
576
|
};
|
|
582
577
|
default:
|
|
583
578
|
throw new Error(
|
|
@@ -585,154 +580,104 @@ var Q = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "hea
|
|
|
585
580
|
);
|
|
586
581
|
}
|
|
587
582
|
}
|
|
588
|
-
flattenArrayTypeChildren(e,
|
|
583
|
+
flattenArrayTypeChildren(e, r, t, n) {
|
|
589
584
|
return {
|
|
590
|
-
...
|
|
585
|
+
...r,
|
|
591
586
|
[e.type]: [
|
|
592
|
-
...
|
|
587
|
+
...r[e.type] || [],
|
|
593
588
|
{
|
|
594
|
-
...
|
|
589
|
+
...t,
|
|
595
590
|
...this.mapNestedChildrenToProps(e, n)
|
|
596
591
|
}
|
|
597
592
|
]
|
|
598
593
|
};
|
|
599
594
|
}
|
|
600
|
-
mapObjectTypeChildren(e,
|
|
595
|
+
mapObjectTypeChildren(e, r, t, n) {
|
|
601
596
|
switch (e.type) {
|
|
602
597
|
case "title":
|
|
603
598
|
return {
|
|
604
|
-
...
|
|
599
|
+
...r,
|
|
605
600
|
[e.type]: n,
|
|
606
|
-
titleAttributes: { ...
|
|
601
|
+
titleAttributes: { ...t }
|
|
607
602
|
};
|
|
608
603
|
case "body":
|
|
609
604
|
return {
|
|
610
|
-
...
|
|
611
|
-
bodyAttributes: { ...
|
|
605
|
+
...r,
|
|
606
|
+
bodyAttributes: { ...t }
|
|
612
607
|
};
|
|
613
608
|
case "html":
|
|
614
609
|
return {
|
|
615
|
-
...
|
|
616
|
-
htmlAttributes: { ...
|
|
610
|
+
...r,
|
|
611
|
+
htmlAttributes: { ...t }
|
|
617
612
|
};
|
|
618
613
|
default:
|
|
619
614
|
return {
|
|
620
|
-
...
|
|
621
|
-
[e.type]: { ...
|
|
615
|
+
...r,
|
|
616
|
+
[e.type]: { ...t }
|
|
622
617
|
};
|
|
623
618
|
}
|
|
624
619
|
}
|
|
625
|
-
mapArrayTypeChildrenToProps(e,
|
|
626
|
-
let
|
|
620
|
+
mapArrayTypeChildrenToProps(e, r) {
|
|
621
|
+
let t = { ...r };
|
|
627
622
|
return Object.keys(e).forEach((n) => {
|
|
628
|
-
|
|
629
|
-
...
|
|
623
|
+
t = {
|
|
624
|
+
...t,
|
|
630
625
|
[n]: e[n]
|
|
631
626
|
};
|
|
632
|
-
}),
|
|
627
|
+
}), t;
|
|
633
628
|
}
|
|
634
|
-
warnOnInvalidChildren(e,
|
|
635
|
-
return
|
|
636
|
-
V.some((
|
|
629
|
+
warnOnInvalidChildren(e, r) {
|
|
630
|
+
return z(
|
|
631
|
+
V.some((t) => e.type === t),
|
|
637
632
|
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 ${V.join(
|
|
638
633
|
", "
|
|
639
634
|
)} are allowed. Helmet does not support rendering <${e.type}> elements. Refer to our API for more information.`
|
|
640
|
-
),
|
|
641
|
-
!
|
|
635
|
+
), z(
|
|
636
|
+
!r || typeof r == "string" || Array.isArray(r) && !r.some((t) => typeof t != "string"),
|
|
642
637
|
`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.`
|
|
643
638
|
), !0;
|
|
644
639
|
}
|
|
645
|
-
mapChildrenToProps(e,
|
|
646
|
-
let
|
|
647
|
-
return
|
|
640
|
+
mapChildrenToProps(e, r) {
|
|
641
|
+
let t = {};
|
|
642
|
+
return y.Children.forEach(e, (n) => {
|
|
648
643
|
if (!n || !n.props)
|
|
649
644
|
return;
|
|
650
|
-
const { children: i, ...s } = n.props, o = Object.keys(s).reduce((a, c) => (a[
|
|
645
|
+
const { children: i, ...s } = n.props, o = Object.keys(s).reduce((a, c) => (a[fe[c] || c] = s[c], a), {});
|
|
651
646
|
let { type: l } = n;
|
|
652
647
|
switch (typeof l == "symbol" ? l = l.toString() : this.warnOnInvalidChildren(n, i), l) {
|
|
653
648
|
case "Symbol(react.fragment)":
|
|
654
|
-
|
|
649
|
+
r = this.mapChildrenToProps(i, r);
|
|
655
650
|
break;
|
|
656
651
|
case "link":
|
|
657
652
|
case "meta":
|
|
658
653
|
case "noscript":
|
|
659
654
|
case "script":
|
|
660
655
|
case "style":
|
|
661
|
-
|
|
656
|
+
t = this.flattenArrayTypeChildren(
|
|
662
657
|
n,
|
|
663
|
-
|
|
658
|
+
t,
|
|
664
659
|
o,
|
|
665
660
|
i
|
|
666
661
|
);
|
|
667
662
|
break;
|
|
668
663
|
default:
|
|
669
|
-
|
|
664
|
+
r = this.mapObjectTypeChildren(n, r, o, i);
|
|
670
665
|
break;
|
|
671
666
|
}
|
|
672
|
-
}), this.mapArrayTypeChildrenToProps(
|
|
667
|
+
}), this.mapArrayTypeChildrenToProps(t, r);
|
|
673
668
|
}
|
|
674
669
|
render() {
|
|
675
|
-
const { children: e, ...
|
|
676
|
-
let
|
|
677
|
-
if (e && (
|
|
670
|
+
const { children: e, ...r } = this.props;
|
|
671
|
+
let t = { ...r }, { helmetData: n } = r;
|
|
672
|
+
if (e && (t = this.mapChildrenToProps(e, t)), n && !(n instanceof R)) {
|
|
678
673
|
const i = n;
|
|
679
|
-
n = new
|
|
674
|
+
n = new R(i.context, !0), delete t.helmetData;
|
|
680
675
|
}
|
|
681
|
-
return n ? /* @__PURE__ */
|
|
676
|
+
return n ? /* @__PURE__ */ y.createElement(Z, { ...t, context: n.value }) : /* @__PURE__ */ y.createElement(ee.Consumer, null, (i) => /* @__PURE__ */ y.createElement(Z, { ...t, context: i }));
|
|
682
677
|
}
|
|
683
678
|
};
|
|
684
|
-
const Ge = oe(!1), Qe = (e) => {
|
|
685
|
-
const t = ie(e);
|
|
686
|
-
return t.current = e, le(() => {
|
|
687
|
-
t.current = e;
|
|
688
|
-
}, [e]), t;
|
|
689
|
-
}, We = "protected", at = () => {
|
|
690
|
-
const e = Ae(), t = se(), r = fe(), n = pe(), i = Qe(n.pathname), s = ce(Ge), { protectedRoutes: o } = t.options, l = !s && o ? Object.entries(o).find(
|
|
691
|
-
([u]) => de({ path: u, end: !0 }, n.pathname)
|
|
692
|
-
)?.[1] : void 0, a = l !== void 0, c = a && !l({ auth: e, context: t });
|
|
693
|
-
if (ae({
|
|
694
|
-
queryKey: ["login-redirect"],
|
|
695
|
-
queryFn: async () => (await new Promise((u) => setTimeout(u, 1200)), await t.authentication?.signIn({
|
|
696
|
-
redirectTo: i.current
|
|
697
|
-
}), !0),
|
|
698
|
-
enabled: typeof window < "u" && c && !e.isPending
|
|
699
|
-
}), c)
|
|
700
|
-
return /* @__PURE__ */ y.jsx(
|
|
701
|
-
he,
|
|
702
|
-
{
|
|
703
|
-
open: !0,
|
|
704
|
-
onOpenChange: (u) => {
|
|
705
|
-
u || r(-1);
|
|
706
|
-
},
|
|
707
|
-
children: /* @__PURE__ */ y.jsxs(ye, { children: [
|
|
708
|
-
/* @__PURE__ */ y.jsx(Te, { children: /* @__PURE__ */ y.jsx(ge, { children: "Logging you in..." }) }),
|
|
709
|
-
/* @__PURE__ */ y.jsx(ve, { children: "Please wait while we log you in." })
|
|
710
|
-
] })
|
|
711
|
-
}
|
|
712
|
-
);
|
|
713
|
-
if (a && !e.isAuthEnabled)
|
|
714
|
-
throw new ue("Authentication is not enabled", {
|
|
715
|
-
title: "Authentication is not enabled",
|
|
716
|
-
developerHint: "To use protectedRoutes you need authentication to be enabled"
|
|
717
|
-
});
|
|
718
|
-
return /* @__PURE__ */ y.jsxs(y.Fragment, { children: [
|
|
719
|
-
s && /* @__PURE__ */ y.jsx(Ye, { children: /* @__PURE__ */ y.jsx(
|
|
720
|
-
"meta",
|
|
721
|
-
{
|
|
722
|
-
name: "pagefind",
|
|
723
|
-
"data-pagefind-filter": `section:${We}`,
|
|
724
|
-
content: "true"
|
|
725
|
-
}
|
|
726
|
-
) }),
|
|
727
|
-
/* @__PURE__ */ y.jsx(me, {})
|
|
728
|
-
] });
|
|
729
|
-
};
|
|
730
679
|
export {
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
at as R,
|
|
734
|
-
We as S,
|
|
735
|
-
Ne as a,
|
|
736
|
-
Qe as u
|
|
680
|
+
_e as H,
|
|
681
|
+
Se as a
|
|
737
682
|
};
|
|
738
|
-
//# sourceMappingURL=
|
|
683
|
+
//# sourceMappingURL=index.esm-BnYHxCYC.js.map
|