zudoku 0.0.0-e53033e → 0.0.0-e5be921
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/README.md +121 -0
- package/cli.js +2 -2
- package/client.d.ts +7 -0
- package/dist/app/demo.js +0 -2
- package/dist/app/demo.js.map +1 -1
- package/dist/app/entry.client.d.ts +1 -0
- package/dist/app/entry.client.js +29 -2
- package/dist/app/entry.client.js.map +1 -1
- package/dist/app/entry.server.d.ts +1 -0
- package/dist/app/entry.server.js +10 -6
- package/dist/app/entry.server.js.map +1 -1
- package/dist/app/main.d.ts +2 -1
- package/dist/app/main.js +13 -29
- package/dist/app/main.js.map +1 -1
- package/dist/app/sentry.d.ts +3 -0
- package/dist/app/sentry.js +19 -0
- package/dist/app/sentry.js.map +1 -0
- package/dist/app/standalone.js +0 -2
- package/dist/app/standalone.js.map +1 -1
- package/dist/app/tailwind.d.ts +2 -1
- package/dist/app/tailwind.js +64 -52
- package/dist/app/tailwind.js.map +1 -1
- package/dist/cli/cli.js +1 -4
- package/dist/cli/cli.js.map +1 -1
- package/dist/cli/common/logger.js +9 -0
- package/dist/cli/common/logger.js.map +1 -1
- 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/utils/box.js.map +1 -1
- package/dist/codegen.d.ts +3 -0
- package/dist/codegen.js +45 -0
- package/dist/codegen.js.map +1 -0
- package/dist/config/common.d.ts +8 -0
- package/dist/config/common.js +2 -0
- package/dist/config/common.js.map +1 -0
- package/dist/config/config.d.ts +3 -2
- package/dist/config/loader.d.ts +20 -0
- package/dist/config/loader.js +154 -0
- package/dist/config/loader.js.map +1 -0
- package/dist/config/validators/InputSidebarSchema.d.ts +35 -19
- package/dist/config/validators/InputSidebarSchema.js +7 -28
- package/dist/config/validators/InputSidebarSchema.js.map +1 -1
- package/dist/config/validators/SidebarSchema.d.ts +24 -1
- package/dist/config/validators/SidebarSchema.js +80 -44
- package/dist/config/validators/SidebarSchema.js.map +1 -1
- package/dist/config/validators/common.d.ts +4911 -0
- package/dist/config/validators/common.js +276 -0
- package/dist/config/validators/common.js.map +1 -0
- package/dist/config/validators/icon-types.d.ts +1 -0
- package/dist/config/validators/icon-types.js +2 -0
- package/dist/config/validators/icon-types.js.map +1 -0
- package/dist/config/validators/validate.d.ts +824 -408
- package/dist/config/validators/validate.js +12 -213
- package/dist/config/validators/validate.js.map +1 -1
- package/dist/index.d.ts +5 -2
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/lib/authentication/AuthenticationPlugin.d.ts +4 -2
- package/dist/lib/authentication/AuthenticationPlugin.js +3 -0
- package/dist/lib/authentication/AuthenticationPlugin.js.map +1 -1
- package/dist/lib/authentication/authentication.d.ts +3 -3
- package/dist/lib/authentication/components/CallbackHandler.js +21 -31
- package/dist/lib/authentication/components/CallbackHandler.js.map +1 -1
- package/dist/lib/authentication/hook.d.ts +5 -4
- package/dist/lib/authentication/hook.js +1 -3
- package/dist/lib/authentication/hook.js.map +1 -1
- package/dist/lib/authentication/providers/auth0.js +12 -11
- package/dist/lib/authentication/providers/auth0.js.map +1 -1
- package/dist/lib/authentication/providers/openid.d.ts +0 -1
- package/dist/lib/authentication/providers/openid.js +17 -27
- package/dist/lib/authentication/providers/openid.js.map +1 -1
- package/dist/lib/authentication/state.d.ts +25 -4
- package/dist/lib/authentication/state.js +28 -3
- package/dist/lib/authentication/state.js.map +1 -1
- package/dist/lib/authentication/use-broadcast/shared.d.ts +48 -0
- package/dist/lib/authentication/use-broadcast/shared.js +243 -0
- package/dist/lib/authentication/use-broadcast/shared.js.map +1 -0
- package/dist/lib/authentication/use-broadcast/useBroadcast.d.ts +24 -0
- package/dist/lib/authentication/use-broadcast/useBroadcast.js +106 -0
- package/dist/lib/authentication/use-broadcast/useBroadcast.js.map +1 -0
- package/dist/lib/components/Bootstrap.d.ts +3 -1
- package/dist/lib/components/Bootstrap.js +10 -4
- package/dist/lib/components/Bootstrap.js.map +1 -1
- package/dist/lib/components/ClientOnly.d.ts +4 -2
- package/dist/lib/components/ClientOnly.js +1 -1
- package/dist/lib/components/ClientOnly.js.map +1 -1
- package/dist/lib/components/DeveloperHint.js +2 -1
- package/dist/lib/components/DeveloperHint.js.map +1 -1
- package/dist/lib/components/Header.js +20 -9
- package/dist/lib/components/Header.js.map +1 -1
- package/dist/lib/components/Heading.d.ts +4 -4
- package/dist/lib/components/Heading.js +1 -1
- package/dist/lib/components/Heading.js.map +1 -1
- package/dist/lib/components/Layout.js +14 -5
- package/dist/lib/components/Layout.js.map +1 -1
- package/dist/lib/components/Markdown.js +1 -1
- package/dist/lib/components/Markdown.js.map +1 -1
- package/dist/lib/components/MobileTopNavigation.js +8 -6
- package/dist/lib/components/MobileTopNavigation.js.map +1 -1
- package/dist/lib/components/ReactMarkdown.d.ts +29 -0
- package/dist/lib/components/ReactMarkdown.js +182 -0
- package/dist/lib/components/ReactMarkdown.js.map +1 -0
- package/dist/lib/components/Search.d.ts +3 -1
- package/dist/lib/components/Search.js +3 -3
- package/dist/lib/components/Search.js.map +1 -1
- package/dist/lib/components/SlotletProvider.d.ts +7 -2
- package/dist/lib/components/SlotletProvider.js +3 -5
- package/dist/lib/components/SlotletProvider.js.map +1 -1
- package/dist/lib/components/SyntaxHighlight.js +19 -16
- package/dist/lib/components/SyntaxHighlight.js.map +1 -1
- package/dist/lib/components/ThemeSwitch.d.ts +1 -0
- package/dist/lib/components/ThemeSwitch.js +13 -0
- package/dist/lib/components/ThemeSwitch.js.map +1 -0
- package/dist/lib/components/TopNavigation.d.ts +5 -0
- package/dist/lib/components/TopNavigation.js +44 -5
- package/dist/lib/components/TopNavigation.js.map +1 -1
- package/dist/lib/components/{DevPortal.d.ts → Zudoku.d.ts} +3 -3
- package/dist/lib/components/{DevPortal.js → Zudoku.js} +13 -14
- package/dist/lib/components/Zudoku.js.map +1 -0
- package/dist/lib/components/context/ZudokuContext.d.ts +10 -14
- package/dist/lib/components/context/ZudokuContext.js +27 -26
- package/dist/lib/components/context/ZudokuContext.js.map +1 -1
- package/dist/lib/components/context/ZudokuProvider.d.ts +2 -2
- package/dist/lib/components/context/ZudokuProvider.js.map +1 -1
- package/dist/lib/components/index.d.ts +30 -13
- package/dist/lib/components/index.js +11 -5
- package/dist/lib/components/index.js.map +1 -1
- package/dist/lib/components/navigation/Sidebar.d.ts +3 -1
- package/dist/lib/components/navigation/Sidebar.js +4 -4
- package/dist/lib/components/navigation/Sidebar.js.map +1 -1
- package/dist/lib/components/navigation/SidebarCategory.d.ts +2 -2
- package/dist/lib/components/navigation/SidebarCategory.js +18 -10
- package/dist/lib/components/navigation/SidebarCategory.js.map +1 -1
- package/dist/lib/components/navigation/SidebarItem.d.ts +2 -4
- package/dist/lib/components/navigation/SidebarItem.js +11 -11
- package/dist/lib/components/navigation/SidebarItem.js.map +1 -1
- package/dist/lib/components/navigation/SidebarWrapper.js +1 -1
- package/dist/lib/components/navigation/SidebarWrapper.js.map +1 -1
- package/dist/lib/components/navigation/utils.js +10 -14
- package/dist/lib/components/navigation/utils.js.map +1 -1
- package/dist/lib/core/{DevPortalContext.d.ts → ZudokuContext.d.ts} +6 -13
- package/dist/lib/core/{DevPortalContext.js → ZudokuContext.js} +2 -7
- package/dist/lib/core/ZudokuContext.js.map +1 -0
- package/dist/lib/core/plugins.d.ts +19 -12
- package/dist/lib/core/plugins.js.map +1 -1
- package/dist/lib/errors/ErrorAlert.d.ts +1 -1
- package/dist/lib/errors/ErrorAlert.js +8 -3
- package/dist/lib/errors/ErrorAlert.js.map +1 -1
- package/dist/lib/oas/graphql/index.js +8 -5
- package/dist/lib/oas/graphql/index.js.map +1 -1
- package/dist/lib/oas/parser/upgrade/index.d.ts +2 -2
- package/dist/lib/oas/parser/upgrade/index.js +2 -17
- package/dist/lib/oas/parser/upgrade/index.js.map +1 -1
- package/dist/lib/plugins/api-catalog/Catalog.d.ts +6 -0
- package/dist/lib/plugins/api-catalog/Catalog.js +29 -0
- package/dist/lib/plugins/api-catalog/Catalog.js.map +1 -0
- package/dist/lib/plugins/api-catalog/index.d.ts +23 -0
- package/dist/lib/plugins/api-catalog/index.js +15 -0
- package/dist/lib/plugins/api-catalog/index.js.map +1 -0
- package/dist/lib/plugins/api-keys/CreateApiKey.js +1 -1
- package/dist/lib/plugins/api-keys/CreateApiKey.js.map +1 -1
- package/dist/lib/plugins/api-keys/index.d.ts +9 -9
- package/dist/lib/plugins/api-keys/index.js +3 -0
- package/dist/lib/plugins/api-keys/index.js.map +1 -1
- package/dist/lib/plugins/custom-pages/CustomPage.d.ts +2 -0
- package/dist/lib/plugins/custom-pages/CustomPage.js +11 -0
- package/dist/lib/plugins/custom-pages/CustomPage.js.map +1 -0
- package/dist/lib/plugins/custom-pages/index.d.ts +9 -7
- package/dist/lib/plugins/custom-pages/index.js +3 -4
- package/dist/lib/plugins/custom-pages/index.js.map +1 -1
- package/dist/lib/plugins/markdown/MdxPage.d.ts +9 -1
- package/dist/lib/plugins/markdown/MdxPage.js +15 -2
- package/dist/lib/plugins/markdown/MdxPage.js.map +1 -1
- package/dist/lib/plugins/markdown/index.d.ts +7 -7
- package/dist/lib/plugins/markdown/index.js +31 -3
- package/dist/lib/plugins/markdown/index.js.map +1 -1
- package/dist/lib/plugins/markdown/resolver.d.ts +38 -0
- package/dist/lib/plugins/markdown/resolver.js +75 -0
- package/dist/lib/plugins/markdown/resolver.js.map +1 -0
- package/dist/lib/plugins/openapi/CollapsibleCode.d.ts +5 -0
- package/dist/lib/plugins/openapi/CollapsibleCode.js +24 -0
- package/dist/lib/plugins/openapi/CollapsibleCode.js.map +1 -0
- package/dist/lib/plugins/openapi/ColorizedParam.js +13 -9
- package/dist/lib/plugins/openapi/ColorizedParam.js.map +1 -1
- package/dist/lib/plugins/openapi/Endpoint.d.ts +1 -1
- package/dist/lib/plugins/openapi/Endpoint.js +5 -9
- package/dist/lib/plugins/openapi/Endpoint.js.map +1 -1
- package/dist/lib/plugins/openapi/OperationList.d.ts +2 -2
- package/dist/lib/plugins/openapi/OperationList.js +67 -23
- package/dist/lib/plugins/openapi/OperationList.js.map +1 -1
- package/dist/lib/plugins/openapi/ParameterListItem.js +6 -1
- package/dist/lib/plugins/openapi/ParameterListItem.js.map +1 -1
- package/dist/lib/plugins/openapi/RequestBodySidecarBox.js +7 -3
- package/dist/lib/plugins/openapi/RequestBodySidecarBox.js.map +1 -1
- package/dist/lib/plugins/openapi/ResponsesSidecarBox.js +9 -2
- package/dist/lib/plugins/openapi/ResponsesSidecarBox.js.map +1 -1
- package/dist/lib/plugins/openapi/Route.d.ts +4 -4
- package/dist/lib/plugins/openapi/Route.js +2 -4
- package/dist/lib/plugins/openapi/Route.js.map +1 -1
- package/dist/lib/plugins/openapi/Sidecar.d.ts +1 -1
- package/dist/lib/plugins/openapi/Sidecar.js +35 -33
- package/dist/lib/plugins/openapi/Sidecar.js.map +1 -1
- package/dist/lib/plugins/openapi/client/GraphQLClient.d.ts +8 -0
- package/dist/lib/plugins/openapi/client/GraphQLClient.js +114 -0
- package/dist/lib/plugins/openapi/client/GraphQLClient.js.map +1 -0
- package/dist/lib/plugins/openapi/client/GraphQLContext.d.ts +7 -0
- package/dist/lib/plugins/openapi/client/GraphQLContext.js +5 -0
- package/dist/lib/plugins/openapi/client/GraphQLContext.js.map +1 -0
- package/dist/lib/plugins/openapi/client/createServer.d.ts +1 -0
- package/dist/lib/plugins/openapi/client/useCreateQuery.d.ts +5 -0
- package/dist/lib/plugins/openapi/client/useCreateQuery.js +15 -0
- package/dist/lib/plugins/openapi/client/useCreateQuery.js.map +1 -0
- package/dist/lib/plugins/openapi/client/worker.d.ts +4 -1
- package/dist/lib/plugins/openapi/client/worker.js +23 -14
- package/dist/lib/plugins/openapi/client/worker.js.map +1 -1
- package/dist/lib/plugins/openapi/graphql/fragment-masking.d.ts +3 -3
- package/dist/lib/plugins/openapi/graphql/fragment-masking.js +3 -4
- package/dist/lib/plugins/openapi/graphql/fragment-masking.js.map +1 -1
- package/dist/lib/plugins/openapi/graphql/gql.d.ts +5 -51
- package/dist/lib/plugins/openapi/graphql/gql.js +5 -3
- package/dist/lib/plugins/openapi/graphql/gql.js.map +1 -1
- package/dist/lib/plugins/openapi/graphql/graphql.d.ts +34 -8
- package/dist/lib/plugins/openapi/graphql/graphql.js +195 -662
- 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 +40 -53
- package/dist/lib/plugins/openapi/index.js.map +1 -1
- package/dist/lib/plugins/openapi/interfaces.d.ts +1 -1
- package/dist/lib/plugins/openapi/playground/PathParams.js +1 -1
- package/dist/lib/plugins/openapi/playground/PathParams.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/Playground.js +2 -1
- package/dist/lib/plugins/openapi/playground/Playground.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js +1 -1
- package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js.map +1 -1
- package/dist/lib/plugins/openapi/post-processors/removeExtensions.d.ts +6 -0
- package/dist/lib/plugins/openapi/post-processors/removeExtensions.js +14 -0
- package/dist/lib/plugins/openapi/post-processors/removeExtensions.js.map +1 -0
- package/dist/lib/plugins/openapi/post-processors/removeExtensions.test.d.ts +1 -0
- package/dist/lib/plugins/openapi/post-processors/removeExtensions.test.js +125 -0
- package/dist/lib/plugins/openapi/post-processors/removeExtensions.test.js.map +1 -0
- package/dist/lib/plugins/openapi/post-processors/removePaths.d.ts +11 -0
- package/dist/lib/plugins/openapi/post-processors/removePaths.js +33 -0
- package/dist/lib/plugins/openapi/post-processors/removePaths.js.map +1 -0
- package/dist/lib/plugins/openapi/post-processors/removePaths.test.d.ts +1 -0
- package/dist/lib/plugins/openapi/post-processors/removePaths.test.js +104 -0
- package/dist/lib/plugins/openapi/post-processors/removePaths.test.js.map +1 -0
- package/dist/lib/plugins/openapi/post-processors/traverse.d.ts +1 -0
- package/dist/lib/plugins/openapi/post-processors/traverse.js +2 -0
- package/dist/lib/plugins/openapi/post-processors/traverse.js.map +1 -0
- package/dist/lib/plugins/openapi/schema/SchemaView.js +2 -1
- package/dist/lib/plugins/openapi/schema/SchemaView.js.map +1 -1
- package/dist/lib/plugins/openapi/util/generateSchemaExample.d.ts +0 -1
- package/dist/lib/plugins/openapi/util/generateSchemaExample.js +25 -36
- package/dist/lib/plugins/openapi/util/generateSchemaExample.js.map +1 -1
- package/dist/lib/plugins/openapi-worker.d.ts +1 -1
- package/dist/lib/plugins/openapi-worker.js +7 -1
- package/dist/lib/plugins/openapi-worker.js.map +1 -1
- package/dist/lib/plugins/redirect/index.d.ts +4 -7
- package/dist/lib/plugins/redirect/index.js +1 -1
- package/dist/lib/plugins/redirect/index.js.map +1 -1
- package/dist/lib/plugins/search-inkeep/index.d.ts +24 -5
- package/dist/lib/plugins/search-inkeep/index.js +27 -5
- package/dist/lib/plugins/search-inkeep/index.js.map +1 -1
- package/dist/lib/plugins/search-inkeep/inkeep.d.ts +3 -4
- package/dist/lib/plugins/search-inkeep/inkeep.js.map +1 -1
- package/dist/lib/ui/Accordion.d.ts +7 -0
- package/dist/lib/ui/Accordion.js +14 -0
- package/dist/lib/ui/Accordion.js.map +1 -0
- package/dist/lib/ui/ActionButton.d.ts +4 -0
- package/dist/lib/ui/ActionButton.js +10 -0
- package/dist/lib/ui/ActionButton.js.map +1 -0
- package/dist/lib/ui/Alert.d.ts +8 -0
- package/dist/lib/ui/Alert.js +23 -0
- package/dist/lib/ui/Alert.js.map +1 -0
- package/dist/lib/ui/AlertDialog.d.ts +20 -0
- package/dist/lib/ui/AlertDialog.js +27 -0
- package/dist/lib/ui/AlertDialog.js.map +1 -0
- package/dist/lib/ui/AspectRatio.d.ts +3 -0
- package/dist/lib/ui/AspectRatio.js +4 -0
- package/dist/lib/ui/AspectRatio.js.map +1 -0
- package/dist/lib/ui/Badge.d.ts +9 -0
- package/dist/lib/ui/Badge.js +21 -0
- package/dist/lib/ui/Badge.js.map +1 -0
- package/dist/lib/ui/Breadcrumb.d.ts +19 -0
- package/dist/lib/ui/Breadcrumb.js +24 -0
- package/dist/lib/ui/Breadcrumb.js.map +1 -0
- package/dist/lib/ui/Button.d.ts +2 -3
- package/dist/lib/ui/Button.js +1 -1
- package/dist/lib/ui/Button.js.map +1 -1
- package/dist/lib/ui/Carousel.d.ts +18 -0
- package/dist/lib/ui/Carousel.js +99 -0
- package/dist/lib/ui/Carousel.js.map +1 -0
- package/dist/lib/ui/Checkbox.d.ts +4 -0
- package/dist/lib/ui/Checkbox.js +9 -0
- package/dist/lib/ui/Checkbox.js.map +1 -0
- package/dist/lib/ui/Collapsible.d.ts +5 -0
- package/dist/lib/ui/Collapsible.js +6 -0
- package/dist/lib/ui/Collapsible.js.map +1 -0
- package/dist/lib/ui/Command.d.ts +80 -0
- package/dist/lib/ui/Command.js +31 -0
- package/dist/lib/ui/Command.js.map +1 -0
- package/dist/lib/{components → ui}/Dialog.js +2 -2
- package/dist/lib/ui/Dialog.js.map +1 -0
- package/dist/lib/ui/Form.d.ts +23 -0
- package/dist/lib/ui/Form.js +63 -0
- package/dist/lib/ui/Form.js.map +1 -0
- package/dist/lib/ui/HoverCard.d.ts +6 -0
- package/dist/lib/ui/HoverCard.js +10 -0
- package/dist/lib/ui/HoverCard.js.map +1 -0
- package/dist/lib/ui/Label.d.ts +5 -0
- package/dist/lib/ui/Label.js +10 -0
- package/dist/lib/ui/Label.js.map +1 -0
- package/dist/lib/ui/Pagination.d.ts +28 -0
- package/dist/lib/ui/Pagination.js +24 -0
- package/dist/lib/ui/Pagination.js.map +1 -0
- package/dist/lib/ui/Popover.d.ts +6 -0
- package/dist/lib/ui/Popover.js +10 -0
- package/dist/lib/ui/Popover.js.map +1 -0
- package/dist/lib/ui/Progress.d.ts +4 -0
- package/dist/lib/ui/Progress.js +8 -0
- package/dist/lib/ui/Progress.js.map +1 -0
- package/dist/lib/ui/RadioGroup.d.ts +5 -0
- package/dist/lib/ui/RadioGroup.js +15 -0
- package/dist/lib/ui/RadioGroup.js.map +1 -0
- package/dist/lib/ui/ScrollArea.d.ts +5 -0
- package/dist/lib/ui/ScrollArea.js +12 -0
- package/dist/lib/ui/ScrollArea.js.map +1 -0
- package/dist/lib/ui/Select.js.map +1 -0
- package/dist/lib/ui/Skeleton.d.ts +2 -0
- package/dist/lib/ui/Skeleton.js +7 -0
- package/dist/lib/ui/Skeleton.js.map +1 -0
- package/dist/lib/ui/Slider.d.ts +4 -0
- package/dist/lib/ui/Slider.js +8 -0
- package/dist/lib/ui/Slider.js.map +1 -0
- package/dist/lib/ui/Switch.d.ts +4 -0
- package/dist/lib/ui/Switch.js +8 -0
- package/dist/lib/ui/Switch.js.map +1 -0
- package/dist/lib/ui/Textarea.d.ts +4 -0
- package/dist/lib/ui/Textarea.js +9 -0
- package/dist/lib/ui/Textarea.js.map +1 -0
- package/dist/lib/ui/Toggle.d.ts +12 -0
- package/dist/lib/ui/Toggle.js +26 -0
- package/dist/lib/ui/Toggle.js.map +1 -0
- package/dist/lib/ui/ToggleGroup.d.ts +12 -0
- package/dist/lib/ui/ToggleGroup.js +21 -0
- package/dist/lib/ui/ToggleGroup.js.map +1 -0
- package/dist/lib/ui/Tooltip.d.ts +7 -0
- package/dist/lib/ui/Tooltip.js +11 -0
- package/dist/lib/ui/Tooltip.js.map +1 -0
- package/dist/lib/util/MdxComponents.d.ts +3 -4
- package/dist/lib/util/MdxComponents.js.map +1 -1
- package/dist/lib/util/invariant.d.ts +9 -0
- package/dist/lib/util/invariant.js +7 -3
- package/dist/lib/util/invariant.js.map +1 -1
- package/dist/lib/util/traverse.d.ts +2 -0
- package/dist/lib/util/traverse.js +18 -0
- package/dist/lib/util/traverse.js.map +1 -0
- package/dist/lib/util/useExposedProps.d.ts +2 -0
- package/dist/lib/util/useExposedProps.js +9 -0
- package/dist/lib/util/useExposedProps.js.map +1 -0
- package/dist/lib/util/useIsomorphicLayoutEffect.d.ts +3 -0
- package/dist/lib/util/useIsomorphicLayoutEffect.js +4 -0
- package/dist/lib/util/useIsomorphicLayoutEffect.js.map +1 -0
- package/dist/lib/util/useOnScreen.d.ts +4 -0
- package/dist/lib/util/useOnScreen.js +19 -0
- package/dist/lib/util/useOnScreen.js.map +1 -0
- package/dist/lib/util/useScrollToAnchor.js.map +1 -1
- package/dist/vite/build.js +26 -5
- package/dist/vite/build.js.map +1 -1
- package/dist/vite/config.d.ts +6 -10
- package/dist/vite/config.js +72 -69
- package/dist/vite/config.js.map +1 -1
- package/dist/vite/config.test.js +7 -5
- package/dist/vite/config.test.js.map +1 -1
- package/dist/vite/debug.d.ts +1 -0
- package/dist/vite/debug.js +10 -0
- package/dist/vite/debug.js.map +1 -0
- package/dist/vite/dev-server.js +13 -4
- package/dist/vite/dev-server.js.map +1 -1
- package/dist/vite/html.js +0 -2
- package/dist/vite/html.js.map +1 -1
- package/dist/vite/output.d.ts +101 -0
- package/dist/vite/output.js +62 -0
- package/dist/vite/output.js.map +1 -0
- package/dist/vite/plugin-api.js +67 -20
- package/dist/vite/plugin-api.js.map +1 -1
- package/dist/vite/plugin-component.js +17 -11
- package/dist/vite/plugin-component.js.map +1 -1
- package/dist/vite/plugin-config-reload.d.ts +1 -2
- package/dist/vite/plugin-config-reload.js +0 -2
- package/dist/vite/plugin-config-reload.js.map +1 -1
- package/dist/vite/plugin-config.d.ts +2 -3
- package/dist/vite/plugin-config.js +22 -3
- package/dist/vite/plugin-config.js.map +1 -1
- package/dist/vite/plugin-docs.js +37 -26
- package/dist/vite/plugin-docs.js.map +1 -1
- package/dist/vite/plugin-docs.test.js +15 -23
- package/dist/vite/plugin-docs.test.js.map +1 -1
- package/dist/vite/plugin-frontmatter.d.ts +2 -1
- package/dist/vite/plugin-frontmatter.js +27 -24
- package/dist/vite/plugin-frontmatter.js.map +1 -1
- package/dist/vite/plugin-mdx.d.ts +0 -6
- package/dist/vite/plugin-mdx.js +78 -6
- package/dist/vite/plugin-mdx.js.map +1 -1
- package/dist/vite/plugin-search.d.ts +3 -0
- package/dist/vite/plugin-search.js +26 -0
- package/dist/vite/plugin-search.js.map +1 -0
- package/dist/vite/plugin-sidebar.js +7 -6
- package/dist/vite/plugin-sidebar.js.map +1 -1
- package/dist/vite/{plugin-custom-css.d.ts → plugin-theme-css.d.ts} +2 -2
- package/dist/vite/{plugin-custom-css.js → plugin-theme-css.js} +10 -3
- package/dist/vite/plugin-theme-css.js.map +1 -0
- package/dist/vite/plugin.d.ts +1 -2
- package/dist/vite/plugin.js +6 -6
- package/dist/vite/plugin.js.map +1 -1
- package/dist/vite/prerender.d.ts +6 -1
- package/dist/vite/prerender.js +7 -5
- package/dist/vite/prerender.js.map +1 -1
- package/dist/vite/remarkStaticGeneration.d.ts +3 -0
- package/dist/vite/remarkStaticGeneration.js +125 -0
- package/dist/vite/remarkStaticGeneration.js.map +1 -0
- package/dist/vite/sitemap.d.ts +1 -1
- package/dist/zuplo/env.d.ts +6 -0
- package/dist/zuplo/env.js +9 -0
- package/dist/zuplo/env.js.map +1 -0
- package/dist/zuplo/with-zuplo.d.ts +3 -0
- package/dist/zuplo/with-zuplo.js +28 -0
- package/dist/zuplo/with-zuplo.js.map +1 -0
- package/lib/AnchorLink-BR0MvI7n.js +35 -0
- package/lib/AnchorLink-BR0MvI7n.js.map +1 -0
- package/lib/AuthenticationPlugin-D0Em0SwR.js +59 -0
- package/lib/{AuthenticationPlugin-D_5jC4vE.js.map → AuthenticationPlugin-D0Em0SwR.js.map} +1 -1
- package/lib/Button-jK0EsymC.js +48 -0
- package/lib/Button-jK0EsymC.js.map +1 -0
- package/lib/{CategoryHeading-C7VfgpFZ.js → CategoryHeading-Bb9dqxD3.js} +4 -4
- package/lib/{CategoryHeading-C7VfgpFZ.js.map → CategoryHeading-Bb9dqxD3.js.map} +1 -1
- package/lib/ClientOnly-E7hGysn1.js +11 -0
- package/lib/ClientOnly-E7hGysn1.js.map +1 -0
- package/lib/Dialog-k70Qfukb.js +67 -0
- package/lib/Dialog-k70Qfukb.js.map +1 -0
- package/lib/Markdown-CRsmPPfY.js +15180 -0
- package/lib/Markdown-CRsmPPfY.js.map +1 -0
- package/lib/MdxPage-Wp8QU0-q.js +188 -0
- package/lib/MdxPage-Wp8QU0-q.js.map +1 -0
- package/lib/OperationList-u8xHU9-b.js +4706 -0
- package/lib/OperationList-u8xHU9-b.js.map +1 -0
- package/lib/Route-DlG_HTMu.js +11 -0
- package/lib/Route-DlG_HTMu.js.map +1 -0
- package/lib/Select-O9ZM3ZgX.js +223 -0
- package/lib/Select-O9ZM3ZgX.js.map +1 -0
- package/lib/SidebarBadge-DxFJcJ6V.js +51 -0
- package/lib/SidebarBadge-DxFJcJ6V.js.map +1 -0
- package/lib/SlotletProvider-BgvYIPQe.js +252 -0
- package/lib/SlotletProvider-BgvYIPQe.js.map +1 -0
- package/lib/SyntaxHighlight-C31iouiO.js +2981 -0
- package/lib/SyntaxHighlight-C31iouiO.js.map +1 -0
- package/lib/__vite-browser-external-BYRIRx8p.js +9 -0
- package/lib/__vite-browser-external-BYRIRx8p.js.map +1 -0
- package/lib/_commonjsHelpers-BkfeUUK-.js +29 -0
- package/lib/_commonjsHelpers-BkfeUUK-.js.map +1 -0
- package/lib/assets/{worker-Bf8vjASY.js → worker-C_2va8B8.js} +568 -565
- package/lib/assets/worker-C_2va8B8.js.map +1 -0
- package/lib/cn-BmFQLtkS.js +2279 -0
- package/lib/cn-BmFQLtkS.js.map +1 -0
- package/lib/context-D1nXWxm7.js +22 -0
- package/lib/context-D1nXWxm7.js.map +1 -0
- package/lib/createServer-BCAHdrpE.js +15302 -0
- package/lib/createServer-BCAHdrpE.js.map +1 -0
- package/lib/hook-hEqe7fPB.js +227 -0
- package/lib/hook-hEqe7fPB.js.map +1 -0
- package/lib/index-Bn6Lc9tq.js +9 -0
- package/lib/{index-DJqnphbT.js.map → index-Bn6Lc9tq.js.map} +1 -1
- package/lib/index-BuAyrJe3.js +46 -0
- package/lib/index-BuAyrJe3.js.map +1 -0
- package/lib/index-CmdLGbbk.js +1279 -0
- package/lib/index-CmdLGbbk.js.map +1 -0
- package/lib/index-Czzd9rjU.js +899 -0
- package/lib/index-Czzd9rjU.js.map +1 -0
- package/lib/{index-D06ATMgg.js → index-LNp6rxyU.js} +2 -2
- package/lib/{index-D06ATMgg.js.map → index-LNp6rxyU.js.map} +1 -1
- package/lib/index-Yn8c3UWE.js +921 -0
- package/lib/index-Yn8c3UWE.js.map +1 -0
- package/lib/index.esm-Bm8pj-bc.js +675 -0
- package/lib/index.esm-Bm8pj-bc.js.map +1 -0
- package/lib/index.esm-C5mr_sKO.js +1193 -0
- package/lib/index.esm-C5mr_sKO.js.map +1 -0
- package/lib/invariant-Caa8-XvF.js +26 -0
- package/lib/invariant-Caa8-XvF.js.map +1 -0
- package/lib/object_hash-CvlLgU-M.js +785 -0
- package/lib/object_hash-CvlLgU-M.js.map +1 -0
- package/lib/post-processors/removeExtensions.js +11 -0
- package/lib/post-processors/removeExtensions.js.map +1 -0
- package/lib/post-processors/removePaths.js +28 -0
- package/lib/post-processors/removePaths.js.map +1 -0
- package/lib/post-processors/traverse.js +12 -0
- package/lib/post-processors/traverse.js.map +1 -0
- package/lib/{router-Oe6YmY6B.js → router-lfyopgBI.js} +23 -23
- package/lib/{router-Oe6YmY6B.js.map → router-lfyopgBI.js.map} +1 -1
- package/lib/state-tsXBLONe.js +203 -0
- package/lib/{state-CsuHT8ZO.js.map → state-tsXBLONe.js.map} +1 -1
- package/lib/ui/Accordion.js +47 -0
- package/lib/ui/Accordion.js.map +1 -0
- package/lib/ui/ActionButton.js +25 -0
- package/lib/ui/ActionButton.js.map +1 -0
- package/lib/ui/Alert.js +51 -0
- package/lib/ui/Alert.js.map +1 -0
- package/lib/ui/AlertDialog.js +114 -0
- package/lib/ui/AlertDialog.js.map +1 -0
- package/lib/ui/AspectRatio.js +6 -0
- package/lib/ui/AspectRatio.js.map +1 -0
- package/lib/ui/Badge.js +27 -0
- package/lib/ui/Badge.js.map +1 -0
- package/lib/ui/Breadcrumb.js +94 -0
- package/lib/ui/Breadcrumb.js.map +1 -0
- package/lib/ui/Button.js +49 -0
- package/lib/ui/Button.js.map +1 -0
- package/lib/ui/Callout.js +77 -0
- package/lib/ui/Callout.js.map +1 -0
- package/lib/ui/Card.js +62 -0
- package/lib/ui/Card.js.map +1 -0
- package/lib/ui/Carousel.js +1410 -0
- package/lib/ui/Carousel.js.map +1 -0
- package/lib/ui/Checkbox.js +28 -0
- package/lib/ui/Checkbox.js.map +1 -0
- package/lib/ui/Collapsible.js +8 -0
- package/lib/ui/Collapsible.js.map +1 -0
- package/lib/ui/Command.js +550 -0
- package/lib/ui/Command.js.map +1 -0
- package/lib/ui/Dialog.js +101 -0
- package/lib/ui/Dialog.js.map +1 -0
- package/lib/ui/Drawer.js +1153 -0
- package/lib/ui/Drawer.js.map +1 -0
- package/lib/ui/DropdownMenu.js +145 -0
- package/lib/ui/DropdownMenu.js.map +1 -0
- package/lib/ui/Form.js +95 -0
- package/lib/ui/Form.js.map +1 -0
- package/lib/ui/HoverCard.js +24 -0
- package/lib/ui/HoverCard.js.map +1 -0
- package/lib/ui/Input.js +22 -0
- package/lib/ui/Input.js.map +1 -0
- package/lib/ui/Label.js +20 -0
- package/lib/ui/Label.js.map +1 -0
- package/lib/ui/Pagination.js +106 -0
- package/lib/ui/Pagination.js.map +1 -0
- package/lib/ui/Popover.js +24 -0
- package/lib/ui/Popover.js.map +1 -0
- package/lib/ui/Progress.js +27 -0
- package/lib/ui/Progress.js.map +1 -0
- package/lib/ui/RadioGroup.js +32 -0
- package/lib/ui/RadioGroup.js.map +1 -0
- package/lib/ui/ScrollArea.js +39 -0
- package/lib/ui/ScrollArea.js.map +1 -0
- package/lib/ui/Select.js +122 -0
- package/lib/ui/Select.js.map +1 -0
- package/lib/ui/Skeleton.js +18 -0
- package/lib/ui/Skeleton.js.map +1 -0
- package/lib/ui/Slider.js +24 -0
- package/lib/ui/Slider.js.map +1 -0
- package/lib/ui/Switch.js +28 -0
- package/lib/ui/Switch.js.map +1 -0
- package/lib/ui/Tabs.js +47 -0
- package/lib/ui/Tabs.js.map +1 -0
- package/lib/ui/Textarea.js +21 -0
- package/lib/ui/Textarea.js.map +1 -0
- package/lib/ui/Toggle.js +38 -0
- package/lib/ui/Toggle.js.map +1 -0
- package/lib/ui/ToggleGroup.js +42 -0
- package/lib/ui/ToggleGroup.js.map +1 -0
- package/lib/ui/Tooltip.js +24 -0
- package/lib/ui/Tooltip.js.map +1 -0
- package/lib/useExposedProps-CTPtylCV.js +10 -0
- package/lib/useExposedProps-CTPtylCV.js.map +1 -0
- package/lib/{ZudokuContext-uV_XfHPK.js → utils-DcpDOncX.js} +455 -410
- package/lib/utils-DcpDOncX.js.map +1 -0
- package/lib/zudoku.auth-auth0.js +24 -18
- package/lib/zudoku.auth-auth0.js.map +1 -1
- package/lib/zudoku.auth-clerk.js +2 -2
- package/lib/zudoku.auth-openid.js +506 -521
- package/lib/zudoku.auth-openid.js.map +1 -1
- package/lib/zudoku.components.js +1212 -2990
- package/lib/zudoku.components.js.map +1 -1
- package/lib/zudoku.openapi-worker.js +10 -16336
- package/lib/zudoku.openapi-worker.js.map +1 -1
- package/lib/zudoku.plugin-api-catalog.js +121 -0
- package/lib/zudoku.plugin-api-catalog.js.map +1 -0
- package/lib/zudoku.plugin-api-keys.js +72 -77
- package/lib/zudoku.plugin-api-keys.js.map +1 -1
- package/lib/zudoku.plugin-custom-pages.js +17 -8
- package/lib/zudoku.plugin-custom-pages.js.map +1 -1
- package/lib/zudoku.plugin-markdown.js +94 -27
- package/lib/zudoku.plugin-markdown.js.map +1 -1
- package/lib/zudoku.plugin-openapi.js +6 -11
- package/lib/zudoku.plugin-openapi.js.map +1 -1
- package/lib/zudoku.plugin-redirect.js +2 -2
- package/lib/zudoku.plugin-redirect.js.map +1 -1
- package/lib/zudoku.plugin-search-inkeep.js +44 -27
- package/lib/zudoku.plugin-search-inkeep.js.map +1 -1
- package/package.json +72 -17
- package/src/app/demo.tsx +0 -3
- package/src/app/entry.client.tsx +33 -2
- package/src/app/entry.server.tsx +61 -50
- package/src/app/main.css +5 -2
- package/src/app/main.tsx +21 -35
- package/src/app/sentry.ts +24 -0
- package/src/app/standalone.tsx +1 -4
- package/src/app/tailwind.ts +67 -52
- package/src/lib/authentication/AuthenticationPlugin.tsx +4 -1
- package/src/lib/authentication/authentication.ts +3 -3
- package/src/lib/authentication/components/CallbackHandler.tsx +20 -51
- package/src/lib/authentication/hook.ts +1 -3
- package/src/lib/authentication/providers/auth0.tsx +17 -11
- package/src/lib/authentication/providers/openid.tsx +18 -31
- package/src/lib/authentication/state.ts +50 -9
- package/{LICENSE.md → src/lib/authentication/use-broadcast/LICENSE.md} +2 -2
- package/src/lib/authentication/use-broadcast/shared.ts +372 -0
- package/src/lib/authentication/use-broadcast/useBroadcast.ts +146 -0
- package/src/lib/components/Bootstrap.tsx +36 -14
- package/src/lib/components/ClientOnly.tsx +6 -3
- package/src/lib/components/DeveloperHint.tsx +6 -1
- package/src/lib/components/Header.tsx +87 -44
- package/src/lib/components/Heading.tsx +13 -13
- package/src/lib/components/Layout.tsx +54 -37
- package/src/lib/components/Markdown.tsx +1 -1
- package/src/lib/components/MobileTopNavigation.tsx +30 -27
- package/src/lib/components/ReactMarkdown.license.txt +21 -0
- package/src/lib/components/ReactMarkdown.tsx +264 -0
- package/src/lib/components/Search.tsx +4 -4
- package/src/lib/components/SlotletProvider.tsx +16 -7
- package/src/lib/components/SyntaxHighlight.tsx +85 -50
- package/src/lib/components/ThemeSwitch.tsx +26 -0
- package/src/lib/components/TopNavigation.tsx +78 -23
- package/src/lib/components/Zudoku.tsx +108 -0
- package/src/lib/components/context/ZudokuContext.ts +33 -30
- package/src/lib/components/context/ZudokuProvider.tsx +2 -2
- package/src/lib/components/index.ts +14 -6
- package/src/lib/components/navigation/Sidebar.tsx +22 -12
- package/src/lib/components/navigation/SidebarCategory.tsx +39 -32
- package/src/lib/components/navigation/SidebarItem.tsx +23 -29
- package/src/lib/components/navigation/SidebarWrapper.tsx +1 -1
- package/src/lib/components/navigation/utils.ts +11 -16
- package/src/lib/core/{DevPortalContext.ts → ZudokuContext.ts} +6 -13
- package/src/lib/core/plugins.ts +22 -16
- package/src/lib/errors/ErrorAlert.tsx +20 -6
- package/src/lib/oas/graphql/index.ts +8 -5
- package/src/lib/oas/parser/upgrade/index.ts +3 -24
- package/src/lib/plugins/api-catalog/Catalog.tsx +124 -0
- package/src/lib/plugins/api-catalog/index.tsx +50 -0
- package/src/lib/plugins/api-keys/CreateApiKey.tsx +2 -2
- package/src/lib/plugins/api-keys/index.tsx +12 -9
- package/src/lib/plugins/custom-pages/CustomPage.tsx +18 -0
- package/src/lib/plugins/custom-pages/index.tsx +13 -11
- package/src/lib/plugins/markdown/MdxPage.tsx +37 -9
- package/src/lib/plugins/markdown/index.tsx +52 -13
- package/src/lib/plugins/markdown/resolver.ts +90 -0
- package/src/lib/plugins/openapi/CollapsibleCode.tsx +80 -0
- package/src/lib/plugins/openapi/ColorizedParam.tsx +23 -14
- package/src/lib/plugins/openapi/Endpoint.tsx +7 -12
- package/src/lib/plugins/openapi/OperationList.tsx +78 -37
- package/src/lib/plugins/openapi/ParameterListItem.tsx +37 -31
- package/src/lib/plugins/openapi/RequestBodySidecarBox.tsx +18 -13
- package/src/lib/plugins/openapi/ResponsesSidecarBox.tsx +17 -12
- package/src/lib/plugins/openapi/Route.tsx +11 -12
- package/src/lib/plugins/openapi/Sidecar.tsx +73 -59
- package/src/lib/plugins/openapi/client/GraphQLClient.tsx +157 -0
- package/src/lib/plugins/openapi/client/GraphQLContext.tsx +16 -0
- package/src/lib/plugins/openapi/client/createServer.ts +2 -0
- package/src/lib/plugins/openapi/client/useCreateQuery.ts +21 -0
- package/src/lib/plugins/openapi/client/worker.ts +38 -24
- package/src/lib/plugins/openapi/graphql/fragment-masking.ts +11 -18
- package/src/lib/plugins/openapi/graphql/gql.ts +12 -29
- package/src/lib/plugins/openapi/graphql/graphql.ts +236 -665
- package/src/lib/plugins/openapi/index.tsx +42 -67
- package/src/lib/plugins/openapi/interfaces.ts +1 -1
- package/src/lib/plugins/openapi/playground/PathParams.tsx +1 -0
- package/src/lib/plugins/openapi/playground/Playground.tsx +4 -3
- package/src/lib/plugins/openapi/playground/PlaygroundDialog.tsx +1 -1
- package/src/lib/plugins/openapi/post-processors/removeExtensions.test.ts +144 -0
- package/src/lib/plugins/openapi/post-processors/removeExtensions.ts +24 -0
- package/src/lib/plugins/openapi/post-processors/removePaths.test.ts +126 -0
- package/src/lib/plugins/openapi/post-processors/removePaths.ts +55 -0
- package/src/lib/plugins/openapi/post-processors/traverse.ts +1 -0
- package/src/lib/plugins/openapi/schema/SchemaView.tsx +5 -2
- package/src/lib/plugins/openapi/util/generateSchemaExample.ts +28 -42
- package/src/lib/plugins/openapi-worker.ts +11 -1
- package/src/lib/plugins/redirect/index.tsx +5 -9
- package/src/lib/plugins/search-inkeep/index.tsx +61 -25
- package/src/lib/plugins/search-inkeep/inkeep.ts +3 -9
- package/src/lib/ui/Accordion.tsx +56 -0
- package/src/lib/ui/ActionButton.tsx +28 -0
- package/src/lib/ui/{Note.tsx → Alert.tsx} +11 -10
- package/src/lib/ui/AlertDialog.tsx +139 -0
- package/src/lib/ui/AspectRatio.tsx +5 -0
- package/src/lib/ui/Badge.tsx +36 -0
- package/src/lib/ui/Breadcrumb.tsx +115 -0
- package/src/lib/ui/Button.tsx +1 -1
- package/src/lib/ui/Carousel.tsx +260 -0
- package/src/lib/ui/Checkbox.tsx +28 -0
- package/src/lib/ui/Collapsible.tsx +9 -0
- package/src/lib/ui/Command.tsx +151 -0
- package/src/lib/{components → ui}/Dialog.tsx +4 -3
- package/src/lib/ui/Form.tsx +177 -0
- package/src/lib/ui/HoverCard.tsx +27 -0
- package/src/lib/ui/Label.tsx +24 -0
- package/src/lib/ui/Pagination.tsx +117 -0
- package/src/lib/ui/Popover.tsx +29 -0
- package/src/lib/ui/Progress.tsx +26 -0
- package/src/lib/ui/RadioGroup.tsx +42 -0
- package/src/lib/ui/ScrollArea.tsx +46 -0
- package/src/lib/ui/Skeleton.tsx +15 -0
- package/src/lib/ui/Slider.tsx +26 -0
- package/src/lib/ui/Switch.tsx +27 -0
- package/src/lib/ui/Textarea.tsx +23 -0
- package/src/lib/ui/Toggle.tsx +43 -0
- package/src/lib/ui/ToggleGroup.tsx +59 -0
- package/src/lib/ui/Tooltip.tsx +28 -0
- package/src/lib/util/MdxComponents.tsx +2 -6
- package/src/lib/util/invariant.ts +15 -3
- package/src/lib/util/traverse.ts +25 -0
- package/src/lib/util/useExposedProps.tsx +16 -0
- package/src/lib/util/useIsomorphicLayoutEffect.ts +5 -0
- package/src/lib/util/useOnScreen.ts +32 -0
- package/src/lib/util/useScrollToAnchor.ts +1 -1
- package/dist/internal.d.ts +0 -1
- package/dist/internal.js +0 -2
- package/dist/internal.js.map +0 -1
- package/dist/lib/components/DevPortal.js.map +0 -1
- package/dist/lib/components/Dialog.js.map +0 -1
- package/dist/lib/components/Select.js.map +0 -1
- package/dist/lib/components/context/ThemeContext.d.ts +0 -2
- package/dist/lib/components/context/ThemeContext.js +0 -7
- package/dist/lib/components/context/ThemeContext.js.map +0 -1
- package/dist/lib/components/context/ThemeProvider.d.ts +0 -4
- package/dist/lib/components/context/ThemeProvider.js +0 -23
- package/dist/lib/components/context/ThemeProvider.js.map +0 -1
- package/dist/lib/core/DevPortalContext.js.map +0 -1
- package/dist/lib/plugins/markdown/generateRoutes.d.ts +0 -3
- package/dist/lib/plugins/markdown/generateRoutes.js +0 -21
- package/dist/lib/plugins/markdown/generateRoutes.js.map +0 -1
- package/dist/lib/plugins/openapi/client/createMemoryClient.d.ts +0 -12
- package/dist/lib/plugins/openapi/client/createMemoryClient.js +0 -46
- package/dist/lib/plugins/openapi/client/createMemoryClient.js.map +0 -1
- package/dist/lib/plugins/openapi/client/createWorkerClient.d.ts +0 -10
- package/dist/lib/plugins/openapi/client/createWorkerClient.js +0 -61
- package/dist/lib/plugins/openapi/client/createWorkerClient.js.map +0 -1
- package/dist/lib/plugins/openapi/client/interfaces.d.ts +0 -4
- package/dist/lib/plugins/openapi/client/interfaces.js +0 -2
- package/dist/lib/plugins/openapi/client/interfaces.js.map +0 -1
- package/dist/lib/plugins/search-inkeep/InkeepCustomTrigger.d.ts +0 -2
- package/dist/lib/plugins/search-inkeep/InkeepCustomTrigger.js +0 -3
- package/dist/lib/plugins/search-inkeep/InkeepCustomTrigger.js.map +0 -1
- package/dist/lib/themeToggle.d.ts +0 -1
- package/dist/lib/themeToggle.js +0 -7
- package/dist/lib/themeToggle.js.map +0 -1
- package/dist/lib/ui/Note.d.ts +0 -8
- package/dist/lib/ui/Note.js +0 -23
- package/dist/lib/ui/Note.js.map +0 -1
- package/dist/lib/util/createWaitForNotify.d.ts +0 -1
- package/dist/lib/util/createWaitForNotify.js +0 -15
- package/dist/lib/util/createWaitForNotify.js.map +0 -1
- package/dist/vite/plugin-custom-css.js.map +0 -1
- package/dist/vite/plugin-html-transform.d.ts +0 -2
- package/dist/vite/plugin-html-transform.js +0 -15
- package/dist/vite/plugin-html-transform.js.map +0 -1
- package/lib/AuthenticationPlugin-D_5jC4vE.js +0 -55
- package/lib/DeveloperHint-CNyuFROc.js +0 -16
- package/lib/DeveloperHint-CNyuFROc.js.map +0 -1
- package/lib/ErrorPage-CUz-Zzmx.js +0 -16
- package/lib/ErrorPage-CUz-Zzmx.js.map +0 -1
- package/lib/InkeepCustomTrigger-CE5-K5ex.js +0 -6
- package/lib/InkeepCustomTrigger-CE5-K5ex.js.map +0 -1
- package/lib/Input-CYTkk51A.js +0 -2229
- package/lib/Input-CYTkk51A.js.map +0 -1
- package/lib/Markdown-C-0TaxoY.js +0 -20441
- package/lib/Markdown-C-0TaxoY.js.map +0 -1
- package/lib/MdxPage-Cbj8ILOL.js +0 -172
- package/lib/MdxPage-Cbj8ILOL.js.map +0 -1
- package/lib/OperationList-Dto8Wvgo.js +0 -601
- package/lib/OperationList-Dto8Wvgo.js.map +0 -1
- package/lib/Route-DLH-PALM.js +0 -13
- package/lib/Route-DLH-PALM.js.map +0 -1
- package/lib/SidebarBadge-BWvFQTc1.js +0 -503
- package/lib/SidebarBadge-BWvFQTc1.js.map +0 -1
- package/lib/SlotletProvider-BGEs7yyu.js +0 -240
- package/lib/SlotletProvider-BGEs7yyu.js.map +0 -1
- package/lib/ZudokuContext-uV_XfHPK.js.map +0 -1
- package/lib/assets/worker-Bf8vjASY.js.map +0 -1
- package/lib/index-DJqnphbT.js +0 -35
- package/lib/index-LstIRx3V.js +0 -124
- package/lib/index-LstIRx3V.js.map +0 -1
- package/lib/index-SrtqdZ3j.js +0 -1781
- package/lib/index-SrtqdZ3j.js.map +0 -1
- package/lib/index-SyxHzsgJ.js +0 -2867
- package/lib/index-SyxHzsgJ.js.map +0 -1
- package/lib/index-aHWE7ArR.js +0 -5964
- package/lib/index-aHWE7ArR.js.map +0 -1
- package/lib/joinPath-B7kNnUX4.js +0 -8
- package/lib/joinPath-B7kNnUX4.js.map +0 -1
- package/lib/prism-markup-templating-DZrrEs0A.js +0 -62
- package/lib/prism-markup-templating-DZrrEs0A.js.map +0 -1
- package/lib/prism-php.min-o7FpoMP_.js +0 -11
- package/lib/prism-php.min-o7FpoMP_.js.map +0 -1
- package/lib/state-CsuHT8ZO.js +0 -183
- package/lib/urql-core-KJnLL26g.js +0 -1455
- package/lib/urql-core-KJnLL26g.js.map +0 -1
- package/lib/utils-CCcr3AZm.js +0 -749
- package/lib/utils-CCcr3AZm.js.map +0 -1
- package/src/lib/components/DevPortal.tsx +0 -111
- package/src/lib/components/context/ThemeContext.tsx +0 -8
- package/src/lib/components/context/ThemeProvider.tsx +0 -27
- package/src/lib/plugins/markdown/generateRoutes.tsx +0 -38
- package/src/lib/plugins/openapi/client/createMemoryClient.ts +0 -51
- package/src/lib/plugins/openapi/client/createWorkerClient.ts +0 -75
- package/src/lib/plugins/openapi/client/interfaces.ts +0 -5
- package/src/lib/plugins/search-inkeep/InkeepCustomTrigger.tsx +0 -3
- package/src/lib/themeToggle.ts +0 -7
- package/src/lib/util/createWaitForNotify.ts +0 -18
- /package/dist/lib/{components → ui}/Dialog.d.ts +0 -0
- /package/dist/lib/{components → ui}/Select.d.ts +0 -0
- /package/dist/lib/{components → ui}/Select.js +0 -0
- /package/src/lib/{components → ui}/Select.tsx +0 -0
|
@@ -0,0 +1,675 @@
|
|
|
1
|
+
var ee = Object.defineProperty;
|
|
2
|
+
var te = (e, t, r) => t in e ? ee(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
|
|
3
|
+
var y = (e, t, r) => te(e, typeof t != "symbol" ? t + "" : t, r);
|
|
4
|
+
import T, { Component as j } from "react";
|
|
5
|
+
import { g as L } from "./_commonjsHelpers-BkfeUUK-.js";
|
|
6
|
+
var re = typeof Element < "u", ne = typeof Map == "function", se = typeof Set == "function", ie = typeof ArrayBuffer == "function" && !!ArrayBuffer.isView;
|
|
7
|
+
function x(e, t) {
|
|
8
|
+
if (e === t) return !0;
|
|
9
|
+
if (e && t && typeof e == "object" && typeof t == "object") {
|
|
10
|
+
if (e.constructor !== t.constructor) return !1;
|
|
11
|
+
var r, n, s;
|
|
12
|
+
if (Array.isArray(e)) {
|
|
13
|
+
if (r = e.length, r != t.length) return !1;
|
|
14
|
+
for (n = r; n-- !== 0; )
|
|
15
|
+
if (!x(e[n], t[n])) return !1;
|
|
16
|
+
return !0;
|
|
17
|
+
}
|
|
18
|
+
var i;
|
|
19
|
+
if (ne && e instanceof Map && t instanceof Map) {
|
|
20
|
+
if (e.size !== t.size) return !1;
|
|
21
|
+
for (i = e.entries(); !(n = i.next()).done; )
|
|
22
|
+
if (!t.has(n.value[0])) return !1;
|
|
23
|
+
for (i = e.entries(); !(n = i.next()).done; )
|
|
24
|
+
if (!x(n.value[1], t.get(n.value[0]))) return !1;
|
|
25
|
+
return !0;
|
|
26
|
+
}
|
|
27
|
+
if (se && e instanceof Set && t instanceof Set) {
|
|
28
|
+
if (e.size !== t.size) return !1;
|
|
29
|
+
for (i = e.entries(); !(n = i.next()).done; )
|
|
30
|
+
if (!t.has(n.value[0])) return !1;
|
|
31
|
+
return !0;
|
|
32
|
+
}
|
|
33
|
+
if (ie && ArrayBuffer.isView(e) && ArrayBuffer.isView(t)) {
|
|
34
|
+
if (r = e.length, r != t.length) return !1;
|
|
35
|
+
for (n = r; n-- !== 0; )
|
|
36
|
+
if (e[n] !== t[n]) return !1;
|
|
37
|
+
return !0;
|
|
38
|
+
}
|
|
39
|
+
if (e.constructor === RegExp) return e.source === t.source && e.flags === t.flags;
|
|
40
|
+
if (e.valueOf !== Object.prototype.valueOf && typeof e.valueOf == "function" && typeof t.valueOf == "function") return e.valueOf() === t.valueOf();
|
|
41
|
+
if (e.toString !== Object.prototype.toString && typeof e.toString == "function" && typeof t.toString == "function") return e.toString() === t.toString();
|
|
42
|
+
if (s = Object.keys(e), r = s.length, r !== Object.keys(t).length) return !1;
|
|
43
|
+
for (n = r; n-- !== 0; )
|
|
44
|
+
if (!Object.prototype.hasOwnProperty.call(t, s[n])) return !1;
|
|
45
|
+
if (re && e instanceof Element) return !1;
|
|
46
|
+
for (n = r; n-- !== 0; )
|
|
47
|
+
if (!((s[n] === "_owner" || s[n] === "__v" || s[n] === "__o") && e.$$typeof) && !x(e[s[n]], t[s[n]]))
|
|
48
|
+
return !1;
|
|
49
|
+
return !0;
|
|
50
|
+
}
|
|
51
|
+
return e !== e && t !== t;
|
|
52
|
+
}
|
|
53
|
+
var ae = function(t, r) {
|
|
54
|
+
try {
|
|
55
|
+
return x(t, r);
|
|
56
|
+
} catch (n) {
|
|
57
|
+
if ((n.message || "").match(/stack|recursion/i))
|
|
58
|
+
return console.warn("react-fast-compare cannot handle circular refs"), !1;
|
|
59
|
+
throw n;
|
|
60
|
+
}
|
|
61
|
+
};
|
|
62
|
+
const oe = /* @__PURE__ */ L(ae);
|
|
63
|
+
var le = function(e, t, r, n, s, i, c, a) {
|
|
64
|
+
if (process.env.NODE_ENV !== "production" && t === void 0)
|
|
65
|
+
throw new Error("invariant requires an error message argument");
|
|
66
|
+
if (!e) {
|
|
67
|
+
var l;
|
|
68
|
+
if (t === void 0)
|
|
69
|
+
l = new Error(
|
|
70
|
+
"Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings."
|
|
71
|
+
);
|
|
72
|
+
else {
|
|
73
|
+
var o = [r, n, s, i, c, a], u = 0;
|
|
74
|
+
l = new Error(
|
|
75
|
+
t.replace(/%s/g, function() {
|
|
76
|
+
return o[u++];
|
|
77
|
+
})
|
|
78
|
+
), l.name = "Invariant Violation";
|
|
79
|
+
}
|
|
80
|
+
throw l.framesToPop = 1, l;
|
|
81
|
+
}
|
|
82
|
+
}, ce = le;
|
|
83
|
+
const K = /* @__PURE__ */ L(ce);
|
|
84
|
+
var ue = function(t, r, n, s) {
|
|
85
|
+
var i = n ? n.call(s, t, r) : void 0;
|
|
86
|
+
if (i !== void 0)
|
|
87
|
+
return !!i;
|
|
88
|
+
if (t === r)
|
|
89
|
+
return !0;
|
|
90
|
+
if (typeof t != "object" || !t || typeof r != "object" || !r)
|
|
91
|
+
return !1;
|
|
92
|
+
var c = Object.keys(t), a = Object.keys(r);
|
|
93
|
+
if (c.length !== a.length)
|
|
94
|
+
return !1;
|
|
95
|
+
for (var l = Object.prototype.hasOwnProperty.bind(r), o = 0; o < c.length; o++) {
|
|
96
|
+
var u = c[o];
|
|
97
|
+
if (!l(u))
|
|
98
|
+
return !1;
|
|
99
|
+
var f = t[u], m = r[u];
|
|
100
|
+
if (i = n ? n.call(s, f, m, u) : void 0, i === !1 || i === void 0 && f !== m)
|
|
101
|
+
return !1;
|
|
102
|
+
}
|
|
103
|
+
return !0;
|
|
104
|
+
};
|
|
105
|
+
const fe = /* @__PURE__ */ L(ue);
|
|
106
|
+
var B = /* @__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))(B || {}), P = {
|
|
107
|
+
link: { rel: ["amphtml", "canonical", "alternate"] },
|
|
108
|
+
script: { type: ["application/ld+json"] },
|
|
109
|
+
meta: {
|
|
110
|
+
charset: "",
|
|
111
|
+
name: ["generator", "robots", "description"],
|
|
112
|
+
property: [
|
|
113
|
+
"og:type",
|
|
114
|
+
"og:title",
|
|
115
|
+
"og:url",
|
|
116
|
+
"og:image",
|
|
117
|
+
"og:image:alt",
|
|
118
|
+
"og:description",
|
|
119
|
+
"twitter:url",
|
|
120
|
+
"twitter:title",
|
|
121
|
+
"twitter:description",
|
|
122
|
+
"twitter:image",
|
|
123
|
+
"twitter:image:alt",
|
|
124
|
+
"twitter:card",
|
|
125
|
+
"twitter:site"
|
|
126
|
+
]
|
|
127
|
+
}
|
|
128
|
+
}, z = Object.values(B), F = {
|
|
129
|
+
accesskey: "accessKey",
|
|
130
|
+
charset: "charSet",
|
|
131
|
+
class: "className",
|
|
132
|
+
contenteditable: "contentEditable",
|
|
133
|
+
contextmenu: "contextMenu",
|
|
134
|
+
"http-equiv": "httpEquiv",
|
|
135
|
+
itemprop: "itemProp",
|
|
136
|
+
tabindex: "tabIndex"
|
|
137
|
+
}, pe = Object.entries(F).reduce(
|
|
138
|
+
(e, [t, r]) => (e[r] = t, e),
|
|
139
|
+
{}
|
|
140
|
+
), h = "data-rh", E = {
|
|
141
|
+
DEFAULT_TITLE: "defaultTitle",
|
|
142
|
+
DEFER: "defer",
|
|
143
|
+
ENCODE_SPECIAL_CHARACTERS: "encodeSpecialCharacters",
|
|
144
|
+
ON_CHANGE_CLIENT_STATE: "onChangeClientState",
|
|
145
|
+
TITLE_TEMPLATE: "titleTemplate",
|
|
146
|
+
PRIORITIZE_SEO_TAGS: "prioritizeSeoTags"
|
|
147
|
+
}, b = (e, t) => {
|
|
148
|
+
for (let r = e.length - 1; r >= 0; r -= 1) {
|
|
149
|
+
const n = e[r];
|
|
150
|
+
if (Object.prototype.hasOwnProperty.call(n, t))
|
|
151
|
+
return n[t];
|
|
152
|
+
}
|
|
153
|
+
return null;
|
|
154
|
+
}, de = (e) => {
|
|
155
|
+
let t = b(
|
|
156
|
+
e,
|
|
157
|
+
"title"
|
|
158
|
+
/* TITLE */
|
|
159
|
+
);
|
|
160
|
+
const r = b(e, E.TITLE_TEMPLATE);
|
|
161
|
+
if (Array.isArray(t) && (t = t.join("")), r && t)
|
|
162
|
+
return r.replace(/%s/g, () => t);
|
|
163
|
+
const n = b(e, E.DEFAULT_TITLE);
|
|
164
|
+
return t || n || void 0;
|
|
165
|
+
}, me = (e) => b(e, E.ON_CHANGE_CLIENT_STATE) || (() => {
|
|
166
|
+
}), I = (e, t) => t.filter((r) => typeof r[e] < "u").map((r) => r[e]).reduce((r, n) => ({ ...r, ...n }), {}), he = (e, t) => t.filter((r) => typeof r.base < "u").map((r) => r.base).reverse().reduce((r, n) => {
|
|
167
|
+
if (!r.length) {
|
|
168
|
+
const s = Object.keys(n);
|
|
169
|
+
for (let i = 0; i < s.length; i += 1) {
|
|
170
|
+
const a = s[i].toLowerCase();
|
|
171
|
+
if (e.indexOf(a) !== -1 && n[a])
|
|
172
|
+
return r.concat(n);
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
return r;
|
|
176
|
+
}, []), ye = (e) => console && typeof console.warn == "function" && console.warn(e), O = (e, t, r) => {
|
|
177
|
+
const n = {};
|
|
178
|
+
return r.filter((s) => Array.isArray(s[e]) ? !0 : (typeof s[e] < "u" && ye(
|
|
179
|
+
`Helmet: ${e} should be of type "Array". Instead found type "${typeof s[e]}"`
|
|
180
|
+
), !1)).map((s) => s[e]).reverse().reduce((s, i) => {
|
|
181
|
+
const c = {};
|
|
182
|
+
i.filter((l) => {
|
|
183
|
+
let o;
|
|
184
|
+
const u = Object.keys(l);
|
|
185
|
+
for (let m = 0; m < u.length; m += 1) {
|
|
186
|
+
const p = u[m], g = p.toLowerCase();
|
|
187
|
+
t.indexOf(g) !== -1 && !(o === "rel" && l[o].toLowerCase() === "canonical") && !(g === "rel" && l[g].toLowerCase() === "stylesheet") && (o = g), t.indexOf(p) !== -1 && (p === "innerHTML" || p === "cssText" || p === "itemprop") && (o = p);
|
|
188
|
+
}
|
|
189
|
+
if (!o || !l[o])
|
|
190
|
+
return !1;
|
|
191
|
+
const f = l[o].toLowerCase();
|
|
192
|
+
return n[o] || (n[o] = {}), c[o] || (c[o] = {}), n[o][f] ? !1 : (c[o][f] = !0, !0);
|
|
193
|
+
}).reverse().forEach((l) => s.push(l));
|
|
194
|
+
const a = Object.keys(c);
|
|
195
|
+
for (let l = 0; l < a.length; l += 1) {
|
|
196
|
+
const o = a[l], u = {
|
|
197
|
+
...n[o],
|
|
198
|
+
...c[o]
|
|
199
|
+
};
|
|
200
|
+
n[o] = u;
|
|
201
|
+
}
|
|
202
|
+
return s;
|
|
203
|
+
}, []).reverse();
|
|
204
|
+
}, Te = (e, t) => {
|
|
205
|
+
if (Array.isArray(e) && e.length) {
|
|
206
|
+
for (let r = 0; r < e.length; r += 1)
|
|
207
|
+
if (e[r][t])
|
|
208
|
+
return !0;
|
|
209
|
+
}
|
|
210
|
+
return !1;
|
|
211
|
+
}, ge = (e) => ({
|
|
212
|
+
baseTag: he([
|
|
213
|
+
"href"
|
|
214
|
+
/* HREF */
|
|
215
|
+
], e),
|
|
216
|
+
bodyAttributes: I("bodyAttributes", e),
|
|
217
|
+
defer: b(e, E.DEFER),
|
|
218
|
+
encode: b(e, E.ENCODE_SPECIAL_CHARACTERS),
|
|
219
|
+
htmlAttributes: I("htmlAttributes", e),
|
|
220
|
+
linkTags: O(
|
|
221
|
+
"link",
|
|
222
|
+
[
|
|
223
|
+
"rel",
|
|
224
|
+
"href"
|
|
225
|
+
/* HREF */
|
|
226
|
+
],
|
|
227
|
+
e
|
|
228
|
+
),
|
|
229
|
+
metaTags: O(
|
|
230
|
+
"meta",
|
|
231
|
+
[
|
|
232
|
+
"name",
|
|
233
|
+
"charset",
|
|
234
|
+
"http-equiv",
|
|
235
|
+
"property",
|
|
236
|
+
"itemprop"
|
|
237
|
+
/* ITEM_PROP */
|
|
238
|
+
],
|
|
239
|
+
e
|
|
240
|
+
),
|
|
241
|
+
noscriptTags: O("noscript", [
|
|
242
|
+
"innerHTML"
|
|
243
|
+
/* INNER_HTML */
|
|
244
|
+
], e),
|
|
245
|
+
onChangeClientState: me(e),
|
|
246
|
+
scriptTags: O(
|
|
247
|
+
"script",
|
|
248
|
+
[
|
|
249
|
+
"src",
|
|
250
|
+
"innerHTML"
|
|
251
|
+
/* INNER_HTML */
|
|
252
|
+
],
|
|
253
|
+
e
|
|
254
|
+
),
|
|
255
|
+
styleTags: O("style", [
|
|
256
|
+
"cssText"
|
|
257
|
+
/* CSS_TEXT */
|
|
258
|
+
], e),
|
|
259
|
+
title: de(e),
|
|
260
|
+
titleAttributes: I("titleAttributes", e),
|
|
261
|
+
prioritizeSeoTags: Te(e, E.PRIORITIZE_SEO_TAGS)
|
|
262
|
+
}), Z = (e) => Array.isArray(e) ? e.join("") : e, ve = (e, t) => {
|
|
263
|
+
const r = Object.keys(e);
|
|
264
|
+
for (let n = 0; n < r.length; n += 1)
|
|
265
|
+
if (t[r[n]] && t[r[n]].includes(e[r[n]]))
|
|
266
|
+
return !0;
|
|
267
|
+
return !1;
|
|
268
|
+
}, H = (e, t) => Array.isArray(e) ? e.reduce(
|
|
269
|
+
(r, n) => (ve(n, t) ? r.priority.push(n) : r.default.push(n), r),
|
|
270
|
+
{ priority: [], default: [] }
|
|
271
|
+
) : { default: e, priority: [] }, N = (e, t) => ({
|
|
272
|
+
...e,
|
|
273
|
+
[t]: void 0
|
|
274
|
+
}), Ae = [
|
|
275
|
+
"noscript",
|
|
276
|
+
"script",
|
|
277
|
+
"style"
|
|
278
|
+
/* STYLE */
|
|
279
|
+
], D = (e, t = !0) => t === !1 ? String(e) : String(e).replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'"), G = (e) => Object.keys(e).reduce((t, r) => {
|
|
280
|
+
const n = typeof e[r] < "u" ? `${r}="${e[r]}"` : `${r}`;
|
|
281
|
+
return t ? `${t} ${n}` : n;
|
|
282
|
+
}, ""), Ee = (e, t, r, n) => {
|
|
283
|
+
const s = G(r), i = Z(t);
|
|
284
|
+
return s ? `<${e} ${h}="true" ${s}>${D(
|
|
285
|
+
i,
|
|
286
|
+
n
|
|
287
|
+
)}</${e}>` : `<${e} ${h}="true">${D(
|
|
288
|
+
i,
|
|
289
|
+
n
|
|
290
|
+
)}</${e}>`;
|
|
291
|
+
}, be = (e, t, r = !0) => t.reduce((n, s) => {
|
|
292
|
+
const i = s, c = Object.keys(i).filter(
|
|
293
|
+
(o) => !(o === "innerHTML" || o === "cssText")
|
|
294
|
+
).reduce((o, u) => {
|
|
295
|
+
const f = typeof i[u] > "u" ? u : `${u}="${D(i[u], r)}"`;
|
|
296
|
+
return o ? `${o} ${f}` : f;
|
|
297
|
+
}, ""), a = i.innerHTML || i.cssText || "", l = Ae.indexOf(e) === -1;
|
|
298
|
+
return `${n}<${e} ${h}="true" ${c}${l ? "/>" : `>${a}</${e}>`}`;
|
|
299
|
+
}, ""), W = (e, t = {}) => Object.keys(e).reduce((r, n) => {
|
|
300
|
+
const s = F[n];
|
|
301
|
+
return r[s || n] = e[n], r;
|
|
302
|
+
}, t), Oe = (e, t, r) => {
|
|
303
|
+
const n = {
|
|
304
|
+
key: t,
|
|
305
|
+
[h]: !0
|
|
306
|
+
}, s = W(r, n);
|
|
307
|
+
return [T.createElement("title", s, t)];
|
|
308
|
+
}, $ = (e, t) => t.map((r, n) => {
|
|
309
|
+
const s = {
|
|
310
|
+
key: n,
|
|
311
|
+
[h]: !0
|
|
312
|
+
};
|
|
313
|
+
return Object.keys(r).forEach((i) => {
|
|
314
|
+
const a = F[i] || i;
|
|
315
|
+
if (a === "innerHTML" || a === "cssText") {
|
|
316
|
+
const l = r.innerHTML || r.cssText;
|
|
317
|
+
s.dangerouslySetInnerHTML = { __html: l };
|
|
318
|
+
} else
|
|
319
|
+
s[a] = r[i];
|
|
320
|
+
}), T.createElement(e, s);
|
|
321
|
+
}), d = (e, t, r = !0) => {
|
|
322
|
+
switch (e) {
|
|
323
|
+
case "title":
|
|
324
|
+
return {
|
|
325
|
+
toComponent: () => Oe(e, t.title, t.titleAttributes),
|
|
326
|
+
toString: () => Ee(e, t.title, t.titleAttributes, r)
|
|
327
|
+
};
|
|
328
|
+
case "bodyAttributes":
|
|
329
|
+
case "htmlAttributes":
|
|
330
|
+
return {
|
|
331
|
+
toComponent: () => W(t),
|
|
332
|
+
toString: () => G(t)
|
|
333
|
+
};
|
|
334
|
+
default:
|
|
335
|
+
return {
|
|
336
|
+
toComponent: () => $(e, t),
|
|
337
|
+
toString: () => be(e, t, r)
|
|
338
|
+
};
|
|
339
|
+
}
|
|
340
|
+
}, Ce = ({ metaTags: e, linkTags: t, scriptTags: r, encode: n }) => {
|
|
341
|
+
const s = H(e, P.meta), i = H(t, P.link), c = H(r, P.script);
|
|
342
|
+
return {
|
|
343
|
+
priorityMethods: {
|
|
344
|
+
toComponent: () => [
|
|
345
|
+
...$("meta", s.priority),
|
|
346
|
+
...$("link", i.priority),
|
|
347
|
+
...$("script", c.priority)
|
|
348
|
+
],
|
|
349
|
+
toString: () => (
|
|
350
|
+
// generate all the tags as strings and concatenate them
|
|
351
|
+
`${d("meta", s.priority, n)} ${d(
|
|
352
|
+
"link",
|
|
353
|
+
i.priority,
|
|
354
|
+
n
|
|
355
|
+
)} ${d("script", c.priority, n)}`
|
|
356
|
+
)
|
|
357
|
+
},
|
|
358
|
+
metaTags: s.default,
|
|
359
|
+
linkTags: i.default,
|
|
360
|
+
scriptTags: c.default
|
|
361
|
+
};
|
|
362
|
+
}, Se = (e) => {
|
|
363
|
+
const {
|
|
364
|
+
baseTag: t,
|
|
365
|
+
bodyAttributes: r,
|
|
366
|
+
encode: n = !0,
|
|
367
|
+
htmlAttributes: s,
|
|
368
|
+
noscriptTags: i,
|
|
369
|
+
styleTags: c,
|
|
370
|
+
title: a = "",
|
|
371
|
+
titleAttributes: l,
|
|
372
|
+
prioritizeSeoTags: o
|
|
373
|
+
} = e;
|
|
374
|
+
let { linkTags: u, metaTags: f, scriptTags: m } = e, p = {
|
|
375
|
+
toComponent: () => {
|
|
376
|
+
},
|
|
377
|
+
toString: () => ""
|
|
378
|
+
};
|
|
379
|
+
return o && ({ priorityMethods: p, linkTags: u, metaTags: f, scriptTags: m } = Ce(e)), {
|
|
380
|
+
priority: p,
|
|
381
|
+
base: d("base", t, n),
|
|
382
|
+
bodyAttributes: d("bodyAttributes", r, n),
|
|
383
|
+
htmlAttributes: d("htmlAttributes", s, n),
|
|
384
|
+
link: d("link", u, n),
|
|
385
|
+
meta: d("meta", f, n),
|
|
386
|
+
noscript: d("noscript", i, n),
|
|
387
|
+
script: d("script", m, n),
|
|
388
|
+
style: d("style", c, n),
|
|
389
|
+
title: d("title", { title: a, titleAttributes: l }, n)
|
|
390
|
+
};
|
|
391
|
+
}, M = Se, w = [], J = !!(typeof window < "u" && window.document && window.document.createElement), k = class {
|
|
392
|
+
constructor(e, t) {
|
|
393
|
+
y(this, "instances", []);
|
|
394
|
+
y(this, "canUseDOM", J);
|
|
395
|
+
y(this, "context");
|
|
396
|
+
y(this, "value", {
|
|
397
|
+
setHelmet: (e) => {
|
|
398
|
+
this.context.helmet = e;
|
|
399
|
+
},
|
|
400
|
+
helmetInstances: {
|
|
401
|
+
get: () => this.canUseDOM ? w : this.instances,
|
|
402
|
+
add: (e) => {
|
|
403
|
+
(this.canUseDOM ? w : this.instances).push(e);
|
|
404
|
+
},
|
|
405
|
+
remove: (e) => {
|
|
406
|
+
const t = (this.canUseDOM ? w : this.instances).indexOf(e);
|
|
407
|
+
(this.canUseDOM ? w : this.instances).splice(t, 1);
|
|
408
|
+
}
|
|
409
|
+
}
|
|
410
|
+
});
|
|
411
|
+
this.context = e, this.canUseDOM = t || !1, t || (e.helmet = M({
|
|
412
|
+
baseTag: [],
|
|
413
|
+
bodyAttributes: {},
|
|
414
|
+
encodeSpecialCharacters: !0,
|
|
415
|
+
htmlAttributes: {},
|
|
416
|
+
linkTags: [],
|
|
417
|
+
metaTags: [],
|
|
418
|
+
noscriptTags: [],
|
|
419
|
+
scriptTags: [],
|
|
420
|
+
styleTags: [],
|
|
421
|
+
title: "",
|
|
422
|
+
titleAttributes: {}
|
|
423
|
+
}));
|
|
424
|
+
}
|
|
425
|
+
}, we = {}, Q = T.createContext(we), v, xe = (v = class extends j {
|
|
426
|
+
constructor(r) {
|
|
427
|
+
super(r);
|
|
428
|
+
y(this, "helmetData");
|
|
429
|
+
this.helmetData = new k(this.props.context || {}, v.canUseDOM);
|
|
430
|
+
}
|
|
431
|
+
render() {
|
|
432
|
+
return /* @__PURE__ */ T.createElement(Q.Provider, { value: this.helmetData.value }, this.props.children);
|
|
433
|
+
}
|
|
434
|
+
}, y(v, "canUseDOM", J), v), A = (e, t) => {
|
|
435
|
+
const r = document.head || document.querySelector(
|
|
436
|
+
"head"
|
|
437
|
+
/* HEAD */
|
|
438
|
+
), n = r.querySelectorAll(`${e}[${h}]`), s = [].slice.call(n), i = [];
|
|
439
|
+
let c;
|
|
440
|
+
return t && t.length && t.forEach((a) => {
|
|
441
|
+
const l = document.createElement(e);
|
|
442
|
+
for (const o in a)
|
|
443
|
+
if (Object.prototype.hasOwnProperty.call(a, o))
|
|
444
|
+
if (o === "innerHTML")
|
|
445
|
+
l.innerHTML = a.innerHTML;
|
|
446
|
+
else if (o === "cssText")
|
|
447
|
+
l.styleSheet ? l.styleSheet.cssText = a.cssText : l.appendChild(document.createTextNode(a.cssText));
|
|
448
|
+
else {
|
|
449
|
+
const u = o, f = typeof a[u] > "u" ? "" : a[u];
|
|
450
|
+
l.setAttribute(o, f);
|
|
451
|
+
}
|
|
452
|
+
l.setAttribute(h, "true"), s.some((o, u) => (c = u, l.isEqualNode(o))) ? s.splice(c, 1) : i.push(l);
|
|
453
|
+
}), s.forEach((a) => {
|
|
454
|
+
var l;
|
|
455
|
+
return (l = a.parentNode) == null ? void 0 : l.removeChild(a);
|
|
456
|
+
}), i.forEach((a) => r.appendChild(a)), {
|
|
457
|
+
oldTags: s,
|
|
458
|
+
newTags: i
|
|
459
|
+
};
|
|
460
|
+
}, R = (e, t) => {
|
|
461
|
+
const r = document.getElementsByTagName(e)[0];
|
|
462
|
+
if (!r)
|
|
463
|
+
return;
|
|
464
|
+
const n = r.getAttribute(h), s = n ? n.split(",") : [], i = [...s], c = Object.keys(t);
|
|
465
|
+
for (const a of c) {
|
|
466
|
+
const l = t[a] || "";
|
|
467
|
+
r.getAttribute(a) !== l && r.setAttribute(a, l), s.indexOf(a) === -1 && s.push(a);
|
|
468
|
+
const o = i.indexOf(a);
|
|
469
|
+
o !== -1 && i.splice(o, 1);
|
|
470
|
+
}
|
|
471
|
+
for (let a = i.length - 1; a >= 0; a -= 1)
|
|
472
|
+
r.removeAttribute(i[a]);
|
|
473
|
+
s.length === i.length ? r.removeAttribute(h) : r.getAttribute(h) !== c.join(",") && r.setAttribute(h, c.join(","));
|
|
474
|
+
}, $e = (e, t) => {
|
|
475
|
+
typeof e < "u" && document.title !== e && (document.title = Z(e)), R("title", t);
|
|
476
|
+
}, V = (e, t) => {
|
|
477
|
+
const {
|
|
478
|
+
baseTag: r,
|
|
479
|
+
bodyAttributes: n,
|
|
480
|
+
htmlAttributes: s,
|
|
481
|
+
linkTags: i,
|
|
482
|
+
metaTags: c,
|
|
483
|
+
noscriptTags: a,
|
|
484
|
+
onChangeClientState: l,
|
|
485
|
+
scriptTags: o,
|
|
486
|
+
styleTags: u,
|
|
487
|
+
title: f,
|
|
488
|
+
titleAttributes: m
|
|
489
|
+
} = e;
|
|
490
|
+
R("body", n), R("html", s), $e(f, m);
|
|
491
|
+
const p = {
|
|
492
|
+
baseTag: A("base", r),
|
|
493
|
+
linkTags: A("link", i),
|
|
494
|
+
metaTags: A("meta", c),
|
|
495
|
+
noscriptTags: A("noscript", a),
|
|
496
|
+
scriptTags: A("script", o),
|
|
497
|
+
styleTags: A("style", u)
|
|
498
|
+
}, g = {}, U = {};
|
|
499
|
+
Object.keys(p).forEach((S) => {
|
|
500
|
+
const { newTags: q, oldTags: X } = p[S];
|
|
501
|
+
q.length && (g[S] = q), X.length && (U[S] = p[S].oldTags);
|
|
502
|
+
}), t && t(), l(e, g, U);
|
|
503
|
+
}, C = null, Pe = (e) => {
|
|
504
|
+
C && cancelAnimationFrame(C), e.defer ? C = requestAnimationFrame(() => {
|
|
505
|
+
V(e, () => {
|
|
506
|
+
C = null;
|
|
507
|
+
});
|
|
508
|
+
}) : (V(e), C = null);
|
|
509
|
+
}, Ie = Pe, Y = class extends j {
|
|
510
|
+
constructor() {
|
|
511
|
+
super(...arguments);
|
|
512
|
+
y(this, "rendered", !1);
|
|
513
|
+
}
|
|
514
|
+
shouldComponentUpdate(t) {
|
|
515
|
+
return !fe(t, this.props);
|
|
516
|
+
}
|
|
517
|
+
componentDidUpdate() {
|
|
518
|
+
this.emitChange();
|
|
519
|
+
}
|
|
520
|
+
componentWillUnmount() {
|
|
521
|
+
const { helmetInstances: t } = this.props.context;
|
|
522
|
+
t.remove(this), this.emitChange();
|
|
523
|
+
}
|
|
524
|
+
emitChange() {
|
|
525
|
+
const { helmetInstances: t, setHelmet: r } = this.props.context;
|
|
526
|
+
let n = null;
|
|
527
|
+
const s = ge(
|
|
528
|
+
t.get().map((i) => {
|
|
529
|
+
const c = { ...i.props };
|
|
530
|
+
return delete c.context, c;
|
|
531
|
+
})
|
|
532
|
+
);
|
|
533
|
+
xe.canUseDOM ? Ie(s) : M && (n = M(s)), r(n);
|
|
534
|
+
}
|
|
535
|
+
// componentWillMount will be deprecated
|
|
536
|
+
// for SSR, initialize on first render
|
|
537
|
+
// constructor is also unsafe in StrictMode
|
|
538
|
+
init() {
|
|
539
|
+
if (this.rendered)
|
|
540
|
+
return;
|
|
541
|
+
this.rendered = !0;
|
|
542
|
+
const { helmetInstances: t } = this.props.context;
|
|
543
|
+
t.add(this), this.emitChange();
|
|
544
|
+
}
|
|
545
|
+
render() {
|
|
546
|
+
return this.init(), null;
|
|
547
|
+
}
|
|
548
|
+
}, _, Me = (_ = class extends j {
|
|
549
|
+
shouldComponentUpdate(e) {
|
|
550
|
+
return !oe(N(this.props, "helmetData"), N(e, "helmetData"));
|
|
551
|
+
}
|
|
552
|
+
mapNestedChildrenToProps(e, t) {
|
|
553
|
+
if (!t)
|
|
554
|
+
return null;
|
|
555
|
+
switch (e.type) {
|
|
556
|
+
case "script":
|
|
557
|
+
case "noscript":
|
|
558
|
+
return {
|
|
559
|
+
innerHTML: t
|
|
560
|
+
};
|
|
561
|
+
case "style":
|
|
562
|
+
return {
|
|
563
|
+
cssText: t
|
|
564
|
+
};
|
|
565
|
+
default:
|
|
566
|
+
throw new Error(
|
|
567
|
+
`<${e.type} /> elements are self-closing and can not contain children. Refer to our API for more information.`
|
|
568
|
+
);
|
|
569
|
+
}
|
|
570
|
+
}
|
|
571
|
+
flattenArrayTypeChildren(e, t, r, n) {
|
|
572
|
+
return {
|
|
573
|
+
...t,
|
|
574
|
+
[e.type]: [
|
|
575
|
+
...t[e.type] || [],
|
|
576
|
+
{
|
|
577
|
+
...r,
|
|
578
|
+
...this.mapNestedChildrenToProps(e, n)
|
|
579
|
+
}
|
|
580
|
+
]
|
|
581
|
+
};
|
|
582
|
+
}
|
|
583
|
+
mapObjectTypeChildren(e, t, r, n) {
|
|
584
|
+
switch (e.type) {
|
|
585
|
+
case "title":
|
|
586
|
+
return {
|
|
587
|
+
...t,
|
|
588
|
+
[e.type]: n,
|
|
589
|
+
titleAttributes: { ...r }
|
|
590
|
+
};
|
|
591
|
+
case "body":
|
|
592
|
+
return {
|
|
593
|
+
...t,
|
|
594
|
+
bodyAttributes: { ...r }
|
|
595
|
+
};
|
|
596
|
+
case "html":
|
|
597
|
+
return {
|
|
598
|
+
...t,
|
|
599
|
+
htmlAttributes: { ...r }
|
|
600
|
+
};
|
|
601
|
+
default:
|
|
602
|
+
return {
|
|
603
|
+
...t,
|
|
604
|
+
[e.type]: { ...r }
|
|
605
|
+
};
|
|
606
|
+
}
|
|
607
|
+
}
|
|
608
|
+
mapArrayTypeChildrenToProps(e, t) {
|
|
609
|
+
let r = { ...t };
|
|
610
|
+
return Object.keys(e).forEach((n) => {
|
|
611
|
+
r = {
|
|
612
|
+
...r,
|
|
613
|
+
[n]: e[n]
|
|
614
|
+
};
|
|
615
|
+
}), r;
|
|
616
|
+
}
|
|
617
|
+
warnOnInvalidChildren(e, t) {
|
|
618
|
+
return K(
|
|
619
|
+
z.some((r) => e.type === r),
|
|
620
|
+
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(
|
|
621
|
+
", "
|
|
622
|
+
)} are allowed. Helmet does not support rendering <${e.type}> elements. Refer to our API for more information.`
|
|
623
|
+
), K(
|
|
624
|
+
!t || typeof t == "string" || Array.isArray(t) && !t.some((r) => typeof r != "string"),
|
|
625
|
+
`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.`
|
|
626
|
+
), !0;
|
|
627
|
+
}
|
|
628
|
+
mapChildrenToProps(e, t) {
|
|
629
|
+
let r = {};
|
|
630
|
+
return T.Children.forEach(e, (n) => {
|
|
631
|
+
if (!n || !n.props)
|
|
632
|
+
return;
|
|
633
|
+
const { children: s, ...i } = n.props, c = Object.keys(i).reduce((l, o) => (l[pe[o] || o] = i[o], l), {});
|
|
634
|
+
let { type: a } = n;
|
|
635
|
+
switch (typeof a == "symbol" ? a = a.toString() : this.warnOnInvalidChildren(n, s), a) {
|
|
636
|
+
case "Symbol(react.fragment)":
|
|
637
|
+
t = this.mapChildrenToProps(s, t);
|
|
638
|
+
break;
|
|
639
|
+
case "link":
|
|
640
|
+
case "meta":
|
|
641
|
+
case "noscript":
|
|
642
|
+
case "script":
|
|
643
|
+
case "style":
|
|
644
|
+
r = this.flattenArrayTypeChildren(
|
|
645
|
+
n,
|
|
646
|
+
r,
|
|
647
|
+
c,
|
|
648
|
+
s
|
|
649
|
+
);
|
|
650
|
+
break;
|
|
651
|
+
default:
|
|
652
|
+
t = this.mapObjectTypeChildren(n, t, c, s);
|
|
653
|
+
break;
|
|
654
|
+
}
|
|
655
|
+
}), this.mapArrayTypeChildrenToProps(r, t);
|
|
656
|
+
}
|
|
657
|
+
render() {
|
|
658
|
+
const { children: e, ...t } = this.props;
|
|
659
|
+
let r = { ...t }, { helmetData: n } = t;
|
|
660
|
+
if (e && (r = this.mapChildrenToProps(e, r)), n && !(n instanceof k)) {
|
|
661
|
+
const s = n;
|
|
662
|
+
n = new k(s.context, !0), delete r.helmetData;
|
|
663
|
+
}
|
|
664
|
+
return n ? /* @__PURE__ */ T.createElement(Y, { ...r, context: n.value }) : /* @__PURE__ */ T.createElement(Q.Consumer, null, (s) => /* @__PURE__ */ T.createElement(Y, { ...r, context: s }));
|
|
665
|
+
}
|
|
666
|
+
}, y(_, "defaultProps", {
|
|
667
|
+
defer: !0,
|
|
668
|
+
encodeSpecialCharacters: !0,
|
|
669
|
+
prioritizeSeoTags: !1
|
|
670
|
+
}), _);
|
|
671
|
+
export {
|
|
672
|
+
Me as H,
|
|
673
|
+
xe as a
|
|
674
|
+
};
|
|
675
|
+
//# sourceMappingURL=index.esm-Bm8pj-bc.js.map
|