zudoku 0.0.0-f417aae → 0.0.0-f49e3ea
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 +2 -2
- package/dist/app/demo.js +0 -2
- package/dist/app/demo.js.map +1 -1
- package/dist/app/entry.client.js +16 -2
- package/dist/app/entry.client.js.map +1 -1
- package/dist/app/entry.server.js +9 -6
- package/dist/app/entry.server.js.map +1 -1
- package/dist/app/main.d.ts +2 -1
- package/dist/app/main.js +9 -24
- package/dist/app/main.js.map +1 -1
- package/dist/app/standalone.js +0 -2
- package/dist/app/standalone.js.map +1 -1
- package/dist/cli/cli.js +1 -2
- package/dist/cli/cli.js.map +1 -1
- package/dist/cli/common/machine-id/lib.js.map +1 -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/validators/InputSidebarSchema.d.ts +12 -12
- package/dist/config/validators/SidebarSchema.d.ts +24 -1
- package/dist/config/validators/SidebarSchema.js +76 -39
- package/dist/config/validators/SidebarSchema.js.map +1 -1
- package/dist/config/validators/validate.d.ts +335 -259
- package/dist/config/validators/validate.js +13 -11
- package/dist/config/validators/validate.js.map +1 -1
- package/dist/index.d.ts +4 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/lib/authentication/authentication.d.ts +2 -2
- 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 +11 -26
- 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 +11 -3
- 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 +10 -7
- package/dist/lib/components/Header.js.map +1 -1
- package/dist/lib/components/Heading.d.ts +1 -1
- package/dist/lib/components/Layout.js +6 -3
- package/dist/lib/components/Layout.js.map +1 -1
- package/dist/lib/components/MobileTopNavigation.js +6 -7
- package/dist/lib/components/MobileTopNavigation.js.map +1 -1
- package/dist/lib/components/SlotletProvider.d.ts +2 -1
- package/dist/lib/components/SlotletProvider.js.map +1 -1
- package/dist/lib/components/SyntaxHighlight.js +19 -12
- 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 +2 -0
- package/dist/lib/components/TopNavigation.js +36 -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 -16
- 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 +18 -10
- package/dist/lib/components/index.js +2 -3
- package/dist/lib/components/index.js.map +1 -1
- package/dist/lib/components/navigation/Sidebar.js +3 -3
- package/dist/lib/components/navigation/Sidebar.js.map +1 -1
- package/dist/lib/components/navigation/SidebarCategory.js +2 -4
- package/dist/lib/components/navigation/SidebarCategory.js.map +1 -1
- package/dist/lib/components/navigation/SidebarItem.js +1 -3
- package/dist/lib/components/navigation/SidebarItem.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 -14
- 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 +13 -12
- package/dist/lib/core/plugins.js.map +1 -1
- package/dist/lib/errors/ErrorAlert.js +1 -1
- package/dist/lib/errors/ErrorAlert.js.map +1 -1
- package/dist/lib/oas/graphql/index.js +4 -4
- package/dist/lib/oas/graphql/index.js.map +1 -1
- package/dist/lib/oas/parser/upgrade/index.js +3 -1
- package/dist/lib/oas/parser/upgrade/index.js.map +1 -1
- 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.map +1 -1
- package/dist/lib/plugins/custom-pages/CustomPage.js +2 -2
- package/dist/lib/plugins/custom-pages/index.d.ts +2 -2
- package/dist/lib/plugins/custom-pages/index.js.map +1 -1
- package/dist/lib/plugins/markdown/index.d.ts +6 -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 +21 -22
- 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 +102 -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 +13 -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 +4 -2
- package/dist/lib/plugins/openapi/graphql/gql.js.map +1 -1
- package/dist/lib/plugins/openapi/graphql/graphql.d.ts +32 -8
- package/dist/lib/plugins/openapi/graphql/graphql.js +194 -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/playground/Playground.js +1 -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/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 +2 -2
- package/dist/lib/plugins/search-inkeep/index.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 +1 -1
- package/dist/lib/util/MdxComponents.js.map +1 -1
- package/dist/lib/util/useExposedProps.js +3 -2
- package/dist/lib/util/useExposedProps.js.map +1 -1
- 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 +12 -3
- package/dist/vite/build.js.map +1 -1
- package/dist/vite/config.d.ts +2 -8
- package/dist/vite/config.js +24 -60
- package/dist/vite/config.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/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 +33 -0
- package/dist/vite/output.js.map +1 -0
- package/dist/vite/plugin-component.js +17 -7
- package/dist/vite/plugin-component.js.map +1 -1
- 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 +2 -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-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 +3 -2
- package/dist/vite/plugin-mdx.js.map +1 -1
- package/dist/vite/plugin-sidebar.js +7 -6
- package/dist/vite/plugin-sidebar.js.map +1 -1
- package/dist/vite/plugin.js +2 -4
- package/dist/vite/plugin.js.map +1 -1
- package/dist/vite/prerender.d.ts +5 -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/lib/{utils-G5XSiZc9.js → AnchorLink-CDlhr8gL.js} +232 -275
- package/lib/AnchorLink-CDlhr8gL.js.map +1 -0
- package/lib/{AuthenticationPlugin-tBvLKsFg.js → AuthenticationPlugin-DeGDVa1r.js} +6 -5
- package/lib/{AuthenticationPlugin-tBvLKsFg.js.map → AuthenticationPlugin-DeGDVa1r.js.map} +1 -1
- package/lib/Button-jK0EsymC.js +48 -0
- package/lib/Button-jK0EsymC.js.map +1 -0
- package/lib/{CategoryHeading-D2WS6sRI.js → CategoryHeading-Bb9dqxD3.js} +4 -4
- package/lib/{CategoryHeading-D2WS6sRI.js.map → CategoryHeading-Bb9dqxD3.js.map} +1 -1
- package/lib/{ClientOnly-CVN6leDu.js → ClientOnly-E7hGysn1.js} +4 -4
- 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-ievDDhFT.js +15192 -0
- package/lib/Markdown-ievDDhFT.js.map +1 -0
- package/lib/{MdxPage-tWI_P8wP.js → MdxPage-Bwn-VSsH.js} +32 -30
- package/lib/{MdxPage-tWI_P8wP.js.map → MdxPage-Bwn-VSsH.js.map} +1 -1
- package/lib/OperationList-BwBl1xrD.js +4691 -0
- package/lib/OperationList-BwBl1xrD.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-DyomlzGx.js +252 -0
- package/lib/SlotletProvider-DyomlzGx.js.map +1 -0
- package/lib/Spinner-3cQDBVGr.js +7 -0
- package/lib/Spinner-3cQDBVGr.js.map +1 -0
- package/lib/SyntaxHighlight-DkLOsjHS.js +2983 -0
- package/lib/SyntaxHighlight-DkLOsjHS.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/assets/{worker-Bf8vjASY.js → worker-CPsGZsve.js} +565 -561
- package/lib/assets/{worker-Bf8vjASY.js.map → worker-CPsGZsve.js.map} +1 -1
- 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-DK-g7kbB.js +16089 -0
- package/lib/createServer-DK-g7kbB.js.map +1 -0
- package/lib/hook-hEqe7fPB.js +227 -0
- package/lib/hook-hEqe7fPB.js.map +1 -0
- package/lib/index-BuAyrJe3.js +46 -0
- package/lib/index-BuAyrJe3.js.map +1 -0
- package/lib/index-Czzd9rjU.js +899 -0
- package/lib/index-Czzd9rjU.js.map +1 -0
- package/lib/index-DNxQ_rCt.js +1273 -0
- package/lib/index-DNxQ_rCt.js.map +1 -0
- package/lib/index-Yn8c3UWE.js +921 -0
- package/lib/index-Yn8c3UWE.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/{router-BsfSoK2j.js → router-lfyopgBI.js} +23 -23
- package/lib/{router-BsfSoK2j.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-DEoP3GGJ.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 +124 -138
- package/lib/zudoku.auth-openid.js.map +1 -1
- package/lib/zudoku.components.js +1128 -2987
- 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-keys.js +24 -21
- package/lib/zudoku.plugin-api-keys.js.map +1 -1
- package/lib/zudoku.plugin-custom-pages.js +9 -8
- package/lib/zudoku.plugin-custom-pages.js.map +1 -1
- package/lib/zudoku.plugin-markdown.js +93 -27
- package/lib/zudoku.plugin-markdown.js.map +1 -1
- package/lib/zudoku.plugin-openapi.js +6 -10
- 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 +1 -1
- package/lib/zudoku.plugin-search-inkeep.js.map +1 -1
- package/package.json +43 -11
- package/src/app/demo.tsx +0 -3
- package/src/app/entry.client.tsx +18 -2
- package/src/app/entry.server.tsx +60 -50
- package/src/app/main.css +5 -1
- package/src/app/main.tsx +14 -30
- package/src/app/standalone.tsx +1 -4
- package/src/lib/authentication/authentication.ts +2 -2
- package/src/lib/authentication/hook.ts +1 -3
- package/src/lib/authentication/providers/auth0.tsx +17 -11
- package/src/lib/authentication/providers/openid.tsx +12 -30
- 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 -9
- package/src/lib/components/ClientOnly.tsx +6 -3
- package/src/lib/components/DeveloperHint.tsx +6 -1
- package/src/lib/components/Header.tsx +50 -40
- package/src/lib/components/Layout.tsx +43 -36
- package/src/lib/components/MobileTopNavigation.tsx +15 -18
- package/src/lib/components/SlotletProvider.tsx +2 -0
- package/src/lib/components/SyntaxHighlight.tsx +85 -46
- package/src/lib/components/ThemeSwitch.tsx +26 -0
- package/src/lib/components/TopNavigation.tsx +66 -24
- 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 +2 -3
- package/src/lib/components/navigation/Sidebar.tsx +5 -5
- package/src/lib/components/navigation/SidebarCategory.tsx +2 -4
- package/src/lib/components/navigation/SidebarItem.tsx +1 -3
- package/src/lib/components/navigation/utils.ts +11 -16
- package/src/lib/core/{DevPortalContext.ts → ZudokuContext.ts} +6 -18
- package/src/lib/core/plugins.ts +14 -16
- package/src/lib/errors/ErrorAlert.tsx +2 -1
- package/src/lib/oas/graphql/index.ts +4 -4
- package/src/lib/oas/parser/upgrade/index.ts +3 -1
- package/src/lib/plugins/api-keys/CreateApiKey.tsx +2 -2
- package/src/lib/plugins/api-keys/index.tsx +9 -9
- package/src/lib/plugins/custom-pages/CustomPage.tsx +2 -2
- package/src/lib/plugins/custom-pages/index.tsx +2 -2
- package/src/lib/plugins/markdown/index.tsx +50 -13
- package/src/lib/plugins/markdown/resolver.ts +92 -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 +20 -40
- 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 +140 -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 +18 -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 +10 -27
- package/src/lib/plugins/openapi/graphql/graphql.ts +233 -665
- package/src/lib/plugins/openapi/index.tsx +42 -67
- package/src/lib/plugins/openapi/playground/Playground.tsx +3 -3
- package/src/lib/plugins/openapi/playground/PlaygroundDialog.tsx +1 -1
- 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 +2 -2
- 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 +0 -1
- package/src/lib/util/useExposedProps.tsx +8 -2
- 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/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-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/ClientOnly-CVN6leDu.js.map +0 -1
- package/lib/DeveloperHint-CRiZjqd2.js +0 -16
- package/lib/DeveloperHint-CRiZjqd2.js.map +0 -1
- package/lib/Input-CO-1DOZa.js +0 -2229
- package/lib/Input-CO-1DOZa.js.map +0 -1
- package/lib/Markdown-DM4zv3MA.js +0 -20442
- package/lib/Markdown-DM4zv3MA.js.map +0 -1
- package/lib/OperationList-Cd3lue0b.js +0 -600
- package/lib/OperationList-Cd3lue0b.js.map +0 -1
- package/lib/Route-DI0Y0pIV.js +0 -13
- package/lib/Route-DI0Y0pIV.js.map +0 -1
- package/lib/SlotletProvider-CBqY8mp6.js +0 -241
- package/lib/SlotletProvider-CBqY8mp6.js.map +0 -1
- package/lib/Spinner-DFQhPMBl.js +0 -505
- package/lib/Spinner-DFQhPMBl.js.map +0 -1
- package/lib/ZudokuContext-DEoP3GGJ.js.map +0 -1
- package/lib/index-Bs9roz8y.js +0 -5973
- package/lib/index-Bs9roz8y.js.map +0 -1
- package/lib/index-CBr6BM_4.js +0 -2867
- package/lib/index-CBr6BM_4.js.map +0 -1
- package/lib/index-CRo94sKK.js +0 -1783
- package/lib/index-CRo94sKK.js.map +0 -1
- package/lib/index-UUT9q9f9.js +0 -124
- package/lib/index-UUT9q9f9.js.map +0 -1
- package/lib/joinPath-B7kNnUX4.js +0 -8
- package/lib/joinPath-B7kNnUX4.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/useExposedProps-B9K-9GTc.js +0 -9
- package/lib/useExposedProps-B9K-9GTc.js.map +0 -1
- package/lib/utils-G5XSiZc9.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/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
|
@@ -1,32 +1,31 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var T = (e, t, r) =>
|
|
4
|
-
import
|
|
5
|
-
import { g as
|
|
6
|
-
import { j as
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
return h.useMemo(
|
|
1
|
+
var re = Object.defineProperty;
|
|
2
|
+
var ne = (e, t, r) => t in e ? re(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
|
|
3
|
+
var T = (e, t, r) => ne(e, typeof t != "symbol" ? t + "" : t, r);
|
|
4
|
+
import d, { Component as L } from "react";
|
|
5
|
+
import { g as F } from "./_commonjsHelpers-BkfeUUK-.js";
|
|
6
|
+
import { j as se } from "./jsx-runtime-B6kdoens.js";
|
|
7
|
+
import { L as oe } from "./index-Yn8c3UWE.js";
|
|
8
|
+
import { u as ie } from "./index-Czzd9rjU.js";
|
|
9
|
+
const k = {}, X = d.createContext(k);
|
|
10
|
+
function ae(e) {
|
|
11
|
+
const t = d.useContext(X);
|
|
12
|
+
return d.useMemo(
|
|
14
13
|
function() {
|
|
15
14
|
return typeof e == "function" ? e(t) : { ...t, ...e };
|
|
16
15
|
},
|
|
17
16
|
[t, e]
|
|
18
17
|
);
|
|
19
18
|
}
|
|
20
|
-
function
|
|
19
|
+
function ze(e) {
|
|
21
20
|
let t;
|
|
22
|
-
return e.disableParentContext ? t = typeof e.components == "function" ? e.components(
|
|
23
|
-
|
|
21
|
+
return e.disableParentContext ? t = typeof e.components == "function" ? e.components(k) : e.components || k : t = ae(e.components), d.createElement(
|
|
22
|
+
X.Provider,
|
|
24
23
|
{ value: t },
|
|
25
24
|
e.children
|
|
26
25
|
);
|
|
27
26
|
}
|
|
28
|
-
var
|
|
29
|
-
function
|
|
27
|
+
var le = typeof Element < "u", ce = typeof Map == "function", ue = typeof Set == "function", fe = typeof ArrayBuffer == "function" && !!ArrayBuffer.isView;
|
|
28
|
+
function x(e, t) {
|
|
30
29
|
if (e === t) return !0;
|
|
31
30
|
if (e && t && typeof e == "object" && typeof t == "object") {
|
|
32
31
|
if (e.constructor !== t.constructor) return !1;
|
|
@@ -34,25 +33,25 @@ function P(e, t) {
|
|
|
34
33
|
if (Array.isArray(e)) {
|
|
35
34
|
if (r = e.length, r != t.length) return !1;
|
|
36
35
|
for (n = r; n-- !== 0; )
|
|
37
|
-
if (!
|
|
36
|
+
if (!x(e[n], t[n])) return !1;
|
|
38
37
|
return !0;
|
|
39
38
|
}
|
|
40
39
|
var o;
|
|
41
|
-
if (
|
|
40
|
+
if (ce && e instanceof Map && t instanceof Map) {
|
|
42
41
|
if (e.size !== t.size) return !1;
|
|
43
42
|
for (o = e.entries(); !(n = o.next()).done; )
|
|
44
43
|
if (!t.has(n.value[0])) return !1;
|
|
45
44
|
for (o = e.entries(); !(n = o.next()).done; )
|
|
46
|
-
if (!
|
|
45
|
+
if (!x(n.value[1], t.get(n.value[0]))) return !1;
|
|
47
46
|
return !0;
|
|
48
47
|
}
|
|
49
|
-
if (
|
|
48
|
+
if (ue && e instanceof Set && t instanceof Set) {
|
|
50
49
|
if (e.size !== t.size) return !1;
|
|
51
50
|
for (o = e.entries(); !(n = o.next()).done; )
|
|
52
51
|
if (!t.has(n.value[0])) return !1;
|
|
53
52
|
return !0;
|
|
54
53
|
}
|
|
55
|
-
if (
|
|
54
|
+
if (fe && ArrayBuffer.isView(e) && ArrayBuffer.isView(t)) {
|
|
56
55
|
if (r = e.length, r != t.length) return !1;
|
|
57
56
|
for (n = r; n-- !== 0; )
|
|
58
57
|
if (e[n] !== t[n]) return !1;
|
|
@@ -64,46 +63,46 @@ function P(e, t) {
|
|
|
64
63
|
if (s = Object.keys(e), r = s.length, r !== Object.keys(t).length) return !1;
|
|
65
64
|
for (n = r; n-- !== 0; )
|
|
66
65
|
if (!Object.prototype.hasOwnProperty.call(t, s[n])) return !1;
|
|
67
|
-
if (
|
|
66
|
+
if (le && e instanceof Element) return !1;
|
|
68
67
|
for (n = r; n-- !== 0; )
|
|
69
|
-
if (!((s[n] === "_owner" || s[n] === "__v" || s[n] === "__o") && e.$$typeof) && !
|
|
68
|
+
if (!((s[n] === "_owner" || s[n] === "__v" || s[n] === "__o") && e.$$typeof) && !x(e[s[n]], t[s[n]]))
|
|
70
69
|
return !1;
|
|
71
70
|
return !0;
|
|
72
71
|
}
|
|
73
72
|
return e !== e && t !== t;
|
|
74
73
|
}
|
|
75
|
-
var
|
|
74
|
+
var pe = function(t, r) {
|
|
76
75
|
try {
|
|
77
|
-
return
|
|
76
|
+
return x(t, r);
|
|
78
77
|
} catch (n) {
|
|
79
78
|
if ((n.message || "").match(/stack|recursion/i))
|
|
80
79
|
return console.warn("react-fast-compare cannot handle circular refs"), !1;
|
|
81
80
|
throw n;
|
|
82
81
|
}
|
|
83
82
|
};
|
|
84
|
-
const
|
|
85
|
-
var
|
|
83
|
+
const me = /* @__PURE__ */ F(pe);
|
|
84
|
+
var de = function(e, t, r, n, s, o, c, i) {
|
|
86
85
|
if (process.env.NODE_ENV !== "production" && t === void 0)
|
|
87
86
|
throw new Error("invariant requires an error message argument");
|
|
88
87
|
if (!e) {
|
|
89
|
-
var
|
|
88
|
+
var l;
|
|
90
89
|
if (t === void 0)
|
|
91
|
-
|
|
90
|
+
l = new Error(
|
|
92
91
|
"Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings."
|
|
93
92
|
);
|
|
94
93
|
else {
|
|
95
|
-
var
|
|
96
|
-
|
|
94
|
+
var a = [r, n, s, o, c, i], u = 0;
|
|
95
|
+
l = new Error(
|
|
97
96
|
t.replace(/%s/g, function() {
|
|
98
|
-
return
|
|
97
|
+
return a[u++];
|
|
99
98
|
})
|
|
100
|
-
),
|
|
99
|
+
), l.name = "Invariant Violation";
|
|
101
100
|
}
|
|
102
|
-
throw
|
|
101
|
+
throw l.framesToPop = 1, l;
|
|
103
102
|
}
|
|
104
|
-
},
|
|
105
|
-
const
|
|
106
|
-
var
|
|
103
|
+
}, he = de;
|
|
104
|
+
const z = /* @__PURE__ */ F(he);
|
|
105
|
+
var ye = function(t, r, n, s) {
|
|
107
106
|
var o = n ? n.call(s, t, r) : void 0;
|
|
108
107
|
if (o !== void 0)
|
|
109
108
|
return !!o;
|
|
@@ -111,21 +110,21 @@ var be = function(t, r, n, s) {
|
|
|
111
110
|
return !0;
|
|
112
111
|
if (typeof t != "object" || !t || typeof r != "object" || !r)
|
|
113
112
|
return !1;
|
|
114
|
-
var
|
|
115
|
-
if (
|
|
113
|
+
var c = Object.keys(t), i = Object.keys(r);
|
|
114
|
+
if (c.length !== i.length)
|
|
116
115
|
return !1;
|
|
117
|
-
for (var
|
|
118
|
-
var u =
|
|
119
|
-
if (!
|
|
116
|
+
for (var l = Object.prototype.hasOwnProperty.bind(r), a = 0; a < c.length; a++) {
|
|
117
|
+
var u = c[a];
|
|
118
|
+
if (!l(u))
|
|
120
119
|
return !1;
|
|
121
|
-
var f = t[u],
|
|
122
|
-
if (o = n ? n.call(s, f,
|
|
120
|
+
var f = t[u], h = r[u];
|
|
121
|
+
if (o = n ? n.call(s, f, h, u) : void 0, o === !1 || o === void 0 && f !== h)
|
|
123
122
|
return !1;
|
|
124
123
|
}
|
|
125
124
|
return !0;
|
|
126
125
|
};
|
|
127
|
-
const
|
|
128
|
-
var
|
|
126
|
+
const Te = /* @__PURE__ */ F(ye);
|
|
127
|
+
var W = /* @__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))(W || {}), I = {
|
|
129
128
|
link: { rel: ["amphtml", "canonical", "alternate"] },
|
|
130
129
|
script: { type: ["application/ld+json"] },
|
|
131
130
|
meta: {
|
|
@@ -147,7 +146,7 @@ var ee = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
|
|
|
147
146
|
"twitter:site"
|
|
148
147
|
]
|
|
149
148
|
}
|
|
150
|
-
},
|
|
149
|
+
}, N = Object.values(W), U = {
|
|
151
150
|
accesskey: "accessKey",
|
|
152
151
|
charset: "charSet",
|
|
153
152
|
class: "className",
|
|
@@ -156,36 +155,36 @@ var ee = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
|
|
|
156
155
|
"http-equiv": "httpEquiv",
|
|
157
156
|
itemprop: "itemProp",
|
|
158
157
|
tabindex: "tabIndex"
|
|
159
|
-
},
|
|
158
|
+
}, ge = Object.entries(U).reduce(
|
|
160
159
|
(e, [t, r]) => (e[r] = t, e),
|
|
161
160
|
{}
|
|
162
|
-
), y = "data-rh",
|
|
161
|
+
), y = "data-rh", C = {
|
|
163
162
|
DEFAULT_TITLE: "defaultTitle",
|
|
164
163
|
DEFER: "defer",
|
|
165
164
|
ENCODE_SPECIAL_CHARACTERS: "encodeSpecialCharacters",
|
|
166
165
|
ON_CHANGE_CLIENT_STATE: "onChangeClientState",
|
|
167
166
|
TITLE_TEMPLATE: "titleTemplate",
|
|
168
167
|
PRIORITIZE_SEO_TAGS: "prioritizeSeoTags"
|
|
169
|
-
},
|
|
168
|
+
}, E = (e, t) => {
|
|
170
169
|
for (let r = e.length - 1; r >= 0; r -= 1) {
|
|
171
170
|
const n = e[r];
|
|
172
171
|
if (Object.prototype.hasOwnProperty.call(n, t))
|
|
173
172
|
return n[t];
|
|
174
173
|
}
|
|
175
174
|
return null;
|
|
176
|
-
},
|
|
177
|
-
let t =
|
|
175
|
+
}, ve = (e) => {
|
|
176
|
+
let t = E(
|
|
178
177
|
e,
|
|
179
178
|
"title"
|
|
180
179
|
/* TITLE */
|
|
181
180
|
);
|
|
182
|
-
const r =
|
|
181
|
+
const r = E(e, C.TITLE_TEMPLATE);
|
|
183
182
|
if (Array.isArray(t) && (t = t.join("")), r && t)
|
|
184
183
|
return r.replace(/%s/g, () => t);
|
|
185
|
-
const n =
|
|
184
|
+
const n = E(e, C.DEFAULT_TITLE);
|
|
186
185
|
return t || n || void 0;
|
|
187
|
-
},
|
|
188
|
-
}),
|
|
186
|
+
}, Ae = (e) => E(e, C.ON_CHANGE_CLIENT_STATE) || (() => {
|
|
187
|
+
}), $ = (e, t) => t.filter((r) => typeof r[e] < "u").map((r) => r[e]).reduce((r, n) => ({ ...r, ...n }), {}), Ce = (e, t) => t.filter((r) => typeof r.base < "u").map((r) => r.base).reverse().reduce((r, n) => {
|
|
189
188
|
if (!r.length) {
|
|
190
189
|
const s = Object.keys(n);
|
|
191
190
|
for (let o = 0; o < s.length; o += 1) {
|
|
@@ -195,51 +194,51 @@ var ee = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
|
|
|
195
194
|
}
|
|
196
195
|
}
|
|
197
196
|
return r;
|
|
198
|
-
}, []),
|
|
197
|
+
}, []), Ee = (e) => console && typeof console.warn == "function" && console.warn(e), b = (e, t, r) => {
|
|
199
198
|
const n = {};
|
|
200
|
-
return r.filter((s) => Array.isArray(s[e]) ? !0 : (typeof s[e] < "u" &&
|
|
199
|
+
return r.filter((s) => Array.isArray(s[e]) ? !0 : (typeof s[e] < "u" && Ee(
|
|
201
200
|
`Helmet: ${e} should be of type "Array". Instead found type "${typeof s[e]}"`
|
|
202
201
|
), !1)).map((s) => s[e]).reverse().reduce((s, o) => {
|
|
203
|
-
const
|
|
204
|
-
o.filter((
|
|
205
|
-
let
|
|
206
|
-
const u = Object.keys(
|
|
207
|
-
for (let
|
|
208
|
-
const
|
|
209
|
-
t.indexOf(g) !== -1 && !(
|
|
202
|
+
const c = {};
|
|
203
|
+
o.filter((l) => {
|
|
204
|
+
let a;
|
|
205
|
+
const u = Object.keys(l);
|
|
206
|
+
for (let h = 0; h < u.length; h += 1) {
|
|
207
|
+
const p = u[h], g = p.toLowerCase();
|
|
208
|
+
t.indexOf(g) !== -1 && !(a === "rel" && l[a].toLowerCase() === "canonical") && !(g === "rel" && l[g].toLowerCase() === "stylesheet") && (a = g), t.indexOf(p) !== -1 && (p === "innerHTML" || p === "cssText" || p === "itemprop") && (a = p);
|
|
210
209
|
}
|
|
211
|
-
if (!
|
|
210
|
+
if (!a || !l[a])
|
|
212
211
|
return !1;
|
|
213
|
-
const f = a
|
|
214
|
-
return n[
|
|
215
|
-
}).reverse().forEach((
|
|
216
|
-
const i = Object.keys(
|
|
217
|
-
for (let
|
|
218
|
-
const
|
|
219
|
-
...n[
|
|
220
|
-
...
|
|
212
|
+
const f = l[a].toLowerCase();
|
|
213
|
+
return n[a] || (n[a] = {}), c[a] || (c[a] = {}), n[a][f] ? !1 : (c[a][f] = !0, !0);
|
|
214
|
+
}).reverse().forEach((l) => s.push(l));
|
|
215
|
+
const i = Object.keys(c);
|
|
216
|
+
for (let l = 0; l < i.length; l += 1) {
|
|
217
|
+
const a = i[l], u = {
|
|
218
|
+
...n[a],
|
|
219
|
+
...c[a]
|
|
221
220
|
};
|
|
222
|
-
n[
|
|
221
|
+
n[a] = u;
|
|
223
222
|
}
|
|
224
223
|
return s;
|
|
225
224
|
}, []).reverse();
|
|
226
|
-
},
|
|
225
|
+
}, be = (e, t) => {
|
|
227
226
|
if (Array.isArray(e) && e.length) {
|
|
228
227
|
for (let r = 0; r < e.length; r += 1)
|
|
229
228
|
if (e[r][t])
|
|
230
229
|
return !0;
|
|
231
230
|
}
|
|
232
231
|
return !1;
|
|
233
|
-
},
|
|
234
|
-
baseTag:
|
|
232
|
+
}, Oe = (e) => ({
|
|
233
|
+
baseTag: Ce([
|
|
235
234
|
"href"
|
|
236
235
|
/* HREF */
|
|
237
236
|
], e),
|
|
238
|
-
bodyAttributes:
|
|
239
|
-
defer:
|
|
240
|
-
encode:
|
|
241
|
-
htmlAttributes:
|
|
242
|
-
linkTags:
|
|
237
|
+
bodyAttributes: $("bodyAttributes", e),
|
|
238
|
+
defer: E(e, C.DEFER),
|
|
239
|
+
encode: E(e, C.ENCODE_SPECIAL_CHARACTERS),
|
|
240
|
+
htmlAttributes: $("htmlAttributes", e),
|
|
241
|
+
linkTags: b(
|
|
243
242
|
"link",
|
|
244
243
|
[
|
|
245
244
|
"rel",
|
|
@@ -248,7 +247,7 @@ var ee = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
|
|
|
248
247
|
],
|
|
249
248
|
e
|
|
250
249
|
),
|
|
251
|
-
metaTags:
|
|
250
|
+
metaTags: b(
|
|
252
251
|
"meta",
|
|
253
252
|
[
|
|
254
253
|
"name",
|
|
@@ -260,12 +259,12 @@ var ee = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
|
|
|
260
259
|
],
|
|
261
260
|
e
|
|
262
261
|
),
|
|
263
|
-
noscriptTags:
|
|
262
|
+
noscriptTags: b("noscript", [
|
|
264
263
|
"innerHTML"
|
|
265
264
|
/* INNER_HTML */
|
|
266
265
|
], e),
|
|
267
|
-
onChangeClientState:
|
|
268
|
-
scriptTags:
|
|
266
|
+
onChangeClientState: Ae(e),
|
|
267
|
+
scriptTags: b(
|
|
269
268
|
"script",
|
|
270
269
|
[
|
|
271
270
|
"src",
|
|
@@ -274,163 +273,163 @@ var ee = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
|
|
|
274
273
|
],
|
|
275
274
|
e
|
|
276
275
|
),
|
|
277
|
-
styleTags:
|
|
276
|
+
styleTags: b("style", [
|
|
278
277
|
"cssText"
|
|
279
278
|
/* CSS_TEXT */
|
|
280
279
|
], e),
|
|
281
|
-
title:
|
|
282
|
-
titleAttributes:
|
|
283
|
-
prioritizeSeoTags:
|
|
284
|
-
}),
|
|
280
|
+
title: ve(e),
|
|
281
|
+
titleAttributes: $("titleAttributes", e),
|
|
282
|
+
prioritizeSeoTags: be(e, C.PRIORITIZE_SEO_TAGS)
|
|
283
|
+
}), Z = (e) => Array.isArray(e) ? e.join("") : e, Se = (e, t) => {
|
|
285
284
|
const r = Object.keys(e);
|
|
286
285
|
for (let n = 0; n < r.length; n += 1)
|
|
287
286
|
if (t[r[n]] && t[r[n]].includes(e[r[n]]))
|
|
288
287
|
return !0;
|
|
289
288
|
return !1;
|
|
290
|
-
},
|
|
291
|
-
(r, n) => (
|
|
289
|
+
}, D = (e, t) => Array.isArray(e) ? e.reduce(
|
|
290
|
+
(r, n) => (Se(n, t) ? r.priority.push(n) : r.default.push(n), r),
|
|
292
291
|
{ priority: [], default: [] }
|
|
293
|
-
) : { default: e, priority: [] },
|
|
292
|
+
) : { default: e, priority: [] }, V = (e, t) => ({
|
|
294
293
|
...e,
|
|
295
294
|
[t]: void 0
|
|
296
|
-
}),
|
|
295
|
+
}), we = [
|
|
297
296
|
"noscript",
|
|
298
297
|
"script",
|
|
299
298
|
"style"
|
|
300
299
|
/* STYLE */
|
|
301
|
-
],
|
|
300
|
+
], H = (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) => {
|
|
302
301
|
const n = typeof e[r] < "u" ? `${r}="${e[r]}"` : `${r}`;
|
|
303
302
|
return t ? `${t} ${n}` : n;
|
|
304
|
-
}, ""),
|
|
305
|
-
const s =
|
|
306
|
-
return s ? `<${e} ${y}="true" ${s}>${
|
|
303
|
+
}, ""), xe = (e, t, r, n) => {
|
|
304
|
+
const s = G(r), o = Z(t);
|
|
305
|
+
return s ? `<${e} ${y}="true" ${s}>${H(
|
|
307
306
|
o,
|
|
308
307
|
n
|
|
309
|
-
)}</${e}>` : `<${e} ${y}="true">${
|
|
308
|
+
)}</${e}>` : `<${e} ${y}="true">${H(
|
|
310
309
|
o,
|
|
311
310
|
n
|
|
312
311
|
)}</${e}>`;
|
|
313
|
-
},
|
|
314
|
-
const o = s,
|
|
315
|
-
(
|
|
316
|
-
).reduce((
|
|
317
|
-
const f = typeof o[u] > "u" ? u : `${u}="${
|
|
318
|
-
return
|
|
319
|
-
}, ""), i = o.innerHTML || o.cssText || "",
|
|
320
|
-
return `${n}<${e} ${y}="true" ${
|
|
321
|
-
}, ""),
|
|
322
|
-
const s =
|
|
312
|
+
}, Pe = (e, t, r = !0) => t.reduce((n, s) => {
|
|
313
|
+
const o = s, c = Object.keys(o).filter(
|
|
314
|
+
(a) => !(a === "innerHTML" || a === "cssText")
|
|
315
|
+
).reduce((a, u) => {
|
|
316
|
+
const f = typeof o[u] > "u" ? u : `${u}="${H(o[u], r)}"`;
|
|
317
|
+
return a ? `${a} ${f}` : f;
|
|
318
|
+
}, ""), i = o.innerHTML || o.cssText || "", l = we.indexOf(e) === -1;
|
|
319
|
+
return `${n}<${e} ${y}="true" ${c}${l ? "/>" : `>${i}</${e}>`}`;
|
|
320
|
+
}, ""), J = (e, t = {}) => Object.keys(e).reduce((r, n) => {
|
|
321
|
+
const s = U[n];
|
|
323
322
|
return r[s || n] = e[n], r;
|
|
324
|
-
}, t),
|
|
323
|
+
}, t), Ie = (e, t, r) => {
|
|
325
324
|
const n = {
|
|
326
325
|
key: t,
|
|
327
326
|
[y]: !0
|
|
328
|
-
}, s =
|
|
329
|
-
return [
|
|
330
|
-
},
|
|
327
|
+
}, s = J(r, n);
|
|
328
|
+
return [d.createElement("title", s, t)];
|
|
329
|
+
}, P = (e, t) => t.map((r, n) => {
|
|
331
330
|
const s = {
|
|
332
331
|
key: n,
|
|
333
332
|
[y]: !0
|
|
334
333
|
};
|
|
335
334
|
return Object.keys(r).forEach((o) => {
|
|
336
|
-
const i =
|
|
335
|
+
const i = U[o] || o;
|
|
337
336
|
if (i === "innerHTML" || i === "cssText") {
|
|
338
|
-
const
|
|
339
|
-
s.dangerouslySetInnerHTML = { __html:
|
|
337
|
+
const l = r.innerHTML || r.cssText;
|
|
338
|
+
s.dangerouslySetInnerHTML = { __html: l };
|
|
340
339
|
} else
|
|
341
340
|
s[i] = r[o];
|
|
342
|
-
}),
|
|
343
|
-
}),
|
|
341
|
+
}), d.createElement(e, s);
|
|
342
|
+
}), m = (e, t, r = !0) => {
|
|
344
343
|
switch (e) {
|
|
345
344
|
case "title":
|
|
346
345
|
return {
|
|
347
|
-
toComponent: () =>
|
|
348
|
-
toString: () =>
|
|
346
|
+
toComponent: () => Ie(e, t.title, t.titleAttributes),
|
|
347
|
+
toString: () => xe(e, t.title, t.titleAttributes, r)
|
|
349
348
|
};
|
|
350
349
|
case "bodyAttributes":
|
|
351
350
|
case "htmlAttributes":
|
|
352
351
|
return {
|
|
353
|
-
toComponent: () =>
|
|
354
|
-
toString: () =>
|
|
352
|
+
toComponent: () => J(t),
|
|
353
|
+
toString: () => G(t)
|
|
355
354
|
};
|
|
356
355
|
default:
|
|
357
356
|
return {
|
|
358
|
-
toComponent: () =>
|
|
359
|
-
toString: () =>
|
|
357
|
+
toComponent: () => P(e, t),
|
|
358
|
+
toString: () => Pe(e, t, r)
|
|
360
359
|
};
|
|
361
360
|
}
|
|
362
|
-
},
|
|
363
|
-
const s =
|
|
361
|
+
}, $e = ({ metaTags: e, linkTags: t, scriptTags: r, encode: n }) => {
|
|
362
|
+
const s = D(e, I.meta), o = D(t, I.link), c = D(r, I.script);
|
|
364
363
|
return {
|
|
365
364
|
priorityMethods: {
|
|
366
365
|
toComponent: () => [
|
|
367
|
-
...
|
|
368
|
-
...
|
|
369
|
-
...
|
|
366
|
+
...P("meta", s.priority),
|
|
367
|
+
...P("link", o.priority),
|
|
368
|
+
...P("script", c.priority)
|
|
370
369
|
],
|
|
371
370
|
toString: () => (
|
|
372
371
|
// generate all the tags as strings and concatenate them
|
|
373
|
-
`${
|
|
372
|
+
`${m("meta", s.priority, n)} ${m(
|
|
374
373
|
"link",
|
|
375
374
|
o.priority,
|
|
376
375
|
n
|
|
377
|
-
)} ${
|
|
376
|
+
)} ${m("script", c.priority, n)}`
|
|
378
377
|
)
|
|
379
378
|
},
|
|
380
379
|
metaTags: s.default,
|
|
381
380
|
linkTags: o.default,
|
|
382
|
-
scriptTags:
|
|
381
|
+
scriptTags: c.default
|
|
383
382
|
};
|
|
384
|
-
},
|
|
383
|
+
}, De = (e) => {
|
|
385
384
|
const {
|
|
386
385
|
baseTag: t,
|
|
387
386
|
bodyAttributes: r,
|
|
388
387
|
encode: n = !0,
|
|
389
388
|
htmlAttributes: s,
|
|
390
389
|
noscriptTags: o,
|
|
391
|
-
styleTags:
|
|
390
|
+
styleTags: c,
|
|
392
391
|
title: i = "",
|
|
393
|
-
titleAttributes:
|
|
394
|
-
prioritizeSeoTags:
|
|
392
|
+
titleAttributes: l,
|
|
393
|
+
prioritizeSeoTags: a
|
|
395
394
|
} = e;
|
|
396
|
-
let { linkTags: u, metaTags: f, scriptTags:
|
|
395
|
+
let { linkTags: u, metaTags: f, scriptTags: h } = e, p = {
|
|
397
396
|
toComponent: () => {
|
|
398
397
|
},
|
|
399
398
|
toString: () => ""
|
|
400
399
|
};
|
|
401
|
-
return
|
|
402
|
-
priority:
|
|
403
|
-
base:
|
|
404
|
-
bodyAttributes:
|
|
405
|
-
htmlAttributes:
|
|
406
|
-
link:
|
|
407
|
-
meta:
|
|
408
|
-
noscript:
|
|
409
|
-
script:
|
|
410
|
-
style:
|
|
411
|
-
title:
|
|
400
|
+
return a && ({ priorityMethods: p, linkTags: u, metaTags: f, scriptTags: h } = $e(e)), {
|
|
401
|
+
priority: p,
|
|
402
|
+
base: m("base", t, n),
|
|
403
|
+
bodyAttributes: m("bodyAttributes", r, n),
|
|
404
|
+
htmlAttributes: m("htmlAttributes", s, n),
|
|
405
|
+
link: m("link", u, n),
|
|
406
|
+
meta: m("meta", f, n),
|
|
407
|
+
noscript: m("noscript", o, n),
|
|
408
|
+
script: m("script", h, n),
|
|
409
|
+
style: m("style", c, n),
|
|
410
|
+
title: m("title", { title: i, titleAttributes: l }, n)
|
|
412
411
|
};
|
|
413
|
-
},
|
|
412
|
+
}, _ = De, w = [], Q = !!(typeof window < "u" && window.document && window.document.createElement), R = class {
|
|
414
413
|
constructor(e, t) {
|
|
415
414
|
T(this, "instances", []);
|
|
416
|
-
T(this, "canUseDOM",
|
|
415
|
+
T(this, "canUseDOM", Q);
|
|
417
416
|
T(this, "context");
|
|
418
417
|
T(this, "value", {
|
|
419
418
|
setHelmet: (e) => {
|
|
420
419
|
this.context.helmet = e;
|
|
421
420
|
},
|
|
422
421
|
helmetInstances: {
|
|
423
|
-
get: () => this.canUseDOM ?
|
|
422
|
+
get: () => this.canUseDOM ? w : this.instances,
|
|
424
423
|
add: (e) => {
|
|
425
|
-
(this.canUseDOM ?
|
|
424
|
+
(this.canUseDOM ? w : this.instances).push(e);
|
|
426
425
|
},
|
|
427
426
|
remove: (e) => {
|
|
428
|
-
const t = (this.canUseDOM ?
|
|
429
|
-
(this.canUseDOM ?
|
|
427
|
+
const t = (this.canUseDOM ? w : this.instances).indexOf(e);
|
|
428
|
+
(this.canUseDOM ? w : this.instances).splice(t, 1);
|
|
430
429
|
}
|
|
431
430
|
}
|
|
432
431
|
});
|
|
433
|
-
this.context = e, this.canUseDOM = t || !1, t || (e.helmet =
|
|
432
|
+
this.context = e, this.canUseDOM = t || !1, t || (e.helmet = _({
|
|
434
433
|
baseTag: [],
|
|
435
434
|
bodyAttributes: {},
|
|
436
435
|
encodeSpecialCharacters: !0,
|
|
@@ -444,97 +443,97 @@ var ee = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
|
|
|
444
443
|
titleAttributes: {}
|
|
445
444
|
}));
|
|
446
445
|
}
|
|
447
|
-
},
|
|
446
|
+
}, Me = {}, ee = d.createContext(Me), v, ke = (v = class extends L {
|
|
448
447
|
constructor(r) {
|
|
449
448
|
super(r);
|
|
450
449
|
T(this, "helmetData");
|
|
451
|
-
this.helmetData = new
|
|
450
|
+
this.helmetData = new R(this.props.context || {}, v.canUseDOM);
|
|
452
451
|
}
|
|
453
452
|
render() {
|
|
454
|
-
return /* @__PURE__ */
|
|
453
|
+
return /* @__PURE__ */ d.createElement(ee.Provider, { value: this.helmetData.value }, this.props.children);
|
|
455
454
|
}
|
|
456
|
-
}, T(v, "canUseDOM",
|
|
455
|
+
}, T(v, "canUseDOM", Q), v), A = (e, t) => {
|
|
457
456
|
const r = document.head || document.querySelector(
|
|
458
457
|
"head"
|
|
459
458
|
/* HEAD */
|
|
460
459
|
), n = r.querySelectorAll(`${e}[${y}]`), s = [].slice.call(n), o = [];
|
|
461
|
-
let
|
|
460
|
+
let c;
|
|
462
461
|
return t && t.length && t.forEach((i) => {
|
|
463
|
-
const
|
|
464
|
-
for (const
|
|
465
|
-
if (Object.prototype.hasOwnProperty.call(i,
|
|
466
|
-
if (
|
|
467
|
-
|
|
468
|
-
else if (
|
|
469
|
-
|
|
462
|
+
const l = document.createElement(e);
|
|
463
|
+
for (const a in i)
|
|
464
|
+
if (Object.prototype.hasOwnProperty.call(i, a))
|
|
465
|
+
if (a === "innerHTML")
|
|
466
|
+
l.innerHTML = i.innerHTML;
|
|
467
|
+
else if (a === "cssText")
|
|
468
|
+
l.styleSheet ? l.styleSheet.cssText = i.cssText : l.appendChild(document.createTextNode(i.cssText));
|
|
470
469
|
else {
|
|
471
|
-
const u =
|
|
472
|
-
|
|
470
|
+
const u = a, f = typeof i[u] > "u" ? "" : i[u];
|
|
471
|
+
l.setAttribute(a, f);
|
|
473
472
|
}
|
|
474
|
-
|
|
473
|
+
l.setAttribute(y, "true"), s.some((a, u) => (c = u, l.isEqualNode(a))) ? s.splice(c, 1) : o.push(l);
|
|
475
474
|
}), s.forEach((i) => {
|
|
476
|
-
var
|
|
477
|
-
return (
|
|
475
|
+
var l;
|
|
476
|
+
return (l = i.parentNode) == null ? void 0 : l.removeChild(i);
|
|
478
477
|
}), o.forEach((i) => r.appendChild(i)), {
|
|
479
478
|
oldTags: s,
|
|
480
479
|
newTags: o
|
|
481
480
|
};
|
|
482
|
-
},
|
|
481
|
+
}, j = (e, t) => {
|
|
483
482
|
const r = document.getElementsByTagName(e)[0];
|
|
484
483
|
if (!r)
|
|
485
484
|
return;
|
|
486
|
-
const n = r.getAttribute(y), s = n ? n.split(",") : [], o = [...s],
|
|
487
|
-
for (const i of
|
|
488
|
-
const
|
|
489
|
-
r.getAttribute(i) !==
|
|
490
|
-
const
|
|
491
|
-
|
|
485
|
+
const n = r.getAttribute(y), s = n ? n.split(",") : [], o = [...s], c = Object.keys(t);
|
|
486
|
+
for (const i of c) {
|
|
487
|
+
const l = t[i] || "";
|
|
488
|
+
r.getAttribute(i) !== l && r.setAttribute(i, l), s.indexOf(i) === -1 && s.push(i);
|
|
489
|
+
const a = o.indexOf(i);
|
|
490
|
+
a !== -1 && o.splice(a, 1);
|
|
492
491
|
}
|
|
493
492
|
for (let i = o.length - 1; i >= 0; i -= 1)
|
|
494
493
|
r.removeAttribute(o[i]);
|
|
495
|
-
s.length === o.length ? r.removeAttribute(y) : r.getAttribute(y) !==
|
|
496
|
-
},
|
|
497
|
-
typeof e < "u" && document.title !== e && (document.title =
|
|
498
|
-
},
|
|
494
|
+
s.length === o.length ? r.removeAttribute(y) : r.getAttribute(y) !== c.join(",") && r.setAttribute(y, c.join(","));
|
|
495
|
+
}, He = (e, t) => {
|
|
496
|
+
typeof e < "u" && document.title !== e && (document.title = Z(e)), j("title", t);
|
|
497
|
+
}, Y = (e, t) => {
|
|
499
498
|
const {
|
|
500
499
|
baseTag: r,
|
|
501
500
|
bodyAttributes: n,
|
|
502
501
|
htmlAttributes: s,
|
|
503
502
|
linkTags: o,
|
|
504
|
-
metaTags:
|
|
503
|
+
metaTags: c,
|
|
505
504
|
noscriptTags: i,
|
|
506
|
-
onChangeClientState:
|
|
507
|
-
scriptTags:
|
|
505
|
+
onChangeClientState: l,
|
|
506
|
+
scriptTags: a,
|
|
508
507
|
styleTags: u,
|
|
509
508
|
title: f,
|
|
510
|
-
titleAttributes:
|
|
509
|
+
titleAttributes: h
|
|
511
510
|
} = e;
|
|
512
|
-
|
|
513
|
-
const
|
|
511
|
+
j("body", n), j("html", s), He(f, h);
|
|
512
|
+
const p = {
|
|
514
513
|
baseTag: A("base", r),
|
|
515
514
|
linkTags: A("link", o),
|
|
516
|
-
metaTags: A("meta",
|
|
515
|
+
metaTags: A("meta", c),
|
|
517
516
|
noscriptTags: A("noscript", i),
|
|
518
|
-
scriptTags: A("script",
|
|
517
|
+
scriptTags: A("script", a),
|
|
519
518
|
styleTags: A("style", u)
|
|
520
|
-
}, g = {},
|
|
521
|
-
Object.keys(
|
|
522
|
-
const { newTags:
|
|
523
|
-
|
|
524
|
-
}), t && t(),
|
|
525
|
-
}, O = null,
|
|
519
|
+
}, g = {}, q = {};
|
|
520
|
+
Object.keys(p).forEach((S) => {
|
|
521
|
+
const { newTags: K, oldTags: te } = p[S];
|
|
522
|
+
K.length && (g[S] = K), te.length && (q[S] = p[S].oldTags);
|
|
523
|
+
}), t && t(), l(e, g, q);
|
|
524
|
+
}, O = null, _e = (e) => {
|
|
526
525
|
O && cancelAnimationFrame(O), e.defer ? O = requestAnimationFrame(() => {
|
|
527
|
-
|
|
526
|
+
Y(e, () => {
|
|
528
527
|
O = null;
|
|
529
528
|
});
|
|
530
|
-
}) : (
|
|
531
|
-
},
|
|
529
|
+
}) : (Y(e), O = null);
|
|
530
|
+
}, Re = _e, B = class extends L {
|
|
532
531
|
constructor() {
|
|
533
532
|
super(...arguments);
|
|
534
533
|
T(this, "rendered", !1);
|
|
535
534
|
}
|
|
536
535
|
shouldComponentUpdate(t) {
|
|
537
|
-
return !
|
|
536
|
+
return !Te(t, this.props);
|
|
538
537
|
}
|
|
539
538
|
componentDidUpdate() {
|
|
540
539
|
this.emitChange();
|
|
@@ -546,13 +545,13 @@ var ee = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
|
|
|
546
545
|
emitChange() {
|
|
547
546
|
const { helmetInstances: t, setHelmet: r } = this.props.context;
|
|
548
547
|
let n = null;
|
|
549
|
-
const s =
|
|
548
|
+
const s = Oe(
|
|
550
549
|
t.get().map((o) => {
|
|
551
|
-
const
|
|
552
|
-
return delete
|
|
550
|
+
const c = { ...o.props };
|
|
551
|
+
return delete c.context, c;
|
|
553
552
|
})
|
|
554
553
|
);
|
|
555
|
-
|
|
554
|
+
ke.canUseDOM ? Re(s) : _ && (n = _(s)), r(n);
|
|
556
555
|
}
|
|
557
556
|
// componentWillMount will be deprecated
|
|
558
557
|
// for SSR, initialize on first render
|
|
@@ -567,9 +566,9 @@ var ee = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
|
|
|
567
566
|
render() {
|
|
568
567
|
return this.init(), null;
|
|
569
568
|
}
|
|
570
|
-
},
|
|
569
|
+
}, M, Ne = (M = class extends L {
|
|
571
570
|
shouldComponentUpdate(e) {
|
|
572
|
-
return !
|
|
571
|
+
return !me(V(this.props, "helmetData"), V(e, "helmetData"));
|
|
573
572
|
}
|
|
574
573
|
mapNestedChildrenToProps(e, t) {
|
|
575
574
|
if (!t)
|
|
@@ -637,22 +636,22 @@ var ee = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
|
|
|
637
636
|
}), r;
|
|
638
637
|
}
|
|
639
638
|
warnOnInvalidChildren(e, t) {
|
|
640
|
-
return
|
|
641
|
-
|
|
642
|
-
typeof e.type == "function" ? "You may be attempting to nest <Helmet> components within each other, which is not allowed. Refer to our API for more information." : `Only elements types ${
|
|
639
|
+
return z(
|
|
640
|
+
N.some((r) => e.type === r),
|
|
641
|
+
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 ${N.join(
|
|
643
642
|
", "
|
|
644
643
|
)} are allowed. Helmet does not support rendering <${e.type}> elements. Refer to our API for more information.`
|
|
645
|
-
),
|
|
644
|
+
), z(
|
|
646
645
|
!t || typeof t == "string" || Array.isArray(t) && !t.some((r) => typeof r != "string"),
|
|
647
646
|
`Helmet expects a string as a child of <${e.type}>. Did you forget to wrap your children in braces? ( <${e.type}>{\`\`}</${e.type}> ) Refer to our API for more information.`
|
|
648
647
|
), !0;
|
|
649
648
|
}
|
|
650
649
|
mapChildrenToProps(e, t) {
|
|
651
650
|
let r = {};
|
|
652
|
-
return
|
|
651
|
+
return d.Children.forEach(e, (n) => {
|
|
653
652
|
if (!n || !n.props)
|
|
654
653
|
return;
|
|
655
|
-
const { children: s, ...o } = n.props,
|
|
654
|
+
const { children: s, ...o } = n.props, c = Object.keys(o).reduce((l, a) => (l[ge[a] || a] = o[a], l), {});
|
|
656
655
|
let { type: i } = n;
|
|
657
656
|
switch (typeof i == "symbol" ? i = i.toString() : this.warnOnInvalidChildren(n, s), i) {
|
|
658
657
|
case "Symbol(react.fragment)":
|
|
@@ -666,12 +665,12 @@ var ee = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
|
|
|
666
665
|
r = this.flattenArrayTypeChildren(
|
|
667
666
|
n,
|
|
668
667
|
r,
|
|
669
|
-
|
|
668
|
+
c,
|
|
670
669
|
s
|
|
671
670
|
);
|
|
672
671
|
break;
|
|
673
672
|
default:
|
|
674
|
-
t = this.mapObjectTypeChildren(n, t,
|
|
673
|
+
t = this.mapObjectTypeChildren(n, t, c, s);
|
|
675
674
|
break;
|
|
676
675
|
}
|
|
677
676
|
}), this.mapArrayTypeChildrenToProps(r, t);
|
|
@@ -679,71 +678,29 @@ var ee = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
|
|
|
679
678
|
render() {
|
|
680
679
|
const { children: e, ...t } = this.props;
|
|
681
680
|
let r = { ...t }, { helmetData: n } = t;
|
|
682
|
-
if (e && (r = this.mapChildrenToProps(e, r)), n && !(n instanceof
|
|
681
|
+
if (e && (r = this.mapChildrenToProps(e, r)), n && !(n instanceof R)) {
|
|
683
682
|
const s = n;
|
|
684
|
-
n = new
|
|
683
|
+
n = new R(s.context, !0), delete r.helmetData;
|
|
685
684
|
}
|
|
686
|
-
return n ? /* @__PURE__ */
|
|
685
|
+
return n ? /* @__PURE__ */ d.createElement(B, { ...r, context: n.value }) : /* @__PURE__ */ d.createElement(ee.Consumer, null, (s) => /* @__PURE__ */ d.createElement(B, { ...r, context: s }));
|
|
687
686
|
}
|
|
688
|
-
}, T(
|
|
687
|
+
}, T(M, "defaultProps", {
|
|
689
688
|
defer: !0,
|
|
690
689
|
encodeSpecialCharacters: !0,
|
|
691
690
|
prioritizeSeoTags: !1
|
|
692
|
-
}),
|
|
693
|
-
const
|
|
694
|
-
const t =
|
|
691
|
+
}), M);
|
|
692
|
+
const Ve = (e) => {
|
|
693
|
+
const t = ie(), r = typeof e.to == "string" ? e.to : e.to.hash, n = (s) => {
|
|
695
694
|
var o;
|
|
696
695
|
!(r != null && r.startsWith("#")) || r !== t.hash || (s.preventDefault(), (o = document.getElementById(r.slice(1))) == null || o.scrollIntoView());
|
|
697
696
|
};
|
|
698
|
-
return /* @__PURE__ */
|
|
699
|
-
}, ie = (e, t) => {
|
|
700
|
-
for (const r of e) {
|
|
701
|
-
const n = V(r, t);
|
|
702
|
-
if (n !== void 0) return n;
|
|
703
|
-
}
|
|
704
|
-
}, V = (e, t, r = []) => {
|
|
705
|
-
const n = t(e, r);
|
|
706
|
-
if (n !== void 0) return n;
|
|
707
|
-
if (e.type === "category")
|
|
708
|
-
for (const s of e.items) {
|
|
709
|
-
const o = V(s, t, [
|
|
710
|
-
...r,
|
|
711
|
-
e
|
|
712
|
-
]);
|
|
713
|
-
if (o !== void 0) return o;
|
|
714
|
-
}
|
|
715
|
-
}, Qe = () => {
|
|
716
|
-
const e = $(), t = K(), { sidebars: r } = Q(), n = t != null && t.id ? r[t.id] : [];
|
|
717
|
-
return ie(n, (s) => {
|
|
718
|
-
if (s.type === "doc" && S(t == null ? void 0 : t.id, s.id) === e.pathname)
|
|
719
|
-
return s;
|
|
720
|
-
});
|
|
721
|
-
}, Ne = (e) => {
|
|
722
|
-
const t = $(), r = K();
|
|
723
|
-
return V(e, (n) => {
|
|
724
|
-
if (n.type === "category" && n.link && S(r == null ? void 0 : r.id, n.link.id) === t.pathname || n.type === "doc" && S(r == null ? void 0 : r.id, n.id) === t.pathname)
|
|
725
|
-
return !0;
|
|
726
|
-
});
|
|
727
|
-
}, et = () => {
|
|
728
|
-
const e = $().pathname, { sidebars: t } = Q(), r = K(), n = r != null && r.id ? t[r.id] : [];
|
|
729
|
-
let s, o, l = !1;
|
|
730
|
-
return ie(n, (i) => {
|
|
731
|
-
const a = i.type === "doc" ? S(r == null ? void 0 : r.id, i.id) : i.type === "category" && i.link ? S(r == null ? void 0 : r.id, i.link.id) : void 0;
|
|
732
|
-
if (a) {
|
|
733
|
-
if (l)
|
|
734
|
-
return o = { label: i.label, id: a }, !0;
|
|
735
|
-
e === a ? l = !0 : s = { label: i.label, id: a };
|
|
736
|
-
}
|
|
737
|
-
}), { prev: s, next: o };
|
|
697
|
+
return /* @__PURE__ */ se.jsx(oe, { onClick: n, ...e });
|
|
738
698
|
};
|
|
739
699
|
export {
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
Le as c,
|
|
746
|
-
Ne as d,
|
|
747
|
-
Qe as u
|
|
700
|
+
Ve as A,
|
|
701
|
+
Ne as H,
|
|
702
|
+
ze as M,
|
|
703
|
+
ke as a,
|
|
704
|
+
ae as u
|
|
748
705
|
};
|
|
749
|
-
//# sourceMappingURL=
|
|
706
|
+
//# sourceMappingURL=AnchorLink-CDlhr8gL.js.map
|