zudoku 0.0.0-fd0986c → 0.0.0-fdf886de
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/app/demo.js +1 -1
- package/dist/app/entry.client.js +1 -1
- package/dist/app/entry.server.js +1 -1
- package/dist/app/main.d.ts +1 -1
- package/dist/app/main.js +12 -6
- package/dist/app/main.js.map +1 -1
- package/dist/app/standalone.js +1 -1
- package/dist/config/config.d.ts +1 -0
- package/dist/config/validators/InputNavigationSchema.d.ts +251 -156
- package/dist/config/validators/InputNavigationSchema.js +5 -4
- package/dist/config/validators/InputNavigationSchema.js.map +1 -1
- package/dist/config/validators/InputNavigationSchema.test-d.js +0 -1
- package/dist/config/validators/InputNavigationSchema.test-d.js.map +1 -1
- package/dist/config/validators/NavigationSchema.js +6 -3
- package/dist/config/validators/NavigationSchema.js.map +1 -1
- package/dist/config/validators/ProtectedRoutesSchema.d.ts +13 -0
- package/dist/config/validators/ProtectedRoutesSchema.js +10 -0
- package/dist/config/validators/ProtectedRoutesSchema.js.map +1 -0
- package/dist/config/validators/icon-types.d.ts +1 -1
- package/dist/config/validators/icon-types.js +16 -0
- package/dist/config/validators/icon-types.js.map +1 -1
- package/dist/config/validators/validate.d.ts +44 -30
- package/dist/config/validators/validate.js +8 -2
- package/dist/config/validators/validate.js.map +1 -1
- package/dist/flat-config.d.ts +11 -7
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/lib/authentication/components/CallbackHandler.js +11 -9
- package/dist/lib/authentication/components/CallbackHandler.js.map +1 -1
- package/dist/lib/authentication/components/OAuthErrorPage.d.ts +3 -0
- package/dist/lib/authentication/components/OAuthErrorPage.js +99 -0
- package/dist/lib/authentication/components/OAuthErrorPage.js.map +1 -0
- package/dist/lib/authentication/errors.d.ts +6 -12
- package/dist/lib/authentication/errors.js +2 -1
- package/dist/lib/authentication/errors.js.map +1 -1
- package/dist/lib/authentication/hook.d.ts +1 -0
- package/dist/lib/authentication/hook.js.map +1 -1
- package/dist/lib/authentication/providers/azureb2c.js +4 -2
- package/dist/lib/authentication/providers/azureb2c.js.map +1 -1
- package/dist/lib/authentication/providers/clerk.js +4 -2
- package/dist/lib/authentication/providers/clerk.js.map +1 -1
- package/dist/lib/authentication/providers/openid.js +3 -1
- package/dist/lib/authentication/providers/openid.js.map +1 -1
- package/dist/lib/components/BuildCheck.d.ts +2 -1
- package/dist/lib/components/BuildCheck.js +9 -3
- package/dist/lib/components/BuildCheck.js.map +1 -1
- package/dist/lib/components/Header.js +1 -1
- package/dist/lib/components/Header.js.map +1 -1
- package/dist/lib/components/Heading.js +1 -1
- package/dist/lib/components/Heading.js.map +1 -1
- package/dist/lib/components/Layout.js +4 -7
- package/dist/lib/components/Layout.js.map +1 -1
- package/dist/lib/components/Markdown.js +2 -2
- package/dist/lib/components/Markdown.js.map +1 -1
- package/dist/lib/components/Meta.d.ts +2 -0
- package/dist/lib/components/Meta.js +11 -0
- package/dist/lib/components/Meta.js.map +1 -0
- package/dist/lib/components/MobileTopNavigation.js +5 -3
- package/dist/lib/components/MobileTopNavigation.js.map +1 -1
- package/dist/lib/components/NotFoundPage.js +1 -1
- package/dist/lib/components/NotFoundPage.js.map +1 -1
- package/dist/lib/components/TopNavigation.js +4 -3
- package/dist/lib/components/TopNavigation.js.map +1 -1
- package/dist/lib/components/Typography.d.ts +1 -1
- package/dist/lib/components/Typography.js +1 -1
- package/dist/lib/components/Typography.js.map +1 -1
- package/dist/lib/components/context/ZudokuContext.js +22 -14
- package/dist/lib/components/context/ZudokuContext.js.map +1 -1
- package/dist/lib/components/index.d.ts +0 -27
- package/dist/lib/components/index.js +0 -15
- package/dist/lib/components/index.js.map +1 -1
- package/dist/lib/components/navigation/NavigationCategory.js +1 -1
- package/dist/lib/components/navigation/NavigationCategory.js.map +1 -1
- package/dist/lib/components/navigation/NavigationItem.d.ts +1 -1
- package/dist/lib/components/navigation/NavigationItem.js +11 -3
- package/dist/lib/components/navigation/NavigationItem.js.map +1 -1
- package/dist/lib/components/navigation/utils.d.ts +3 -1
- package/dist/lib/components/navigation/utils.js +18 -14
- package/dist/lib/components/navigation/utils.js.map +1 -1
- package/dist/lib/core/RouteGuard.js +9 -9
- package/dist/lib/core/RouteGuard.js.map +1 -1
- package/dist/lib/core/ZudokuContext.d.ts +5 -1
- package/dist/lib/core/ZudokuContext.js +23 -1
- package/dist/lib/core/ZudokuContext.js.map +1 -1
- package/dist/lib/core/__internal.d.ts +37 -0
- package/dist/lib/core/__internal.js +26 -0
- package/dist/lib/core/__internal.js.map +1 -0
- package/dist/lib/core/plugins.d.ts +2 -1
- package/dist/lib/core/plugins.js.map +1 -1
- package/dist/lib/core/router.d.ts +1 -0
- package/dist/lib/core/router.js +2 -0
- package/dist/lib/core/router.js.map +1 -0
- package/dist/lib/errors/ErrorAlert.js +1 -1
- package/dist/lib/errors/ErrorAlert.js.map +1 -1
- package/dist/lib/plugins/api-keys/CreateApiKey.js +13 -3
- package/dist/lib/plugins/api-keys/CreateApiKey.js.map +1 -1
- package/dist/lib/plugins/api-keys/SettingsApiKeys.js +3 -1
- package/dist/lib/plugins/api-keys/SettingsApiKeys.js.map +1 -1
- package/dist/lib/plugins/api-keys/index.d.ts +9 -4
- package/dist/lib/plugins/api-keys/index.js +3 -7
- package/dist/lib/plugins/api-keys/index.js.map +1 -1
- package/dist/lib/plugins/custom-pages/index.js +3 -0
- package/dist/lib/plugins/custom-pages/index.js.map +1 -1
- package/dist/lib/plugins/openapi/Sidecar.js +1 -1
- package/dist/lib/plugins/openapi/Sidecar.js.map +1 -1
- package/dist/lib/plugins/openapi/SidecarExamples.js +1 -1
- package/dist/lib/plugins/openapi/SidecarExamples.js.map +1 -1
- package/dist/lib/plugins/openapi/graphql/gql.d.ts +1 -1
- package/dist/lib/plugins/openapi/graphql/gql.js +1 -1
- package/dist/lib/plugins/openapi/graphql/gql.js.map +1 -1
- package/dist/lib/plugins/openapi/graphql/graphql.d.ts +1 -0
- package/dist/lib/plugins/openapi/graphql/graphql.js +1 -0
- package/dist/lib/plugins/openapi/graphql/graphql.js.map +1 -1
- package/dist/lib/plugins/openapi/index.js +42 -10
- package/dist/lib/plugins/openapi/index.js.map +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 +4 -2
- package/dist/lib/plugins/openapi/playground/Playground.js.map +1 -1
- package/dist/lib/shiki.d.ts +4 -0
- package/dist/lib/shiki.js +2 -0
- package/dist/lib/shiki.js.map +1 -1
- package/dist/lib/ui/ActionButton.js +1 -1
- package/dist/lib/ui/ActionButton.js.map +1 -1
- package/dist/lib/ui/Badge.d.ts +1 -1
- package/dist/lib/ui/Button.d.ts +2 -2
- package/dist/lib/ui/CodeBlock.js +30 -4
- package/dist/lib/ui/CodeBlock.js.map +1 -1
- package/dist/lib/ui/Command.d.ts +1 -1
- package/dist/lib/ui/Dialog.js +2 -2
- package/dist/lib/ui/Dialog.js.map +1 -1
- package/dist/lib/ui/EmbeddedCodeBlock.js +1 -1
- package/dist/lib/ui/EmbeddedCodeBlock.js.map +1 -1
- package/dist/lib/util/invariant.d.ts +6 -5
- package/dist/lib/util/invariant.js +1 -1
- package/dist/lib/util/invariant.js.map +1 -1
- package/dist/vite/config.js +6 -1
- package/dist/vite/config.js.map +1 -1
- package/dist/vite/dev-server.js +9 -1
- package/dist/vite/dev-server.js.map +1 -1
- package/dist/vite/mdx/remark-inject-filepath.d.ts +3 -0
- package/dist/vite/mdx/remark-inject-filepath.js +6 -0
- package/dist/vite/mdx/remark-inject-filepath.js.map +1 -0
- package/dist/vite/mdx/remark-link-rewrite.d.ts +2 -0
- package/dist/vite/mdx/remark-link-rewrite.js +20 -0
- package/dist/vite/mdx/remark-link-rewrite.js.map +1 -0
- package/dist/vite/mdx/remark-normalize-image-url.d.ts +2 -0
- package/dist/vite/mdx/remark-normalize-image-url.js +12 -0
- package/dist/vite/mdx/remark-normalize-image-url.js.map +1 -0
- package/dist/vite/{remarkStaticGeneration.d.ts → mdx/remark-static-generation.d.ts} +2 -2
- package/dist/vite/{remarkStaticGeneration.js → mdx/remark-static-generation.js} +1 -1
- package/dist/vite/mdx/remark-static-generation.js.map +1 -0
- package/dist/vite/plugin-config.d.ts +1 -1
- package/dist/vite/plugin-config.js +2 -1
- package/dist/vite/plugin-config.js.map +1 -1
- package/dist/vite/plugin-docs.js +18 -13
- package/dist/vite/plugin-docs.js.map +1 -1
- package/dist/vite/plugin-mdx.js +6 -23
- package/dist/vite/plugin-mdx.js.map +1 -1
- package/dist/vite/plugin-theme.js +80 -40
- package/dist/vite/plugin-theme.js.map +1 -1
- package/dist/vite/prerender/worker.js +5 -1
- package/dist/vite/prerender/worker.js.map +1 -1
- package/dist/vite/shadcn-registry.d.ts +4 -4
- package/dist/vite/sitemap.js +10 -9
- package/dist/vite/sitemap.js.map +1 -1
- package/lib/Button-B3o-2Xdf.js.map +1 -1
- package/lib/Card-CMDQUPM4.js.map +1 -1
- package/lib/CategoryHeading-DCpZu3yG.js +17 -0
- package/lib/CategoryHeading-DCpZu3yG.js.map +1 -0
- package/lib/ClientOnly-E7hGysn1.js.map +1 -1
- package/lib/CodeBlock-yJjjRwj-.js +98 -0
- package/lib/CodeBlock-yJjjRwj-.js.map +1 -0
- package/lib/{Command-C9AC5cf-.js → Command-CDn17s8X.js} +2 -2
- package/lib/{Command-C9AC5cf-.js.map → Command-CDn17s8X.js.map} +1 -1
- package/lib/Dialog-BrIjMmUK.js +114 -0
- package/lib/Dialog-BrIjMmUK.js.map +1 -0
- package/lib/{Drawer-DXGPOKPx.js → Drawer-DJ05s2pH.js} +86 -86
- package/lib/{Drawer-DXGPOKPx.js.map → Drawer-DJ05s2pH.js.map} +1 -1
- package/lib/{MdxPage-BI0vLjSn.js → MdxPage-BmOQ5m5g.js} +19 -18
- package/lib/{MdxPage-BI0vLjSn.js.map → MdxPage-BmOQ5m5g.js.map} +1 -1
- package/lib/OAuthErrorPage-Jv3r8wnL.js +150 -0
- package/lib/OAuthErrorPage-Jv3r8wnL.js.map +1 -0
- package/lib/{OasProvider-CK4C2QI3.js → OasProvider-CA_lpILt.js} +3 -3
- package/lib/{OasProvider-CK4C2QI3.js.map → OasProvider-CA_lpILt.js.map} +1 -1
- package/lib/{OperationList-DhA6x6qm.js → OperationList-C-TObVw6.js} +47 -44
- package/lib/OperationList-C-TObVw6.js.map +1 -0
- package/lib/{Pagination-YjKVdgm9.js → Pagination-CBiRGddW.js} +3 -3
- package/lib/{Pagination-YjKVdgm9.js.map → Pagination-CBiRGddW.js.map} +1 -1
- package/lib/RouteGuard-JLH6tCY8.js +56 -0
- package/lib/RouteGuard-JLH6tCY8.js.map +1 -0
- package/lib/RouterError-DcVonMP1.js +41 -0
- package/lib/RouterError-DcVonMP1.js.map +1 -0
- package/lib/{SchemaList-Cx9MS7Wf.js → SchemaList-BeYWvBC7.js} +15 -14
- package/lib/{SchemaList-Cx9MS7Wf.js.map → SchemaList-BeYWvBC7.js.map} +1 -1
- package/lib/{SchemaView-C6sTKWyS.js → SchemaView-CRcShewo.js} +4 -4
- package/lib/{SchemaView-C6sTKWyS.js.map → SchemaView-CRcShewo.js.map} +1 -1
- package/lib/Select-C3efYI1n.js +273 -0
- package/lib/Select-C3efYI1n.js.map +1 -0
- package/lib/{SignUp-DiDmVb3x.js → SignUp-CxBGHgba.js} +6 -6
- package/lib/{SignUp-DiDmVb3x.js.map → SignUp-CxBGHgba.js.map} +1 -1
- package/lib/{Slot-CrCBhP3G.js → Slot-DOtTvoyj.js} +2050 -2288
- package/lib/{Slot-CrCBhP3G.js.map → Slot-DOtTvoyj.js.map} +1 -1
- package/lib/Spinner-mNLZ6awP.js.map +1 -1
- package/lib/{SyntaxHighlight-CVe58ZSY.js → SyntaxHighlight-GR0eix_L.js} +411 -409
- package/lib/SyntaxHighlight-GR0eix_L.js.map +1 -0
- package/lib/{Toc-CpsFSXeD.js → Toc-BlcGIkXc.js} +2 -2
- package/lib/{Toc-CpsFSXeD.js.map → Toc-BlcGIkXc.js.map} +1 -1
- package/lib/ZudokuContext-BuJD7yIX.js +1286 -0
- package/lib/ZudokuContext-BuJD7yIX.js.map +1 -0
- package/lib/chunk-QMGIS6GS-DqecZ6nq.js +9204 -0
- package/lib/chunk-QMGIS6GS-DqecZ6nq.js.map +1 -0
- package/lib/{circular-OvXQH6UK.js → circular-CGTcsqA3.js} +2 -2
- package/lib/{circular-OvXQH6UK.js.map → circular-CGTcsqA3.js.map} +1 -1
- package/lib/cn-dYga0KKN.js.map +1 -1
- package/lib/{createServer-B5U_8E3S.js → createServer-DjgpuLne.js} +5 -5
- package/lib/{createServer-B5U_8E3S.js.map → createServer-DjgpuLne.js.map} +1 -1
- package/lib/errors-CrI3s7mR.js +45 -0
- package/lib/errors-CrI3s7mR.js.map +1 -0
- package/lib/hook-bv3iuX7X.js +247 -0
- package/lib/hook-bv3iuX7X.js.map +1 -0
- package/lib/index-CrcNWbel.js.map +1 -1
- package/lib/{index-BzcS9JBW.js → index-CvTWnHZF.js} +860 -938
- package/lib/index-CvTWnHZF.js.map +1 -0
- package/lib/index-DI5SPFK9.js.map +1 -1
- package/lib/index-DmNq2fbN.js.map +1 -1
- package/lib/index-DzO-Qh6S.js +1061 -0
- package/lib/index-DzO-Qh6S.js.map +1 -0
- package/lib/{index-4XtG1tlD.js → index-HarEI51d.js} +2 -2
- package/lib/{index-4XtG1tlD.js.map → index-HarEI51d.js.map} +1 -1
- package/lib/index.esm-BnYHxCYC.js +683 -0
- package/lib/index.esm-BnYHxCYC.js.map +1 -0
- package/lib/index.esm-CdzlRw50.js +1254 -0
- package/lib/index.esm-CdzlRw50.js.map +1 -0
- package/lib/{invariant-DAFpPywt.js → invariant-Bm-FVUQE.js} +2 -6
- package/lib/invariant-Bm-FVUQE.js.map +1 -0
- package/lib/jsx-runtime-C5mzlN2N.js.map +1 -1
- package/lib/mutation-Dy_5up8v.js +196 -0
- package/lib/mutation-Dy_5up8v.js.map +1 -0
- package/lib/processors/removeExtensions.js.map +1 -1
- package/lib/processors/removeParameters.js.map +1 -1
- package/lib/processors/removePaths.js.map +1 -1
- package/lib/processors/traverse.js.map +1 -1
- package/lib/ui/Accordion.js.map +1 -1
- package/lib/ui/ActionButton.js +9 -9
- package/lib/ui/ActionButton.js.map +1 -1
- package/lib/ui/Alert.js.map +1 -1
- package/lib/ui/AlertDialog.js.map +1 -1
- package/lib/ui/Badge.js.map +1 -1
- package/lib/ui/Breadcrumb.js.map +1 -1
- package/lib/ui/Button.js.map +1 -1
- package/lib/ui/Callout.js.map +1 -1
- package/lib/ui/Card.js.map +1 -1
- package/lib/ui/Carousel.js.map +1 -1
- package/lib/ui/Checkbox.js.map +1 -1
- package/lib/ui/CodeBlock.js +1 -1
- package/lib/ui/Command.js +1 -1
- package/lib/ui/Command.js.map +1 -1
- package/lib/ui/Dialog.js +56 -41
- package/lib/ui/Dialog.js.map +1 -1
- package/lib/ui/Drawer.js +1 -1
- package/lib/ui/DropdownMenu.js.map +1 -1
- package/lib/ui/EmbeddedCodeBlock.js +1 -1
- package/lib/ui/EmbeddedCodeBlock.js.map +1 -1
- package/lib/ui/Form.js +1 -1
- package/lib/ui/Form.js.map +1 -1
- package/lib/ui/HoverCard.js.map +1 -1
- package/lib/ui/Input.js.map +1 -1
- package/lib/ui/Label.js.map +1 -1
- package/lib/ui/Pagination.js.map +1 -1
- package/lib/ui/Popover.js.map +1 -1
- package/lib/ui/Progress.js.map +1 -1
- package/lib/ui/RadioGroup.js.map +1 -1
- package/lib/ui/ScrollArea.js.map +1 -1
- package/lib/ui/Select.js.map +1 -1
- package/lib/ui/Skeleton.js.map +1 -1
- package/lib/ui/Slider.js.map +1 -1
- package/lib/ui/Stepper.js.map +1 -1
- package/lib/ui/Switch.js.map +1 -1
- package/lib/ui/SyntaxHighlight.js +4 -4
- package/lib/ui/Tabs.js.map +1 -1
- package/lib/ui/Textarea.js.map +1 -1
- package/lib/ui/Toggle.js.map +1 -1
- package/lib/ui/ToggleGroup.js.map +1 -1
- package/lib/ui/Tooltip.js.map +1 -1
- package/lib/useExposedProps-BH9aq4MD.js +113 -0
- package/lib/useExposedProps-BH9aq4MD.js.map +1 -0
- package/lib/useLatest-hmRS46UF.js +11 -0
- package/lib/useLatest-hmRS46UF.js.map +1 -0
- package/lib/zudoku.__internal.js +2965 -0
- package/lib/zudoku.__internal.js.map +1 -0
- package/lib/zudoku.auth-auth0.js +1 -1
- package/lib/zudoku.auth-auth0.js.map +1 -1
- package/lib/zudoku.auth-azureb2c.js +46 -9880
- package/lib/zudoku.auth-azureb2c.js.map +1 -1
- package/lib/zudoku.auth-clerk.js +25 -22
- package/lib/zudoku.auth-clerk.js.map +1 -1
- package/lib/zudoku.auth-openid.js +204 -195
- package/lib/zudoku.auth-openid.js.map +1 -1
- package/lib/zudoku.auth-supabase.js +97 -0
- package/lib/zudoku.auth-supabase.js.map +1 -0
- package/lib/zudoku.components.js +21 -28
- package/lib/zudoku.components.js.map +1 -1
- package/lib/zudoku.hooks.js +7 -7
- package/lib/zudoku.hooks.js.map +1 -1
- package/lib/zudoku.icons.js.map +1 -1
- package/lib/zudoku.plugin-api-catalog.js +23 -22
- package/lib/zudoku.plugin-api-catalog.js.map +1 -1
- package/lib/zudoku.plugin-api-keys.js +410 -295
- package/lib/zudoku.plugin-api-keys.js.map +1 -1
- package/lib/zudoku.plugin-custom-pages.js +8 -5
- package/lib/zudoku.plugin-custom-pages.js.map +1 -1
- package/lib/zudoku.plugin-markdown.js +1 -1
- package/lib/zudoku.plugin-markdown.js.map +1 -1
- package/lib/zudoku.plugin-openapi.js +7 -6
- package/lib/zudoku.plugin-openapi.js.map +1 -1
- package/lib/zudoku.plugin-redirect.js +3 -3
- package/lib/zudoku.plugin-redirect.js.map +1 -1
- package/lib/zudoku.plugin-search-inkeep.js.map +1 -1
- package/lib/zudoku.plugin-search-pagefind.js +28 -27
- package/lib/zudoku.plugin-search-pagefind.js.map +1 -1
- package/lib/zudoku.plugins.js.map +1 -1
- package/lib/zudoku.router.js +123 -0
- package/lib/zudoku.router.js.map +1 -0
- package/package.json +31 -23
- package/src/app/demo.tsx +1 -1
- package/src/app/entry.client.tsx +1 -1
- package/src/app/entry.server.tsx +1 -1
- package/src/app/main.css +22 -5
- package/src/app/main.tsx +23 -11
- package/src/app/standalone.tsx +1 -1
- package/src/lib/authentication/components/CallbackHandler.tsx +22 -15
- package/src/lib/authentication/components/OAuthErrorPage.tsx +171 -0
- package/src/lib/authentication/errors.ts +27 -13
- package/src/lib/authentication/hook.ts +2 -0
- package/src/lib/authentication/providers/azureb2c.tsx +8 -3
- package/src/lib/authentication/providers/clerk.tsx +4 -1
- package/src/lib/authentication/providers/openid.tsx +7 -1
- package/src/lib/components/BuildCheck.tsx +13 -3
- package/src/lib/components/Header.tsx +4 -3
- package/src/lib/components/Heading.tsx +1 -1
- package/src/lib/components/Layout.tsx +2 -21
- package/src/lib/components/Markdown.tsx +3 -3
- package/src/lib/components/Meta.tsx +32 -0
- package/src/lib/components/MobileTopNavigation.tsx +6 -3
- package/src/lib/components/NotFoundPage.tsx +3 -2
- package/src/lib/components/TopNavigation.tsx +4 -4
- package/src/lib/components/Typography.tsx +1 -1
- package/src/lib/components/context/ZudokuContext.ts +26 -19
- package/src/lib/components/index.ts +0 -18
- package/src/lib/components/navigation/NavigationCategory.tsx +1 -1
- package/src/lib/components/navigation/NavigationItem.tsx +13 -3
- package/src/lib/components/navigation/utils.ts +21 -15
- package/src/lib/core/RouteGuard.tsx +13 -13
- package/src/lib/core/ZudokuContext.ts +37 -5
- package/src/lib/core/__internal.tsx +30 -0
- package/src/lib/core/plugins.ts +2 -1
- package/src/lib/core/router.ts +1 -0
- package/src/lib/errors/ErrorAlert.tsx +5 -7
- package/src/lib/plugins/api-keys/CreateApiKey.tsx +17 -3
- package/src/lib/plugins/api-keys/SettingsApiKeys.tsx +21 -3
- package/src/lib/plugins/api-keys/index.tsx +16 -11
- package/src/lib/plugins/custom-pages/index.tsx +3 -0
- package/src/lib/plugins/openapi/Sidecar.tsx +1 -1
- package/src/lib/plugins/openapi/SidecarExamples.tsx +1 -1
- package/src/lib/plugins/openapi/graphql/gql.ts +3 -3
- package/src/lib/plugins/openapi/graphql/graphql.ts +2 -0
- package/src/lib/plugins/openapi/index.tsx +66 -16
- package/src/lib/plugins/openapi/playground/PathParams.tsx +1 -1
- package/src/lib/plugins/openapi/playground/Playground.tsx +8 -2
- package/src/lib/shiki.ts +2 -0
- package/src/lib/ui/ActionButton.tsx +3 -1
- package/src/lib/ui/CodeBlock.tsx +38 -13
- package/src/lib/ui/Dialog.tsx +12 -3
- package/src/lib/ui/EmbeddedCodeBlock.tsx +1 -1
- package/src/lib/util/invariant.ts +7 -5
- package/src/shiki/langs/vue-vine.js +1 -0
- package/dist/vite/remarkStaticGeneration.js.map +0 -1
- package/lib/Alert-Cig_8hW6.js +0 -161
- package/lib/Alert-Cig_8hW6.js.map +0 -1
- package/lib/CodeBlock-BaBgX9Wy.js +0 -85
- package/lib/CodeBlock-BaBgX9Wy.js.map +0 -1
- package/lib/Dialog-DMWw1doX.js +0 -99
- package/lib/Dialog-DMWw1doX.js.map +0 -1
- package/lib/OperationList-DhA6x6qm.js.map +0 -1
- package/lib/RouteGuard-Vnlz_t51.js +0 -737
- package/lib/RouteGuard-Vnlz_t51.js.map +0 -1
- package/lib/SyntaxHighlight-CVe58ZSY.js.map +0 -1
- package/lib/chunk-DQRVZFIR-DHK7_Ilc.js +0 -1839
- package/lib/chunk-DQRVZFIR-DHK7_Ilc.js.map +0 -1
- package/lib/clerk-BDZ31hjU.js +0 -25190
- package/lib/clerk-BDZ31hjU.js.map +0 -1
- package/lib/errors-DOCWNkkS.js +0 -78
- package/lib/errors-DOCWNkkS.js.map +0 -1
- package/lib/hook-CZjW2buS.js +0 -1510
- package/lib/hook-CZjW2buS.js.map +0 -1
- package/lib/index-Bm35Tkgf.js +0 -107
- package/lib/index-Bm35Tkgf.js.map +0 -1
- package/lib/index-BzcS9JBW.js.map +0 -1
- package/lib/index-Sb7nQNHJ.js +0 -3980
- package/lib/index-Sb7nQNHJ.js.map +0 -1
- package/lib/index.esm-Cp4wkyud.js +0 -1236
- package/lib/index.esm-Cp4wkyud.js.map +0 -1
- package/lib/invariant-DAFpPywt.js.map +0 -1
- package/lib/useExposedProps-BIYjecPD.js +0 -9
- package/lib/useExposedProps-BIYjecPD.js.map +0 -1
|
@@ -1,737 +0,0 @@
|
|
|
1
|
-
import { j as y } from "./jsx-runtime-C5mzlN2N.js";
|
|
2
|
-
import { e as se, d as ae, l as ie } from "./hook-CZjW2buS.js";
|
|
3
|
-
import T, { Component as M, createContext as oe, useRef as le, useEffect as ce, use as ue } from "react";
|
|
4
|
-
import { g as L, Z as fe } from "./invariant-DAFpPywt.js";
|
|
5
|
-
import { a as pe, u as de, m as me, O as he } from "./chunk-DQRVZFIR-DHK7_Ilc.js";
|
|
6
|
-
import { D as ye, a as Te, c as ge, b as ve, d as Ae } from "./Dialog-DMWw1doX.js";
|
|
7
|
-
var x, K;
|
|
8
|
-
function Ee() {
|
|
9
|
-
if (K) return x;
|
|
10
|
-
K = 1;
|
|
11
|
-
var e = typeof Element < "u", t = typeof Map == "function", r = typeof Set == "function", n = typeof ArrayBuffer == "function" && !!ArrayBuffer.isView;
|
|
12
|
-
function o(s, l) {
|
|
13
|
-
if (s === l) return !0;
|
|
14
|
-
if (s && l && typeof s == "object" && typeof l == "object") {
|
|
15
|
-
if (s.constructor !== l.constructor) return !1;
|
|
16
|
-
var i, a, c;
|
|
17
|
-
if (Array.isArray(s)) {
|
|
18
|
-
if (i = s.length, i != l.length) return !1;
|
|
19
|
-
for (a = i; a-- !== 0; )
|
|
20
|
-
if (!o(s[a], l[a])) return !1;
|
|
21
|
-
return !0;
|
|
22
|
-
}
|
|
23
|
-
var u;
|
|
24
|
-
if (t && s instanceof Map && l instanceof Map) {
|
|
25
|
-
if (s.size !== l.size) return !1;
|
|
26
|
-
for (u = s.entries(); !(a = u.next()).done; )
|
|
27
|
-
if (!l.has(a.value[0])) return !1;
|
|
28
|
-
for (u = s.entries(); !(a = u.next()).done; )
|
|
29
|
-
if (!o(a.value[1], l.get(a.value[0]))) return !1;
|
|
30
|
-
return !0;
|
|
31
|
-
}
|
|
32
|
-
if (r && s instanceof Set && l instanceof Set) {
|
|
33
|
-
if (s.size !== l.size) return !1;
|
|
34
|
-
for (u = s.entries(); !(a = u.next()).done; )
|
|
35
|
-
if (!l.has(a.value[0])) return !1;
|
|
36
|
-
return !0;
|
|
37
|
-
}
|
|
38
|
-
if (n && ArrayBuffer.isView(s) && ArrayBuffer.isView(l)) {
|
|
39
|
-
if (i = s.length, i != l.length) return !1;
|
|
40
|
-
for (a = i; a-- !== 0; )
|
|
41
|
-
if (s[a] !== l[a]) return !1;
|
|
42
|
-
return !0;
|
|
43
|
-
}
|
|
44
|
-
if (s.constructor === RegExp) return s.source === l.source && s.flags === l.flags;
|
|
45
|
-
if (s.valueOf !== Object.prototype.valueOf && typeof s.valueOf == "function" && typeof l.valueOf == "function") return s.valueOf() === l.valueOf();
|
|
46
|
-
if (s.toString !== Object.prototype.toString && typeof s.toString == "function" && typeof l.toString == "function") return s.toString() === l.toString();
|
|
47
|
-
if (c = Object.keys(s), i = c.length, i !== Object.keys(l).length) return !1;
|
|
48
|
-
for (a = i; a-- !== 0; )
|
|
49
|
-
if (!Object.prototype.hasOwnProperty.call(l, c[a])) return !1;
|
|
50
|
-
if (e && s instanceof Element) return !1;
|
|
51
|
-
for (a = i; a-- !== 0; )
|
|
52
|
-
if (!((c[a] === "_owner" || c[a] === "__v" || c[a] === "__o") && s.$$typeof) && !o(s[c[a]], l[c[a]]))
|
|
53
|
-
return !1;
|
|
54
|
-
return !0;
|
|
55
|
-
}
|
|
56
|
-
return s !== s && l !== l;
|
|
57
|
-
}
|
|
58
|
-
return x = function(l, i) {
|
|
59
|
-
try {
|
|
60
|
-
return o(l, i);
|
|
61
|
-
} catch (a) {
|
|
62
|
-
if ((a.message || "").match(/stack|recursion/i))
|
|
63
|
-
return console.warn("react-fast-compare cannot handle circular refs"), !1;
|
|
64
|
-
throw a;
|
|
65
|
-
}
|
|
66
|
-
}, x;
|
|
67
|
-
}
|
|
68
|
-
var be = Ee();
|
|
69
|
-
const Ce = /* @__PURE__ */ L(be);
|
|
70
|
-
var P, z;
|
|
71
|
-
function Oe() {
|
|
72
|
-
if (z) return P;
|
|
73
|
-
z = 1;
|
|
74
|
-
var e = function(t, r, n, o, s, l, i, a) {
|
|
75
|
-
if (process.env.NODE_ENV !== "production" && r === void 0)
|
|
76
|
-
throw new Error("invariant requires an error message argument");
|
|
77
|
-
if (!t) {
|
|
78
|
-
var c;
|
|
79
|
-
if (r === void 0)
|
|
80
|
-
c = new Error(
|
|
81
|
-
"Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings."
|
|
82
|
-
);
|
|
83
|
-
else {
|
|
84
|
-
var u = [n, o, s, l, i, a], f = 0;
|
|
85
|
-
c = new Error(
|
|
86
|
-
r.replace(/%s/g, function() {
|
|
87
|
-
return u[f++];
|
|
88
|
-
})
|
|
89
|
-
), c.name = "Invariant Violation";
|
|
90
|
-
}
|
|
91
|
-
throw c.framesToPop = 1, c;
|
|
92
|
-
}
|
|
93
|
-
};
|
|
94
|
-
return P = e, P;
|
|
95
|
-
}
|
|
96
|
-
var we = Oe();
|
|
97
|
-
const N = /* @__PURE__ */ L(we);
|
|
98
|
-
var R, B;
|
|
99
|
-
function Se() {
|
|
100
|
-
return B || (B = 1, R = function(t, r, n, o) {
|
|
101
|
-
var s = n ? n.call(o, t, r) : void 0;
|
|
102
|
-
if (s !== void 0)
|
|
103
|
-
return !!s;
|
|
104
|
-
if (t === r)
|
|
105
|
-
return !0;
|
|
106
|
-
if (typeof t != "object" || !t || typeof r != "object" || !r)
|
|
107
|
-
return !1;
|
|
108
|
-
var l = Object.keys(t), i = Object.keys(r);
|
|
109
|
-
if (l.length !== i.length)
|
|
110
|
-
return !1;
|
|
111
|
-
for (var a = Object.prototype.hasOwnProperty.bind(r), c = 0; c < l.length; c++) {
|
|
112
|
-
var u = l[c];
|
|
113
|
-
if (!a(u))
|
|
114
|
-
return !1;
|
|
115
|
-
var f = t[u], m = r[u];
|
|
116
|
-
if (s = n ? n.call(o, f, m, u) : void 0, s === !1 || s === void 0 && f !== m)
|
|
117
|
-
return !1;
|
|
118
|
-
}
|
|
119
|
-
return !0;
|
|
120
|
-
}), R;
|
|
121
|
-
}
|
|
122
|
-
var xe = Se();
|
|
123
|
-
const Pe = /* @__PURE__ */ L(xe);
|
|
124
|
-
var Q = /* @__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))(Q || {}), D = {
|
|
125
|
-
link: { rel: ["amphtml", "canonical", "alternate"] },
|
|
126
|
-
script: { type: ["application/ld+json"] },
|
|
127
|
-
meta: {
|
|
128
|
-
charset: "",
|
|
129
|
-
name: ["generator", "robots", "description"],
|
|
130
|
-
property: [
|
|
131
|
-
"og:type",
|
|
132
|
-
"og:title",
|
|
133
|
-
"og:url",
|
|
134
|
-
"og:image",
|
|
135
|
-
"og:image:alt",
|
|
136
|
-
"og:description",
|
|
137
|
-
"twitter:url",
|
|
138
|
-
"twitter:title",
|
|
139
|
-
"twitter:description",
|
|
140
|
-
"twitter:image",
|
|
141
|
-
"twitter:image:alt",
|
|
142
|
-
"twitter:card",
|
|
143
|
-
"twitter:site"
|
|
144
|
-
]
|
|
145
|
-
}
|
|
146
|
-
}, V = Object.values(Q), q = {
|
|
147
|
-
accesskey: "accessKey",
|
|
148
|
-
charset: "charSet",
|
|
149
|
-
class: "className",
|
|
150
|
-
contenteditable: "contentEditable",
|
|
151
|
-
contextmenu: "contextMenu",
|
|
152
|
-
"http-equiv": "httpEquiv",
|
|
153
|
-
itemprop: "itemProp",
|
|
154
|
-
tabindex: "tabIndex"
|
|
155
|
-
}, Re = Object.entries(q).reduce(
|
|
156
|
-
(e, [t, r]) => (e[r] = t, e),
|
|
157
|
-
{}
|
|
158
|
-
), h = "data-rh", A = {
|
|
159
|
-
DEFAULT_TITLE: "defaultTitle",
|
|
160
|
-
DEFER: "defer",
|
|
161
|
-
ENCODE_SPECIAL_CHARACTERS: "encodeSpecialCharacters",
|
|
162
|
-
ON_CHANGE_CLIENT_STATE: "onChangeClientState",
|
|
163
|
-
TITLE_TEMPLATE: "titleTemplate",
|
|
164
|
-
PRIORITIZE_SEO_TAGS: "prioritizeSeoTags"
|
|
165
|
-
}, E = (e, t) => {
|
|
166
|
-
for (let r = e.length - 1; r >= 0; r -= 1) {
|
|
167
|
-
const n = e[r];
|
|
168
|
-
if (Object.prototype.hasOwnProperty.call(n, t))
|
|
169
|
-
return n[t];
|
|
170
|
-
}
|
|
171
|
-
return null;
|
|
172
|
-
}, De = (e) => {
|
|
173
|
-
let t = E(
|
|
174
|
-
e,
|
|
175
|
-
"title"
|
|
176
|
-
/* TITLE */
|
|
177
|
-
);
|
|
178
|
-
const r = E(e, A.TITLE_TEMPLATE);
|
|
179
|
-
if (Array.isArray(t) && (t = t.join("")), r && t)
|
|
180
|
-
return r.replace(/%s/g, () => t);
|
|
181
|
-
const n = E(e, A.DEFAULT_TITLE);
|
|
182
|
-
return t || n || void 0;
|
|
183
|
-
}, Ie = (e) => E(e, A.ON_CHANGE_CLIENT_STATE) || (() => {
|
|
184
|
-
}), I = (e, t) => t.filter((r) => typeof r[e] < "u").map((r) => r[e]).reduce((r, n) => ({ ...r, ...n }), {}), $e = (e, t) => t.filter((r) => typeof r.base < "u").map((r) => r.base).reverse().reduce((r, n) => {
|
|
185
|
-
if (!r.length) {
|
|
186
|
-
const o = Object.keys(n);
|
|
187
|
-
for (let s = 0; s < o.length; s += 1) {
|
|
188
|
-
const i = o[s].toLowerCase();
|
|
189
|
-
if (e.indexOf(i) !== -1 && n[i])
|
|
190
|
-
return r.concat(n);
|
|
191
|
-
}
|
|
192
|
-
}
|
|
193
|
-
return r;
|
|
194
|
-
}, []), He = (e) => console && typeof console.warn == "function" && console.warn(e), b = (e, t, r) => {
|
|
195
|
-
const n = {};
|
|
196
|
-
return r.filter((o) => Array.isArray(o[e]) ? !0 : (typeof o[e] < "u" && He(
|
|
197
|
-
`Helmet: ${e} should be of type "Array". Instead found type "${typeof o[e]}"`
|
|
198
|
-
), !1)).map((o) => o[e]).reverse().reduce((o, s) => {
|
|
199
|
-
const l = {};
|
|
200
|
-
s.filter((a) => {
|
|
201
|
-
let c;
|
|
202
|
-
const u = Object.keys(a);
|
|
203
|
-
for (let m = 0; m < u.length; m += 1) {
|
|
204
|
-
const p = u[m], g = p.toLowerCase();
|
|
205
|
-
t.indexOf(g) !== -1 && !(c === "rel" && a[c].toLowerCase() === "canonical") && !(g === "rel" && a[g].toLowerCase() === "stylesheet") && (c = g), t.indexOf(p) !== -1 && (p === "innerHTML" || p === "cssText" || p === "itemprop") && (c = p);
|
|
206
|
-
}
|
|
207
|
-
if (!c || !a[c])
|
|
208
|
-
return !1;
|
|
209
|
-
const f = a[c].toLowerCase();
|
|
210
|
-
return n[c] || (n[c] = {}), l[c] || (l[c] = {}), n[c][f] ? !1 : (l[c][f] = !0, !0);
|
|
211
|
-
}).reverse().forEach((a) => o.push(a));
|
|
212
|
-
const i = Object.keys(l);
|
|
213
|
-
for (let a = 0; a < i.length; a += 1) {
|
|
214
|
-
const c = i[a], u = {
|
|
215
|
-
...n[c],
|
|
216
|
-
...l[c]
|
|
217
|
-
};
|
|
218
|
-
n[c] = u;
|
|
219
|
-
}
|
|
220
|
-
return o;
|
|
221
|
-
}, []).reverse();
|
|
222
|
-
}, _e = (e, t) => {
|
|
223
|
-
if (Array.isArray(e) && e.length) {
|
|
224
|
-
for (let r = 0; r < e.length; r += 1)
|
|
225
|
-
if (e[r][t])
|
|
226
|
-
return !0;
|
|
227
|
-
}
|
|
228
|
-
return !1;
|
|
229
|
-
}, je = (e) => ({
|
|
230
|
-
baseTag: $e([
|
|
231
|
-
"href"
|
|
232
|
-
/* HREF */
|
|
233
|
-
], e),
|
|
234
|
-
bodyAttributes: I("bodyAttributes", e),
|
|
235
|
-
defer: E(e, A.DEFER),
|
|
236
|
-
encode: E(e, A.ENCODE_SPECIAL_CHARACTERS),
|
|
237
|
-
htmlAttributes: I("htmlAttributes", e),
|
|
238
|
-
linkTags: b(
|
|
239
|
-
"link",
|
|
240
|
-
[
|
|
241
|
-
"rel",
|
|
242
|
-
"href"
|
|
243
|
-
/* HREF */
|
|
244
|
-
],
|
|
245
|
-
e
|
|
246
|
-
),
|
|
247
|
-
metaTags: b(
|
|
248
|
-
"meta",
|
|
249
|
-
[
|
|
250
|
-
"name",
|
|
251
|
-
"charset",
|
|
252
|
-
"http-equiv",
|
|
253
|
-
"property",
|
|
254
|
-
"itemprop"
|
|
255
|
-
/* ITEM_PROP */
|
|
256
|
-
],
|
|
257
|
-
e
|
|
258
|
-
),
|
|
259
|
-
noscriptTags: b("noscript", [
|
|
260
|
-
"innerHTML"
|
|
261
|
-
/* INNER_HTML */
|
|
262
|
-
], e),
|
|
263
|
-
onChangeClientState: Ie(e),
|
|
264
|
-
scriptTags: b(
|
|
265
|
-
"script",
|
|
266
|
-
[
|
|
267
|
-
"src",
|
|
268
|
-
"innerHTML"
|
|
269
|
-
/* INNER_HTML */
|
|
270
|
-
],
|
|
271
|
-
e
|
|
272
|
-
),
|
|
273
|
-
styleTags: b("style", [
|
|
274
|
-
"cssText"
|
|
275
|
-
/* CSS_TEXT */
|
|
276
|
-
], e),
|
|
277
|
-
title: De(e),
|
|
278
|
-
titleAttributes: I("titleAttributes", e),
|
|
279
|
-
prioritizeSeoTags: _e(e, A.PRIORITIZE_SEO_TAGS)
|
|
280
|
-
}), W = (e) => Array.isArray(e) ? e.join("") : e, ke = (e, t) => {
|
|
281
|
-
const r = Object.keys(e);
|
|
282
|
-
for (let n = 0; n < r.length; n += 1)
|
|
283
|
-
if (t[r[n]] && t[r[n]].includes(e[r[n]]))
|
|
284
|
-
return !0;
|
|
285
|
-
return !1;
|
|
286
|
-
}, $ = (e, t) => Array.isArray(e) ? e.reduce(
|
|
287
|
-
(r, n) => (ke(n, t) ? r.priority.push(n) : r.default.push(n), r),
|
|
288
|
-
{ priority: [], default: [] }
|
|
289
|
-
) : { default: e, priority: [] }, Z = (e, t) => ({
|
|
290
|
-
...e,
|
|
291
|
-
[t]: void 0
|
|
292
|
-
}), Me = [
|
|
293
|
-
"noscript",
|
|
294
|
-
"script",
|
|
295
|
-
"style"
|
|
296
|
-
/* STYLE */
|
|
297
|
-
], H = (e, t = !0) => t === !1 ? String(e) : String(e).replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'"), J = (e) => Object.keys(e).reduce((t, r) => {
|
|
298
|
-
const n = typeof e[r] < "u" ? `${r}="${e[r]}"` : `${r}`;
|
|
299
|
-
return t ? `${t} ${n}` : n;
|
|
300
|
-
}, ""), Le = (e, t, r, n) => {
|
|
301
|
-
const o = J(r), s = W(t);
|
|
302
|
-
return o ? `<${e} ${h}="true" ${o}>${H(
|
|
303
|
-
s,
|
|
304
|
-
n
|
|
305
|
-
)}</${e}>` : `<${e} ${h}="true">${H(
|
|
306
|
-
s,
|
|
307
|
-
n
|
|
308
|
-
)}</${e}>`;
|
|
309
|
-
}, qe = (e, t, r = !0) => t.reduce((n, o) => {
|
|
310
|
-
const s = o, l = Object.keys(s).filter(
|
|
311
|
-
(c) => !(c === "innerHTML" || c === "cssText")
|
|
312
|
-
).reduce((c, u) => {
|
|
313
|
-
const f = typeof s[u] > "u" ? u : `${u}="${H(s[u], r)}"`;
|
|
314
|
-
return c ? `${c} ${f}` : f;
|
|
315
|
-
}, ""), i = s.innerHTML || s.cssText || "", a = Me.indexOf(e) === -1;
|
|
316
|
-
return `${n}<${e} ${h}="true" ${l}${a ? "/>" : `>${i}</${e}>`}`;
|
|
317
|
-
}, ""), X = (e, t = {}) => Object.keys(e).reduce((r, n) => {
|
|
318
|
-
const o = q[n];
|
|
319
|
-
return r[o || n] = e[n], r;
|
|
320
|
-
}, t), Fe = (e, t, r) => {
|
|
321
|
-
const n = {
|
|
322
|
-
key: t,
|
|
323
|
-
[h]: !0
|
|
324
|
-
}, o = X(r, n);
|
|
325
|
-
return [T.createElement("title", o, t)];
|
|
326
|
-
}, S = (e, t) => t.map((r, n) => {
|
|
327
|
-
const o = {
|
|
328
|
-
key: n,
|
|
329
|
-
[h]: !0
|
|
330
|
-
};
|
|
331
|
-
return Object.keys(r).forEach((s) => {
|
|
332
|
-
const i = q[s] || s;
|
|
333
|
-
if (i === "innerHTML" || i === "cssText") {
|
|
334
|
-
const a = r.innerHTML || r.cssText;
|
|
335
|
-
o.dangerouslySetInnerHTML = { __html: a };
|
|
336
|
-
} else
|
|
337
|
-
o[i] = r[s];
|
|
338
|
-
}), T.createElement(e, o);
|
|
339
|
-
}), d = (e, t, r = !0) => {
|
|
340
|
-
switch (e) {
|
|
341
|
-
case "title":
|
|
342
|
-
return {
|
|
343
|
-
toComponent: () => Fe(e, t.title, t.titleAttributes),
|
|
344
|
-
toString: () => Le(e, t.title, t.titleAttributes, r)
|
|
345
|
-
};
|
|
346
|
-
case "bodyAttributes":
|
|
347
|
-
case "htmlAttributes":
|
|
348
|
-
return {
|
|
349
|
-
toComponent: () => X(t),
|
|
350
|
-
toString: () => J(t)
|
|
351
|
-
};
|
|
352
|
-
default:
|
|
353
|
-
return {
|
|
354
|
-
toComponent: () => S(e, t),
|
|
355
|
-
toString: () => qe(e, t, r)
|
|
356
|
-
};
|
|
357
|
-
}
|
|
358
|
-
}, Ue = ({ metaTags: e, linkTags: t, scriptTags: r, encode: n }) => {
|
|
359
|
-
const o = $(e, D.meta), s = $(t, D.link), l = $(r, D.script);
|
|
360
|
-
return {
|
|
361
|
-
priorityMethods: {
|
|
362
|
-
toComponent: () => [
|
|
363
|
-
...S("meta", o.priority),
|
|
364
|
-
...S("link", s.priority),
|
|
365
|
-
...S("script", l.priority)
|
|
366
|
-
],
|
|
367
|
-
toString: () => (
|
|
368
|
-
// generate all the tags as strings and concatenate them
|
|
369
|
-
`${d("meta", o.priority, n)} ${d(
|
|
370
|
-
"link",
|
|
371
|
-
s.priority,
|
|
372
|
-
n
|
|
373
|
-
)} ${d("script", l.priority, n)}`
|
|
374
|
-
)
|
|
375
|
-
},
|
|
376
|
-
metaTags: o.default,
|
|
377
|
-
linkTags: s.default,
|
|
378
|
-
scriptTags: l.default
|
|
379
|
-
};
|
|
380
|
-
}, Ke = (e) => {
|
|
381
|
-
const {
|
|
382
|
-
baseTag: t,
|
|
383
|
-
bodyAttributes: r,
|
|
384
|
-
encode: n = !0,
|
|
385
|
-
htmlAttributes: o,
|
|
386
|
-
noscriptTags: s,
|
|
387
|
-
styleTags: l,
|
|
388
|
-
title: i = "",
|
|
389
|
-
titleAttributes: a,
|
|
390
|
-
prioritizeSeoTags: c
|
|
391
|
-
} = e;
|
|
392
|
-
let { linkTags: u, metaTags: f, scriptTags: m } = e, p = {
|
|
393
|
-
toComponent: () => {
|
|
394
|
-
},
|
|
395
|
-
toString: () => ""
|
|
396
|
-
};
|
|
397
|
-
return c && ({ priorityMethods: p, linkTags: u, metaTags: f, scriptTags: m } = Ue(e)), {
|
|
398
|
-
priority: p,
|
|
399
|
-
base: d("base", t, n),
|
|
400
|
-
bodyAttributes: d("bodyAttributes", r, n),
|
|
401
|
-
htmlAttributes: d("htmlAttributes", o, n),
|
|
402
|
-
link: d("link", u, n),
|
|
403
|
-
meta: d("meta", f, n),
|
|
404
|
-
noscript: d("noscript", s, n),
|
|
405
|
-
script: d("script", m, n),
|
|
406
|
-
style: d("style", l, n),
|
|
407
|
-
title: d("title", { title: i, titleAttributes: a }, n)
|
|
408
|
-
};
|
|
409
|
-
}, _ = Ke, w = [], ee = !!(typeof window < "u" && window.document && window.document.createElement), j = class {
|
|
410
|
-
instances = [];
|
|
411
|
-
canUseDOM = ee;
|
|
412
|
-
context;
|
|
413
|
-
value = {
|
|
414
|
-
setHelmet: (e) => {
|
|
415
|
-
this.context.helmet = e;
|
|
416
|
-
},
|
|
417
|
-
helmetInstances: {
|
|
418
|
-
get: () => this.canUseDOM ? w : this.instances,
|
|
419
|
-
add: (e) => {
|
|
420
|
-
(this.canUseDOM ? w : this.instances).push(e);
|
|
421
|
-
},
|
|
422
|
-
remove: (e) => {
|
|
423
|
-
const t = (this.canUseDOM ? w : this.instances).indexOf(e);
|
|
424
|
-
(this.canUseDOM ? w : this.instances).splice(t, 1);
|
|
425
|
-
}
|
|
426
|
-
}
|
|
427
|
-
};
|
|
428
|
-
constructor(e, t) {
|
|
429
|
-
this.context = e, this.canUseDOM = t || !1, t || (e.helmet = _({
|
|
430
|
-
baseTag: [],
|
|
431
|
-
bodyAttributes: {},
|
|
432
|
-
htmlAttributes: {},
|
|
433
|
-
linkTags: [],
|
|
434
|
-
metaTags: [],
|
|
435
|
-
noscriptTags: [],
|
|
436
|
-
scriptTags: [],
|
|
437
|
-
styleTags: [],
|
|
438
|
-
title: "",
|
|
439
|
-
titleAttributes: {}
|
|
440
|
-
}));
|
|
441
|
-
}
|
|
442
|
-
}, ze = {}, te = T.createContext(ze), Ne = class re extends M {
|
|
443
|
-
static canUseDOM = ee;
|
|
444
|
-
helmetData;
|
|
445
|
-
constructor(t) {
|
|
446
|
-
super(t), this.helmetData = new j(this.props.context || {}, re.canUseDOM);
|
|
447
|
-
}
|
|
448
|
-
render() {
|
|
449
|
-
return /* @__PURE__ */ T.createElement(te.Provider, { value: this.helmetData.value }, this.props.children);
|
|
450
|
-
}
|
|
451
|
-
}, v = (e, t) => {
|
|
452
|
-
const r = document.head || document.querySelector(
|
|
453
|
-
"head"
|
|
454
|
-
/* HEAD */
|
|
455
|
-
), n = r.querySelectorAll(`${e}[${h}]`), o = [].slice.call(n), s = [];
|
|
456
|
-
let l;
|
|
457
|
-
return t && t.length && t.forEach((i) => {
|
|
458
|
-
const a = document.createElement(e);
|
|
459
|
-
for (const c in i)
|
|
460
|
-
if (Object.prototype.hasOwnProperty.call(i, c))
|
|
461
|
-
if (c === "innerHTML")
|
|
462
|
-
a.innerHTML = i.innerHTML;
|
|
463
|
-
else if (c === "cssText")
|
|
464
|
-
a.styleSheet ? a.styleSheet.cssText = i.cssText : a.appendChild(document.createTextNode(i.cssText));
|
|
465
|
-
else {
|
|
466
|
-
const u = c, f = typeof i[u] > "u" ? "" : i[u];
|
|
467
|
-
a.setAttribute(c, f);
|
|
468
|
-
}
|
|
469
|
-
a.setAttribute(h, "true"), o.some((c, u) => (l = u, a.isEqualNode(c))) ? o.splice(l, 1) : s.push(a);
|
|
470
|
-
}), o.forEach((i) => i.parentNode?.removeChild(i)), s.forEach((i) => r.appendChild(i)), {
|
|
471
|
-
oldTags: o,
|
|
472
|
-
newTags: s
|
|
473
|
-
};
|
|
474
|
-
}, k = (e, t) => {
|
|
475
|
-
const r = document.getElementsByTagName(e)[0];
|
|
476
|
-
if (!r)
|
|
477
|
-
return;
|
|
478
|
-
const n = r.getAttribute(h), o = n ? n.split(",") : [], s = [...o], l = Object.keys(t);
|
|
479
|
-
for (const i of l) {
|
|
480
|
-
const a = t[i] || "";
|
|
481
|
-
r.getAttribute(i) !== a && r.setAttribute(i, a), o.indexOf(i) === -1 && o.push(i);
|
|
482
|
-
const c = s.indexOf(i);
|
|
483
|
-
c !== -1 && s.splice(c, 1);
|
|
484
|
-
}
|
|
485
|
-
for (let i = s.length - 1; i >= 0; i -= 1)
|
|
486
|
-
r.removeAttribute(s[i]);
|
|
487
|
-
o.length === s.length ? r.removeAttribute(h) : r.getAttribute(h) !== l.join(",") && r.setAttribute(h, l.join(","));
|
|
488
|
-
}, Be = (e, t) => {
|
|
489
|
-
typeof e < "u" && document.title !== e && (document.title = W(e)), k("title", t);
|
|
490
|
-
}, Y = (e, t) => {
|
|
491
|
-
const {
|
|
492
|
-
baseTag: r,
|
|
493
|
-
bodyAttributes: n,
|
|
494
|
-
htmlAttributes: o,
|
|
495
|
-
linkTags: s,
|
|
496
|
-
metaTags: l,
|
|
497
|
-
noscriptTags: i,
|
|
498
|
-
onChangeClientState: a,
|
|
499
|
-
scriptTags: c,
|
|
500
|
-
styleTags: u,
|
|
501
|
-
title: f,
|
|
502
|
-
titleAttributes: m
|
|
503
|
-
} = e;
|
|
504
|
-
k("body", n), k("html", o), Be(f, m);
|
|
505
|
-
const p = {
|
|
506
|
-
baseTag: v("base", r),
|
|
507
|
-
linkTags: v("link", s),
|
|
508
|
-
metaTags: v("meta", l),
|
|
509
|
-
noscriptTags: v("noscript", i),
|
|
510
|
-
scriptTags: v("script", c),
|
|
511
|
-
styleTags: v("style", u)
|
|
512
|
-
}, g = {}, F = {};
|
|
513
|
-
Object.keys(p).forEach((O) => {
|
|
514
|
-
const { newTags: U, oldTags: ne } = p[O];
|
|
515
|
-
U.length && (g[O] = U), ne.length && (F[O] = p[O].oldTags);
|
|
516
|
-
}), t && t(), a(e, g, F);
|
|
517
|
-
}, C = null, Ve = (e) => {
|
|
518
|
-
C && cancelAnimationFrame(C), e.defer ? C = requestAnimationFrame(() => {
|
|
519
|
-
Y(e, () => {
|
|
520
|
-
C = null;
|
|
521
|
-
});
|
|
522
|
-
}) : (Y(e), C = null);
|
|
523
|
-
}, Ze = Ve, G = class extends M {
|
|
524
|
-
rendered = !1;
|
|
525
|
-
shouldComponentUpdate(e) {
|
|
526
|
-
return !Pe(e, this.props);
|
|
527
|
-
}
|
|
528
|
-
componentDidUpdate() {
|
|
529
|
-
this.emitChange();
|
|
530
|
-
}
|
|
531
|
-
componentWillUnmount() {
|
|
532
|
-
const { helmetInstances: e } = this.props.context;
|
|
533
|
-
e.remove(this), this.emitChange();
|
|
534
|
-
}
|
|
535
|
-
emitChange() {
|
|
536
|
-
const { helmetInstances: e, setHelmet: t } = this.props.context;
|
|
537
|
-
let r = null;
|
|
538
|
-
const n = je(
|
|
539
|
-
e.get().map((o) => {
|
|
540
|
-
const s = { ...o.props };
|
|
541
|
-
return delete s.context, s;
|
|
542
|
-
})
|
|
543
|
-
);
|
|
544
|
-
Ne.canUseDOM ? Ze(n) : _ && (r = _(n)), t(r);
|
|
545
|
-
}
|
|
546
|
-
// componentWillMount will be deprecated
|
|
547
|
-
// for SSR, initialize on first render
|
|
548
|
-
// constructor is also unsafe in StrictMode
|
|
549
|
-
init() {
|
|
550
|
-
if (this.rendered)
|
|
551
|
-
return;
|
|
552
|
-
this.rendered = !0;
|
|
553
|
-
const { helmetInstances: e } = this.props.context;
|
|
554
|
-
e.add(this), this.emitChange();
|
|
555
|
-
}
|
|
556
|
-
render() {
|
|
557
|
-
return this.init(), null;
|
|
558
|
-
}
|
|
559
|
-
}, Ye = class extends M {
|
|
560
|
-
static defaultProps = {
|
|
561
|
-
defer: !0,
|
|
562
|
-
encodeSpecialCharacters: !0,
|
|
563
|
-
prioritizeSeoTags: !1
|
|
564
|
-
};
|
|
565
|
-
shouldComponentUpdate(e) {
|
|
566
|
-
return !Ce(Z(this.props, "helmetData"), Z(e, "helmetData"));
|
|
567
|
-
}
|
|
568
|
-
mapNestedChildrenToProps(e, t) {
|
|
569
|
-
if (!t)
|
|
570
|
-
return null;
|
|
571
|
-
switch (e.type) {
|
|
572
|
-
case "script":
|
|
573
|
-
case "noscript":
|
|
574
|
-
return {
|
|
575
|
-
innerHTML: t
|
|
576
|
-
};
|
|
577
|
-
case "style":
|
|
578
|
-
return {
|
|
579
|
-
cssText: t
|
|
580
|
-
};
|
|
581
|
-
default:
|
|
582
|
-
throw new Error(
|
|
583
|
-
`<${e.type} /> elements are self-closing and can not contain children. Refer to our API for more information.`
|
|
584
|
-
);
|
|
585
|
-
}
|
|
586
|
-
}
|
|
587
|
-
flattenArrayTypeChildren(e, t, r, n) {
|
|
588
|
-
return {
|
|
589
|
-
...t,
|
|
590
|
-
[e.type]: [
|
|
591
|
-
...t[e.type] || [],
|
|
592
|
-
{
|
|
593
|
-
...r,
|
|
594
|
-
...this.mapNestedChildrenToProps(e, n)
|
|
595
|
-
}
|
|
596
|
-
]
|
|
597
|
-
};
|
|
598
|
-
}
|
|
599
|
-
mapObjectTypeChildren(e, t, r, n) {
|
|
600
|
-
switch (e.type) {
|
|
601
|
-
case "title":
|
|
602
|
-
return {
|
|
603
|
-
...t,
|
|
604
|
-
[e.type]: n,
|
|
605
|
-
titleAttributes: { ...r }
|
|
606
|
-
};
|
|
607
|
-
case "body":
|
|
608
|
-
return {
|
|
609
|
-
...t,
|
|
610
|
-
bodyAttributes: { ...r }
|
|
611
|
-
};
|
|
612
|
-
case "html":
|
|
613
|
-
return {
|
|
614
|
-
...t,
|
|
615
|
-
htmlAttributes: { ...r }
|
|
616
|
-
};
|
|
617
|
-
default:
|
|
618
|
-
return {
|
|
619
|
-
...t,
|
|
620
|
-
[e.type]: { ...r }
|
|
621
|
-
};
|
|
622
|
-
}
|
|
623
|
-
}
|
|
624
|
-
mapArrayTypeChildrenToProps(e, t) {
|
|
625
|
-
let r = { ...t };
|
|
626
|
-
return Object.keys(e).forEach((n) => {
|
|
627
|
-
r = {
|
|
628
|
-
...r,
|
|
629
|
-
[n]: e[n]
|
|
630
|
-
};
|
|
631
|
-
}), r;
|
|
632
|
-
}
|
|
633
|
-
warnOnInvalidChildren(e, t) {
|
|
634
|
-
return N(
|
|
635
|
-
V.some((r) => e.type === r),
|
|
636
|
-
typeof e.type == "function" ? "You may be attempting to nest <Helmet> components within each other, which is not allowed. Refer to our API for more information." : `Only elements types ${V.join(
|
|
637
|
-
", "
|
|
638
|
-
)} are allowed. Helmet does not support rendering <${e.type}> elements. Refer to our API for more information.`
|
|
639
|
-
), N(
|
|
640
|
-
!t || typeof t == "string" || Array.isArray(t) && !t.some((r) => typeof r != "string"),
|
|
641
|
-
`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.`
|
|
642
|
-
), !0;
|
|
643
|
-
}
|
|
644
|
-
mapChildrenToProps(e, t) {
|
|
645
|
-
let r = {};
|
|
646
|
-
return T.Children.forEach(e, (n) => {
|
|
647
|
-
if (!n || !n.props)
|
|
648
|
-
return;
|
|
649
|
-
const { children: o, ...s } = n.props, l = Object.keys(s).reduce((a, c) => (a[Re[c] || c] = s[c], a), {});
|
|
650
|
-
let { type: i } = n;
|
|
651
|
-
switch (typeof i == "symbol" ? i = i.toString() : this.warnOnInvalidChildren(n, o), i) {
|
|
652
|
-
case "Symbol(react.fragment)":
|
|
653
|
-
t = this.mapChildrenToProps(o, t);
|
|
654
|
-
break;
|
|
655
|
-
case "link":
|
|
656
|
-
case "meta":
|
|
657
|
-
case "noscript":
|
|
658
|
-
case "script":
|
|
659
|
-
case "style":
|
|
660
|
-
r = this.flattenArrayTypeChildren(
|
|
661
|
-
n,
|
|
662
|
-
r,
|
|
663
|
-
l,
|
|
664
|
-
o
|
|
665
|
-
);
|
|
666
|
-
break;
|
|
667
|
-
default:
|
|
668
|
-
t = this.mapObjectTypeChildren(n, t, l, o);
|
|
669
|
-
break;
|
|
670
|
-
}
|
|
671
|
-
}), this.mapArrayTypeChildrenToProps(r, t);
|
|
672
|
-
}
|
|
673
|
-
render() {
|
|
674
|
-
const { children: e, ...t } = this.props;
|
|
675
|
-
let r = { ...t }, { helmetData: n } = t;
|
|
676
|
-
if (e && (r = this.mapChildrenToProps(e, r)), n && !(n instanceof j)) {
|
|
677
|
-
const o = n;
|
|
678
|
-
n = new j(o.context, !0), delete r.helmetData;
|
|
679
|
-
}
|
|
680
|
-
return n ? /* @__PURE__ */ T.createElement(G, { ...r, context: n.value }) : /* @__PURE__ */ T.createElement(te.Consumer, null, (o) => /* @__PURE__ */ T.createElement(G, { ...r, context: o }));
|
|
681
|
-
}
|
|
682
|
-
};
|
|
683
|
-
const Ge = oe(!1), Qe = (e) => {
|
|
684
|
-
const t = le(e);
|
|
685
|
-
return t.current = e, ce(() => {
|
|
686
|
-
t.current = e;
|
|
687
|
-
}, [e]), t;
|
|
688
|
-
}, We = "protected", st = () => {
|
|
689
|
-
const e = se(), t = ae(), r = pe(), n = de(), o = Qe(n.pathname), s = ue(Ge), { protectedRoutes: l = [] } = t.options, i = !s && l.some(
|
|
690
|
-
(a) => me({ path: a, end: !0 }, n.pathname)
|
|
691
|
-
);
|
|
692
|
-
if (ie({
|
|
693
|
-
queryKey: ["login-redirect"],
|
|
694
|
-
queryFn: async () => (await new Promise((a) => setTimeout(a, 1200)), await t.authentication?.signIn({
|
|
695
|
-
redirectTo: o.current
|
|
696
|
-
}), !0),
|
|
697
|
-
enabled: typeof window < "u" && i && !e.isPending && !e.isAuthenticated
|
|
698
|
-
}), i && !e.isAuthenticated)
|
|
699
|
-
return /* @__PURE__ */ y.jsx(
|
|
700
|
-
ye,
|
|
701
|
-
{
|
|
702
|
-
open: !0,
|
|
703
|
-
onOpenChange: (a) => {
|
|
704
|
-
a || r(-1);
|
|
705
|
-
},
|
|
706
|
-
children: /* @__PURE__ */ y.jsxs(Te, { children: [
|
|
707
|
-
/* @__PURE__ */ y.jsx(ge, { children: /* @__PURE__ */ y.jsx(ve, { children: "Logging you in..." }) }),
|
|
708
|
-
/* @__PURE__ */ y.jsx(Ae, { children: "Please wait while we log you in." })
|
|
709
|
-
] })
|
|
710
|
-
}
|
|
711
|
-
);
|
|
712
|
-
if (i && !e.isAuthEnabled)
|
|
713
|
-
throw new fe("Authentication is not enabled", {
|
|
714
|
-
title: "Authentication is not enabled",
|
|
715
|
-
developerHint: "To use protectedRoutes you need authentication to be enabled"
|
|
716
|
-
});
|
|
717
|
-
return /* @__PURE__ */ y.jsxs(y.Fragment, { children: [
|
|
718
|
-
s && /* @__PURE__ */ y.jsx(Ye, { children: /* @__PURE__ */ y.jsx(
|
|
719
|
-
"meta",
|
|
720
|
-
{
|
|
721
|
-
name: "pagefind",
|
|
722
|
-
"data-pagefind-filter": `section:${We}`,
|
|
723
|
-
content: "true"
|
|
724
|
-
}
|
|
725
|
-
) }),
|
|
726
|
-
/* @__PURE__ */ y.jsx(he, {})
|
|
727
|
-
] });
|
|
728
|
-
};
|
|
729
|
-
export {
|
|
730
|
-
Ge as B,
|
|
731
|
-
Ye as H,
|
|
732
|
-
st as R,
|
|
733
|
-
We as S,
|
|
734
|
-
Ne as a,
|
|
735
|
-
Qe as u
|
|
736
|
-
};
|
|
737
|
-
//# sourceMappingURL=RouteGuard-Vnlz_t51.js.map
|