zudoku 0.0.0-ff3751f → 0.0.0-fix-display-option-navigation-items.4bdfe991
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/cli.js +9 -0
- package/dist/app/ZuploBuildConfig.d.ts +45 -0
- package/dist/app/ZuploBuildConfig.js +29 -0
- package/dist/app/ZuploBuildConfig.js.map +1 -0
- package/dist/app/demo.js +22 -9
- package/dist/app/demo.js.map +1 -1
- package/dist/app/entry.client.d.ts +6 -2
- package/dist/app/entry.client.js +51 -3
- package/dist/app/entry.client.js.map +1 -1
- package/dist/app/entry.server.d.ts +9 -8
- package/dist/app/entry.server.js +18 -16
- package/dist/app/entry.server.js.map +1 -1
- package/dist/app/env.d.ts +33 -0
- package/dist/app/env.js +37 -0
- package/dist/app/env.js.map +1 -0
- package/dist/app/main.d.ts +4 -3
- package/dist/app/main.js +44 -43
- package/dist/app/main.js.map +1 -1
- package/dist/app/sentry.d.ts +3 -0
- package/dist/app/sentry.js +19 -0
- package/dist/app/sentry.js.map +1 -0
- package/dist/app/standalone.js +8 -10
- package/dist/app/standalone.js.map +1 -1
- package/dist/cli/build/handler.d.ts +1 -3
- package/dist/cli/build/handler.js +18 -2
- package/dist/cli/build/handler.js.map +1 -1
- package/dist/cli/cli.js +17 -3
- package/dist/cli/cli.js.map +1 -1
- package/dist/cli/cmds/build.d.ts +11 -3
- package/dist/cli/cmds/build.js +21 -13
- package/dist/cli/cmds/build.js.map +1 -1
- package/dist/cli/cmds/dev.d.ts +1 -1
- package/dist/cli/cmds/dev.js +5 -0
- package/dist/cli/cmds/dev.js.map +1 -1
- package/dist/cli/cmds/preview.d.ts +16 -0
- package/dist/cli/cmds/preview.js +25 -0
- package/dist/cli/cmds/preview.js.map +1 -0
- package/dist/cli/common/logger.js +9 -0
- package/dist/cli/common/logger.js.map +1 -1
- package/dist/cli/common/machine-id/lib.js +1 -0
- package/dist/cli/common/machine-id/lib.js.map +1 -1
- package/dist/cli/common/outdated.js +2 -1
- package/dist/cli/common/outdated.js.map +1 -1
- package/dist/cli/common/output.js.map +1 -1
- package/dist/cli/common/utils/ports.d.ts +1 -1
- package/dist/cli/common/utils/ports.js +16 -15
- package/dist/cli/common/utils/ports.js.map +1 -1
- package/dist/cli/dev/handler.d.ts +1 -0
- package/dist/cli/dev/handler.js +15 -12
- package/dist/cli/dev/handler.js.map +1 -1
- package/dist/cli/preview/handler.d.ts +3 -0
- package/dist/cli/preview/handler.js +35 -0
- package/dist/cli/preview/handler.js.map +1 -0
- package/dist/codegen.d.ts +3 -0
- package/dist/codegen.js +45 -0
- package/dist/codegen.js.map +1 -0
- package/dist/config/config.d.ts +28 -13
- package/dist/config/file-exists.d.ts +1 -0
- package/dist/config/file-exists.js +5 -0
- package/dist/config/file-exists.js.map +1 -0
- package/dist/config/loader.d.ts +21 -0
- package/dist/config/loader.js +141 -0
- package/dist/config/loader.js.map +1 -0
- package/dist/config/validators/BuildSchema.d.ts +36 -0
- package/dist/config/validators/BuildSchema.js +25 -0
- package/dist/config/validators/BuildSchema.js.map +1 -0
- package/dist/config/validators/InputNavigationSchema.d.ts +7460 -0
- package/dist/config/validators/InputNavigationSchema.js +74 -0
- package/dist/config/validators/InputNavigationSchema.js.map +1 -0
- package/dist/config/validators/InputNavigationSchema.test-d.js +145 -0
- package/dist/config/validators/InputNavigationSchema.test-d.js.map +1 -0
- package/dist/config/validators/NavigationSchema.d.ts +44 -0
- package/dist/config/validators/NavigationSchema.js +96 -0
- package/dist/config/validators/NavigationSchema.js.map +1 -0
- package/dist/config/validators/ProtectedRoutesSchema.d.ts +12 -0
- package/dist/config/validators/ProtectedRoutesSchema.js +19 -0
- package/dist/config/validators/ProtectedRoutesSchema.js.map +1 -0
- package/dist/config/validators/icon-types.d.ts +2 -0
- package/dist/config/validators/icon-types.js +1830 -0
- package/dist/config/validators/icon-types.js.map +1 -0
- package/dist/config/validators/validate.d.ts +655 -1564
- package/dist/config/validators/validate.js +345 -145
- package/dist/config/validators/validate.js.map +1 -1
- package/dist/config/validators/validate.test.js +141 -0
- package/dist/config/validators/validate.test.js.map +1 -0
- package/dist/index.d.ts +9 -5
- package/dist/index.js +5 -1
- package/dist/index.js.map +1 -1
- package/dist/lib/MissingIcon.d.ts +2 -0
- package/dist/lib/MissingIcon.js +7 -0
- package/dist/lib/MissingIcon.js.map +1 -0
- package/dist/lib/auth/issuer.d.ts +2 -0
- package/dist/lib/auth/issuer.js +37 -0
- package/dist/lib/auth/issuer.js.map +1 -0
- package/dist/lib/auth/issuer.test.js +94 -0
- package/dist/lib/auth/issuer.test.js.map +1 -0
- package/dist/lib/authentication/AuthenticationPlugin.d.ts +6 -4
- package/dist/lib/authentication/AuthenticationPlugin.js +4 -1
- package/dist/lib/authentication/AuthenticationPlugin.js.map +1 -1
- package/dist/lib/authentication/authentication.d.ts +6 -5
- package/dist/lib/authentication/components/CallbackHandler.js +17 -11
- 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/components/SignIn.d.ts +1 -1
- package/dist/lib/authentication/components/SignIn.js +6 -2
- package/dist/lib/authentication/components/SignIn.js.map +1 -1
- package/dist/lib/authentication/components/SignOut.js +2 -2
- package/dist/lib/authentication/components/SignOut.js.map +1 -1
- package/dist/lib/authentication/components/SignUp.d.ts +1 -1
- package/dist/lib/authentication/components/SignUp.js +4 -1
- package/dist/lib/authentication/components/SignUp.js.map +1 -1
- 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 +13 -4
- package/dist/lib/authentication/hook.js +12 -4
- package/dist/lib/authentication/hook.js.map +1 -1
- package/dist/lib/authentication/providers/auth0.d.ts +2 -2
- package/dist/lib/authentication/providers/auth0.js +16 -14
- package/dist/lib/authentication/providers/auth0.js.map +1 -1
- package/dist/lib/authentication/providers/azureb2c.d.ts +28 -0
- package/dist/lib/authentication/providers/azureb2c.js +147 -0
- package/dist/lib/authentication/providers/azureb2c.js.map +1 -0
- package/dist/lib/authentication/providers/clerk.d.ts +2 -2
- package/dist/lib/authentication/providers/clerk.js +108 -48
- package/dist/lib/authentication/providers/clerk.js.map +1 -1
- package/dist/lib/authentication/providers/openid.d.ts +26 -21
- package/dist/lib/authentication/providers/openid.js +112 -73
- package/dist/lib/authentication/providers/openid.js.map +1 -1
- package/dist/lib/authentication/providers/supabase.d.ts +4 -0
- package/dist/lib/authentication/providers/supabase.js +108 -0
- package/dist/lib/authentication/providers/supabase.js.map +1 -0
- package/dist/lib/authentication/state.d.ts +24 -19
- package/dist/lib/authentication/state.js +47 -7
- 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/AnchorLink.d.ts +2 -2
- package/dist/lib/components/AnchorLink.js +9 -5
- package/dist/lib/components/AnchorLink.js.map +1 -1
- package/dist/lib/components/Autocomplete.d.ts +13 -0
- package/dist/lib/components/Autocomplete.js +47 -0
- package/dist/lib/components/Autocomplete.js.map +1 -0
- package/dist/lib/components/Banner.js +2 -2
- package/dist/lib/components/Banner.js.map +1 -1
- package/dist/lib/components/Bootstrap.d.ts +5 -3
- package/dist/lib/components/Bootstrap.js +13 -6
- package/dist/lib/components/Bootstrap.js.map +1 -1
- package/dist/lib/components/BuildCheck.d.ts +4 -0
- package/dist/lib/components/BuildCheck.js +38 -0
- package/dist/lib/components/BuildCheck.js.map +1 -0
- package/dist/lib/components/CategoryHeading.js +1 -1
- package/dist/lib/components/CategoryHeading.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/ErrorPage.js +2 -2
- package/dist/lib/components/ErrorPage.js.map +1 -1
- package/dist/lib/components/Footer.d.ts +1 -0
- package/dist/lib/components/Footer.js +32 -0
- package/dist/lib/components/Footer.js.map +1 -0
- package/dist/lib/components/Framed.d.ts +7 -0
- package/dist/lib/components/Framed.js +26 -0
- package/dist/lib/components/Framed.js.map +1 -0
- package/dist/lib/components/Header.js +32 -17
- package/dist/lib/components/Header.js.map +1 -1
- package/dist/lib/components/Heading.d.ts +10 -6
- package/dist/lib/components/Heading.js +7 -2
- package/dist/lib/components/Heading.js.map +1 -1
- package/dist/lib/components/InlineCode.d.ts +2 -1
- package/dist/lib/components/InlineCode.js +2 -9
- package/dist/lib/components/InlineCode.js.map +1 -1
- package/dist/lib/components/Layout.js +10 -21
- package/dist/lib/components/Layout.js.map +1 -1
- package/dist/lib/components/Main.d.ts +2 -0
- package/dist/lib/components/Main.js +18 -0
- package/dist/lib/components/Main.js.map +1 -0
- package/dist/lib/components/Markdown.d.ts +4 -3
- package/dist/lib/components/Markdown.js +14 -14
- package/dist/lib/components/Markdown.js.map +1 -1
- package/dist/lib/components/MobileTopNavigation.js +18 -9
- package/dist/lib/components/MobileTopNavigation.js.map +1 -1
- package/dist/lib/components/NotFoundPage.js +3 -3
- package/dist/lib/components/NotFoundPage.js.map +1 -1
- package/dist/lib/components/PageProgress.d.ts +1 -0
- package/dist/lib/components/PageProgress.js +20 -0
- package/dist/lib/components/PageProgress.js.map +1 -0
- package/dist/lib/components/Pagination.d.ts +11 -0
- package/dist/lib/components/Pagination.js +10 -0
- package/dist/lib/components/Pagination.js.map +1 -0
- package/dist/lib/components/PathRenderer.d.ts +11 -0
- package/dist/lib/components/PathRenderer.js +28 -0
- package/dist/lib/components/PathRenderer.js.map +1 -0
- package/dist/lib/components/ReactMarkdown.d.ts +29 -0
- package/dist/lib/components/ReactMarkdown.js +182 -0
- package/dist/lib/components/ReactMarkdown.js.map +1 -0
- package/dist/lib/components/Search.d.ts +3 -1
- package/dist/lib/components/Search.js +9 -3
- package/dist/lib/components/Search.js.map +1 -1
- package/dist/lib/components/Slot.d.ts +17 -0
- package/dist/lib/components/Slot.js +24 -0
- package/dist/lib/components/Slot.js.map +1 -0
- package/dist/lib/components/Slot.test.d.ts +1 -0
- package/dist/lib/components/Slot.test.js +168 -0
- package/dist/lib/components/Slot.test.js.map +1 -0
- package/dist/lib/components/StatusPage.d.ts +7 -0
- package/dist/lib/components/StatusPage.js +75 -0
- package/dist/lib/components/StatusPage.js.map +1 -0
- package/dist/lib/components/ThemeSwitch.d.ts +1 -0
- package/dist/lib/components/ThemeSwitch.js +16 -0
- package/dist/lib/components/ThemeSwitch.js.map +1 -0
- package/dist/lib/components/TopNavigation.d.ts +7 -3
- package/dist/lib/components/TopNavigation.js +55 -37
- package/dist/lib/components/TopNavigation.js.map +1 -1
- package/dist/lib/components/Typography.d.ts +5 -0
- package/dist/lib/components/Typography.js +8 -0
- package/dist/lib/components/Typography.js.map +1 -0
- package/dist/lib/components/Zudoku.d.ts +7 -0
- package/dist/lib/components/Zudoku.js +58 -0
- package/dist/lib/components/Zudoku.js.map +1 -0
- package/dist/lib/components/cache.d.ts +13 -0
- package/dist/lib/components/cache.js +20 -0
- package/dist/lib/components/cache.js.map +1 -0
- package/dist/lib/components/context/BypassProtectedRoutesContext.d.ts +1 -0
- package/dist/lib/components/context/BypassProtectedRoutesContext.js +3 -0
- package/dist/lib/components/context/BypassProtectedRoutesContext.js.map +1 -0
- package/dist/lib/components/context/RouterEventsEmitter.d.ts +1 -0
- package/dist/lib/components/context/RouterEventsEmitter.js +17 -0
- package/dist/lib/components/context/RouterEventsEmitter.js.map +1 -0
- package/dist/lib/components/context/SlotProvider.d.ts +26 -0
- package/dist/lib/components/context/SlotProvider.js +83 -0
- package/dist/lib/components/context/SlotProvider.js.map +1 -0
- package/dist/lib/components/context/ViewportAnchorContext.d.ts +2 -4
- package/dist/lib/components/context/ViewportAnchorContext.js +29 -23
- package/dist/lib/components/context/ViewportAnchorContext.js.map +1 -1
- package/dist/lib/components/context/ZudokuContext.d.ts +9 -13
- package/dist/lib/components/context/ZudokuContext.js +64 -31
- 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 +2 -1
- package/dist/lib/components/context/ZudokuProvider.js.map +1 -1
- package/dist/lib/components/index.d.ts +69 -20
- package/dist/lib/components/index.js +31 -9
- package/dist/lib/components/index.js.map +1 -1
- package/dist/lib/components/navigation/Navigation.d.ts +5 -0
- package/dist/lib/components/navigation/Navigation.js +12 -0
- package/dist/lib/components/navigation/Navigation.js.map +1 -0
- package/dist/lib/components/navigation/NavigationBadge.d.ts +26 -0
- package/dist/lib/components/navigation/NavigationBadge.js +26 -0
- package/dist/lib/components/navigation/NavigationBadge.js.map +1 -0
- package/dist/lib/components/navigation/NavigationCategory.d.ts +5 -0
- package/dist/lib/components/navigation/NavigationCategory.js +61 -0
- package/dist/lib/components/navigation/NavigationCategory.js.map +1 -0
- package/dist/lib/components/navigation/NavigationItem.d.ts +6 -0
- package/dist/lib/components/navigation/NavigationItem.js +54 -0
- package/dist/lib/components/navigation/NavigationItem.js.map +1 -0
- package/dist/lib/components/navigation/NavigationWrapper.d.ts +7 -0
- package/dist/lib/components/navigation/NavigationWrapper.js +21 -0
- package/dist/lib/components/navigation/NavigationWrapper.js.map +1 -0
- package/dist/lib/components/navigation/PoweredByZudoku.d.ts +3 -0
- package/dist/lib/components/navigation/PoweredByZudoku.js +7 -0
- package/dist/lib/components/navigation/PoweredByZudoku.js.map +1 -0
- package/dist/lib/components/navigation/Toc.js +46 -0
- package/dist/lib/components/navigation/Toc.js.map +1 -0
- package/dist/lib/components/navigation/ZudokuLogo.d.ts +6 -0
- package/dist/lib/components/navigation/ZudokuLogo.js +5 -0
- package/dist/lib/components/navigation/ZudokuLogo.js.map +1 -0
- package/dist/lib/components/navigation/ZuploLogo.d.ts +3 -0
- package/dist/lib/components/navigation/ZuploLogo.js +4 -0
- package/dist/lib/components/navigation/ZuploLogo.js.map +1 -0
- package/dist/lib/components/navigation/utils.d.ts +14 -6
- package/dist/lib/components/navigation/utils.js +50 -19
- package/dist/lib/components/navigation/utils.js.map +1 -1
- package/dist/lib/core/RouteGuard.d.ts +2 -0
- package/dist/lib/core/RouteGuard.js +52 -0
- package/dist/lib/core/RouteGuard.js.map +1 -0
- package/dist/lib/core/ZudokuContext.d.ts +113 -0
- package/dist/lib/core/ZudokuContext.js +93 -0
- package/dist/lib/core/ZudokuContext.js.map +1 -0
- package/dist/lib/core/plugins.d.ts +37 -19
- package/dist/lib/core/plugins.js +4 -0
- package/dist/lib/core/plugins.js.map +1 -1
- package/dist/lib/errors/ErrorAlert.js +5 -1
- package/dist/lib/errors/ErrorAlert.js.map +1 -1
- package/dist/lib/errors/RouterError.js +1 -1
- package/dist/lib/errors/RouterError.js.map +1 -1
- package/dist/lib/hooks/index.d.ts +28 -0
- package/dist/lib/hooks/index.js +16 -0
- package/dist/lib/hooks/index.js.map +1 -0
- package/dist/lib/hooks/useEvent.d.ts +11 -0
- package/dist/lib/hooks/useEvent.js +19 -0
- package/dist/lib/hooks/useEvent.js.map +1 -0
- package/dist/lib/hooks/useEvent.test.d.ts +1 -0
- package/dist/lib/hooks/useEvent.test.js +102 -0
- package/dist/lib/hooks/useEvent.test.js.map +1 -0
- package/dist/lib/hooks/useHotkey.d.ts +4 -0
- package/dist/lib/hooks/useHotkey.js +58 -0
- package/dist/lib/hooks/useHotkey.js.map +1 -0
- package/dist/lib/icons.d.ts +1 -0
- package/dist/lib/icons.js +1 -0
- package/dist/lib/icons.js.map +1 -1
- package/dist/lib/oas/graphql/circular.d.ts +3 -0
- package/dist/lib/oas/graphql/circular.js +43 -0
- package/dist/lib/oas/graphql/circular.js.map +1 -0
- package/dist/lib/oas/graphql/index.d.ts +25 -1
- package/dist/lib/oas/graphql/index.js +216 -69
- package/dist/lib/oas/graphql/index.js.map +1 -1
- package/dist/lib/oas/parser/dereference/index.js +8 -3
- package/dist/lib/oas/parser/dereference/index.js.map +1 -1
- package/dist/lib/oas/parser/index.d.ts +8 -3
- package/dist/lib/oas/parser/index.js +7 -23
- package/dist/lib/oas/parser/index.js.map +1 -1
- package/dist/lib/oas/parser/upgrade/index.d.ts +3 -2
- package/dist/lib/oas/parser/upgrade/index.js +83 -31
- package/dist/lib/oas/parser/upgrade/index.js.map +1 -1
- package/dist/lib/plugins/api-catalog/Catalog.d.ts +4 -0
- package/dist/lib/plugins/api-catalog/Catalog.js +26 -0
- package/dist/lib/plugins/api-catalog/Catalog.js.map +1 -0
- package/dist/lib/plugins/api-catalog/index.d.ts +31 -0
- package/dist/lib/plugins/api-catalog/index.js +46 -0
- package/dist/lib/plugins/api-catalog/index.js.map +1 -0
- package/dist/lib/plugins/api-keys/CreateApiKey.d.ts +3 -2
- package/dist/lib/plugins/api-keys/CreateApiKey.js +15 -7
- package/dist/lib/plugins/api-keys/CreateApiKey.js.map +1 -1
- package/dist/lib/plugins/api-keys/ProtectedRoute.js +1 -1
- package/dist/lib/plugins/api-keys/ProtectedRoute.js.map +1 -1
- package/dist/lib/plugins/api-keys/SettingsApiKeys.d.ts +1 -1
- package/dist/lib/plugins/api-keys/SettingsApiKeys.js +151 -28
- package/dist/lib/plugins/api-keys/SettingsApiKeys.js.map +1 -1
- package/dist/lib/plugins/api-keys/index.d.ts +25 -15
- package/dist/lib/plugins/api-keys/index.js +68 -30
- package/dist/lib/plugins/api-keys/index.js.map +1 -1
- package/dist/lib/plugins/custom-pages/index.d.ts +4 -6
- package/dist/lib/plugins/custom-pages/index.js +15 -10
- package/dist/lib/plugins/custom-pages/index.js.map +1 -1
- package/dist/lib/plugins/markdown/MdxPage.d.ts +9 -2
- package/dist/lib/plugins/markdown/MdxPage.js +43 -10
- package/dist/lib/plugins/markdown/MdxPage.js.map +1 -1
- package/dist/lib/plugins/markdown/index.d.ts +14 -4
- package/dist/lib/plugins/markdown/index.js +9 -26
- package/dist/lib/plugins/markdown/index.js.map +1 -1
- package/dist/lib/plugins/openapi/CollapsibleCode.d.ts +5 -0
- package/dist/lib/plugins/openapi/CollapsibleCode.js +25 -0
- package/dist/lib/plugins/openapi/CollapsibleCode.js.map +1 -0
- package/dist/lib/plugins/openapi/ColorizedParam.d.ts +10 -2
- package/dist/lib/plugins/openapi/ColorizedParam.js +29 -14
- package/dist/lib/plugins/openapi/ColorizedParam.js.map +1 -1
- package/dist/lib/plugins/openapi/Endpoint.js +13 -16
- package/dist/lib/plugins/openapi/Endpoint.js.map +1 -1
- package/dist/lib/plugins/openapi/OasProvider.d.ts +8 -0
- package/dist/lib/plugins/openapi/OasProvider.js +29 -0
- package/dist/lib/plugins/openapi/OasProvider.js.map +1 -0
- package/dist/lib/plugins/openapi/OperationList.d.ts +6 -3
- package/dist/lib/plugins/openapi/OperationList.js +109 -29
- package/dist/lib/plugins/openapi/OperationList.js.map +1 -1
- package/dist/lib/plugins/openapi/OperationListItem.d.ts +5 -3
- package/dist/lib/plugins/openapi/OperationListItem.js +13 -7
- package/dist/lib/plugins/openapi/OperationListItem.js.map +1 -1
- package/dist/lib/plugins/openapi/ParamInfos.d.ts +6 -0
- package/dist/lib/plugins/openapi/ParamInfos.js +45 -0
- package/dist/lib/plugins/openapi/ParamInfos.js.map +1 -0
- package/dist/lib/plugins/openapi/ParameterList.d.ts +2 -1
- package/dist/lib/plugins/openapi/ParameterList.js +3 -2
- package/dist/lib/plugins/openapi/ParameterList.js.map +1 -1
- package/dist/lib/plugins/openapi/ParameterListItem.js +19 -1
- package/dist/lib/plugins/openapi/ParameterListItem.js.map +1 -1
- package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.d.ts +4 -2
- package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.js +17 -4
- package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.js.map +1 -1
- package/dist/lib/plugins/openapi/RequestBodySidecarBox.d.ts +3 -4
- package/dist/lib/plugins/openapi/RequestBodySidecarBox.js +5 -9
- package/dist/lib/plugins/openapi/RequestBodySidecarBox.js.map +1 -1
- package/dist/lib/plugins/openapi/ResponsesSidecarBox.d.ts +2 -4
- package/dist/lib/plugins/openapi/ResponsesSidecarBox.js +4 -6
- package/dist/lib/plugins/openapi/ResponsesSidecarBox.js.map +1 -1
- package/dist/lib/plugins/openapi/SchemaList.d.ts +1 -0
- package/dist/lib/plugins/openapi/SchemaList.js +52 -0
- package/dist/lib/plugins/openapi/SchemaList.js.map +1 -0
- package/dist/lib/plugins/openapi/Sidecar.d.ts +1 -1
- package/dist/lib/plugins/openapi/Sidecar.js +87 -118
- package/dist/lib/plugins/openapi/Sidecar.js.map +1 -1
- package/dist/lib/plugins/openapi/SidecarBox.js +4 -4
- package/dist/lib/plugins/openapi/SidecarBox.js.map +1 -1
- package/dist/lib/plugins/openapi/SidecarExamples.d.ts +9 -0
- package/dist/lib/plugins/openapi/SidecarExamples.js +76 -0
- package/dist/lib/plugins/openapi/SidecarExamples.js.map +1 -0
- package/dist/lib/plugins/openapi/SimpleSelect.js +1 -1
- package/dist/lib/plugins/openapi/SimpleSelect.js.map +1 -1
- package/dist/lib/plugins/openapi/client/GraphQLClient.d.ts +8 -0
- package/dist/lib/plugins/openapi/client/GraphQLClient.js +43 -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 +3 -1
- package/dist/lib/plugins/openapi/client/createServer.js +5 -2
- package/dist/lib/plugins/openapi/client/createServer.js.map +1 -1
- package/dist/lib/plugins/openapi/client/useCreateQuery.d.ts +14 -0
- package/dist/lib/plugins/openapi/client/useCreateQuery.js +20 -0
- package/dist/lib/plugins/openapi/client/useCreateQuery.js.map +1 -0
- package/dist/lib/plugins/openapi/components/ConstValue.d.ts +5 -0
- package/dist/lib/plugins/openapi/components/ConstValue.js +6 -0
- package/dist/lib/plugins/openapi/components/ConstValue.js.map +1 -0
- package/dist/lib/plugins/openapi/components/EnumValues.d.ts +5 -0
- package/dist/lib/plugins/openapi/components/EnumValues.js +15 -0
- package/dist/lib/plugins/openapi/components/EnumValues.js.map +1 -0
- package/dist/lib/plugins/openapi/components/ResponseContent.d.ts +12 -0
- package/dist/lib/plugins/openapi/components/ResponseContent.js +21 -0
- package/dist/lib/plugins/openapi/components/ResponseContent.js.map +1 -0
- package/dist/lib/plugins/openapi/components/SelectOnClick.d.ts +5 -0
- package/dist/lib/plugins/openapi/components/SelectOnClick.js +16 -0
- package/dist/lib/plugins/openapi/components/SelectOnClick.js.map +1 -0
- package/dist/lib/plugins/openapi/context.d.ts +3 -3
- 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 +8 -46
- package/dist/lib/plugins/openapi/graphql/gql.js +6 -13
- package/dist/lib/plugins/openapi/graphql/gql.js.map +1 -1
- package/dist/lib/plugins/openapi/graphql/graphql.d.ts +142 -25
- package/dist/lib/plugins/openapi/graphql/graphql.js +239 -662
- package/dist/lib/plugins/openapi/graphql/graphql.js.map +1 -1
- package/dist/lib/plugins/openapi/index.d.ts +11 -8
- package/dist/lib/plugins/openapi/index.js +106 -104
- package/dist/lib/plugins/openapi/index.js.map +1 -1
- package/dist/lib/plugins/openapi/interfaces.d.ts +58 -4
- package/dist/lib/plugins/openapi/playground/BodyPanel.d.ts +5 -0
- package/dist/lib/plugins/openapi/playground/BodyPanel.js +26 -0
- package/dist/lib/plugins/openapi/playground/BodyPanel.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/CollapsibleHeader.d.ts +8 -0
- package/dist/lib/plugins/openapi/playground/CollapsibleHeader.js +11 -0
- package/dist/lib/plugins/openapi/playground/CollapsibleHeader.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/ExamplesDropdown.d.ts +6 -0
- package/dist/lib/plugins/openapi/playground/ExamplesDropdown.js +9 -0
- package/dist/lib/plugins/openapi/playground/ExamplesDropdown.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/Headers.d.ts +5 -4
- package/dist/lib/plugins/openapi/playground/Headers.js +108 -7
- package/dist/lib/plugins/openapi/playground/Headers.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/IdentityDialog.d.ts +11 -0
- package/dist/lib/plugins/openapi/playground/IdentityDialog.js +15 -0
- package/dist/lib/plugins/openapi/playground/IdentityDialog.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/IdentitySelector.d.ts +7 -0
- package/dist/lib/plugins/openapi/playground/IdentitySelector.js +7 -0
- package/dist/lib/plugins/openapi/playground/IdentitySelector.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/InlineInput.js +1 -1
- package/dist/lib/plugins/openapi/playground/InlineInput.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/ParamsGrid.d.ts +9 -0
- package/dist/lib/plugins/openapi/playground/ParamsGrid.js +5 -0
- package/dist/lib/plugins/openapi/playground/ParamsGrid.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/PathParams.d.ts +3 -2
- package/dist/lib/plugins/openapi/playground/PathParams.js +4 -7
- package/dist/lib/plugins/openapi/playground/PathParams.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/Playground.d.ts +32 -2
- package/dist/lib/plugins/openapi/playground/Playground.js +168 -84
- 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/playground/QueryParams.d.ts +3 -3
- package/dist/lib/plugins/openapi/playground/QueryParams.js +43 -22
- package/dist/lib/plugins/openapi/playground/QueryParams.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/RequestLoginDialog.d.ts +7 -0
- package/dist/lib/plugins/openapi/playground/RequestLoginDialog.js +8 -0
- package/dist/lib/plugins/openapi/playground/RequestLoginDialog.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/Spinner.d.ts +2 -0
- package/dist/lib/plugins/openapi/playground/Spinner.js +63 -0
- package/dist/lib/plugins/openapi/playground/Spinner.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/fileUtils.d.ts +2 -0
- package/dist/lib/plugins/openapi/playground/fileUtils.js +22 -0
- package/dist/lib/plugins/openapi/playground/fileUtils.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/rememberedIdentity.d.ts +17 -0
- package/dist/lib/plugins/openapi/playground/rememberedIdentity.js +11 -0
- package/dist/lib/plugins/openapi/playground/rememberedIdentity.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/request-panel/UrlPath.d.ts +3 -0
- package/dist/lib/plugins/openapi/playground/request-panel/UrlPath.js +13 -0
- package/dist/lib/plugins/openapi/playground/request-panel/UrlPath.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/request-panel/UrlQueryParams.d.ts +1 -0
- package/dist/lib/plugins/openapi/playground/request-panel/UrlQueryParams.js +12 -0
- package/dist/lib/plugins/openapi/playground/request-panel/UrlQueryParams.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/result-panel/Highlight.d.ts +12 -0
- package/dist/lib/plugins/openapi/playground/result-panel/Highlight.js +11 -0
- package/dist/lib/plugins/openapi/playground/result-panel/Highlight.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/result-panel/ResponseStatusBar.d.ts +8 -0
- package/dist/lib/plugins/openapi/playground/result-panel/ResponseStatusBar.js +69 -0
- package/dist/lib/plugins/openapi/playground/result-panel/ResponseStatusBar.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.d.ts +14 -0
- package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.js +103 -0
- package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.d.ts +11 -0
- package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.js +15 -0
- package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.d.ts +10 -0
- package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.js +32 -0
- package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.test.d.ts +1 -0
- package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.test.js +56 -0
- package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.test.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/useRememberSkipLoginDialog.d.ts +16 -0
- package/dist/lib/plugins/openapi/playground/useRememberSkipLoginDialog.js +10 -0
- package/dist/lib/plugins/openapi/playground/useRememberSkipLoginDialog.js.map +1 -0
- package/dist/lib/plugins/openapi/processors/removeExtensions.d.ts +8 -0
- package/dist/lib/plugins/openapi/processors/removeExtensions.js +16 -0
- package/dist/lib/plugins/openapi/processors/removeExtensions.js.map +1 -0
- package/dist/lib/plugins/openapi/processors/removeExtensions.test.d.ts +1 -0
- package/dist/lib/plugins/openapi/processors/removeExtensions.test.js +194 -0
- package/dist/lib/plugins/openapi/processors/removeExtensions.test.js.map +1 -0
- package/dist/lib/plugins/openapi/processors/removeParameters.d.ts +12 -0
- package/dist/lib/plugins/openapi/processors/removeParameters.js +66 -0
- package/dist/lib/plugins/openapi/processors/removeParameters.js.map +1 -0
- package/dist/lib/plugins/openapi/processors/removeParameters.test.d.ts +1 -0
- package/dist/lib/plugins/openapi/processors/removeParameters.test.js +159 -0
- package/dist/lib/plugins/openapi/processors/removeParameters.test.js.map +1 -0
- package/dist/lib/plugins/openapi/processors/removePaths.d.ts +13 -0
- package/dist/lib/plugins/openapi/processors/removePaths.js +33 -0
- package/dist/lib/plugins/openapi/processors/removePaths.js.map +1 -0
- package/dist/lib/plugins/openapi/processors/removePaths.test.d.ts +1 -0
- package/dist/lib/plugins/openapi/processors/removePaths.test.js +144 -0
- package/dist/lib/plugins/openapi/processors/removePaths.test.js.map +1 -0
- package/dist/lib/plugins/openapi/processors/traverse.d.ts +1 -0
- package/dist/lib/plugins/openapi/processors/traverse.js +2 -0
- package/dist/lib/plugins/openapi/processors/traverse.js.map +1 -0
- package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.d.ts +1 -2
- package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.js +2 -2
- package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.js.map +1 -1
- package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupConnector.d.ts +2 -1
- package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupConnector.js +2 -2
- package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupConnector.js.map +1 -1
- package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupItem.d.ts +0 -1
- package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupItem.js +1 -1
- package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupItem.js.map +1 -1
- package/dist/lib/plugins/openapi/schema/SchemaExampleAndDefault.d.ts +4 -0
- package/dist/lib/plugins/openapi/schema/SchemaExampleAndDefault.js +15 -0
- package/dist/lib/plugins/openapi/schema/SchemaExampleAndDefault.js.map +1 -0
- package/dist/lib/plugins/openapi/schema/SchemaPropertyItem.d.ts +11 -0
- package/dist/lib/plugins/openapi/schema/SchemaPropertyItem.js +44 -0
- package/dist/lib/plugins/openapi/schema/SchemaPropertyItem.js.map +1 -0
- package/dist/lib/plugins/openapi/schema/SchemaView.d.ts +2 -2
- package/dist/lib/plugins/openapi/schema/SchemaView.js +40 -51
- package/dist/lib/plugins/openapi/schema/SchemaView.js.map +1 -1
- package/dist/lib/plugins/openapi/schema/utils.d.ts +8 -1
- package/dist/lib/plugins/openapi/schema/utils.js +16 -4
- package/dist/lib/plugins/openapi/schema/utils.js.map +1 -1
- package/dist/lib/plugins/openapi/state.d.ts +25 -0
- package/dist/lib/plugins/openapi/state.js +18 -0
- package/dist/lib/plugins/openapi/state.js.map +1 -0
- package/dist/lib/plugins/openapi/util/createHttpSnippet.d.ts +11 -0
- package/dist/lib/plugins/openapi/util/createHttpSnippet.js +89 -0
- package/dist/lib/plugins/openapi/util/createHttpSnippet.js.map +1 -0
- package/dist/lib/plugins/openapi/util/createNavigationCategory.d.ts +9 -0
- package/dist/lib/plugins/openapi/util/createNavigationCategory.js +24 -0
- package/dist/lib/plugins/openapi/util/createNavigationCategory.js.map +1 -0
- package/dist/lib/plugins/openapi/util/generateSchemaExample.d.ts +1 -2
- package/dist/lib/plugins/openapi/util/generateSchemaExample.js +80 -39
- package/dist/lib/plugins/openapi/util/generateSchemaExample.js.map +1 -1
- package/dist/lib/plugins/openapi/util/getRoutes.d.ts +10 -0
- package/dist/lib/plugins/openapi/util/getRoutes.js +117 -0
- package/dist/lib/plugins/openapi/util/getRoutes.js.map +1 -0
- package/dist/lib/plugins/openapi/util/methodColorMap.d.ts +2 -0
- package/dist/lib/plugins/openapi/util/methodColorMap.js +10 -0
- package/dist/lib/plugins/openapi/util/methodColorMap.js.map +1 -0
- package/dist/lib/plugins/openapi/util/methodToColor.d.ts +20 -0
- package/dist/lib/plugins/openapi/util/methodToColor.js +24 -0
- package/dist/lib/plugins/openapi/util/methodToColor.js.map +1 -0
- package/dist/lib/plugins/openapi/util/sanitizeMarkdownForMetatag.d.ts +1 -0
- package/dist/lib/plugins/openapi/util/sanitizeMarkdownForMetatag.js +27 -0
- package/dist/lib/plugins/openapi/util/sanitizeMarkdownForMetatag.js.map +1 -0
- package/dist/lib/plugins/redirect/index.d.ts +3 -3
- 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 +8 -6
- package/dist/lib/plugins/search-inkeep/index.js +49 -7
- package/dist/lib/plugins/search-inkeep/index.js.map +1 -1
- package/dist/lib/plugins/search-inkeep/inkeep.d.ts +2 -19
- package/dist/lib/plugins/search-inkeep/inkeep.js +10 -19
- package/dist/lib/plugins/search-inkeep/inkeep.js.map +1 -1
- package/dist/lib/plugins/search-pagefind/PagefindSearch.d.ts +6 -0
- package/dist/lib/plugins/search-pagefind/PagefindSearch.js +80 -0
- package/dist/lib/plugins/search-pagefind/PagefindSearch.js.map +1 -0
- package/dist/lib/plugins/search-pagefind/ResultList.d.ts +8 -0
- package/dist/lib/plugins/search-pagefind/ResultList.js +39 -0
- package/dist/lib/plugins/search-pagefind/ResultList.js.map +1 -0
- package/dist/lib/plugins/search-pagefind/get-results.d.ts +10 -0
- package/dist/lib/plugins/search-pagefind/get-results.js +42 -0
- package/dist/lib/plugins/search-pagefind/get-results.js.map +1 -0
- package/dist/lib/plugins/search-pagefind/index.d.ts +6 -0
- package/dist/lib/plugins/search-pagefind/index.js +9 -0
- package/dist/lib/plugins/search-pagefind/index.js.map +1 -0
- package/dist/lib/plugins/search-pagefind/types.d.ts +85 -0
- package/dist/lib/plugins/search-pagefind/types.js +2 -0
- package/dist/lib/plugins/search-pagefind/types.js.map +1 -0
- package/dist/lib/shiki.d.ts +31 -0
- package/dist/lib/shiki.js +101 -0
- package/dist/lib/shiki.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 +6 -5
- package/dist/lib/ui/Alert.js +12 -10
- package/dist/lib/ui/Alert.js.map +1 -1
- package/dist/lib/ui/Badge.d.ts +2 -2
- package/dist/lib/ui/Badge.js +2 -1
- package/dist/lib/ui/Badge.js.map +1 -1
- package/dist/lib/ui/Button.d.ts +3 -3
- package/dist/lib/ui/Button.js +9 -6
- package/dist/lib/ui/Button.js.map +1 -1
- package/dist/lib/ui/Callout.d.ts +2 -1
- package/dist/lib/ui/Callout.js +3 -2
- package/dist/lib/ui/Callout.js.map +1 -1
- package/dist/lib/ui/Card.js +1 -1
- package/dist/lib/ui/Card.js.map +1 -1
- package/dist/lib/ui/Checkbox.js +1 -1
- package/dist/lib/ui/Checkbox.js.map +1 -1
- package/dist/lib/ui/CodeBlock.d.ts +15 -0
- package/dist/lib/ui/CodeBlock.js +17 -0
- package/dist/lib/ui/CodeBlock.js.map +1 -0
- package/dist/lib/ui/Command.d.ts +17 -3
- package/dist/lib/ui/Command.js +9 -5
- package/dist/lib/ui/Command.js.map +1 -1
- package/dist/lib/ui/Dialog.d.ts +3 -1
- package/dist/lib/ui/Dialog.js +2 -2
- package/dist/lib/ui/Dialog.js.map +1 -1
- package/dist/lib/ui/DropdownMenu.js +4 -4
- package/dist/lib/ui/DropdownMenu.js.map +1 -1
- package/dist/lib/ui/EmbeddedCodeBlock.d.ts +15 -0
- package/dist/lib/ui/EmbeddedCodeBlock.js +18 -0
- package/dist/lib/ui/EmbeddedCodeBlock.js.map +1 -0
- package/dist/lib/ui/Form.d.ts +1 -1
- package/dist/lib/ui/HoverCard.js +1 -1
- package/dist/lib/ui/HoverCard.js.map +1 -1
- package/dist/lib/ui/Input.d.ts +1 -2
- package/dist/lib/ui/Input.js +1 -1
- package/dist/lib/ui/Input.js.map +1 -1
- package/dist/lib/ui/Popover.js +1 -1
- package/dist/lib/ui/Popover.js.map +1 -1
- package/dist/lib/ui/RadioGroup.js +1 -1
- package/dist/lib/ui/RadioGroup.js.map +1 -1
- package/dist/lib/ui/Select.js +4 -4
- package/dist/lib/ui/Select.js.map +1 -1
- package/dist/lib/ui/Slider.js +1 -1
- package/dist/lib/ui/Slider.js.map +1 -1
- package/dist/lib/ui/Stepper.d.ts +3 -0
- package/dist/lib/ui/Stepper.js +7 -0
- package/dist/lib/ui/Stepper.js.map +1 -0
- package/dist/lib/ui/Switch.js +1 -1
- package/dist/lib/ui/Switch.js.map +1 -1
- package/dist/lib/ui/SyntaxHighlight.d.ts +12 -0
- package/dist/lib/ui/SyntaxHighlight.js +15 -0
- package/dist/lib/ui/SyntaxHighlight.js.map +1 -0
- package/dist/lib/ui/Tabs.js +2 -2
- package/dist/lib/ui/Tabs.js.map +1 -1
- package/dist/lib/ui/Textarea.js +1 -1
- package/dist/lib/ui/Textarea.js.map +1 -1
- package/dist/lib/ui/Toggle.js +1 -1
- package/dist/lib/ui/Toggle.js.map +1 -1
- package/dist/lib/ui/Tooltip.d.ts +2 -1
- package/dist/lib/ui/Tooltip.js +2 -1
- package/dist/lib/ui/Tooltip.js.map +1 -1
- package/dist/lib/ui/util.d.ts +2 -0
- package/dist/lib/ui/util.js +3 -0
- package/dist/lib/ui/util.js.map +1 -0
- package/dist/lib/util/MdxComponents.d.ts +38 -21
- package/dist/lib/util/MdxComponents.js +21 -17
- package/dist/lib/util/MdxComponents.js.map +1 -1
- package/dist/lib/util/createVariantComponent.d.ts +2 -2
- package/dist/lib/util/detectOS.d.ts +1 -0
- package/dist/lib/util/detectOS.js +11 -0
- package/dist/lib/util/detectOS.js.map +1 -0
- package/dist/lib/util/ensureArray.d.ts +1 -0
- package/dist/lib/util/ensureArray.js +2 -0
- package/dist/lib/util/ensureArray.js.map +1 -0
- package/dist/lib/util/humanFileSize.d.ts +6 -0
- package/dist/lib/util/humanFileSize.js +14 -0
- package/dist/lib/util/humanFileSize.js.map +1 -0
- package/dist/lib/util/humanFileSize.test.d.ts +1 -0
- package/dist/lib/util/humanFileSize.test.js +22 -0
- package/dist/lib/util/humanFileSize.test.js.map +1 -0
- 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/lib/util/joinPath.d.ts +3 -0
- package/dist/lib/util/joinPath.js +3 -0
- package/dist/lib/util/joinPath.js.map +1 -1
- package/dist/lib/util/joinUrl.d.ts +1 -0
- package/dist/lib/util/joinUrl.js +40 -0
- package/dist/lib/util/joinUrl.js.map +1 -0
- package/dist/lib/util/joinUrl.test.d.ts +1 -0
- package/dist/lib/util/joinUrl.test.js +43 -0
- package/dist/lib/util/joinUrl.test.js.map +1 -0
- package/dist/lib/util/os.d.ts +2 -0
- package/dist/lib/util/os.js +21 -0
- package/dist/lib/util/os.js.map +1 -0
- package/dist/lib/util/scrollIntoViewIfNeeded.d.ts +1 -0
- package/dist/lib/util/scrollIntoViewIfNeeded.js +14 -0
- package/dist/lib/util/scrollIntoViewIfNeeded.js.map +1 -0
- package/dist/lib/util/traverse.d.ts +3 -0
- package/dist/lib/util/traverse.js +23 -0
- package/dist/lib/util/traverse.js.map +1 -0
- package/dist/lib/util/types.d.ts +7 -0
- package/dist/lib/util/types.js +2 -0
- package/dist/lib/util/types.js.map +1 -0
- package/dist/lib/util/url.d.ts +4 -0
- package/dist/lib/util/url.js +13 -0
- package/dist/lib/util/url.js.map +1 -0
- package/dist/lib/util/url.test.d.ts +1 -0
- package/dist/lib/util/url.test.js +26 -0
- package/dist/lib/util/url.test.js.map +1 -0
- package/dist/lib/util/useCopyToClipboard.d.ts +1 -0
- package/dist/lib/util/useCopyToClipboard.js +11 -0
- package/dist/lib/util/useCopyToClipboard.js.map +1 -0
- package/dist/lib/util/useExposedProps.d.ts +8 -1
- package/dist/lib/util/useExposedProps.js +1 -1
- 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/useLatest.d.ts +1 -0
- package/dist/lib/util/useLatest.js +15 -0
- package/dist/lib/util/useLatest.js.map +1 -0
- package/dist/lib/util/useOnScreen.d.ts +5 -0
- package/dist/lib/util/useOnScreen.js +19 -0
- package/dist/lib/util/useOnScreen.js.map +1 -0
- package/dist/lib/util/useScrollToAnchor.d.ts +1 -0
- package/dist/lib/util/useScrollToAnchor.js +43 -38
- package/dist/lib/util/useScrollToAnchor.js.map +1 -1
- package/dist/lib/util/useScrollToTop.js +7 -5
- package/dist/lib/util/useScrollToTop.js.map +1 -1
- package/dist/vite/api/SchemaManager.d.ts +36 -0
- package/dist/vite/api/SchemaManager.js +141 -0
- package/dist/vite/api/SchemaManager.js.map +1 -0
- package/dist/vite/api/SchemaManager.test.d.ts +1 -0
- package/dist/vite/api/SchemaManager.test.js +106 -0
- package/dist/vite/api/SchemaManager.test.js.map +1 -0
- package/dist/vite/api/schema-codegen.d.ts +12 -0
- package/dist/vite/api/schema-codegen.js +116 -0
- package/dist/vite/api/schema-codegen.js.map +1 -0
- package/dist/vite/api/schema-codegen.test.d.ts +1 -0
- package/dist/vite/api/schema-codegen.test.js +395 -0
- package/dist/vite/api/schema-codegen.test.js.map +1 -0
- package/dist/vite/build.js +58 -18
- package/dist/vite/build.js.map +1 -1
- package/dist/vite/config.d.ts +2 -10
- package/dist/vite/config.js +115 -112
- package/dist/vite/config.js.map +1 -1
- package/dist/vite/config.test.js +12 -6
- package/dist/vite/config.test.js.map +1 -1
- package/dist/vite/create-pagefind-index.d.ts +4 -0
- package/dist/vite/create-pagefind-index.js +12 -0
- package/dist/vite/create-pagefind-index.js.map +1 -0
- package/dist/vite/css/collect.d.ts +2 -0
- package/dist/vite/css/collect.js +27 -0
- package/dist/vite/css/collect.js.map +1 -0
- package/dist/vite/css/plugin.d.ts +4 -0
- package/dist/vite/css/plugin.js +91 -0
- package/dist/vite/css/plugin.js.map +1 -0
- package/dist/vite/dev-server.d.ts +5 -3
- package/dist/vite/dev-server.js +81 -22
- package/dist/vite/dev-server.js.map +1 -1
- package/dist/vite/error-handler.d.ts +1 -1
- package/dist/vite/error-handler.js +1 -1
- package/dist/vite/error-handler.js.map +1 -1
- package/dist/vite/html.d.ts +7 -3
- package/dist/vite/html.js +15 -11
- package/dist/vite/html.js.map +1 -1
- package/dist/vite/mdx/remark-last-modified.d.ts +3 -0
- package/dist/vite/mdx/remark-last-modified.js +29 -0
- package/dist/vite/mdx/remark-last-modified.js.map +1 -0
- package/dist/vite/mdx/utils.d.ts +2 -0
- package/dist/vite/mdx/utils.js +31 -0
- package/dist/vite/mdx/utils.js.map +1 -0
- package/dist/vite/output.d.ts +15 -3
- package/dist/vite/output.js +46 -16
- package/dist/vite/output.js.map +1 -1
- package/dist/vite/plugin-api-keys.d.ts +1 -2
- package/dist/vite/plugin-api-keys.js +13 -7
- package/dist/vite/plugin-api-keys.js.map +1 -1
- package/dist/vite/plugin-api.d.ts +1 -2
- package/dist/vite/plugin-api.js +146 -32
- package/dist/vite/plugin-api.js.map +1 -1
- package/dist/vite/plugin-auth.d.ts +1 -2
- package/dist/vite/plugin-auth.js +10 -6
- package/dist/vite/plugin-auth.js.map +1 -1
- package/dist/vite/plugin-component.d.ts +1 -2
- package/dist/vite/plugin-component.js +23 -22
- package/dist/vite/plugin-component.js.map +1 -1
- package/dist/vite/plugin-config-reload.d.ts +3 -4
- package/dist/vite/plugin-config-reload.js +31 -23
- package/dist/vite/plugin-config-reload.js.map +1 -1
- package/dist/vite/plugin-config.d.ts +1 -2
- package/dist/vite/plugin-config.js +27 -2
- package/dist/vite/plugin-config.js.map +1 -1
- package/dist/vite/plugin-custom-pages.d.ts +1 -2
- package/dist/vite/plugin-custom-pages.js +7 -6
- package/dist/vite/plugin-custom-pages.js.map +1 -1
- package/dist/vite/plugin-docs.d.ts +2 -3
- package/dist/vite/plugin-docs.js +73 -46
- package/dist/vite/plugin-docs.js.map +1 -1
- package/dist/vite/plugin-frontmatter.d.ts +1 -2
- package/dist/vite/plugin-frontmatter.js +13 -7
- package/dist/vite/plugin-frontmatter.js.map +1 -1
- package/dist/vite/plugin-mdx.d.ts +1 -8
- package/dist/vite/plugin-mdx.js +72 -26
- package/dist/vite/plugin-mdx.js.map +1 -1
- package/dist/vite/plugin-navigation.d.ts +4 -0
- package/dist/vite/plugin-navigation.js +64 -0
- package/dist/vite/plugin-navigation.js.map +1 -0
- package/dist/vite/plugin-redirect.d.ts +1 -2
- package/dist/vite/plugin-redirect.js +6 -5
- package/dist/vite/plugin-redirect.js.map +1 -1
- package/dist/vite/plugin-search.d.ts +1 -2
- package/dist/vite/plugin-search.js +8 -3
- package/dist/vite/plugin-search.js.map +1 -1
- package/dist/vite/plugin-shiki-register.d.ts +2 -0
- package/dist/vite/plugin-shiki-register.js +39 -0
- package/dist/vite/plugin-shiki-register.js.map +1 -0
- package/dist/vite/plugin-theme.d.ts +8 -0
- package/dist/vite/plugin-theme.js +274 -0
- package/dist/vite/plugin-theme.js.map +1 -0
- package/dist/vite/plugin-theme.test.d.ts +1 -0
- package/dist/vite/plugin-theme.test.js +312 -0
- package/dist/vite/plugin-theme.test.js.map +1 -0
- package/dist/vite/plugin.d.ts +1 -3
- package/dist/vite/plugin.js +24 -21
- package/dist/vite/plugin.js.map +1 -1
- package/dist/vite/prerender/FileWritingResponse.d.ts +25 -0
- package/dist/vite/prerender/FileWritingResponse.js +51 -0
- package/dist/vite/prerender/FileWritingResponse.js.map +1 -0
- package/dist/vite/prerender/InMemoryResponse.d.ts +16 -0
- package/dist/vite/prerender/InMemoryResponse.js +32 -0
- package/dist/vite/prerender/InMemoryResponse.js.map +1 -0
- package/dist/vite/prerender/PrerenderResponse.d.ts +10 -0
- package/dist/vite/prerender/PrerenderResponse.js +2 -0
- package/dist/vite/prerender/PrerenderResponse.js.map +1 -0
- package/dist/vite/prerender/prerender.d.ts +15 -0
- package/dist/vite/prerender/prerender.js +109 -0
- package/dist/vite/prerender/prerender.js.map +1 -0
- package/dist/vite/prerender/worker.d.ts +13 -0
- package/dist/vite/prerender/worker.js +63 -0
- package/dist/vite/prerender/worker.js.map +1 -0
- package/dist/vite/remarkStaticGeneration.d.ts +3 -0
- package/dist/vite/remarkStaticGeneration.js +125 -0
- package/dist/vite/remarkStaticGeneration.js.map +1 -0
- package/dist/vite/reporter.d.ts +3 -0
- package/dist/vite/reporter.js +33 -0
- package/dist/vite/reporter.js.map +1 -0
- package/dist/vite/shadcn-registry.d.ts +45 -0
- package/dist/vite/shadcn-registry.js +29 -0
- package/dist/vite/shadcn-registry.js.map +1 -0
- package/dist/vite/sitemap.d.ts +1 -1
- package/dist/vite/sitemap.js +2 -1
- package/dist/vite/sitemap.js.map +1 -1
- package/dist/zuplo/enrich-with-zuplo.d.ts +5 -0
- package/dist/zuplo/enrich-with-zuplo.js +185 -0
- package/dist/zuplo/enrich-with-zuplo.js.map +1 -0
- package/dist/zuplo/policy-types.d.ts +33 -0
- package/dist/zuplo/policy-types.js +8 -0
- package/dist/zuplo/policy-types.js.map +1 -0
- package/dist/zuplo/with-zuplo-processors.d.ts +3 -0
- package/dist/zuplo/with-zuplo-processors.js +26 -0
- package/dist/zuplo/with-zuplo-processors.js.map +1 -0
- package/dist/zuplo/with-zuplo.d.ts +6 -0
- package/dist/zuplo/with-zuplo.js +10 -0
- package/dist/zuplo/with-zuplo.js.map +1 -0
- package/lib/Alert-De-0F8I9.js +161 -0
- package/lib/Alert-De-0F8I9.js.map +1 -0
- package/lib/Button-B3o-2Xdf.js +51 -0
- package/lib/Button-B3o-2Xdf.js.map +1 -0
- package/lib/Card-CMDQUPM4.js +61 -0
- package/lib/Card-CMDQUPM4.js.map +1 -0
- package/lib/ClientOnly-E7hGysn1.js +11 -0
- package/lib/ClientOnly-E7hGysn1.js.map +1 -0
- package/lib/CodeBlock-B-G0eKtw.js +85 -0
- package/lib/CodeBlock-B-G0eKtw.js.map +1 -0
- package/lib/Command-C9AC5cf-.js +140 -0
- package/lib/Command-C9AC5cf-.js.map +1 -0
- package/lib/Dialog-DMWw1doX.js +99 -0
- package/lib/Dialog-DMWw1doX.js.map +1 -0
- package/lib/Drawer-DJ05s2pH.js +1133 -0
- package/lib/Drawer-DJ05s2pH.js.map +1 -0
- package/lib/MdxPage-Cipn_ReM.js +110 -0
- package/lib/MdxPage-Cipn_ReM.js.map +1 -0
- package/lib/OAuthErrorPage-DpNmpL61.js +150 -0
- package/lib/OAuthErrorPage-DpNmpL61.js.map +1 -0
- package/lib/OasProvider-6hriUaZr.js +35 -0
- package/lib/OasProvider-6hriUaZr.js.map +1 -0
- package/lib/OperationList-o1tnXlAi.js +5167 -0
- package/lib/OperationList-o1tnXlAi.js.map +1 -0
- package/lib/Pagination-BtZ4LBGC.js +37 -0
- package/lib/Pagination-BtZ4LBGC.js.map +1 -0
- package/lib/RouteGuard-BxsRhHRt.js +738 -0
- package/lib/RouteGuard-BxsRhHRt.js.map +1 -0
- package/lib/SchemaList-XZWLQ9Iu.js +149 -0
- package/lib/SchemaList-XZWLQ9Iu.js.map +1 -0
- package/lib/SchemaView-CnCipUNH.js +366 -0
- package/lib/SchemaView-CnCipUNH.js.map +1 -0
- package/lib/SignUp-CEKqv066.js +56 -0
- package/lib/SignUp-CEKqv066.js.map +1 -0
- package/lib/Slot-DAyXieeZ.js +15726 -0
- package/lib/Slot-DAyXieeZ.js.map +1 -0
- package/lib/Spinner-mNLZ6awP.js +7 -0
- package/lib/Spinner-mNLZ6awP.js.map +1 -0
- package/lib/SyntaxHighlight-BMKR4pl6.js +10306 -0
- package/lib/SyntaxHighlight-BMKR4pl6.js.map +1 -0
- package/lib/Toc-BKDRCQzU.js +92 -0
- package/lib/Toc-BKDRCQzU.js.map +1 -0
- package/lib/ZudokuContext-CLl5w57E.js +1278 -0
- package/lib/ZudokuContext-CLl5w57E.js.map +1 -0
- package/lib/chunk-QMGIS6GS-CEOk3lro.js +1839 -0
- package/lib/chunk-QMGIS6GS-CEOk3lro.js.map +1 -0
- package/lib/circular-NO6Ikm3k.js +14934 -0
- package/lib/circular-NO6Ikm3k.js.map +1 -0
- package/lib/clsx-OuTLNxxd.js +17 -0
- package/lib/clsx-OuTLNxxd.js.map +1 -0
- package/lib/cn-dYga0KKN.js +2731 -0
- package/lib/cn-dYga0KKN.js.map +1 -0
- package/lib/createServer-CSgplJuR.js +12505 -0
- package/lib/createServer-CSgplJuR.js.map +1 -0
- package/lib/errors-D036swsq.js +45 -0
- package/lib/errors-D036swsq.js.map +1 -0
- package/lib/hook-DbUCLQNg.js +247 -0
- package/lib/hook-DbUCLQNg.js.map +1 -0
- package/lib/index-BdJ_3lZe.js +3500 -0
- package/lib/index-BdJ_3lZe.js.map +1 -0
- package/lib/index-BkW9tJ6j.js +2094 -0
- package/lib/index-BkW9tJ6j.js.map +1 -0
- package/lib/index-Bm35Tkgf.js +107 -0
- package/lib/index-Bm35Tkgf.js.map +1 -0
- package/lib/index-BtBsh6LU.js +4081 -0
- package/lib/index-BtBsh6LU.js.map +1 -0
- package/lib/index-CrcNWbel.js +316 -0
- package/lib/index-CrcNWbel.js.map +1 -0
- package/lib/index-DI5SPFK9.js +36 -0
- package/lib/index-DI5SPFK9.js.map +1 -0
- package/lib/index-DmNq2fbN.js +4827 -0
- package/lib/index-DmNq2fbN.js.map +1 -0
- package/lib/index.esm-CpVp4hQq.js +1254 -0
- package/lib/index.esm-CpVp4hQq.js.map +1 -0
- package/lib/invariant-Bm-FVUQE.js +44 -0
- package/lib/invariant-Bm-FVUQE.js.map +1 -0
- package/lib/jsx-runtime-C5mzlN2N.js +285 -0
- package/lib/jsx-runtime-C5mzlN2N.js.map +1 -0
- package/lib/processors/removeExtensions.js +11 -0
- package/lib/processors/removeExtensions.js.map +1 -0
- package/lib/processors/removeParameters.js +47 -0
- package/lib/processors/removeParameters.js.map +1 -0
- package/lib/processors/removePaths.js +28 -0
- package/lib/processors/removePaths.js.map +1 -0
- package/lib/processors/traverse.js +17 -0
- package/lib/processors/traverse.js.map +1 -0
- package/lib/ui/Accordion.js +2 -2
- package/lib/ui/Accordion.js.map +1 -1
- package/lib/ui/ActionButton.js +25 -0
- package/lib/ui/ActionButton.js.map +1 -0
- package/lib/ui/Alert.js +55 -39
- package/lib/ui/Alert.js.map +1 -1
- package/lib/ui/AlertDialog.js +2 -2
- package/lib/ui/AlertDialog.js.map +1 -1
- package/lib/ui/Badge.js +5 -4
- package/lib/ui/Badge.js.map +1 -1
- package/lib/ui/Breadcrumb.js +5 -5
- package/lib/ui/Breadcrumb.js.map +1 -1
- package/lib/ui/Button.js +22 -19
- package/lib/ui/Button.js.map +1 -1
- package/lib/ui/Callout.js +40 -20
- package/lib/ui/Callout.js.map +1 -1
- package/lib/ui/Card.js +3 -3
- package/lib/ui/Card.js.map +1 -1
- package/lib/ui/Carousel.js +552 -546
- package/lib/ui/Carousel.js.map +1 -1
- package/lib/ui/Checkbox.js +14 -13
- package/lib/ui/Checkbox.js.map +1 -1
- package/lib/ui/CodeBlock.js +9 -0
- package/lib/ui/CodeBlock.js.map +1 -0
- package/lib/ui/Command.js +116 -510
- package/lib/ui/Command.js.map +1 -1
- package/lib/ui/Dialog.js +41 -41
- package/lib/ui/Dialog.js.map +1 -1
- package/lib/ui/Drawer.js +14 -1150
- package/lib/ui/Drawer.js.map +1 -1
- package/lib/ui/DropdownMenu.js +35 -35
- package/lib/ui/DropdownMenu.js.map +1 -1
- package/lib/ui/EmbeddedCodeBlock.js +80 -0
- package/lib/ui/EmbeddedCodeBlock.js.map +1 -0
- package/lib/ui/Form.js +6 -6
- package/lib/ui/Form.js.map +1 -1
- package/lib/ui/HoverCard.js +6 -6
- package/lib/ui/HoverCard.js.map +1 -1
- package/lib/ui/Input.js +3 -3
- package/lib/ui/Input.js.map +1 -1
- package/lib/ui/Label.js +3 -3
- package/lib/ui/Label.js.map +1 -1
- package/lib/ui/Pagination.js +5 -5
- package/lib/ui/Pagination.js.map +1 -1
- package/lib/ui/Popover.js +3 -3
- package/lib/ui/Popover.js.map +1 -1
- package/lib/ui/Progress.js +2 -2
- package/lib/ui/Progress.js.map +1 -1
- package/lib/ui/RadioGroup.js +11 -11
- package/lib/ui/RadioGroup.js.map +1 -1
- package/lib/ui/ScrollArea.js +2 -2
- package/lib/ui/ScrollArea.js.map +1 -1
- package/lib/ui/Select.js +34 -34
- package/lib/ui/Select.js.map +1 -1
- package/lib/ui/Skeleton.js +2 -2
- package/lib/ui/Skeleton.js.map +1 -1
- package/lib/ui/Slider.js +6 -6
- package/lib/ui/Slider.js.map +1 -1
- package/lib/ui/Stepper.js +6 -0
- package/lib/ui/Stepper.js.map +1 -0
- package/lib/ui/Switch.js +6 -6
- package/lib/ui/Switch.js.map +1 -1
- package/lib/ui/SyntaxHighlight.js +11 -0
- package/lib/ui/SyntaxHighlight.js.map +1 -0
- package/lib/ui/Tabs.js +17 -17
- package/lib/ui/Tabs.js.map +1 -1
- package/lib/ui/Textarea.js +6 -6
- package/lib/ui/Textarea.js.map +1 -1
- package/lib/ui/Toggle.js +8 -8
- package/lib/ui/Toggle.js.map +1 -1
- package/lib/ui/ToggleGroup.js +2 -2
- package/lib/ui/ToggleGroup.js.map +1 -1
- package/lib/ui/Tooltip.js +15 -8
- package/lib/ui/Tooltip.js.map +1 -1
- package/lib/ui/util.js +6 -0
- package/lib/ui/util.js.map +1 -0
- package/lib/useExposedProps-KcgXHKeE.js +9 -0
- package/lib/useExposedProps-KcgXHKeE.js.map +1 -0
- package/lib/zudoku.auth-auth0.js +32 -30
- package/lib/zudoku.auth-auth0.js.map +1 -1
- package/lib/zudoku.auth-azureb2c.js +137 -0
- package/lib/zudoku.auth-azureb2c.js.map +1 -0
- package/lib/zudoku.auth-clerk.js +108 -60
- package/lib/zudoku.auth-clerk.js.map +1 -1
- package/lib/zudoku.auth-openid.js +600 -623
- 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 +34 -1464
- package/lib/zudoku.components.js.map +1 -1
- package/lib/zudoku.hooks.js +28 -0
- package/lib/zudoku.hooks.js.map +1 -0
- package/lib/zudoku.icons.js +10 -0
- package/lib/zudoku.icons.js.map +1 -1
- package/lib/zudoku.plugin-api-catalog.js +118 -0
- package/lib/zudoku.plugin-api-catalog.js.map +1 -0
- package/lib/zudoku.plugin-api-keys.js +560 -204
- package/lib/zudoku.plugin-api-keys.js.map +1 -1
- package/lib/zudoku.plugin-custom-pages.js +12 -18
- package/lib/zudoku.plugin-custom-pages.js.map +1 -1
- package/lib/zudoku.plugin-markdown.js +20 -93
- package/lib/zudoku.plugin-markdown.js.map +1 -1
- package/lib/zudoku.plugin-openapi.js +8 -10
- package/lib/zudoku.plugin-openapi.js.map +1 -1
- package/lib/zudoku.plugin-redirect.js +1 -1
- package/lib/zudoku.plugin-redirect.js.map +1 -1
- package/lib/zudoku.plugin-search-inkeep.js +61 -36
- package/lib/zudoku.plugin-search-inkeep.js.map +1 -1
- package/lib/zudoku.plugin-search-pagefind.js +325 -0
- package/lib/zudoku.plugin-search-pagefind.js.map +1 -0
- package/lib/zudoku.plugins.js +15 -0
- package/lib/zudoku.plugins.js.map +1 -0
- package/package.json +187 -101
- package/src/app/ZuploBuildConfig.ts +33 -0
- package/src/app/defaultTheme.css +73 -0
- package/src/app/demo-cdn.html +31 -31
- package/src/app/demo.html +1 -1
- package/src/app/demo.tsx +25 -11
- package/src/app/entry.client.tsx +67 -3
- package/src/app/entry.server.tsx +80 -65
- package/src/app/env.ts +43 -0
- package/src/app/font.geist.css +73 -0
- package/src/app/main.css +177 -130
- package/src/app/main.tsx +72 -50
- package/src/app/sentry.ts +24 -0
- package/src/app/standalone.tsx +8 -11
- package/src/lib/MissingIcon.tsx +22 -0
- package/src/lib/auth/issuer.test.ts +120 -0
- package/src/lib/auth/issuer.ts +41 -0
- package/src/lib/authentication/AuthenticationPlugin.tsx +8 -5
- package/src/lib/authentication/authentication.ts +7 -8
- package/src/lib/authentication/components/CallbackHandler.tsx +29 -12
- package/src/lib/authentication/components/OAuthErrorPage.tsx +171 -0
- package/src/lib/authentication/components/SignIn.tsx +28 -2
- package/src/lib/authentication/components/SignOut.tsx +3 -2
- package/src/lib/authentication/components/SignUp.tsx +35 -1
- package/src/lib/authentication/errors.ts +27 -13
- package/src/lib/authentication/hook.ts +15 -4
- package/src/lib/authentication/providers/auth0.tsx +29 -19
- package/src/lib/authentication/providers/azureb2c.tsx +201 -0
- package/src/lib/authentication/providers/clerk.tsx +127 -53
- package/src/lib/authentication/providers/openid.tsx +169 -88
- package/src/lib/authentication/providers/supabase.tsx +150 -0
- package/src/lib/authentication/state.ts +86 -25
- package/src/lib/authentication/use-broadcast/LICENSE.md +9 -0
- package/src/lib/authentication/use-broadcast/shared.ts +372 -0
- package/src/lib/authentication/use-broadcast/useBroadcast.ts +146 -0
- package/src/lib/components/AnchorLink.tsx +13 -8
- package/src/lib/components/Autocomplete.tsx +114 -0
- package/src/lib/components/Banner.tsx +3 -3
- package/src/lib/components/Bootstrap.tsx +43 -16
- package/src/lib/components/BuildCheck.tsx +75 -0
- package/src/lib/components/CategoryHeading.tsx +4 -1
- package/src/lib/components/ClientOnly.tsx +6 -3
- package/src/lib/components/DeveloperHint.tsx +6 -1
- package/src/lib/components/ErrorPage.tsx +3 -3
- package/src/lib/components/Footer.tsx +136 -0
- package/src/lib/components/Framed.tsx +51 -0
- package/src/lib/components/Header.tsx +119 -80
- package/src/lib/components/Heading.tsx +26 -18
- package/src/lib/components/InlineCode.tsx +13 -16
- package/src/lib/components/Layout.tsx +36 -60
- package/src/lib/components/Main.tsx +51 -0
- package/src/lib/components/Markdown.tsx +42 -30
- package/src/lib/components/MobileTopNavigation.tsx +96 -32
- package/src/lib/components/NotFoundPage.tsx +7 -6
- package/src/lib/components/PageProgress.tsx +28 -0
- package/src/lib/components/Pagination.tsx +45 -0
- package/src/lib/components/PathRenderer.tsx +61 -0
- package/src/lib/components/ReactMarkdown.license.txt +21 -0
- package/src/lib/components/ReactMarkdown.tsx +264 -0
- package/src/lib/components/Search.tsx +18 -7
- package/src/lib/components/Slot.test.tsx +465 -0
- package/src/lib/components/Slot.tsx +64 -0
- package/src/lib/components/StatusPage.tsx +96 -0
- package/src/lib/components/ThemeSwitch.tsx +46 -0
- package/src/lib/components/TopNavigation.tsx +91 -61
- package/src/lib/components/Typography.tsx +14 -0
- package/src/lib/components/Zudoku.tsx +119 -0
- package/src/lib/components/cache.ts +23 -0
- package/src/lib/components/context/BypassProtectedRoutesContext.ts +3 -0
- package/src/lib/components/context/RouterEventsEmitter.tsx +19 -0
- package/src/lib/components/context/SlotProvider.tsx +149 -0
- package/src/lib/components/context/ViewportAnchorContext.tsx +34 -36
- package/src/lib/components/context/ZudokuContext.ts +79 -38
- package/src/lib/components/context/ZudokuProvider.tsx +4 -3
- package/src/lib/components/index.ts +37 -13
- package/src/lib/components/navigation/Navigation.tsx +50 -0
- package/src/lib/components/navigation/NavigationBadge.tsx +48 -0
- package/src/lib/components/navigation/NavigationCategory.tsx +146 -0
- package/src/lib/components/navigation/NavigationItem.tsx +159 -0
- package/src/lib/components/navigation/NavigationWrapper.tsx +49 -0
- package/src/lib/components/navigation/PoweredByZudoku.tsx +33 -0
- package/src/lib/components/navigation/Toc.tsx +126 -0
- package/src/lib/components/navigation/ZudokuLogo.tsx +25 -0
- package/src/lib/components/navigation/ZuploLogo.tsx +14 -0
- package/src/lib/components/navigation/utils.ts +70 -29
- package/src/lib/core/RouteGuard.tsx +96 -0
- package/src/lib/core/ZudokuContext.ts +227 -0
- package/src/lib/core/plugins.ts +55 -24
- package/src/lib/errors/ErrorAlert.tsx +18 -18
- package/src/lib/errors/RouterError.tsx +1 -1
- package/src/lib/hooks/index.ts +16 -0
- package/src/lib/hooks/useEvent.test.tsx +151 -0
- package/src/lib/hooks/useEvent.ts +41 -0
- package/src/lib/hooks/useHotkey.ts +70 -0
- package/src/lib/icons.ts +1 -0
- package/src/lib/oas/graphql/circular.ts +58 -0
- package/src/lib/oas/graphql/index.ts +298 -104
- package/src/lib/oas/parser/dereference/index.ts +10 -4
- package/src/lib/oas/parser/index.ts +14 -30
- package/src/lib/oas/parser/upgrade/index.ts +103 -38
- package/src/lib/plugins/api-catalog/Catalog.tsx +73 -0
- package/src/lib/plugins/api-catalog/index.tsx +115 -0
- package/src/lib/plugins/api-keys/CreateApiKey.tsx +61 -45
- package/src/lib/plugins/api-keys/ProtectedRoute.tsx +1 -1
- package/src/lib/plugins/api-keys/SettingsApiKeys.tsx +464 -116
- package/src/lib/plugins/api-keys/index.tsx +141 -62
- package/src/lib/plugins/custom-pages/index.tsx +22 -17
- package/src/lib/plugins/markdown/MdxPage.tsx +111 -54
- package/src/lib/plugins/markdown/index.tsx +33 -43
- package/src/lib/plugins/openapi/CollapsibleCode.tsx +86 -0
- package/src/lib/plugins/openapi/ColorizedParam.tsx +49 -23
- package/src/lib/plugins/openapi/Endpoint.tsx +19 -22
- package/src/lib/plugins/openapi/OasProvider.tsx +51 -0
- package/src/lib/plugins/openapi/OperationList.tsx +234 -72
- package/src/lib/plugins/openapi/OperationListItem.tsx +123 -94
- package/src/lib/plugins/openapi/ParamInfos.tsx +90 -0
- package/src/lib/plugins/openapi/ParameterList.tsx +4 -0
- package/src/lib/plugins/openapi/ParameterListItem.tsx +84 -31
- package/src/lib/plugins/openapi/PlaygroundDialogWrapper.tsx +28 -3
- package/src/lib/plugins/openapi/RequestBodySidecarBox.tsx +15 -33
- package/src/lib/plugins/openapi/ResponsesSidecarBox.tsx +36 -59
- package/src/lib/plugins/openapi/SchemaList.tsx +157 -0
- package/src/lib/plugins/openapi/Sidecar.tsx +154 -172
- package/src/lib/plugins/openapi/SidecarBox.tsx +4 -16
- package/src/lib/plugins/openapi/SidecarExamples.tsx +169 -0
- package/src/lib/plugins/openapi/SimpleSelect.tsx +1 -1
- package/src/lib/plugins/openapi/client/GraphQLClient.tsx +65 -0
- package/src/lib/plugins/openapi/client/GraphQLContext.tsx +16 -0
- package/src/lib/plugins/openapi/client/createServer.ts +8 -2
- package/src/lib/plugins/openapi/client/useCreateQuery.ts +45 -0
- package/src/lib/plugins/openapi/components/ConstValue.tsx +24 -0
- package/src/lib/plugins/openapi/components/EnumValues.tsx +58 -0
- package/src/lib/plugins/openapi/components/ResponseContent.tsx +104 -0
- package/src/lib/plugins/openapi/components/SelectOnClick.tsx +29 -0
- package/src/lib/plugins/openapi/context.tsx +2 -2
- package/src/lib/plugins/openapi/graphql/fragment-masking.ts +11 -18
- package/src/lib/plugins/openapi/graphql/gql.ts +38 -30
- package/src/lib/plugins/openapi/graphql/graphql.ts +388 -682
- package/src/lib/plugins/openapi/index.tsx +161 -134
- package/src/lib/plugins/openapi/interfaces.ts +59 -4
- package/src/lib/plugins/openapi/playground/BodyPanel.tsx +55 -0
- package/src/lib/plugins/openapi/playground/CollapsibleHeader.tsx +47 -0
- package/src/lib/plugins/openapi/playground/ExamplesDropdown.tsx +59 -0
- package/src/lib/plugins/openapi/playground/Headers.tsx +284 -53
- package/src/lib/plugins/openapi/playground/IdentityDialog.tsx +75 -0
- package/src/lib/plugins/openapi/playground/IdentitySelector.tsx +38 -0
- package/src/lib/plugins/openapi/playground/InlineInput.tsx +1 -1
- package/src/lib/plugins/openapi/playground/ParamsGrid.tsx +13 -0
- package/src/lib/plugins/openapi/playground/PathParams.tsx +38 -64
- package/src/lib/plugins/openapi/playground/Playground.tsx +405 -288
- package/src/lib/plugins/openapi/playground/PlaygroundDialog.tsx +7 -3
- package/src/lib/plugins/openapi/playground/QueryParams.tsx +134 -90
- package/src/lib/plugins/openapi/playground/RequestLoginDialog.tsx +51 -0
- package/src/lib/plugins/openapi/playground/Spinner.tsx +87 -0
- package/src/lib/plugins/openapi/playground/fileUtils.ts +32 -0
- package/src/lib/plugins/openapi/playground/rememberedIdentity.ts +26 -0
- package/src/lib/plugins/openapi/playground/request-panel/UrlPath.tsx +31 -0
- package/src/lib/plugins/openapi/playground/request-panel/UrlQueryParams.tsx +25 -0
- package/src/lib/plugins/openapi/playground/result-panel/Highlight.tsx +26 -0
- package/src/lib/plugins/openapi/playground/result-panel/ResponseStatusBar.tsx +115 -0
- package/src/lib/plugins/openapi/playground/result-panel/ResponseTab.tsx +271 -0
- package/src/lib/plugins/openapi/playground/result-panel/ResultPanel.tsx +102 -0
- package/src/lib/plugins/openapi/playground/result-panel/convertToTypes.test.ts +64 -0
- package/src/lib/plugins/openapi/playground/result-panel/convertToTypes.ts +36 -0
- package/src/lib/plugins/openapi/playground/useRememberSkipLoginDialog.tsx +20 -0
- package/src/lib/plugins/openapi/processors/removeExtensions.test.ts +222 -0
- package/src/lib/plugins/openapi/processors/removeExtensions.ts +29 -0
- package/src/lib/plugins/openapi/processors/removeParameters.test.ts +182 -0
- package/src/lib/plugins/openapi/processors/removeParameters.ts +103 -0
- package/src/lib/plugins/openapi/processors/removePaths.test.ts +167 -0
- package/src/lib/plugins/openapi/processors/removePaths.ts +57 -0
- package/src/lib/plugins/openapi/processors/traverse.ts +1 -0
- package/src/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.tsx +1 -8
- package/src/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupConnector.tsx +3 -0
- package/src/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupItem.tsx +6 -3
- package/src/lib/plugins/openapi/schema/SchemaExampleAndDefault.tsx +39 -0
- package/src/lib/plugins/openapi/schema/SchemaPropertyItem.tsx +159 -0
- package/src/lib/plugins/openapi/schema/SchemaView.tsx +103 -141
- package/src/lib/plugins/openapi/schema/utils.ts +33 -5
- package/src/lib/plugins/openapi/state.ts +36 -0
- package/src/lib/plugins/openapi/util/createHttpSnippet.ts +107 -0
- package/src/lib/plugins/openapi/util/createNavigationCategory.tsx +38 -0
- package/src/lib/plugins/openapi/util/generateSchemaExample.ts +95 -44
- package/src/lib/plugins/openapi/util/getRoutes.tsx +198 -0
- package/src/lib/plugins/openapi/util/methodColorMap.tsx +11 -0
- package/src/lib/plugins/openapi/util/methodToColor.ts +27 -0
- package/src/lib/plugins/openapi/util/sanitizeMarkdownForMetatag.tsx +32 -0
- package/src/lib/plugins/redirect/index.tsx +4 -4
- package/src/lib/plugins/search-inkeep/index.tsx +83 -32
- package/src/lib/plugins/search-inkeep/inkeep.ts +15 -23
- package/src/lib/plugins/search-pagefind/PagefindSearch.tsx +165 -0
- package/src/lib/plugins/search-pagefind/ResultList.tsx +114 -0
- package/src/lib/plugins/search-pagefind/get-results.tsx +75 -0
- package/src/lib/plugins/search-pagefind/index.tsx +21 -0
- package/src/lib/plugins/search-pagefind/types.ts +118 -0
- package/src/lib/shiki.ts +132 -0
- package/src/lib/ui/ActionButton.tsx +30 -0
- package/src/lib/ui/Alert.tsx +45 -39
- package/src/lib/ui/Badge.tsx +3 -2
- package/src/lib/ui/Button.tsx +12 -7
- package/src/lib/ui/Callout.tsx +30 -10
- package/src/lib/ui/Card.tsx +1 -1
- package/src/lib/ui/Checkbox.tsx +2 -1
- package/src/lib/ui/CodeBlock.tsx +88 -0
- package/src/lib/ui/Command.tsx +47 -5
- package/src/lib/ui/Dialog.tsx +11 -7
- package/src/lib/ui/DropdownMenu.tsx +4 -4
- package/src/lib/ui/EmbeddedCodeBlock.tsx +94 -0
- package/src/lib/ui/HoverCard.tsx +1 -1
- package/src/lib/ui/Input.tsx +2 -3
- package/src/lib/ui/Popover.tsx +1 -1
- package/src/lib/ui/RadioGroup.tsx +1 -1
- package/src/lib/ui/Select.tsx +4 -4
- package/src/lib/ui/Slider.tsx +1 -1
- package/src/lib/ui/Stepper.tsx +8 -0
- package/src/lib/ui/Switch.tsx +1 -1
- package/src/lib/ui/SyntaxHighlight.tsx +35 -0
- package/src/lib/ui/Tabs.tsx +2 -2
- package/src/lib/ui/Textarea.tsx +1 -1
- package/src/lib/ui/Toggle.tsx +1 -1
- package/src/lib/ui/Tooltip.tsx +16 -1
- package/src/lib/ui/util.tsx +3 -0
- package/src/lib/util/MdxComponents.tsx +50 -25
- package/src/lib/util/createVariantComponent.tsx +2 -2
- package/src/lib/util/detectOS.ts +9 -0
- package/src/lib/util/ensureArray.ts +3 -0
- package/src/lib/util/humanFileSize.test.ts +24 -0
- package/src/lib/util/humanFileSize.ts +16 -0
- package/src/lib/util/invariant.ts +7 -5
- package/src/lib/util/joinPath.tsx +3 -0
- package/src/lib/util/joinUrl.test.ts +62 -0
- package/src/lib/util/joinUrl.ts +57 -0
- package/src/lib/util/os.ts +18 -0
- package/src/lib/util/scrollIntoViewIfNeeded.ts +18 -0
- package/src/lib/util/traverse.ts +34 -0
- package/src/lib/util/types.ts +7 -0
- package/src/lib/util/url.test.ts +51 -0
- package/src/lib/util/url.ts +18 -0
- package/src/lib/util/useCopyToClipboard.ts +17 -0
- package/src/lib/util/useExposedProps.tsx +13 -2
- package/src/lib/util/useIsomorphicLayoutEffect.ts +5 -0
- package/src/lib/util/useLatest.ts +18 -0
- package/src/lib/util/useOnScreen.ts +34 -0
- package/src/lib/util/useScrollToAnchor.ts +49 -40
- package/src/lib/util/useScrollToTop.ts +9 -4
- package/src/shiki/langs/abap.js +1 -0
- package/src/shiki/langs/actionscript-3.js +1 -0
- package/src/shiki/langs/ada.js +1 -0
- package/src/shiki/langs/angular-expression.js +1 -0
- package/src/shiki/langs/angular-html.js +1 -0
- package/src/shiki/langs/angular-inline-style.js +1 -0
- package/src/shiki/langs/angular-inline-template.js +1 -0
- package/src/shiki/langs/angular-let-declaration.js +1 -0
- package/src/shiki/langs/angular-template-blocks.js +1 -0
- package/src/shiki/langs/angular-template.js +1 -0
- package/src/shiki/langs/angular-ts.js +1 -0
- package/src/shiki/langs/apache.js +1 -0
- package/src/shiki/langs/apex.js +1 -0
- package/src/shiki/langs/apl.js +1 -0
- package/src/shiki/langs/applescript.js +1 -0
- package/src/shiki/langs/ara.js +1 -0
- package/src/shiki/langs/asciidoc.js +1 -0
- package/src/shiki/langs/asm.js +1 -0
- package/src/shiki/langs/astro.js +1 -0
- package/src/shiki/langs/awk.js +1 -0
- package/src/shiki/langs/ballerina.js +1 -0
- package/src/shiki/langs/bat.js +1 -0
- package/src/shiki/langs/beancount.js +1 -0
- package/src/shiki/langs/berry.js +1 -0
- package/src/shiki/langs/bibtex.js +1 -0
- package/src/shiki/langs/bicep.js +1 -0
- package/src/shiki/langs/blade.js +1 -0
- package/src/shiki/langs/bsl.js +1 -0
- package/src/shiki/langs/c.js +1 -0
- package/src/shiki/langs/cadence.js +1 -0
- package/src/shiki/langs/cairo.js +1 -0
- package/src/shiki/langs/clarity.js +1 -0
- package/src/shiki/langs/clojure.js +1 -0
- package/src/shiki/langs/cmake.js +1 -0
- package/src/shiki/langs/cobol.js +1 -0
- package/src/shiki/langs/codeowners.js +1 -0
- package/src/shiki/langs/codeql.js +1 -0
- package/src/shiki/langs/coffee.js +1 -0
- package/src/shiki/langs/common-lisp.js +1 -0
- package/src/shiki/langs/coq.js +1 -0
- package/src/shiki/langs/cpp-macro.js +1 -0
- package/src/shiki/langs/cpp.js +1 -0
- package/src/shiki/langs/crystal.js +1 -0
- package/src/shiki/langs/csharp.js +1 -0
- package/src/shiki/langs/css.js +1 -0
- package/src/shiki/langs/csv.js +1 -0
- package/src/shiki/langs/cue.js +1 -0
- package/src/shiki/langs/cypher.js +1 -0
- package/src/shiki/langs/d.js +1 -0
- package/src/shiki/langs/dart.js +1 -0
- package/src/shiki/langs/dax.js +1 -0
- package/src/shiki/langs/desktop.js +1 -0
- package/src/shiki/langs/diff.js +1 -0
- package/src/shiki/langs/docker.js +1 -0
- package/src/shiki/langs/dotenv.js +1 -0
- package/src/shiki/langs/dream-maker.js +1 -0
- package/src/shiki/langs/edge.js +1 -0
- package/src/shiki/langs/elixir.js +1 -0
- package/src/shiki/langs/elm.js +1 -0
- package/src/shiki/langs/emacs-lisp.js +1 -0
- package/src/shiki/langs/erb.js +1 -0
- package/src/shiki/langs/erlang.js +1 -0
- package/src/shiki/langs/es-tag-css.js +1 -0
- package/src/shiki/langs/es-tag-glsl.js +1 -0
- package/src/shiki/langs/es-tag-html.js +1 -0
- package/src/shiki/langs/es-tag-sql.js +1 -0
- package/src/shiki/langs/es-tag-xml.js +1 -0
- package/src/shiki/langs/fennel.js +1 -0
- package/src/shiki/langs/fish.js +1 -0
- package/src/shiki/langs/fluent.js +1 -0
- package/src/shiki/langs/fortran-fixed-form.js +1 -0
- package/src/shiki/langs/fortran-free-form.js +1 -0
- package/src/shiki/langs/fsharp.js +1 -0
- package/src/shiki/langs/gdresource.js +1 -0
- package/src/shiki/langs/gdscript.js +1 -0
- package/src/shiki/langs/gdshader.js +1 -0
- package/src/shiki/langs/genie.js +1 -0
- package/src/shiki/langs/gherkin.js +1 -0
- package/src/shiki/langs/git-commit.js +1 -0
- package/src/shiki/langs/git-rebase.js +1 -0
- package/src/shiki/langs/gleam.js +1 -0
- package/src/shiki/langs/glimmer-js.js +1 -0
- package/src/shiki/langs/glimmer-ts.js +1 -0
- package/src/shiki/langs/glsl.js +1 -0
- package/src/shiki/langs/gnuplot.js +1 -0
- package/src/shiki/langs/go.js +1 -0
- package/src/shiki/langs/graphql.js +1 -0
- package/src/shiki/langs/groovy.js +1 -0
- package/src/shiki/langs/hack.js +1 -0
- package/src/shiki/langs/haml.js +1 -0
- package/src/shiki/langs/handlebars.js +1 -0
- package/src/shiki/langs/haskell.js +1 -0
- package/src/shiki/langs/haxe.js +1 -0
- package/src/shiki/langs/hcl.js +1 -0
- package/src/shiki/langs/hjson.js +1 -0
- package/src/shiki/langs/hlsl.js +1 -0
- package/src/shiki/langs/html-derivative.js +1 -0
- package/src/shiki/langs/html.js +1 -0
- package/src/shiki/langs/http.js +1 -0
- package/src/shiki/langs/hxml.js +1 -0
- package/src/shiki/langs/hy.js +1 -0
- package/src/shiki/langs/imba.js +1 -0
- package/src/shiki/langs/ini.js +1 -0
- package/src/shiki/langs/java.js +1 -0
- package/src/shiki/langs/javascript.js +1 -0
- package/src/shiki/langs/jinja-html.js +1 -0
- package/src/shiki/langs/jinja.js +1 -0
- package/src/shiki/langs/jison.js +1 -0
- package/src/shiki/langs/json.js +1 -0
- package/src/shiki/langs/json5.js +1 -0
- package/src/shiki/langs/jsonc.js +1 -0
- package/src/shiki/langs/jsonl.js +1 -0
- package/src/shiki/langs/jsonnet.js +1 -0
- package/src/shiki/langs/jssm.js +1 -0
- package/src/shiki/langs/jsx.js +1 -0
- package/src/shiki/langs/julia.js +1 -0
- package/src/shiki/langs/kotlin.js +1 -0
- package/src/shiki/langs/kusto.js +1 -0
- package/src/shiki/langs/latex.js +1 -0
- package/src/shiki/langs/lean.js +1 -0
- package/src/shiki/langs/less.js +1 -0
- package/src/shiki/langs/liquid.js +1 -0
- package/src/shiki/langs/llvm.js +1 -0
- package/src/shiki/langs/log.js +1 -0
- package/src/shiki/langs/logo.js +1 -0
- package/src/shiki/langs/lua.js +1 -0
- package/src/shiki/langs/luau.js +1 -0
- package/src/shiki/langs/make.js +1 -0
- package/src/shiki/langs/markdown-vue.js +1 -0
- package/src/shiki/langs/markdown.js +1 -0
- package/src/shiki/langs/marko.js +1 -0
- package/src/shiki/langs/matlab.js +1 -0
- package/src/shiki/langs/mdc.js +1 -0
- package/src/shiki/langs/mdx.js +1 -0
- package/src/shiki/langs/mermaid.js +1 -0
- package/src/shiki/langs/mipsasm.js +1 -0
- package/src/shiki/langs/mojo.js +1 -0
- package/src/shiki/langs/move.js +1 -0
- package/src/shiki/langs/narrat.js +1 -0
- package/src/shiki/langs/nextflow.js +1 -0
- package/src/shiki/langs/nginx.js +1 -0
- package/src/shiki/langs/nim.js +1 -0
- package/src/shiki/langs/nix.js +1 -0
- package/src/shiki/langs/nushell.js +1 -0
- package/src/shiki/langs/objective-c.js +1 -0
- package/src/shiki/langs/objective-cpp.js +1 -0
- package/src/shiki/langs/ocaml.js +1 -0
- package/src/shiki/langs/pascal.js +1 -0
- package/src/shiki/langs/perl.js +1 -0
- package/src/shiki/langs/php.js +1 -0
- package/src/shiki/langs/plsql.js +1 -0
- package/src/shiki/langs/po.js +1 -0
- package/src/shiki/langs/polar.js +1 -0
- package/src/shiki/langs/postcss.js +1 -0
- package/src/shiki/langs/powerquery.js +1 -0
- package/src/shiki/langs/powershell.js +1 -0
- package/src/shiki/langs/prisma.js +1 -0
- package/src/shiki/langs/prolog.js +1 -0
- package/src/shiki/langs/proto.js +1 -0
- package/src/shiki/langs/pug.js +1 -0
- package/src/shiki/langs/puppet.js +1 -0
- package/src/shiki/langs/purescript.js +1 -0
- package/src/shiki/langs/python.js +1 -0
- package/src/shiki/langs/qml.js +1 -0
- package/src/shiki/langs/qmldir.js +1 -0
- package/src/shiki/langs/qss.js +1 -0
- package/src/shiki/langs/r.js +1 -0
- package/src/shiki/langs/racket.js +1 -0
- package/src/shiki/langs/raku.js +1 -0
- package/src/shiki/langs/razor.js +1 -0
- package/src/shiki/langs/reg.js +1 -0
- package/src/shiki/langs/regexp.js +1 -0
- package/src/shiki/langs/rel.js +1 -0
- package/src/shiki/langs/riscv.js +1 -0
- package/src/shiki/langs/rst.js +1 -0
- package/src/shiki/langs/ruby.js +1 -0
- package/src/shiki/langs/rust.js +1 -0
- package/src/shiki/langs/sas.js +1 -0
- package/src/shiki/langs/sass.js +1 -0
- package/src/shiki/langs/scala.js +1 -0
- package/src/shiki/langs/scheme.js +1 -0
- package/src/shiki/langs/scss.js +1 -0
- package/src/shiki/langs/sdbl.js +1 -0
- package/src/shiki/langs/shaderlab.js +1 -0
- package/src/shiki/langs/shellscript.js +1 -0
- package/src/shiki/langs/shellsession.js +1 -0
- package/src/shiki/langs/smalltalk.js +1 -0
- package/src/shiki/langs/solidity.js +1 -0
- package/src/shiki/langs/soy.js +1 -0
- package/src/shiki/langs/sparql.js +1 -0
- package/src/shiki/langs/splunk.js +1 -0
- package/src/shiki/langs/sql.js +1 -0
- package/src/shiki/langs/ssh-config.js +1 -0
- package/src/shiki/langs/stata.js +1 -0
- package/src/shiki/langs/stylus.js +1 -0
- package/src/shiki/langs/svelte.js +1 -0
- package/src/shiki/langs/swift.js +1 -0
- package/src/shiki/langs/system-verilog.js +1 -0
- package/src/shiki/langs/systemd.js +1 -0
- package/src/shiki/langs/talonscript.js +1 -0
- package/src/shiki/langs/tasl.js +1 -0
- package/src/shiki/langs/tcl.js +1 -0
- package/src/shiki/langs/templ.js +1 -0
- package/src/shiki/langs/terraform.js +1 -0
- package/src/shiki/langs/tex.js +1 -0
- package/src/shiki/langs/toml.js +1 -0
- package/src/shiki/langs/ts-tags.js +1 -0
- package/src/shiki/langs/tsv.js +1 -0
- package/src/shiki/langs/tsx.js +1 -0
- package/src/shiki/langs/turtle.js +1 -0
- package/src/shiki/langs/twig.js +1 -0
- package/src/shiki/langs/typescript.js +1 -0
- package/src/shiki/langs/typespec.js +1 -0
- package/src/shiki/langs/typst.js +1 -0
- package/src/shiki/langs/v.js +1 -0
- package/src/shiki/langs/vala.js +1 -0
- package/src/shiki/langs/vb.js +1 -0
- package/src/shiki/langs/verilog.js +1 -0
- package/src/shiki/langs/vhdl.js +1 -0
- package/src/shiki/langs/viml.js +1 -0
- package/src/shiki/langs/vue-directives.js +1 -0
- package/src/shiki/langs/vue-html.js +1 -0
- package/src/shiki/langs/vue-interpolations.js +1 -0
- package/src/shiki/langs/vue-sfc-style-variable-injection.js +1 -0
- package/src/shiki/langs/vue.js +1 -0
- package/src/shiki/langs/vyper.js +1 -0
- package/src/shiki/langs/wasm.js +1 -0
- package/src/shiki/langs/wenyan.js +1 -0
- package/src/shiki/langs/wgsl.js +1 -0
- package/src/shiki/langs/wikitext.js +1 -0
- package/src/shiki/langs/wit.js +1 -0
- package/src/shiki/langs/wolfram.js +1 -0
- package/src/shiki/langs/xml.js +1 -0
- package/src/shiki/langs/xsl.js +1 -0
- package/src/shiki/langs/yaml.js +1 -0
- package/src/shiki/langs/zenscript.js +1 -0
- package/src/shiki/langs/zig.js +1 -0
- package/src/shiki/themes/andromeeda.js +1 -0
- package/src/shiki/themes/aurora-x.js +1 -0
- package/src/shiki/themes/ayu-dark.js +1 -0
- package/src/shiki/themes/catppuccin-frappe.js +1 -0
- package/src/shiki/themes/catppuccin-latte.js +1 -0
- package/src/shiki/themes/catppuccin-macchiato.js +1 -0
- package/src/shiki/themes/catppuccin-mocha.js +1 -0
- package/src/shiki/themes/dark-plus.js +1 -0
- package/src/shiki/themes/dracula-soft.js +1 -0
- package/src/shiki/themes/dracula.js +1 -0
- package/src/shiki/themes/everforest-dark.js +1 -0
- package/src/shiki/themes/everforest-light.js +1 -0
- package/src/shiki/themes/github-dark-default.js +1 -0
- package/src/shiki/themes/github-dark-dimmed.js +1 -0
- package/src/shiki/themes/github-dark-high-contrast.js +1 -0
- package/src/shiki/themes/github-dark.js +1 -0
- package/src/shiki/themes/github-light-default.js +1 -0
- package/src/shiki/themes/github-light-high-contrast.js +1 -0
- package/src/shiki/themes/github-light.js +1 -0
- package/src/shiki/themes/gruvbox-dark-hard.js +1 -0
- package/src/shiki/themes/gruvbox-dark-medium.js +1 -0
- package/src/shiki/themes/gruvbox-dark-soft.js +1 -0
- package/src/shiki/themes/gruvbox-light-hard.js +1 -0
- package/src/shiki/themes/gruvbox-light-medium.js +1 -0
- package/src/shiki/themes/gruvbox-light-soft.js +1 -0
- package/src/shiki/themes/houston.js +1 -0
- package/src/shiki/themes/kanagawa-dragon.js +1 -0
- package/src/shiki/themes/kanagawa-lotus.js +1 -0
- package/src/shiki/themes/kanagawa-wave.js +1 -0
- package/src/shiki/themes/laserwave.js +1 -0
- package/src/shiki/themes/light-plus.js +1 -0
- package/src/shiki/themes/material-theme-darker.js +1 -0
- package/src/shiki/themes/material-theme-lighter.js +1 -0
- package/src/shiki/themes/material-theme-ocean.js +1 -0
- package/src/shiki/themes/material-theme-palenight.js +1 -0
- package/src/shiki/themes/material-theme.js +1 -0
- package/src/shiki/themes/min-dark.js +1 -0
- package/src/shiki/themes/min-light.js +1 -0
- package/src/shiki/themes/monokai.js +1 -0
- package/src/shiki/themes/night-owl.js +1 -0
- package/src/shiki/themes/nord.js +1 -0
- package/src/shiki/themes/one-dark-pro.js +1 -0
- package/src/shiki/themes/one-light.js +1 -0
- package/src/shiki/themes/plastic.js +1 -0
- package/src/shiki/themes/poimandres.js +1 -0
- package/src/shiki/themes/red.js +1 -0
- package/src/shiki/themes/rose-pine-dawn.js +1 -0
- package/src/shiki/themes/rose-pine-moon.js +1 -0
- package/src/shiki/themes/rose-pine.js +1 -0
- package/src/shiki/themes/slack-dark.js +1 -0
- package/src/shiki/themes/slack-ochin.js +1 -0
- package/src/shiki/themes/snazzy-light.js +1 -0
- package/src/shiki/themes/solarized-dark.js +1 -0
- package/src/shiki/themes/solarized-light.js +1 -0
- package/src/shiki/themes/synthwave-84.js +1 -0
- package/src/shiki/themes/tokyo-night.js +1 -0
- package/src/shiki/themes/vesper.js +1 -0
- package/src/shiki/themes/vitesse-black.js +1 -0
- package/src/shiki/themes/vitesse-dark.js +1 -0
- package/src/shiki/themes/vitesse-light.js +1 -0
- package/LICENSE.md +0 -9
- package/client.d.ts +0 -1
- package/dist/app/tailwind.d.ts +0 -3
- package/dist/app/tailwind.js +0 -65
- package/dist/app/tailwind.js.map +0 -1
- package/dist/config/validators/InputSidebarSchema.d.ts +0 -201
- package/dist/config/validators/InputSidebarSchema.js +0 -52
- package/dist/config/validators/InputSidebarSchema.js.map +0 -1
- package/dist/config/validators/SidebarSchema.d.ts +0 -46
- package/dist/config/validators/SidebarSchema.js +0 -118
- package/dist/config/validators/SidebarSchema.js.map +0 -1
- package/dist/lib/components/DevPortal.d.ts +0 -7
- package/dist/lib/components/DevPortal.js +0 -54
- package/dist/lib/components/DevPortal.js.map +0 -1
- package/dist/lib/components/SlotletProvider.d.ts +0 -17
- package/dist/lib/components/SlotletProvider.js +0 -18
- package/dist/lib/components/SlotletProvider.js.map +0 -1
- package/dist/lib/components/SyntaxHighlight.d.ts +0 -11
- package/dist/lib/components/SyntaxHighlight.js +0 -53
- package/dist/lib/components/SyntaxHighlight.js.map +0 -1
- package/dist/lib/components/context/PluginSystem.js +0 -2
- package/dist/lib/components/context/PluginSystem.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/components/navigation/Sidebar.d.ts +0 -1
- package/dist/lib/components/navigation/Sidebar.js +0 -14
- package/dist/lib/components/navigation/Sidebar.js.map +0 -1
- package/dist/lib/components/navigation/SidebarBadge.d.ts +0 -23
- package/dist/lib/components/navigation/SidebarBadge.js +0 -24
- package/dist/lib/components/navigation/SidebarBadge.js.map +0 -1
- package/dist/lib/components/navigation/SidebarCategory.d.ts +0 -5
- package/dist/lib/components/navigation/SidebarCategory.js +0 -50
- package/dist/lib/components/navigation/SidebarCategory.js.map +0 -1
- package/dist/lib/components/navigation/SidebarItem.d.ts +0 -12
- package/dist/lib/components/navigation/SidebarItem.js +0 -48
- package/dist/lib/components/navigation/SidebarItem.js.map +0 -1
- package/dist/lib/components/navigation/SidebarWrapper.d.ts +0 -6
- package/dist/lib/components/navigation/SidebarWrapper.js +0 -6
- package/dist/lib/components/navigation/SidebarWrapper.js.map +0 -1
- package/dist/lib/core/DevPortalContext.d.ts +0 -75
- package/dist/lib/core/DevPortalContext.js +0 -49
- package/dist/lib/core/DevPortalContext.js.map +0 -1
- package/dist/lib/plugins/custom-pages/CustomPage.d.ts +0 -2
- package/dist/lib/plugins/custom-pages/CustomPage.js +0 -11
- package/dist/lib/plugins/custom-pages/CustomPage.js.map +0 -1
- package/dist/lib/plugins/markdown/Toc.js +0 -48
- package/dist/lib/plugins/markdown/Toc.js.map +0 -1
- package/dist/lib/plugins/markdown/resolver.d.ts +0 -38
- package/dist/lib/plugins/markdown/resolver.js +0 -75
- package/dist/lib/plugins/markdown/resolver.js.map +0 -1
- package/dist/lib/plugins/openapi/Route.d.ts +0 -6
- package/dist/lib/plugins/openapi/Route.js +0 -8
- package/dist/lib/plugins/openapi/Route.js.map +0 -1
- package/dist/lib/plugins/openapi/client/createMemoryClient.d.ts +0 -12
- package/dist/lib/plugins/openapi/client/createMemoryClient.js +0 -46
- package/dist/lib/plugins/openapi/client/createMemoryClient.js.map +0 -1
- package/dist/lib/plugins/openapi/client/createWorkerClient.d.ts +0 -10
- package/dist/lib/plugins/openapi/client/createWorkerClient.js +0 -61
- package/dist/lib/plugins/openapi/client/createWorkerClient.js.map +0 -1
- package/dist/lib/plugins/openapi/client/interfaces.d.ts +0 -4
- package/dist/lib/plugins/openapi/client/interfaces.js +0 -2
- package/dist/lib/plugins/openapi/client/interfaces.js.map +0 -1
- package/dist/lib/plugins/openapi/client/worker.js +0 -20
- package/dist/lib/plugins/openapi/client/worker.js.map +0 -1
- package/dist/lib/plugins/openapi/playground/ResponseTab.d.ts +0 -4
- package/dist/lib/plugins/openapi/playground/ResponseTab.js +0 -42
- package/dist/lib/plugins/openapi/playground/ResponseTab.js.map +0 -1
- package/dist/lib/plugins/openapi/playground/UrlDisplay.d.ts +0 -4
- package/dist/lib/plugins/openapi/playground/UrlDisplay.js +0 -22
- package/dist/lib/plugins/openapi/playground/UrlDisplay.js.map +0 -1
- package/dist/lib/plugins/openapi/schema/SchemaComponents.d.ts +0 -13
- package/dist/lib/plugins/openapi/schema/SchemaComponents.js +0 -28
- package/dist/lib/plugins/openapi/schema/SchemaComponents.js.map +0 -1
- package/dist/lib/plugins/openapi-worker.d.ts +0 -1
- package/dist/lib/plugins/openapi-worker.js +0 -2
- package/dist/lib/plugins/openapi-worker.js.map +0 -1
- package/dist/lib/plugins/search-inkeep/InkeepCustomTrigger.d.ts +0 -2
- package/dist/lib/plugins/search-inkeep/InkeepCustomTrigger.js +0 -3
- package/dist/lib/plugins/search-inkeep/InkeepCustomTrigger.js.map +0 -1
- package/dist/lib/themeToggle.d.ts +0 -1
- package/dist/lib/themeToggle.js +0 -7
- package/dist/lib/themeToggle.js.map +0 -1
- package/dist/lib/util/createWaitForNotify.d.ts +0 -1
- package/dist/lib/util/createWaitForNotify.js +0 -15
- package/dist/lib/util/createWaitForNotify.js.map +0 -1
- package/dist/vite/plugin-custom-css.d.ts +0 -6
- package/dist/vite/plugin-custom-css.js +0 -55
- package/dist/vite/plugin-custom-css.js.map +0 -1
- package/dist/vite/plugin-docs.test.js +0 -30
- package/dist/vite/plugin-docs.test.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/dist/vite/plugin-sidebar.d.ts +0 -3
- package/dist/vite/plugin-sidebar.js +0 -47
- package/dist/vite/plugin-sidebar.js.map +0 -1
- package/dist/vite/prerender.d.ts +0 -21
- package/dist/vite/prerender.js +0 -88
- package/dist/vite/prerender.js.map +0 -1
- package/lib/AnchorLink-BbB2q-jx.js +0 -705
- package/lib/AnchorLink-BbB2q-jx.js.map +0 -1
- package/lib/AuthenticationPlugin-C9BHGXlE.js +0 -55
- package/lib/AuthenticationPlugin-C9BHGXlE.js.map +0 -1
- package/lib/CategoryHeading-Bb9dqxD3.js +0 -10
- package/lib/CategoryHeading-Bb9dqxD3.js.map +0 -1
- package/lib/ClientOnly-CVN6leDu.js +0 -11
- package/lib/ClientOnly-CVN6leDu.js.map +0 -1
- package/lib/DeveloperHint-DHdLXGHA.js +0 -16
- package/lib/DeveloperHint-DHdLXGHA.js.map +0 -1
- package/lib/Dialog-k70Qfukb.js +0 -67
- package/lib/Dialog-k70Qfukb.js.map +0 -1
- package/lib/InkeepCustomTrigger-CE5-K5ex.js +0 -6
- package/lib/InkeepCustomTrigger-CE5-K5ex.js.map +0 -1
- package/lib/Markdown-BDcCAWwm.js +0 -18059
- package/lib/Markdown-BDcCAWwm.js.map +0 -1
- package/lib/MdxPage-DKMH_t0f.js +0 -174
- package/lib/MdxPage-DKMH_t0f.js.map +0 -1
- package/lib/OperationList-Tj7ubW_t.js +0 -604
- package/lib/OperationList-Tj7ubW_t.js.map +0 -1
- package/lib/Route-C3DGB6OS.js +0 -13
- package/lib/Route-C3DGB6OS.js.map +0 -1
- package/lib/Select-Bagt3Bme.js +0 -223
- package/lib/Select-Bagt3Bme.js.map +0 -1
- package/lib/SlotletProvider-Da7eFgd2.js +0 -241
- package/lib/SlotletProvider-Da7eFgd2.js.map +0 -1
- package/lib/Spinner-C6zroowC.js +0 -40
- package/lib/Spinner-C6zroowC.js.map +0 -1
- package/lib/StaggeredRender-DDHSzQKE.js +0 -17
- package/lib/StaggeredRender-DDHSzQKE.js.map +0 -1
- package/lib/ZudokuContext-BKXGJTmu.js +0 -1222
- package/lib/ZudokuContext-BKXGJTmu.js.map +0 -1
- package/lib/__vite-browser-external-BYRIRx8p.js +0 -9
- package/lib/__vite-browser-external-BYRIRx8p.js.map +0 -1
- package/lib/_commonjsHelpers-BkfeUUK-.js +0 -29
- package/lib/_commonjsHelpers-BkfeUUK-.js.map +0 -1
- package/lib/assets/index-B_Jk_Yzp.js +0 -4820
- package/lib/assets/index-B_Jk_Yzp.js.map +0 -1
- package/lib/assets/worker-Bf8vjASY.js +0 -18197
- package/lib/assets/worker-Bf8vjASY.js.map +0 -1
- package/lib/cn-BmFQLtkS.js +0 -2279
- package/lib/cn-BmFQLtkS.js.map +0 -1
- package/lib/hook-sn0zMTkE.js +0 -229
- package/lib/hook-sn0zMTkE.js.map +0 -1
- package/lib/index-AjWCJNGC.js +0 -5690
- package/lib/index-AjWCJNGC.js.map +0 -1
- package/lib/index-Bn6Lc9tq.js +0 -9
- package/lib/index-Bn6Lc9tq.js.map +0 -1
- package/lib/index-BuAyrJe3.js +0 -46
- package/lib/index-BuAyrJe3.js.map +0 -1
- package/lib/index-CRo94sKK.js +0 -1783
- package/lib/index-CRo94sKK.js.map +0 -1
- package/lib/index-CkwDvuPt.js +0 -4820
- package/lib/index-CkwDvuPt.js.map +0 -1
- package/lib/index-LNp6rxyU.js +0 -2094
- package/lib/index-LNp6rxyU.js.map +0 -1
- package/lib/index.esm-C5mr_sKO.js +0 -1193
- package/lib/index.esm-C5mr_sKO.js.map +0 -1
- package/lib/invariant-Caa8-XvF.js +0 -26
- package/lib/invariant-Caa8-XvF.js.map +0 -1
- package/lib/jsx-runtime-B6kdoens.js +0 -635
- package/lib/jsx-runtime-B6kdoens.js.map +0 -1
- package/lib/prism-bash.min-DadFsM4Z.js +0 -7
- package/lib/prism-bash.min-DadFsM4Z.js.map +0 -1
- package/lib/prism-csharp.min-Yizuc34Y.js +0 -35
- package/lib/prism-csharp.min-Yizuc34Y.js.map +0 -1
- package/lib/prism-java.min-d5iT_mOd.js +0 -7
- package/lib/prism-java.min-d5iT_mOd.js.map +0 -1
- package/lib/prism-javascript.min-CEqHqgbm.js +0 -9
- package/lib/prism-javascript.min-CEqHqgbm.js.map +0 -1
- package/lib/prism-json.min-B1GJqK1k.js +0 -2
- package/lib/prism-json.min-B1GJqK1k.js.map +0 -1
- package/lib/prism-markdown.min-F3U-vPBi.js +0 -61
- package/lib/prism-markdown.min-F3U-vPBi.js.map +0 -1
- package/lib/prism-markup-BNGj0Tvm.js +0 -174
- package/lib/prism-markup-BNGj0Tvm.js.map +0 -1
- package/lib/prism-markup-templating-DZrrEs0A.js +0 -62
- package/lib/prism-markup-templating-DZrrEs0A.js.map +0 -1
- package/lib/prism-objectivec.min-BXSWqpJJ.js +0 -2
- package/lib/prism-objectivec.min-BXSWqpJJ.js.map +0 -1
- package/lib/prism-php.min-o7FpoMP_.js +0 -11
- package/lib/prism-php.min-o7FpoMP_.js.map +0 -1
- package/lib/prism-ruby.min-C7LwcKyz.js +0 -10
- package/lib/prism-ruby.min-C7LwcKyz.js.map +0 -1
- package/lib/prism-typescript.min-oSVeWCAd.js +0 -6
- package/lib/prism-typescript.min-oSVeWCAd.js.map +0 -1
- package/lib/router-BsfSoK2j.js +0 -3024
- package/lib/router-BsfSoK2j.js.map +0 -1
- package/lib/state-CsuHT8ZO.js +0 -183
- package/lib/state-CsuHT8ZO.js.map +0 -1
- package/lib/urql-core-KJnLL26g.js +0 -1455
- package/lib/urql-core-KJnLL26g.js.map +0 -1
- package/lib/useExposedProps-ChOIUaS4.js +0 -9
- package/lib/useExposedProps-ChOIUaS4.js.map +0 -1
- package/lib/zudoku.openapi-worker.js +0 -16341
- package/lib/zudoku.openapi-worker.js.map +0 -1
- package/src/app/tailwind.ts +0 -68
- package/src/lib/components/DevPortal.tsx +0 -111
- package/src/lib/components/SlotletProvider.tsx +0 -55
- package/src/lib/components/SyntaxHighlight.tsx +0 -126
- package/src/lib/components/context/PluginSystem.ts +0 -0
- package/src/lib/components/context/ThemeContext.tsx +0 -8
- package/src/lib/components/context/ThemeProvider.tsx +0 -27
- package/src/lib/components/navigation/Sidebar.tsx +0 -39
- package/src/lib/components/navigation/SidebarBadge.tsx +0 -43
- package/src/lib/components/navigation/SidebarCategory.tsx +0 -137
- package/src/lib/components/navigation/SidebarItem.tsx +0 -127
- package/src/lib/components/navigation/SidebarWrapper.tsx +0 -26
- package/src/lib/core/DevPortalContext.ts +0 -136
- package/src/lib/plugins/custom-pages/CustomPage.tsx +0 -18
- package/src/lib/plugins/markdown/Toc.tsx +0 -135
- package/src/lib/plugins/markdown/resolver.ts +0 -92
- package/src/lib/plugins/openapi/Route.tsx +0 -20
- package/src/lib/plugins/openapi/client/createMemoryClient.ts +0 -51
- package/src/lib/plugins/openapi/client/createWorkerClient.ts +0 -75
- package/src/lib/plugins/openapi/client/interfaces.ts +0 -5
- package/src/lib/plugins/openapi/client/worker.ts +0 -30
- package/src/lib/plugins/openapi/playground/ResponseTab.tsx +0 -76
- package/src/lib/plugins/openapi/playground/UrlDisplay.tsx +0 -32
- package/src/lib/plugins/openapi/schema/SchemaComponents.tsx +0 -126
- package/src/lib/plugins/openapi-worker.ts +0 -1
- package/src/lib/plugins/search-inkeep/InkeepCustomTrigger.tsx +0 -3
- package/src/lib/themeToggle.ts +0 -7
- package/src/lib/util/createWaitForNotify.ts +0 -18
- /package/dist/{lib/components/context/PluginSystem.d.ts → config/validators/InputNavigationSchema.test-d.d.ts} +0 -0
- /package/dist/{lib/plugins/openapi/client/worker.d.ts → config/validators/validate.test.d.ts} +0 -0
- /package/dist/{vite/plugin-docs.test.d.ts → lib/auth/issuer.test.d.ts} +0 -0
- /package/dist/lib/{plugins/markdown → components/navigation}/Toc.d.ts +0 -0
package/lib/index-CRo94sKK.js
DELETED
|
@@ -1,1783 +0,0 @@
|
|
|
1
|
-
import * as n from "react";
|
|
2
|
-
import * as Bt from "react-dom";
|
|
3
|
-
import { i as m, j as G, g as be, w as C, a as Re, m as we, A as de, p as fe, s as T, b as X, d as Mt, c as Ce, e as jt, I as Ht, f as qe, h as Se, k as _e, l as Q, n as Ge, o as Xe, q as Qe, r as Ze, t as et, u as tt, v as rt, x as nt, y as ot, E as at, z as Kt } from "./router-BsfSoK2j.js";
|
|
4
|
-
/**
|
|
5
|
-
* React Router v6.27.0
|
|
6
|
-
*
|
|
7
|
-
* Copyright (c) Remix Software Inc.
|
|
8
|
-
*
|
|
9
|
-
* This source code is licensed under the MIT license found in the
|
|
10
|
-
* LICENSE.md file in the root directory of this source tree.
|
|
11
|
-
*
|
|
12
|
-
* @license MIT
|
|
13
|
-
*/
|
|
14
|
-
function I() {
|
|
15
|
-
return I = Object.assign ? Object.assign.bind() : function(e) {
|
|
16
|
-
for (var t = 1; t < arguments.length; t++) {
|
|
17
|
-
var r = arguments[t];
|
|
18
|
-
for (var o in r)
|
|
19
|
-
Object.prototype.hasOwnProperty.call(r, o) && (e[o] = r[o]);
|
|
20
|
-
}
|
|
21
|
-
return e;
|
|
22
|
-
}, I.apply(this, arguments);
|
|
23
|
-
}
|
|
24
|
-
const U = /* @__PURE__ */ n.createContext(null);
|
|
25
|
-
process.env.NODE_ENV !== "production" && (U.displayName = "DataRouter");
|
|
26
|
-
const B = /* @__PURE__ */ n.createContext(null);
|
|
27
|
-
process.env.NODE_ENV !== "production" && (B.displayName = "DataRouterState");
|
|
28
|
-
const Z = /* @__PURE__ */ n.createContext(null);
|
|
29
|
-
process.env.NODE_ENV !== "production" && (Z.displayName = "Await");
|
|
30
|
-
const S = /* @__PURE__ */ n.createContext(null);
|
|
31
|
-
process.env.NODE_ENV !== "production" && (S.displayName = "Navigation");
|
|
32
|
-
const M = /* @__PURE__ */ n.createContext(null);
|
|
33
|
-
process.env.NODE_ENV !== "production" && (M.displayName = "Location");
|
|
34
|
-
const _ = /* @__PURE__ */ n.createContext({
|
|
35
|
-
outlet: null,
|
|
36
|
-
matches: [],
|
|
37
|
-
isDataRoute: !1
|
|
38
|
-
});
|
|
39
|
-
process.env.NODE_ENV !== "production" && (_.displayName = "Route");
|
|
40
|
-
const xe = /* @__PURE__ */ n.createContext(null);
|
|
41
|
-
process.env.NODE_ENV !== "production" && (xe.displayName = "RouteError");
|
|
42
|
-
function De(e, t) {
|
|
43
|
-
let {
|
|
44
|
-
relative: r
|
|
45
|
-
} = t === void 0 ? {} : t;
|
|
46
|
-
V() || (process.env.NODE_ENV !== "production" ? m(
|
|
47
|
-
!1,
|
|
48
|
-
// TODO: This error is probably because they somehow have 2 versions of the
|
|
49
|
-
// router loaded. We can help them understand how to avoid that.
|
|
50
|
-
"useHref() may be used only in the context of a <Router> component."
|
|
51
|
-
) : m(!1));
|
|
52
|
-
let {
|
|
53
|
-
basename: o,
|
|
54
|
-
navigator: a
|
|
55
|
-
} = n.useContext(S), {
|
|
56
|
-
hash: l,
|
|
57
|
-
pathname: i,
|
|
58
|
-
search: u
|
|
59
|
-
} = Y(e, {
|
|
60
|
-
relative: r
|
|
61
|
-
}), f = i;
|
|
62
|
-
return o !== "/" && (f = i === "/" ? o : G([o, i])), a.createHref({
|
|
63
|
-
pathname: f,
|
|
64
|
-
search: u,
|
|
65
|
-
hash: l
|
|
66
|
-
});
|
|
67
|
-
}
|
|
68
|
-
function V() {
|
|
69
|
-
return n.useContext(M) != null;
|
|
70
|
-
}
|
|
71
|
-
function L() {
|
|
72
|
-
return V() || (process.env.NODE_ENV !== "production" ? m(
|
|
73
|
-
!1,
|
|
74
|
-
// TODO: This error is probably because they somehow have 2 versions of the
|
|
75
|
-
// router loaded. We can help them understand how to avoid that.
|
|
76
|
-
"useLocation() may be used only in the context of a <Router> component."
|
|
77
|
-
) : m(!1)), n.useContext(M).location;
|
|
78
|
-
}
|
|
79
|
-
function it() {
|
|
80
|
-
return n.useContext(M).navigationType;
|
|
81
|
-
}
|
|
82
|
-
function lt(e) {
|
|
83
|
-
V() || (process.env.NODE_ENV !== "production" ? m(
|
|
84
|
-
!1,
|
|
85
|
-
// TODO: This error is probably because they somehow have 2 versions of the
|
|
86
|
-
// router loaded. We can help them understand how to avoid that.
|
|
87
|
-
"useMatch() may be used only in the context of a <Router> component."
|
|
88
|
-
) : m(!1));
|
|
89
|
-
let {
|
|
90
|
-
pathname: t
|
|
91
|
-
} = L();
|
|
92
|
-
return n.useMemo(() => X(e, Mt(t)), [t, e]);
|
|
93
|
-
}
|
|
94
|
-
const st = "You should call navigate() in a React.useEffect(), not when your component is first rendered.";
|
|
95
|
-
function ut(e) {
|
|
96
|
-
n.useContext(S).static || n.useLayoutEffect(e);
|
|
97
|
-
}
|
|
98
|
-
function te() {
|
|
99
|
-
let {
|
|
100
|
-
isDataRoute: e
|
|
101
|
-
} = n.useContext(_);
|
|
102
|
-
return e ? Xt() : zt();
|
|
103
|
-
}
|
|
104
|
-
function zt() {
|
|
105
|
-
V() || (process.env.NODE_ENV !== "production" ? m(
|
|
106
|
-
!1,
|
|
107
|
-
// TODO: This error is probably because they somehow have 2 versions of the
|
|
108
|
-
// router loaded. We can help them understand how to avoid that.
|
|
109
|
-
"useNavigate() may be used only in the context of a <Router> component."
|
|
110
|
-
) : m(!1));
|
|
111
|
-
let e = n.useContext(U), {
|
|
112
|
-
basename: t,
|
|
113
|
-
future: r,
|
|
114
|
-
navigator: o
|
|
115
|
-
} = n.useContext(S), {
|
|
116
|
-
matches: a
|
|
117
|
-
} = n.useContext(_), {
|
|
118
|
-
pathname: l
|
|
119
|
-
} = L(), i = JSON.stringify(be(a, r.v7_relativeSplatPath)), u = n.useRef(!1);
|
|
120
|
-
return ut(() => {
|
|
121
|
-
u.current = !0;
|
|
122
|
-
}), n.useCallback(function(s, c) {
|
|
123
|
-
if (c === void 0 && (c = {}), process.env.NODE_ENV !== "production" && C(u.current, st), !u.current) return;
|
|
124
|
-
if (typeof s == "number") {
|
|
125
|
-
o.go(s);
|
|
126
|
-
return;
|
|
127
|
-
}
|
|
128
|
-
let d = Re(s, JSON.parse(i), l, c.relative === "path");
|
|
129
|
-
e == null && t !== "/" && (d.pathname = d.pathname === "/" ? t : G([t, d.pathname])), (c.replace ? o.replace : o.push)(d, c.state, c);
|
|
130
|
-
}, [t, o, i, l, e]);
|
|
131
|
-
}
|
|
132
|
-
const ct = /* @__PURE__ */ n.createContext(null);
|
|
133
|
-
function dt() {
|
|
134
|
-
return n.useContext(ct);
|
|
135
|
-
}
|
|
136
|
-
function Oe(e) {
|
|
137
|
-
let t = n.useContext(_).outlet;
|
|
138
|
-
return t && /* @__PURE__ */ n.createElement(ct.Provider, {
|
|
139
|
-
value: e
|
|
140
|
-
}, t);
|
|
141
|
-
}
|
|
142
|
-
function ft() {
|
|
143
|
-
let {
|
|
144
|
-
matches: e
|
|
145
|
-
} = n.useContext(_), t = e[e.length - 1];
|
|
146
|
-
return t ? t.params : {};
|
|
147
|
-
}
|
|
148
|
-
function Y(e, t) {
|
|
149
|
-
let {
|
|
150
|
-
relative: r
|
|
151
|
-
} = t === void 0 ? {} : t, {
|
|
152
|
-
future: o
|
|
153
|
-
} = n.useContext(S), {
|
|
154
|
-
matches: a
|
|
155
|
-
} = n.useContext(_), {
|
|
156
|
-
pathname: l
|
|
157
|
-
} = L(), i = JSON.stringify(be(a, o.v7_relativeSplatPath));
|
|
158
|
-
return n.useMemo(() => Re(e, JSON.parse(i), l, r === "path"), [e, i, l, r]);
|
|
159
|
-
}
|
|
160
|
-
function Pe(e, t) {
|
|
161
|
-
return pe(e, t);
|
|
162
|
-
}
|
|
163
|
-
function pe(e, t, r, o) {
|
|
164
|
-
V() || (process.env.NODE_ENV !== "production" ? m(
|
|
165
|
-
!1,
|
|
166
|
-
// TODO: This error is probably because they somehow have 2 versions of the
|
|
167
|
-
// router loaded. We can help them understand how to avoid that.
|
|
168
|
-
"useRoutes() may be used only in the context of a <Router> component."
|
|
169
|
-
) : m(!1));
|
|
170
|
-
let {
|
|
171
|
-
navigator: a
|
|
172
|
-
} = n.useContext(S), {
|
|
173
|
-
matches: l
|
|
174
|
-
} = n.useContext(_), i = l[l.length - 1], u = i ? i.params : {}, f = i ? i.pathname : "/", s = i ? i.pathnameBase : "/", c = i && i.route;
|
|
175
|
-
if (process.env.NODE_ENV !== "production") {
|
|
176
|
-
let h = c && c.path || "";
|
|
177
|
-
gt(f, !c || h.endsWith("*"), "You rendered descendant <Routes> (or called `useRoutes()`) at " + ('"' + f + '" (under <Route path="' + h + '">) but the ') + `parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
|
|
178
|
-
|
|
179
|
-
` + ('Please change the parent <Route path="' + h + '"> to <Route ') + ('path="' + (h === "/" ? "*" : h + "/*") + '">.'));
|
|
180
|
-
}
|
|
181
|
-
let d = L(), p;
|
|
182
|
-
if (t) {
|
|
183
|
-
var v;
|
|
184
|
-
let h = typeof t == "string" ? fe(t) : t;
|
|
185
|
-
s === "/" || (v = h.pathname) != null && v.startsWith(s) || (process.env.NODE_ENV !== "production" ? m(!1, "When overriding the location using `<Routes location>` or `useRoutes(routes, location)`, the location pathname must begin with the portion of the URL pathname that was " + ('matched by all parent routes. The current pathname base is "' + s + '" ') + ('but pathname "' + h.pathname + '" was given in the `location` prop.')) : m(!1)), p = h;
|
|
186
|
-
} else
|
|
187
|
-
p = d;
|
|
188
|
-
let g = p.pathname || "/", N = g;
|
|
189
|
-
if (s !== "/") {
|
|
190
|
-
let h = s.replace(/^\//, "").split("/");
|
|
191
|
-
N = "/" + g.replace(/^\//, "").split("/").slice(h.length).join("/");
|
|
192
|
-
}
|
|
193
|
-
let y = we(e, {
|
|
194
|
-
pathname: N
|
|
195
|
-
});
|
|
196
|
-
process.env.NODE_ENV !== "production" && (process.env.NODE_ENV !== "production" && C(c || y != null, 'No routes matched location "' + p.pathname + p.search + p.hash + '" '), process.env.NODE_ENV !== "production" && C(y == null || y[y.length - 1].route.element !== void 0 || y[y.length - 1].route.Component !== void 0 || y[y.length - 1].route.lazy !== void 0, 'Matched leaf route at location "' + p.pathname + p.search + p.hash + '" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.'));
|
|
197
|
-
let w = pt(y && y.map((h) => Object.assign({}, h, {
|
|
198
|
-
params: Object.assign({}, u, h.params),
|
|
199
|
-
pathname: G([
|
|
200
|
-
s,
|
|
201
|
-
// Re-encode pathnames that were decoded inside matchRoutes
|
|
202
|
-
a.encodeLocation ? a.encodeLocation(h.pathname).pathname : h.pathname
|
|
203
|
-
]),
|
|
204
|
-
pathnameBase: h.pathnameBase === "/" ? s : G([
|
|
205
|
-
s,
|
|
206
|
-
// Re-encode pathnames that were decoded inside matchRoutes
|
|
207
|
-
a.encodeLocation ? a.encodeLocation(h.pathnameBase).pathname : h.pathnameBase
|
|
208
|
-
])
|
|
209
|
-
})), l, r, o);
|
|
210
|
-
return t && w ? /* @__PURE__ */ n.createElement(M.Provider, {
|
|
211
|
-
value: {
|
|
212
|
-
location: I({
|
|
213
|
-
pathname: "/",
|
|
214
|
-
search: "",
|
|
215
|
-
hash: "",
|
|
216
|
-
state: null,
|
|
217
|
-
key: "default"
|
|
218
|
-
}, p),
|
|
219
|
-
navigationType: de.Pop
|
|
220
|
-
}
|
|
221
|
-
}, w) : w;
|
|
222
|
-
}
|
|
223
|
-
function Wt() {
|
|
224
|
-
let e = ke(), t = Ce(e) ? e.status + " " + e.statusText : e instanceof Error ? e.message : JSON.stringify(e), r = e instanceof Error ? e.stack : null, o = "rgba(200,200,200, 0.5)", a = {
|
|
225
|
-
padding: "0.5rem",
|
|
226
|
-
backgroundColor: o
|
|
227
|
-
}, l = {
|
|
228
|
-
padding: "2px 4px",
|
|
229
|
-
backgroundColor: o
|
|
230
|
-
}, i = null;
|
|
231
|
-
return process.env.NODE_ENV !== "production" && (console.error("Error handled by React Router default ErrorBoundary:", e), i = /* @__PURE__ */ n.createElement(n.Fragment, null, /* @__PURE__ */ n.createElement("p", null, "💿 Hey developer 👋"), /* @__PURE__ */ n.createElement("p", null, "You can provide a way better UX than this when your app throws errors by providing your own ", /* @__PURE__ */ n.createElement("code", {
|
|
232
|
-
style: l
|
|
233
|
-
}, "ErrorBoundary"), " or", " ", /* @__PURE__ */ n.createElement("code", {
|
|
234
|
-
style: l
|
|
235
|
-
}, "errorElement"), " prop on your route."))), /* @__PURE__ */ n.createElement(n.Fragment, null, /* @__PURE__ */ n.createElement("h2", null, "Unexpected Application Error!"), /* @__PURE__ */ n.createElement("h3", {
|
|
236
|
-
style: {
|
|
237
|
-
fontStyle: "italic"
|
|
238
|
-
}
|
|
239
|
-
}, t), r ? /* @__PURE__ */ n.createElement("pre", {
|
|
240
|
-
style: a
|
|
241
|
-
}, r) : null, i);
|
|
242
|
-
}
|
|
243
|
-
const Yt = /* @__PURE__ */ n.createElement(Wt, null);
|
|
244
|
-
class $t extends n.Component {
|
|
245
|
-
constructor(t) {
|
|
246
|
-
super(t), this.state = {
|
|
247
|
-
location: t.location,
|
|
248
|
-
revalidation: t.revalidation,
|
|
249
|
-
error: t.error
|
|
250
|
-
};
|
|
251
|
-
}
|
|
252
|
-
static getDerivedStateFromError(t) {
|
|
253
|
-
return {
|
|
254
|
-
error: t
|
|
255
|
-
};
|
|
256
|
-
}
|
|
257
|
-
static getDerivedStateFromProps(t, r) {
|
|
258
|
-
return r.location !== t.location || r.revalidation !== "idle" && t.revalidation === "idle" ? {
|
|
259
|
-
error: t.error,
|
|
260
|
-
location: t.location,
|
|
261
|
-
revalidation: t.revalidation
|
|
262
|
-
} : {
|
|
263
|
-
error: t.error !== void 0 ? t.error : r.error,
|
|
264
|
-
location: r.location,
|
|
265
|
-
revalidation: t.revalidation || r.revalidation
|
|
266
|
-
};
|
|
267
|
-
}
|
|
268
|
-
componentDidCatch(t, r) {
|
|
269
|
-
console.error("React Router caught the following error during render", t, r);
|
|
270
|
-
}
|
|
271
|
-
render() {
|
|
272
|
-
return this.state.error !== void 0 ? /* @__PURE__ */ n.createElement(_.Provider, {
|
|
273
|
-
value: this.props.routeContext
|
|
274
|
-
}, /* @__PURE__ */ n.createElement(xe.Provider, {
|
|
275
|
-
value: this.state.error,
|
|
276
|
-
children: this.props.component
|
|
277
|
-
})) : this.props.children;
|
|
278
|
-
}
|
|
279
|
-
}
|
|
280
|
-
function Jt(e) {
|
|
281
|
-
let {
|
|
282
|
-
routeContext: t,
|
|
283
|
-
match: r,
|
|
284
|
-
children: o
|
|
285
|
-
} = e, a = n.useContext(U);
|
|
286
|
-
return a && a.static && a.staticContext && (r.route.errorElement || r.route.ErrorBoundary) && (a.staticContext._deepestRenderedBoundaryId = r.route.id), /* @__PURE__ */ n.createElement(_.Provider, {
|
|
287
|
-
value: t
|
|
288
|
-
}, o);
|
|
289
|
-
}
|
|
290
|
-
function pt(e, t, r, o) {
|
|
291
|
-
var a;
|
|
292
|
-
if (t === void 0 && (t = []), r === void 0 && (r = null), o === void 0 && (o = null), e == null) {
|
|
293
|
-
var l;
|
|
294
|
-
if (!r)
|
|
295
|
-
return null;
|
|
296
|
-
if (r.errors)
|
|
297
|
-
e = r.matches;
|
|
298
|
-
else if ((l = o) != null && l.v7_partialHydration && t.length === 0 && !r.initialized && r.matches.length > 0)
|
|
299
|
-
e = r.matches;
|
|
300
|
-
else
|
|
301
|
-
return null;
|
|
302
|
-
}
|
|
303
|
-
let i = e, u = (a = r) == null ? void 0 : a.errors;
|
|
304
|
-
if (u != null) {
|
|
305
|
-
let c = i.findIndex((d) => d.route.id && (u == null ? void 0 : u[d.route.id]) !== void 0);
|
|
306
|
-
c >= 0 || (process.env.NODE_ENV !== "production" ? m(!1, "Could not find a matching route for errors on route IDs: " + Object.keys(u).join(",")) : m(!1)), i = i.slice(0, Math.min(i.length, c + 1));
|
|
307
|
-
}
|
|
308
|
-
let f = !1, s = -1;
|
|
309
|
-
if (r && o && o.v7_partialHydration)
|
|
310
|
-
for (let c = 0; c < i.length; c++) {
|
|
311
|
-
let d = i[c];
|
|
312
|
-
if ((d.route.HydrateFallback || d.route.hydrateFallbackElement) && (s = c), d.route.id) {
|
|
313
|
-
let {
|
|
314
|
-
loaderData: p,
|
|
315
|
-
errors: v
|
|
316
|
-
} = r, g = d.route.loader && p[d.route.id] === void 0 && (!v || v[d.route.id] === void 0);
|
|
317
|
-
if (d.route.lazy || g) {
|
|
318
|
-
f = !0, s >= 0 ? i = i.slice(0, s + 1) : i = [i[0]];
|
|
319
|
-
break;
|
|
320
|
-
}
|
|
321
|
-
}
|
|
322
|
-
}
|
|
323
|
-
return i.reduceRight((c, d, p) => {
|
|
324
|
-
let v, g = !1, N = null, y = null;
|
|
325
|
-
r && (v = u && d.route.id ? u[d.route.id] : void 0, N = d.route.errorElement || Yt, f && (s < 0 && p === 0 ? (gt("route-fallback", !1, "No `HydrateFallback` element provided to render during initial hydration"), g = !0, y = null) : s === p && (g = !0, y = d.route.hydrateFallbackElement || null)));
|
|
326
|
-
let w = t.concat(i.slice(0, p + 1)), h = () => {
|
|
327
|
-
let E;
|
|
328
|
-
return v ? E = N : g ? E = y : d.route.Component ? E = /* @__PURE__ */ n.createElement(d.route.Component, null) : d.route.element ? E = d.route.element : E = c, /* @__PURE__ */ n.createElement(Jt, {
|
|
329
|
-
match: d,
|
|
330
|
-
routeContext: {
|
|
331
|
-
outlet: c,
|
|
332
|
-
matches: w,
|
|
333
|
-
isDataRoute: r != null
|
|
334
|
-
},
|
|
335
|
-
children: E
|
|
336
|
-
});
|
|
337
|
-
};
|
|
338
|
-
return r && (d.route.ErrorBoundary || d.route.errorElement || p === 0) ? /* @__PURE__ */ n.createElement($t, {
|
|
339
|
-
location: r.location,
|
|
340
|
-
revalidation: r.revalidation,
|
|
341
|
-
component: N,
|
|
342
|
-
error: v,
|
|
343
|
-
children: h(),
|
|
344
|
-
routeContext: {
|
|
345
|
-
outlet: null,
|
|
346
|
-
matches: w,
|
|
347
|
-
isDataRoute: !0
|
|
348
|
-
}
|
|
349
|
-
}) : h();
|
|
350
|
-
}, null);
|
|
351
|
-
}
|
|
352
|
-
var he = /* @__PURE__ */ function(e) {
|
|
353
|
-
return e.UseBlocker = "useBlocker", e.UseRevalidator = "useRevalidator", e.UseNavigateStable = "useNavigate", e;
|
|
354
|
-
}(he || {}), O = /* @__PURE__ */ function(e) {
|
|
355
|
-
return e.UseBlocker = "useBlocker", e.UseLoaderData = "useLoaderData", e.UseActionData = "useActionData", e.UseRouteError = "useRouteError", e.UseNavigation = "useNavigation", e.UseRouteLoaderData = "useRouteLoaderData", e.UseMatches = "useMatches", e.UseRevalidator = "useRevalidator", e.UseNavigateStable = "useNavigate", e.UseRouteId = "useRouteId", e;
|
|
356
|
-
}(O || {});
|
|
357
|
-
function Le(e) {
|
|
358
|
-
return e + " must be used within a data router. See https://reactrouter.com/routers/picking-a-router.";
|
|
359
|
-
}
|
|
360
|
-
function Te(e) {
|
|
361
|
-
let t = n.useContext(U);
|
|
362
|
-
return t || (process.env.NODE_ENV !== "production" ? m(!1, Le(e)) : m(!1)), t;
|
|
363
|
-
}
|
|
364
|
-
function j(e) {
|
|
365
|
-
let t = n.useContext(B);
|
|
366
|
-
return t || (process.env.NODE_ENV !== "production" ? m(!1, Le(e)) : m(!1)), t;
|
|
367
|
-
}
|
|
368
|
-
function qt(e) {
|
|
369
|
-
let t = n.useContext(_);
|
|
370
|
-
return t || (process.env.NODE_ENV !== "production" ? m(!1, Le(e)) : m(!1)), t;
|
|
371
|
-
}
|
|
372
|
-
function re(e) {
|
|
373
|
-
let t = qt(e), r = t.matches[t.matches.length - 1];
|
|
374
|
-
return r.route.id || (process.env.NODE_ENV !== "production" ? m(!1, e + ' can only be used on routes that contain a unique "id"') : m(!1)), r.route.id;
|
|
375
|
-
}
|
|
376
|
-
function Fe() {
|
|
377
|
-
return re(O.UseRouteId);
|
|
378
|
-
}
|
|
379
|
-
function Ue() {
|
|
380
|
-
return j(O.UseNavigation).navigation;
|
|
381
|
-
}
|
|
382
|
-
function ht() {
|
|
383
|
-
let e = Te(he.UseRevalidator), t = j(O.UseRevalidator);
|
|
384
|
-
return n.useMemo(() => ({
|
|
385
|
-
revalidate: e.router.revalidate,
|
|
386
|
-
state: t.revalidation
|
|
387
|
-
}), [e.router.revalidate, t.revalidation]);
|
|
388
|
-
}
|
|
389
|
-
function Ve() {
|
|
390
|
-
let {
|
|
391
|
-
matches: e,
|
|
392
|
-
loaderData: t
|
|
393
|
-
} = j(O.UseMatches);
|
|
394
|
-
return n.useMemo(() => e.map((r) => jt(r, t)), [e, t]);
|
|
395
|
-
}
|
|
396
|
-
function mt() {
|
|
397
|
-
let e = j(O.UseLoaderData), t = re(O.UseLoaderData);
|
|
398
|
-
if (e.errors && e.errors[t] != null) {
|
|
399
|
-
console.error("You cannot `useLoaderData` in an errorElement (routeId: " + t + ")");
|
|
400
|
-
return;
|
|
401
|
-
}
|
|
402
|
-
return e.loaderData[t];
|
|
403
|
-
}
|
|
404
|
-
function vt(e) {
|
|
405
|
-
return j(O.UseRouteLoaderData).loaderData[e];
|
|
406
|
-
}
|
|
407
|
-
function Et() {
|
|
408
|
-
let e = j(O.UseActionData), t = re(O.UseLoaderData);
|
|
409
|
-
return e.actionData ? e.actionData[t] : void 0;
|
|
410
|
-
}
|
|
411
|
-
function ke() {
|
|
412
|
-
var e;
|
|
413
|
-
let t = n.useContext(xe), r = j(O.UseRouteError), o = re(O.UseRouteError);
|
|
414
|
-
return t !== void 0 ? t : (e = r.errors) == null ? void 0 : e[o];
|
|
415
|
-
}
|
|
416
|
-
function Ie() {
|
|
417
|
-
let e = n.useContext(Z);
|
|
418
|
-
return e == null ? void 0 : e._data;
|
|
419
|
-
}
|
|
420
|
-
function yt() {
|
|
421
|
-
let e = n.useContext(Z);
|
|
422
|
-
return e == null ? void 0 : e._error;
|
|
423
|
-
}
|
|
424
|
-
let Gt = 0;
|
|
425
|
-
function Ae(e) {
|
|
426
|
-
let {
|
|
427
|
-
router: t,
|
|
428
|
-
basename: r
|
|
429
|
-
} = Te(he.UseBlocker), o = j(O.UseBlocker), [a, l] = n.useState(""), i = n.useCallback((u) => {
|
|
430
|
-
if (typeof e != "function")
|
|
431
|
-
return !!e;
|
|
432
|
-
if (r === "/")
|
|
433
|
-
return e(u);
|
|
434
|
-
let {
|
|
435
|
-
currentLocation: f,
|
|
436
|
-
nextLocation: s,
|
|
437
|
-
historyAction: c
|
|
438
|
-
} = u;
|
|
439
|
-
return e({
|
|
440
|
-
currentLocation: I({}, f, {
|
|
441
|
-
pathname: T(f.pathname, r) || f.pathname
|
|
442
|
-
}),
|
|
443
|
-
nextLocation: I({}, s, {
|
|
444
|
-
pathname: T(s.pathname, r) || s.pathname
|
|
445
|
-
}),
|
|
446
|
-
historyAction: c
|
|
447
|
-
});
|
|
448
|
-
}, [r, e]);
|
|
449
|
-
return n.useEffect(() => {
|
|
450
|
-
let u = String(++Gt);
|
|
451
|
-
return l(u), () => t.deleteBlocker(u);
|
|
452
|
-
}, [t]), n.useEffect(() => {
|
|
453
|
-
a !== "" && t.getBlocker(a, i);
|
|
454
|
-
}, [t, a, i]), a && o.blockers.has(a) ? o.blockers.get(a) : Ht;
|
|
455
|
-
}
|
|
456
|
-
function Xt() {
|
|
457
|
-
let {
|
|
458
|
-
router: e
|
|
459
|
-
} = Te(he.UseNavigateStable), t = re(O.UseNavigateStable), r = n.useRef(!1);
|
|
460
|
-
return ut(() => {
|
|
461
|
-
r.current = !0;
|
|
462
|
-
}), n.useCallback(function(a, l) {
|
|
463
|
-
l === void 0 && (l = {}), process.env.NODE_ENV !== "production" && C(r.current, st), r.current && (typeof a == "number" ? e.navigate(a) : e.navigate(a, I({
|
|
464
|
-
fromRouteId: t
|
|
465
|
-
}, l)));
|
|
466
|
-
}, [e, t]);
|
|
467
|
-
}
|
|
468
|
-
const We = {};
|
|
469
|
-
function gt(e, t, r) {
|
|
470
|
-
!t && !We[e] && (We[e] = !0, process.env.NODE_ENV !== "production" && C(!1, r));
|
|
471
|
-
}
|
|
472
|
-
const Qt = "startTransition", ue = n[Qt];
|
|
473
|
-
function Zt(e) {
|
|
474
|
-
let {
|
|
475
|
-
fallbackElement: t,
|
|
476
|
-
router: r,
|
|
477
|
-
future: o
|
|
478
|
-
} = e, [a, l] = n.useState(r.state), {
|
|
479
|
-
v7_startTransition: i
|
|
480
|
-
} = o || {}, u = n.useCallback((d) => {
|
|
481
|
-
i && ue ? ue(() => l(d)) : l(d);
|
|
482
|
-
}, [l, i]);
|
|
483
|
-
n.useLayoutEffect(() => r.subscribe(u), [r, u]), n.useEffect(() => {
|
|
484
|
-
process.env.NODE_ENV !== "production" && C(t == null || !r.future.v7_partialHydration, "`<RouterProvider fallbackElement>` is deprecated when using `v7_partialHydration`, use a `HydrateFallback` component instead");
|
|
485
|
-
}, []);
|
|
486
|
-
let f = n.useMemo(() => ({
|
|
487
|
-
createHref: r.createHref,
|
|
488
|
-
encodeLocation: r.encodeLocation,
|
|
489
|
-
go: (d) => r.navigate(d),
|
|
490
|
-
push: (d, p, v) => r.navigate(d, {
|
|
491
|
-
state: p,
|
|
492
|
-
preventScrollReset: v == null ? void 0 : v.preventScrollReset
|
|
493
|
-
}),
|
|
494
|
-
replace: (d, p, v) => r.navigate(d, {
|
|
495
|
-
replace: !0,
|
|
496
|
-
state: p,
|
|
497
|
-
preventScrollReset: v == null ? void 0 : v.preventScrollReset
|
|
498
|
-
})
|
|
499
|
-
}), [r]), s = r.basename || "/", c = n.useMemo(() => ({
|
|
500
|
-
router: r,
|
|
501
|
-
navigator: f,
|
|
502
|
-
static: !1,
|
|
503
|
-
basename: s
|
|
504
|
-
}), [r, f, s]);
|
|
505
|
-
return /* @__PURE__ */ n.createElement(n.Fragment, null, /* @__PURE__ */ n.createElement(U.Provider, {
|
|
506
|
-
value: c
|
|
507
|
-
}, /* @__PURE__ */ n.createElement(B.Provider, {
|
|
508
|
-
value: a
|
|
509
|
-
}, /* @__PURE__ */ n.createElement(H, {
|
|
510
|
-
basename: s,
|
|
511
|
-
location: a.location,
|
|
512
|
-
navigationType: a.historyAction,
|
|
513
|
-
navigator: f,
|
|
514
|
-
future: {
|
|
515
|
-
v7_relativeSplatPath: r.future.v7_relativeSplatPath
|
|
516
|
-
}
|
|
517
|
-
}, a.initialized || r.future.v7_partialHydration ? /* @__PURE__ */ n.createElement(er, {
|
|
518
|
-
routes: r.routes,
|
|
519
|
-
future: r.future,
|
|
520
|
-
state: a
|
|
521
|
-
}) : t))), null);
|
|
522
|
-
}
|
|
523
|
-
function er(e) {
|
|
524
|
-
let {
|
|
525
|
-
routes: t,
|
|
526
|
-
future: r,
|
|
527
|
-
state: o
|
|
528
|
-
} = e;
|
|
529
|
-
return pe(t, void 0, o, r);
|
|
530
|
-
}
|
|
531
|
-
function Nt(e) {
|
|
532
|
-
let {
|
|
533
|
-
basename: t,
|
|
534
|
-
children: r,
|
|
535
|
-
initialEntries: o,
|
|
536
|
-
initialIndex: a,
|
|
537
|
-
future: l
|
|
538
|
-
} = e, i = n.useRef();
|
|
539
|
-
i.current == null && (i.current = qe({
|
|
540
|
-
initialEntries: o,
|
|
541
|
-
initialIndex: a,
|
|
542
|
-
v5Compat: !0
|
|
543
|
-
}));
|
|
544
|
-
let u = i.current, [f, s] = n.useState({
|
|
545
|
-
action: u.action,
|
|
546
|
-
location: u.location
|
|
547
|
-
}), {
|
|
548
|
-
v7_startTransition: c
|
|
549
|
-
} = l || {}, d = n.useCallback((p) => {
|
|
550
|
-
c && ue ? ue(() => s(p)) : s(p);
|
|
551
|
-
}, [s, c]);
|
|
552
|
-
return n.useLayoutEffect(() => u.listen(d), [u, d]), /* @__PURE__ */ n.createElement(H, {
|
|
553
|
-
basename: t,
|
|
554
|
-
children: r,
|
|
555
|
-
location: f.location,
|
|
556
|
-
navigationType: f.action,
|
|
557
|
-
navigator: u,
|
|
558
|
-
future: l
|
|
559
|
-
});
|
|
560
|
-
}
|
|
561
|
-
function bt(e) {
|
|
562
|
-
let {
|
|
563
|
-
to: t,
|
|
564
|
-
replace: r,
|
|
565
|
-
state: o,
|
|
566
|
-
relative: a
|
|
567
|
-
} = e;
|
|
568
|
-
V() || (process.env.NODE_ENV !== "production" ? m(
|
|
569
|
-
!1,
|
|
570
|
-
// TODO: This error is probably because they somehow have 2 versions of
|
|
571
|
-
// the router loaded. We can help them understand how to avoid that.
|
|
572
|
-
"<Navigate> may be used only in the context of a <Router> component."
|
|
573
|
-
) : m(!1));
|
|
574
|
-
let {
|
|
575
|
-
future: l,
|
|
576
|
-
static: i
|
|
577
|
-
} = n.useContext(S);
|
|
578
|
-
process.env.NODE_ENV !== "production" && C(!i, "<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");
|
|
579
|
-
let {
|
|
580
|
-
matches: u
|
|
581
|
-
} = n.useContext(_), {
|
|
582
|
-
pathname: f
|
|
583
|
-
} = L(), s = te(), c = Re(t, be(u, l.v7_relativeSplatPath), f, a === "path"), d = JSON.stringify(c);
|
|
584
|
-
return n.useEffect(() => s(JSON.parse(d), {
|
|
585
|
-
replace: r,
|
|
586
|
-
state: o,
|
|
587
|
-
relative: a
|
|
588
|
-
}), [s, d, a, r, o]), null;
|
|
589
|
-
}
|
|
590
|
-
function Rt(e) {
|
|
591
|
-
return Oe(e.context);
|
|
592
|
-
}
|
|
593
|
-
function Be(e) {
|
|
594
|
-
process.env.NODE_ENV !== "production" ? m(!1, "A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.") : m(!1);
|
|
595
|
-
}
|
|
596
|
-
function H(e) {
|
|
597
|
-
let {
|
|
598
|
-
basename: t = "/",
|
|
599
|
-
children: r = null,
|
|
600
|
-
location: o,
|
|
601
|
-
navigationType: a = de.Pop,
|
|
602
|
-
navigator: l,
|
|
603
|
-
static: i = !1,
|
|
604
|
-
future: u
|
|
605
|
-
} = e;
|
|
606
|
-
V() && (process.env.NODE_ENV !== "production" ? m(!1, "You cannot render a <Router> inside another <Router>. You should never have more than one in your app.") : m(!1));
|
|
607
|
-
let f = t.replace(/^\/*/, "/"), s = n.useMemo(() => ({
|
|
608
|
-
basename: f,
|
|
609
|
-
navigator: l,
|
|
610
|
-
static: i,
|
|
611
|
-
future: I({
|
|
612
|
-
v7_relativeSplatPath: !1
|
|
613
|
-
}, u)
|
|
614
|
-
}), [f, u, l, i]);
|
|
615
|
-
typeof o == "string" && (o = fe(o));
|
|
616
|
-
let {
|
|
617
|
-
pathname: c = "/",
|
|
618
|
-
search: d = "",
|
|
619
|
-
hash: p = "",
|
|
620
|
-
state: v = null,
|
|
621
|
-
key: g = "default"
|
|
622
|
-
} = o, N = n.useMemo(() => {
|
|
623
|
-
let y = T(c, f);
|
|
624
|
-
return y == null ? null : {
|
|
625
|
-
location: {
|
|
626
|
-
pathname: y,
|
|
627
|
-
search: d,
|
|
628
|
-
hash: p,
|
|
629
|
-
state: v,
|
|
630
|
-
key: g
|
|
631
|
-
},
|
|
632
|
-
navigationType: a
|
|
633
|
-
};
|
|
634
|
-
}, [f, c, d, p, v, g, a]);
|
|
635
|
-
return process.env.NODE_ENV !== "production" && C(N != null, '<Router basename="' + f + '"> is not able to match the URL ' + ('"' + c + d + p + '" because it does not start with the ') + "basename, so the <Router> won't render anything."), N == null ? null : /* @__PURE__ */ n.createElement(S.Provider, {
|
|
636
|
-
value: s
|
|
637
|
-
}, /* @__PURE__ */ n.createElement(M.Provider, {
|
|
638
|
-
children: r,
|
|
639
|
-
value: N
|
|
640
|
-
}));
|
|
641
|
-
}
|
|
642
|
-
function wt(e) {
|
|
643
|
-
let {
|
|
644
|
-
children: t,
|
|
645
|
-
location: r
|
|
646
|
-
} = e;
|
|
647
|
-
return Pe(W(t), r);
|
|
648
|
-
}
|
|
649
|
-
function Ct(e) {
|
|
650
|
-
let {
|
|
651
|
-
children: t,
|
|
652
|
-
errorElement: r,
|
|
653
|
-
resolve: o
|
|
654
|
-
} = e;
|
|
655
|
-
return /* @__PURE__ */ n.createElement(rr, {
|
|
656
|
-
resolve: o,
|
|
657
|
-
errorElement: r
|
|
658
|
-
}, /* @__PURE__ */ n.createElement(nr, null, t));
|
|
659
|
-
}
|
|
660
|
-
var P = /* @__PURE__ */ function(e) {
|
|
661
|
-
return e[e.pending = 0] = "pending", e[e.success = 1] = "success", e[e.error = 2] = "error", e;
|
|
662
|
-
}(P || {});
|
|
663
|
-
const tr = new Promise(() => {
|
|
664
|
-
});
|
|
665
|
-
class rr extends n.Component {
|
|
666
|
-
constructor(t) {
|
|
667
|
-
super(t), this.state = {
|
|
668
|
-
error: null
|
|
669
|
-
};
|
|
670
|
-
}
|
|
671
|
-
static getDerivedStateFromError(t) {
|
|
672
|
-
return {
|
|
673
|
-
error: t
|
|
674
|
-
};
|
|
675
|
-
}
|
|
676
|
-
componentDidCatch(t, r) {
|
|
677
|
-
console.error("<Await> caught the following error during render", t, r);
|
|
678
|
-
}
|
|
679
|
-
render() {
|
|
680
|
-
let {
|
|
681
|
-
children: t,
|
|
682
|
-
errorElement: r,
|
|
683
|
-
resolve: o
|
|
684
|
-
} = this.props, a = null, l = P.pending;
|
|
685
|
-
if (!(o instanceof Promise))
|
|
686
|
-
l = P.success, a = Promise.resolve(), Object.defineProperty(a, "_tracked", {
|
|
687
|
-
get: () => !0
|
|
688
|
-
}), Object.defineProperty(a, "_data", {
|
|
689
|
-
get: () => o
|
|
690
|
-
});
|
|
691
|
-
else if (this.state.error) {
|
|
692
|
-
l = P.error;
|
|
693
|
-
let i = this.state.error;
|
|
694
|
-
a = Promise.reject().catch(() => {
|
|
695
|
-
}), Object.defineProperty(a, "_tracked", {
|
|
696
|
-
get: () => !0
|
|
697
|
-
}), Object.defineProperty(a, "_error", {
|
|
698
|
-
get: () => i
|
|
699
|
-
});
|
|
700
|
-
} else o._tracked ? (a = o, l = "_error" in a ? P.error : "_data" in a ? P.success : P.pending) : (l = P.pending, Object.defineProperty(o, "_tracked", {
|
|
701
|
-
get: () => !0
|
|
702
|
-
}), a = o.then((i) => Object.defineProperty(o, "_data", {
|
|
703
|
-
get: () => i
|
|
704
|
-
}), (i) => Object.defineProperty(o, "_error", {
|
|
705
|
-
get: () => i
|
|
706
|
-
})));
|
|
707
|
-
if (l === P.error && a._error instanceof Se)
|
|
708
|
-
throw tr;
|
|
709
|
-
if (l === P.error && !r)
|
|
710
|
-
throw a._error;
|
|
711
|
-
if (l === P.error)
|
|
712
|
-
return /* @__PURE__ */ n.createElement(Z.Provider, {
|
|
713
|
-
value: a,
|
|
714
|
-
children: r
|
|
715
|
-
});
|
|
716
|
-
if (l === P.success)
|
|
717
|
-
return /* @__PURE__ */ n.createElement(Z.Provider, {
|
|
718
|
-
value: a,
|
|
719
|
-
children: t
|
|
720
|
-
});
|
|
721
|
-
throw a;
|
|
722
|
-
}
|
|
723
|
-
}
|
|
724
|
-
function nr(e) {
|
|
725
|
-
let {
|
|
726
|
-
children: t
|
|
727
|
-
} = e, r = Ie(), o = typeof t == "function" ? t(r) : t;
|
|
728
|
-
return /* @__PURE__ */ n.createElement(n.Fragment, null, o);
|
|
729
|
-
}
|
|
730
|
-
function W(e, t) {
|
|
731
|
-
t === void 0 && (t = []);
|
|
732
|
-
let r = [];
|
|
733
|
-
return n.Children.forEach(e, (o, a) => {
|
|
734
|
-
if (!/* @__PURE__ */ n.isValidElement(o))
|
|
735
|
-
return;
|
|
736
|
-
let l = [...t, a];
|
|
737
|
-
if (o.type === n.Fragment) {
|
|
738
|
-
r.push.apply(r, W(o.props.children, l));
|
|
739
|
-
return;
|
|
740
|
-
}
|
|
741
|
-
o.type !== Be && (process.env.NODE_ENV !== "production" ? m(!1, "[" + (typeof o.type == "string" ? o.type : o.type.name) + "] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>") : m(!1)), !o.props.index || !o.props.children || (process.env.NODE_ENV !== "production" ? m(!1, "An index route cannot have child routes.") : m(!1));
|
|
742
|
-
let i = {
|
|
743
|
-
id: o.props.id || l.join("-"),
|
|
744
|
-
caseSensitive: o.props.caseSensitive,
|
|
745
|
-
element: o.props.element,
|
|
746
|
-
Component: o.props.Component,
|
|
747
|
-
index: o.props.index,
|
|
748
|
-
path: o.props.path,
|
|
749
|
-
loader: o.props.loader,
|
|
750
|
-
action: o.props.action,
|
|
751
|
-
errorElement: o.props.errorElement,
|
|
752
|
-
ErrorBoundary: o.props.ErrorBoundary,
|
|
753
|
-
hasErrorBoundary: o.props.ErrorBoundary != null || o.props.errorElement != null,
|
|
754
|
-
shouldRevalidate: o.props.shouldRevalidate,
|
|
755
|
-
handle: o.props.handle,
|
|
756
|
-
lazy: o.props.lazy
|
|
757
|
-
};
|
|
758
|
-
o.props.children && (i.children = W(o.props.children, l)), r.push(i);
|
|
759
|
-
}), r;
|
|
760
|
-
}
|
|
761
|
-
function St(e) {
|
|
762
|
-
return pt(e);
|
|
763
|
-
}
|
|
764
|
-
function me(e) {
|
|
765
|
-
let t = {
|
|
766
|
-
// Note: this check also occurs in createRoutesFromChildren so update
|
|
767
|
-
// there if you change this -- please and thank you!
|
|
768
|
-
hasErrorBoundary: e.ErrorBoundary != null || e.errorElement != null
|
|
769
|
-
};
|
|
770
|
-
return e.Component && (process.env.NODE_ENV !== "production" && e.element && process.env.NODE_ENV !== "production" && C(!1, "You should not include both `Component` and `element` on your route - `Component` will be used."), Object.assign(t, {
|
|
771
|
-
element: /* @__PURE__ */ n.createElement(e.Component),
|
|
772
|
-
Component: void 0
|
|
773
|
-
})), e.HydrateFallback && (process.env.NODE_ENV !== "production" && e.hydrateFallbackElement && process.env.NODE_ENV !== "production" && C(!1, "You should not include both `HydrateFallback` and `hydrateFallbackElement` on your route - `HydrateFallback` will be used."), Object.assign(t, {
|
|
774
|
-
hydrateFallbackElement: /* @__PURE__ */ n.createElement(e.HydrateFallback),
|
|
775
|
-
HydrateFallback: void 0
|
|
776
|
-
})), e.ErrorBoundary && (process.env.NODE_ENV !== "production" && e.errorElement && process.env.NODE_ENV !== "production" && C(!1, "You should not include both `ErrorBoundary` and `errorElement` on your route - `ErrorBoundary` will be used."), Object.assign(t, {
|
|
777
|
-
errorElement: /* @__PURE__ */ n.createElement(e.ErrorBoundary),
|
|
778
|
-
ErrorBoundary: void 0
|
|
779
|
-
})), t;
|
|
780
|
-
}
|
|
781
|
-
function _t(e, t) {
|
|
782
|
-
return _e({
|
|
783
|
-
basename: t == null ? void 0 : t.basename,
|
|
784
|
-
future: I({}, t == null ? void 0 : t.future, {
|
|
785
|
-
v7_prependBasename: !0
|
|
786
|
-
}),
|
|
787
|
-
history: qe({
|
|
788
|
-
initialEntries: t == null ? void 0 : t.initialEntries,
|
|
789
|
-
initialIndex: t == null ? void 0 : t.initialIndex
|
|
790
|
-
}),
|
|
791
|
-
hydrationData: t == null ? void 0 : t.hydrationData,
|
|
792
|
-
routes: e,
|
|
793
|
-
mapRouteProperties: me,
|
|
794
|
-
dataStrategy: t == null ? void 0 : t.dataStrategy,
|
|
795
|
-
patchRoutesOnNavigation: t == null ? void 0 : t.patchRoutesOnNavigation
|
|
796
|
-
}).initialize();
|
|
797
|
-
}
|
|
798
|
-
const jr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
799
|
-
__proto__: null,
|
|
800
|
-
AbortedDeferredError: Se,
|
|
801
|
-
Await: Ct,
|
|
802
|
-
MemoryRouter: Nt,
|
|
803
|
-
Navigate: bt,
|
|
804
|
-
get NavigationType() {
|
|
805
|
-
return de;
|
|
806
|
-
},
|
|
807
|
-
Outlet: Rt,
|
|
808
|
-
Route: Be,
|
|
809
|
-
Router: H,
|
|
810
|
-
RouterProvider: Zt,
|
|
811
|
-
Routes: wt,
|
|
812
|
-
UNSAFE_DataRouterContext: U,
|
|
813
|
-
UNSAFE_DataRouterStateContext: B,
|
|
814
|
-
UNSAFE_LocationContext: M,
|
|
815
|
-
UNSAFE_NavigationContext: S,
|
|
816
|
-
UNSAFE_RouteContext: _,
|
|
817
|
-
UNSAFE_mapRouteProperties: me,
|
|
818
|
-
UNSAFE_useRouteId: Fe,
|
|
819
|
-
UNSAFE_useRoutesImpl: pe,
|
|
820
|
-
createMemoryRouter: _t,
|
|
821
|
-
createPath: Q,
|
|
822
|
-
createRoutesFromChildren: W,
|
|
823
|
-
createRoutesFromElements: W,
|
|
824
|
-
defer: Ge,
|
|
825
|
-
generatePath: Xe,
|
|
826
|
-
isRouteErrorResponse: Ce,
|
|
827
|
-
json: Qe,
|
|
828
|
-
matchPath: X,
|
|
829
|
-
matchRoutes: we,
|
|
830
|
-
parsePath: fe,
|
|
831
|
-
redirect: Ze,
|
|
832
|
-
redirectDocument: et,
|
|
833
|
-
renderMatches: St,
|
|
834
|
-
replace: tt,
|
|
835
|
-
resolvePath: rt,
|
|
836
|
-
useActionData: Et,
|
|
837
|
-
useAsyncError: yt,
|
|
838
|
-
useAsyncValue: Ie,
|
|
839
|
-
useBlocker: Ae,
|
|
840
|
-
useHref: De,
|
|
841
|
-
useInRouterContext: V,
|
|
842
|
-
useLoaderData: mt,
|
|
843
|
-
useLocation: L,
|
|
844
|
-
useMatch: lt,
|
|
845
|
-
useMatches: Ve,
|
|
846
|
-
useNavigate: te,
|
|
847
|
-
useNavigation: Ue,
|
|
848
|
-
useNavigationType: it,
|
|
849
|
-
useOutlet: Oe,
|
|
850
|
-
useOutletContext: dt,
|
|
851
|
-
useParams: ft,
|
|
852
|
-
useResolvedPath: Y,
|
|
853
|
-
useRevalidator: ht,
|
|
854
|
-
useRouteError: ke,
|
|
855
|
-
useRouteLoaderData: vt,
|
|
856
|
-
useRoutes: Pe
|
|
857
|
-
}, Symbol.toStringTag, { value: "Module" }));
|
|
858
|
-
/**
|
|
859
|
-
* React Router DOM v6.27.0
|
|
860
|
-
*
|
|
861
|
-
* Copyright (c) Remix Software Inc.
|
|
862
|
-
*
|
|
863
|
-
* This source code is licensed under the MIT license found in the
|
|
864
|
-
* LICENSE.md file in the root directory of this source tree.
|
|
865
|
-
*
|
|
866
|
-
* @license MIT
|
|
867
|
-
*/
|
|
868
|
-
function D() {
|
|
869
|
-
return D = Object.assign ? Object.assign.bind() : function(e) {
|
|
870
|
-
for (var t = 1; t < arguments.length; t++) {
|
|
871
|
-
var r = arguments[t];
|
|
872
|
-
for (var o in r)
|
|
873
|
-
Object.prototype.hasOwnProperty.call(r, o) && (e[o] = r[o]);
|
|
874
|
-
}
|
|
875
|
-
return e;
|
|
876
|
-
}, D.apply(this, arguments);
|
|
877
|
-
}
|
|
878
|
-
function Me(e, t) {
|
|
879
|
-
if (e == null) return {};
|
|
880
|
-
var r = {}, o = Object.keys(e), a, l;
|
|
881
|
-
for (l = 0; l < o.length; l++)
|
|
882
|
-
a = o[l], !(t.indexOf(a) >= 0) && (r[a] = e[a]);
|
|
883
|
-
return r;
|
|
884
|
-
}
|
|
885
|
-
const le = "get", se = "application/x-www-form-urlencoded";
|
|
886
|
-
function ve(e) {
|
|
887
|
-
return e != null && typeof e.tagName == "string";
|
|
888
|
-
}
|
|
889
|
-
function or(e) {
|
|
890
|
-
return ve(e) && e.tagName.toLowerCase() === "button";
|
|
891
|
-
}
|
|
892
|
-
function ar(e) {
|
|
893
|
-
return ve(e) && e.tagName.toLowerCase() === "form";
|
|
894
|
-
}
|
|
895
|
-
function ir(e) {
|
|
896
|
-
return ve(e) && e.tagName.toLowerCase() === "input";
|
|
897
|
-
}
|
|
898
|
-
function lr(e) {
|
|
899
|
-
return !!(e.metaKey || e.altKey || e.ctrlKey || e.shiftKey);
|
|
900
|
-
}
|
|
901
|
-
function sr(e, t) {
|
|
902
|
-
return e.button === 0 && // Ignore everything but left clicks
|
|
903
|
-
(!t || t === "_self") && // Let browser handle "target=_blank" etc.
|
|
904
|
-
!lr(e);
|
|
905
|
-
}
|
|
906
|
-
function ce(e) {
|
|
907
|
-
return e === void 0 && (e = ""), new URLSearchParams(typeof e == "string" || Array.isArray(e) || e instanceof URLSearchParams ? e : Object.keys(e).reduce((t, r) => {
|
|
908
|
-
let o = e[r];
|
|
909
|
-
return t.concat(Array.isArray(o) ? o.map((a) => [r, a]) : [[r, o]]);
|
|
910
|
-
}, []));
|
|
911
|
-
}
|
|
912
|
-
function ur(e, t) {
|
|
913
|
-
let r = ce(e);
|
|
914
|
-
return t && t.forEach((o, a) => {
|
|
915
|
-
r.has(a) || t.getAll(a).forEach((l) => {
|
|
916
|
-
r.append(a, l);
|
|
917
|
-
});
|
|
918
|
-
}), r;
|
|
919
|
-
}
|
|
920
|
-
let ae = null;
|
|
921
|
-
function cr() {
|
|
922
|
-
if (ae === null)
|
|
923
|
-
try {
|
|
924
|
-
new FormData(
|
|
925
|
-
document.createElement("form"),
|
|
926
|
-
// @ts-expect-error if FormData supports the submitter parameter, this will throw
|
|
927
|
-
0
|
|
928
|
-
), ae = !1;
|
|
929
|
-
} catch {
|
|
930
|
-
ae = !0;
|
|
931
|
-
}
|
|
932
|
-
return ae;
|
|
933
|
-
}
|
|
934
|
-
const dr = /* @__PURE__ */ new Set(["application/x-www-form-urlencoded", "multipart/form-data", "text/plain"]);
|
|
935
|
-
function Ne(e) {
|
|
936
|
-
return e != null && !dr.has(e) ? (process.env.NODE_ENV !== "production" && C(!1, '"' + e + '" is not a valid `encType` for `<Form>`/`<fetcher.Form>` ' + ('and will default to "' + se + '"')), null) : e;
|
|
937
|
-
}
|
|
938
|
-
function fr(e, t) {
|
|
939
|
-
let r, o, a, l, i;
|
|
940
|
-
if (ar(e)) {
|
|
941
|
-
let u = e.getAttribute("action");
|
|
942
|
-
o = u ? T(u, t) : null, r = e.getAttribute("method") || le, a = Ne(e.getAttribute("enctype")) || se, l = new FormData(e);
|
|
943
|
-
} else if (or(e) || ir(e) && (e.type === "submit" || e.type === "image")) {
|
|
944
|
-
let u = e.form;
|
|
945
|
-
if (u == null)
|
|
946
|
-
throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');
|
|
947
|
-
let f = e.getAttribute("formaction") || u.getAttribute("action");
|
|
948
|
-
if (o = f ? T(f, t) : null, r = e.getAttribute("formmethod") || u.getAttribute("method") || le, a = Ne(e.getAttribute("formenctype")) || Ne(u.getAttribute("enctype")) || se, l = new FormData(u, e), !cr()) {
|
|
949
|
-
let {
|
|
950
|
-
name: s,
|
|
951
|
-
type: c,
|
|
952
|
-
value: d
|
|
953
|
-
} = e;
|
|
954
|
-
if (c === "image") {
|
|
955
|
-
let p = s ? s + "." : "";
|
|
956
|
-
l.append(p + "x", "0"), l.append(p + "y", "0");
|
|
957
|
-
} else s && l.append(s, d);
|
|
958
|
-
}
|
|
959
|
-
} else {
|
|
960
|
-
if (ve(e))
|
|
961
|
-
throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');
|
|
962
|
-
r = le, o = null, a = se, i = e;
|
|
963
|
-
}
|
|
964
|
-
return l && a === "text/plain" && (i = l, l = void 0), {
|
|
965
|
-
action: o,
|
|
966
|
-
method: r.toLowerCase(),
|
|
967
|
-
encType: a,
|
|
968
|
-
formData: l,
|
|
969
|
-
body: i
|
|
970
|
-
};
|
|
971
|
-
}
|
|
972
|
-
const pr = ["onClick", "relative", "reloadDocument", "replace", "state", "target", "to", "preventScrollReset", "viewTransition"], hr = ["aria-current", "caseSensitive", "className", "end", "style", "to", "viewTransition", "children"], mr = ["fetcherKey", "navigate", "reloadDocument", "replace", "state", "method", "action", "onSubmit", "relative", "preventScrollReset", "viewTransition"], vr = "6";
|
|
973
|
-
try {
|
|
974
|
-
window.__reactRouterVersion = vr;
|
|
975
|
-
} catch {
|
|
976
|
-
}
|
|
977
|
-
function Er(e, t) {
|
|
978
|
-
return _e({
|
|
979
|
-
basename: t == null ? void 0 : t.basename,
|
|
980
|
-
future: D({}, t == null ? void 0 : t.future, {
|
|
981
|
-
v7_prependBasename: !0
|
|
982
|
-
}),
|
|
983
|
-
history: nt({
|
|
984
|
-
window: t == null ? void 0 : t.window
|
|
985
|
-
}),
|
|
986
|
-
hydrationData: (t == null ? void 0 : t.hydrationData) || xt(),
|
|
987
|
-
routes: e,
|
|
988
|
-
mapRouteProperties: me,
|
|
989
|
-
dataStrategy: t == null ? void 0 : t.dataStrategy,
|
|
990
|
-
patchRoutesOnNavigation: t == null ? void 0 : t.patchRoutesOnNavigation,
|
|
991
|
-
window: t == null ? void 0 : t.window
|
|
992
|
-
}).initialize();
|
|
993
|
-
}
|
|
994
|
-
function yr(e, t) {
|
|
995
|
-
return _e({
|
|
996
|
-
basename: t == null ? void 0 : t.basename,
|
|
997
|
-
future: D({}, t == null ? void 0 : t.future, {
|
|
998
|
-
v7_prependBasename: !0
|
|
999
|
-
}),
|
|
1000
|
-
history: ot({
|
|
1001
|
-
window: t == null ? void 0 : t.window
|
|
1002
|
-
}),
|
|
1003
|
-
hydrationData: (t == null ? void 0 : t.hydrationData) || xt(),
|
|
1004
|
-
routes: e,
|
|
1005
|
-
mapRouteProperties: me,
|
|
1006
|
-
dataStrategy: t == null ? void 0 : t.dataStrategy,
|
|
1007
|
-
patchRoutesOnNavigation: t == null ? void 0 : t.patchRoutesOnNavigation,
|
|
1008
|
-
window: t == null ? void 0 : t.window
|
|
1009
|
-
}).initialize();
|
|
1010
|
-
}
|
|
1011
|
-
function xt() {
|
|
1012
|
-
var e;
|
|
1013
|
-
let t = (e = window) == null ? void 0 : e.__staticRouterHydrationData;
|
|
1014
|
-
return t && t.errors && (t = D({}, t, {
|
|
1015
|
-
errors: gr(t.errors)
|
|
1016
|
-
})), t;
|
|
1017
|
-
}
|
|
1018
|
-
function gr(e) {
|
|
1019
|
-
if (!e) return null;
|
|
1020
|
-
let t = Object.entries(e), r = {};
|
|
1021
|
-
for (let [o, a] of t)
|
|
1022
|
-
if (a && a.__type === "RouteErrorResponse")
|
|
1023
|
-
r[o] = new at(a.status, a.statusText, a.data, a.internal === !0);
|
|
1024
|
-
else if (a && a.__type === "Error") {
|
|
1025
|
-
if (a.__subType) {
|
|
1026
|
-
let l = window[a.__subType];
|
|
1027
|
-
if (typeof l == "function")
|
|
1028
|
-
try {
|
|
1029
|
-
let i = new l(a.message);
|
|
1030
|
-
i.stack = "", r[o] = i;
|
|
1031
|
-
} catch {
|
|
1032
|
-
}
|
|
1033
|
-
}
|
|
1034
|
-
if (r[o] == null) {
|
|
1035
|
-
let l = new Error(a.message);
|
|
1036
|
-
l.stack = "", r[o] = l;
|
|
1037
|
-
}
|
|
1038
|
-
} else
|
|
1039
|
-
r[o] = a;
|
|
1040
|
-
return r;
|
|
1041
|
-
}
|
|
1042
|
-
const Ee = /* @__PURE__ */ n.createContext({
|
|
1043
|
-
isTransitioning: !1
|
|
1044
|
-
});
|
|
1045
|
-
process.env.NODE_ENV !== "production" && (Ee.displayName = "ViewTransition");
|
|
1046
|
-
const ye = /* @__PURE__ */ n.createContext(/* @__PURE__ */ new Map());
|
|
1047
|
-
process.env.NODE_ENV !== "production" && (ye.displayName = "Fetchers");
|
|
1048
|
-
const Nr = "startTransition", A = n[Nr], br = "flushSync", Ye = Bt[br], Rr = "useId", $e = n[Rr];
|
|
1049
|
-
function wr(e) {
|
|
1050
|
-
A ? A(e) : e();
|
|
1051
|
-
}
|
|
1052
|
-
function q(e) {
|
|
1053
|
-
Ye ? Ye(e) : e();
|
|
1054
|
-
}
|
|
1055
|
-
class Cr {
|
|
1056
|
-
constructor() {
|
|
1057
|
-
this.status = "pending", this.promise = new Promise((t, r) => {
|
|
1058
|
-
this.resolve = (o) => {
|
|
1059
|
-
this.status === "pending" && (this.status = "resolved", t(o));
|
|
1060
|
-
}, this.reject = (o) => {
|
|
1061
|
-
this.status === "pending" && (this.status = "rejected", r(o));
|
|
1062
|
-
};
|
|
1063
|
-
});
|
|
1064
|
-
}
|
|
1065
|
-
}
|
|
1066
|
-
function Sr(e) {
|
|
1067
|
-
let {
|
|
1068
|
-
fallbackElement: t,
|
|
1069
|
-
router: r,
|
|
1070
|
-
future: o
|
|
1071
|
-
} = e, [a, l] = n.useState(r.state), [i, u] = n.useState(), [f, s] = n.useState({
|
|
1072
|
-
isTransitioning: !1
|
|
1073
|
-
}), [c, d] = n.useState(), [p, v] = n.useState(), [g, N] = n.useState(), y = n.useRef(/* @__PURE__ */ new Map()), {
|
|
1074
|
-
v7_startTransition: w
|
|
1075
|
-
} = o || {}, h = n.useCallback((R) => {
|
|
1076
|
-
w ? wr(R) : R();
|
|
1077
|
-
}, [w]), E = n.useCallback((R, F) => {
|
|
1078
|
-
let {
|
|
1079
|
-
deletedFetchers: x,
|
|
1080
|
-
flushSync: oe,
|
|
1081
|
-
viewTransitionOpts: K
|
|
1082
|
-
} = F;
|
|
1083
|
-
x.forEach((z) => y.current.delete(z)), R.fetchers.forEach((z, At) => {
|
|
1084
|
-
z.data !== void 0 && y.current.set(At, z.data);
|
|
1085
|
-
});
|
|
1086
|
-
let It = r.window == null || r.window.document == null || typeof r.window.document.startViewTransition != "function";
|
|
1087
|
-
if (!K || It) {
|
|
1088
|
-
oe ? q(() => l(R)) : h(() => l(R));
|
|
1089
|
-
return;
|
|
1090
|
-
}
|
|
1091
|
-
if (oe) {
|
|
1092
|
-
q(() => {
|
|
1093
|
-
p && (c && c.resolve(), p.skipTransition()), s({
|
|
1094
|
-
isTransitioning: !0,
|
|
1095
|
-
flushSync: !0,
|
|
1096
|
-
currentLocation: K.currentLocation,
|
|
1097
|
-
nextLocation: K.nextLocation
|
|
1098
|
-
});
|
|
1099
|
-
});
|
|
1100
|
-
let z = r.window.document.startViewTransition(() => {
|
|
1101
|
-
q(() => l(R));
|
|
1102
|
-
});
|
|
1103
|
-
z.finished.finally(() => {
|
|
1104
|
-
q(() => {
|
|
1105
|
-
d(void 0), v(void 0), u(void 0), s({
|
|
1106
|
-
isTransitioning: !1
|
|
1107
|
-
});
|
|
1108
|
-
});
|
|
1109
|
-
}), q(() => v(z));
|
|
1110
|
-
return;
|
|
1111
|
-
}
|
|
1112
|
-
p ? (c && c.resolve(), p.skipTransition(), N({
|
|
1113
|
-
state: R,
|
|
1114
|
-
currentLocation: K.currentLocation,
|
|
1115
|
-
nextLocation: K.nextLocation
|
|
1116
|
-
})) : (u(R), s({
|
|
1117
|
-
isTransitioning: !0,
|
|
1118
|
-
flushSync: !1,
|
|
1119
|
-
currentLocation: K.currentLocation,
|
|
1120
|
-
nextLocation: K.nextLocation
|
|
1121
|
-
}));
|
|
1122
|
-
}, [r.window, p, c, y, h]);
|
|
1123
|
-
n.useLayoutEffect(() => r.subscribe(E), [r, E]), n.useEffect(() => {
|
|
1124
|
-
f.isTransitioning && !f.flushSync && d(new Cr());
|
|
1125
|
-
}, [f]), n.useEffect(() => {
|
|
1126
|
-
if (c && i && r.window) {
|
|
1127
|
-
let R = i, F = c.promise, x = r.window.document.startViewTransition(async () => {
|
|
1128
|
-
h(() => l(R)), await F;
|
|
1129
|
-
});
|
|
1130
|
-
x.finished.finally(() => {
|
|
1131
|
-
d(void 0), v(void 0), u(void 0), s({
|
|
1132
|
-
isTransitioning: !1
|
|
1133
|
-
});
|
|
1134
|
-
}), v(x);
|
|
1135
|
-
}
|
|
1136
|
-
}, [h, i, c, r.window]), n.useEffect(() => {
|
|
1137
|
-
c && i && a.location.key === i.location.key && c.resolve();
|
|
1138
|
-
}, [c, p, a.location, i]), n.useEffect(() => {
|
|
1139
|
-
!f.isTransitioning && g && (u(g.state), s({
|
|
1140
|
-
isTransitioning: !0,
|
|
1141
|
-
flushSync: !1,
|
|
1142
|
-
currentLocation: g.currentLocation,
|
|
1143
|
-
nextLocation: g.nextLocation
|
|
1144
|
-
}), N(void 0));
|
|
1145
|
-
}, [f.isTransitioning, g]), n.useEffect(() => {
|
|
1146
|
-
process.env.NODE_ENV !== "production" && C(t == null || !r.future.v7_partialHydration, "`<RouterProvider fallbackElement>` is deprecated when using `v7_partialHydration`, use a `HydrateFallback` component instead");
|
|
1147
|
-
}, []);
|
|
1148
|
-
let b = n.useMemo(() => ({
|
|
1149
|
-
createHref: r.createHref,
|
|
1150
|
-
encodeLocation: r.encodeLocation,
|
|
1151
|
-
go: (R) => r.navigate(R),
|
|
1152
|
-
push: (R, F, x) => r.navigate(R, {
|
|
1153
|
-
state: F,
|
|
1154
|
-
preventScrollReset: x == null ? void 0 : x.preventScrollReset
|
|
1155
|
-
}),
|
|
1156
|
-
replace: (R, F, x) => r.navigate(R, {
|
|
1157
|
-
replace: !0,
|
|
1158
|
-
state: F,
|
|
1159
|
-
preventScrollReset: x == null ? void 0 : x.preventScrollReset
|
|
1160
|
-
})
|
|
1161
|
-
}), [r]), k = r.basename || "/", J = n.useMemo(() => ({
|
|
1162
|
-
router: r,
|
|
1163
|
-
navigator: b,
|
|
1164
|
-
static: !1,
|
|
1165
|
-
basename: k
|
|
1166
|
-
}), [r, b, k]), ne = n.useMemo(() => ({
|
|
1167
|
-
v7_relativeSplatPath: r.future.v7_relativeSplatPath
|
|
1168
|
-
}), [r.future.v7_relativeSplatPath]);
|
|
1169
|
-
return /* @__PURE__ */ n.createElement(n.Fragment, null, /* @__PURE__ */ n.createElement(U.Provider, {
|
|
1170
|
-
value: J
|
|
1171
|
-
}, /* @__PURE__ */ n.createElement(B.Provider, {
|
|
1172
|
-
value: a
|
|
1173
|
-
}, /* @__PURE__ */ n.createElement(ye.Provider, {
|
|
1174
|
-
value: y.current
|
|
1175
|
-
}, /* @__PURE__ */ n.createElement(Ee.Provider, {
|
|
1176
|
-
value: f
|
|
1177
|
-
}, /* @__PURE__ */ n.createElement(H, {
|
|
1178
|
-
basename: k,
|
|
1179
|
-
location: a.location,
|
|
1180
|
-
navigationType: a.historyAction,
|
|
1181
|
-
navigator: b,
|
|
1182
|
-
future: ne
|
|
1183
|
-
}, a.initialized || r.future.v7_partialHydration ? /* @__PURE__ */ n.createElement(_r, {
|
|
1184
|
-
routes: r.routes,
|
|
1185
|
-
future: r.future,
|
|
1186
|
-
state: a
|
|
1187
|
-
}) : t))))), null);
|
|
1188
|
-
}
|
|
1189
|
-
const _r = /* @__PURE__ */ n.memo(xr);
|
|
1190
|
-
function xr(e) {
|
|
1191
|
-
let {
|
|
1192
|
-
routes: t,
|
|
1193
|
-
future: r,
|
|
1194
|
-
state: o
|
|
1195
|
-
} = e;
|
|
1196
|
-
return pe(t, void 0, o, r);
|
|
1197
|
-
}
|
|
1198
|
-
function Dr(e) {
|
|
1199
|
-
let {
|
|
1200
|
-
basename: t,
|
|
1201
|
-
children: r,
|
|
1202
|
-
future: o,
|
|
1203
|
-
window: a
|
|
1204
|
-
} = e, l = n.useRef();
|
|
1205
|
-
l.current == null && (l.current = nt({
|
|
1206
|
-
window: a,
|
|
1207
|
-
v5Compat: !0
|
|
1208
|
-
}));
|
|
1209
|
-
let i = l.current, [u, f] = n.useState({
|
|
1210
|
-
action: i.action,
|
|
1211
|
-
location: i.location
|
|
1212
|
-
}), {
|
|
1213
|
-
v7_startTransition: s
|
|
1214
|
-
} = o || {}, c = n.useCallback((d) => {
|
|
1215
|
-
s && A ? A(() => f(d)) : f(d);
|
|
1216
|
-
}, [f, s]);
|
|
1217
|
-
return n.useLayoutEffect(() => i.listen(c), [i, c]), /* @__PURE__ */ n.createElement(H, {
|
|
1218
|
-
basename: t,
|
|
1219
|
-
children: r,
|
|
1220
|
-
location: u.location,
|
|
1221
|
-
navigationType: u.action,
|
|
1222
|
-
navigator: i,
|
|
1223
|
-
future: o
|
|
1224
|
-
});
|
|
1225
|
-
}
|
|
1226
|
-
function Or(e) {
|
|
1227
|
-
let {
|
|
1228
|
-
basename: t,
|
|
1229
|
-
children: r,
|
|
1230
|
-
future: o,
|
|
1231
|
-
window: a
|
|
1232
|
-
} = e, l = n.useRef();
|
|
1233
|
-
l.current == null && (l.current = ot({
|
|
1234
|
-
window: a,
|
|
1235
|
-
v5Compat: !0
|
|
1236
|
-
}));
|
|
1237
|
-
let i = l.current, [u, f] = n.useState({
|
|
1238
|
-
action: i.action,
|
|
1239
|
-
location: i.location
|
|
1240
|
-
}), {
|
|
1241
|
-
v7_startTransition: s
|
|
1242
|
-
} = o || {}, c = n.useCallback((d) => {
|
|
1243
|
-
s && A ? A(() => f(d)) : f(d);
|
|
1244
|
-
}, [f, s]);
|
|
1245
|
-
return n.useLayoutEffect(() => i.listen(c), [i, c]), /* @__PURE__ */ n.createElement(H, {
|
|
1246
|
-
basename: t,
|
|
1247
|
-
children: r,
|
|
1248
|
-
location: u.location,
|
|
1249
|
-
navigationType: u.action,
|
|
1250
|
-
navigator: i,
|
|
1251
|
-
future: o
|
|
1252
|
-
});
|
|
1253
|
-
}
|
|
1254
|
-
function Dt(e) {
|
|
1255
|
-
let {
|
|
1256
|
-
basename: t,
|
|
1257
|
-
children: r,
|
|
1258
|
-
future: o,
|
|
1259
|
-
history: a
|
|
1260
|
-
} = e, [l, i] = n.useState({
|
|
1261
|
-
action: a.action,
|
|
1262
|
-
location: a.location
|
|
1263
|
-
}), {
|
|
1264
|
-
v7_startTransition: u
|
|
1265
|
-
} = o || {}, f = n.useCallback((s) => {
|
|
1266
|
-
u && A ? A(() => i(s)) : i(s);
|
|
1267
|
-
}, [i, u]);
|
|
1268
|
-
return n.useLayoutEffect(() => a.listen(f), [a, f]), /* @__PURE__ */ n.createElement(H, {
|
|
1269
|
-
basename: t,
|
|
1270
|
-
children: r,
|
|
1271
|
-
location: l.location,
|
|
1272
|
-
navigationType: l.action,
|
|
1273
|
-
navigator: a,
|
|
1274
|
-
future: o
|
|
1275
|
-
});
|
|
1276
|
-
}
|
|
1277
|
-
process.env.NODE_ENV !== "production" && (Dt.displayName = "unstable_HistoryRouter");
|
|
1278
|
-
const Pr = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u", Lr = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, je = /* @__PURE__ */ n.forwardRef(function(t, r) {
|
|
1279
|
-
let {
|
|
1280
|
-
onClick: o,
|
|
1281
|
-
relative: a,
|
|
1282
|
-
reloadDocument: l,
|
|
1283
|
-
replace: i,
|
|
1284
|
-
state: u,
|
|
1285
|
-
target: f,
|
|
1286
|
-
to: s,
|
|
1287
|
-
preventScrollReset: c,
|
|
1288
|
-
viewTransition: d
|
|
1289
|
-
} = t, p = Me(t, pr), {
|
|
1290
|
-
basename: v
|
|
1291
|
-
} = n.useContext(S), g, N = !1;
|
|
1292
|
-
if (typeof s == "string" && Lr.test(s) && (g = s, Pr))
|
|
1293
|
-
try {
|
|
1294
|
-
let E = new URL(window.location.href), b = s.startsWith("//") ? new URL(E.protocol + s) : new URL(s), k = T(b.pathname, v);
|
|
1295
|
-
b.origin === E.origin && k != null ? s = k + b.search + b.hash : N = !0;
|
|
1296
|
-
} catch {
|
|
1297
|
-
process.env.NODE_ENV !== "production" && C(!1, '<Link to="' + s + '"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.');
|
|
1298
|
-
}
|
|
1299
|
-
let y = De(s, {
|
|
1300
|
-
relative: a
|
|
1301
|
-
}), w = Tt(s, {
|
|
1302
|
-
replace: i,
|
|
1303
|
-
state: u,
|
|
1304
|
-
target: f,
|
|
1305
|
-
preventScrollReset: c,
|
|
1306
|
-
relative: a,
|
|
1307
|
-
viewTransition: d
|
|
1308
|
-
});
|
|
1309
|
-
function h(E) {
|
|
1310
|
-
o && o(E), E.defaultPrevented || w(E);
|
|
1311
|
-
}
|
|
1312
|
-
return (
|
|
1313
|
-
// eslint-disable-next-line jsx-a11y/anchor-has-content
|
|
1314
|
-
/* @__PURE__ */ n.createElement("a", D({}, p, {
|
|
1315
|
-
href: g || y,
|
|
1316
|
-
onClick: N || l ? o : h,
|
|
1317
|
-
ref: r,
|
|
1318
|
-
target: f
|
|
1319
|
-
}))
|
|
1320
|
-
);
|
|
1321
|
-
});
|
|
1322
|
-
process.env.NODE_ENV !== "production" && (je.displayName = "Link");
|
|
1323
|
-
const Ot = /* @__PURE__ */ n.forwardRef(function(t, r) {
|
|
1324
|
-
let {
|
|
1325
|
-
"aria-current": o = "page",
|
|
1326
|
-
caseSensitive: a = !1,
|
|
1327
|
-
className: l = "",
|
|
1328
|
-
end: i = !1,
|
|
1329
|
-
style: u,
|
|
1330
|
-
to: f,
|
|
1331
|
-
viewTransition: s,
|
|
1332
|
-
children: c
|
|
1333
|
-
} = t, d = Me(t, hr), p = Y(f, {
|
|
1334
|
-
relative: d.relative
|
|
1335
|
-
}), v = L(), g = n.useContext(B), {
|
|
1336
|
-
navigator: N,
|
|
1337
|
-
basename: y
|
|
1338
|
-
} = n.useContext(S), w = g != null && // Conditional usage is OK here because the usage of a data router is static
|
|
1339
|
-
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
1340
|
-
kt(p) && s === !0, h = N.encodeLocation ? N.encodeLocation(p).pathname : p.pathname, E = v.pathname, b = g && g.navigation && g.navigation.location ? g.navigation.location.pathname : null;
|
|
1341
|
-
a || (E = E.toLowerCase(), b = b ? b.toLowerCase() : null, h = h.toLowerCase()), b && y && (b = T(b, y) || b);
|
|
1342
|
-
const k = h !== "/" && h.endsWith("/") ? h.length - 1 : h.length;
|
|
1343
|
-
let J = E === h || !i && E.startsWith(h) && E.charAt(k) === "/", ne = b != null && (b === h || !i && b.startsWith(h) && b.charAt(h.length) === "/"), R = {
|
|
1344
|
-
isActive: J,
|
|
1345
|
-
isPending: ne,
|
|
1346
|
-
isTransitioning: w
|
|
1347
|
-
}, F = J ? o : void 0, x;
|
|
1348
|
-
typeof l == "function" ? x = l(R) : x = [l, J ? "active" : null, ne ? "pending" : null, w ? "transitioning" : null].filter(Boolean).join(" ");
|
|
1349
|
-
let oe = typeof u == "function" ? u(R) : u;
|
|
1350
|
-
return /* @__PURE__ */ n.createElement(je, D({}, d, {
|
|
1351
|
-
"aria-current": F,
|
|
1352
|
-
className: x,
|
|
1353
|
-
ref: r,
|
|
1354
|
-
style: oe,
|
|
1355
|
-
to: f,
|
|
1356
|
-
viewTransition: s
|
|
1357
|
-
}), typeof c == "function" ? c(R) : c);
|
|
1358
|
-
});
|
|
1359
|
-
process.env.NODE_ENV !== "production" && (Ot.displayName = "NavLink");
|
|
1360
|
-
const He = /* @__PURE__ */ n.forwardRef((e, t) => {
|
|
1361
|
-
let {
|
|
1362
|
-
fetcherKey: r,
|
|
1363
|
-
navigate: o,
|
|
1364
|
-
reloadDocument: a,
|
|
1365
|
-
replace: l,
|
|
1366
|
-
state: i,
|
|
1367
|
-
method: u = le,
|
|
1368
|
-
action: f,
|
|
1369
|
-
onSubmit: s,
|
|
1370
|
-
relative: c,
|
|
1371
|
-
preventScrollReset: d,
|
|
1372
|
-
viewTransition: p
|
|
1373
|
-
} = e, v = Me(e, mr), g = ze(), N = Ut(f, {
|
|
1374
|
-
relative: c
|
|
1375
|
-
}), y = u.toLowerCase() === "get" ? "get" : "post", w = (h) => {
|
|
1376
|
-
if (s && s(h), h.defaultPrevented) return;
|
|
1377
|
-
h.preventDefault();
|
|
1378
|
-
let E = h.nativeEvent.submitter, b = (E == null ? void 0 : E.getAttribute("formmethod")) || u;
|
|
1379
|
-
g(E || h.currentTarget, {
|
|
1380
|
-
fetcherKey: r,
|
|
1381
|
-
method: b,
|
|
1382
|
-
navigate: o,
|
|
1383
|
-
replace: l,
|
|
1384
|
-
state: i,
|
|
1385
|
-
relative: c,
|
|
1386
|
-
preventScrollReset: d,
|
|
1387
|
-
viewTransition: p
|
|
1388
|
-
});
|
|
1389
|
-
};
|
|
1390
|
-
return /* @__PURE__ */ n.createElement("form", D({
|
|
1391
|
-
ref: t,
|
|
1392
|
-
method: y,
|
|
1393
|
-
action: N,
|
|
1394
|
-
onSubmit: a ? s : w
|
|
1395
|
-
}, v));
|
|
1396
|
-
});
|
|
1397
|
-
process.env.NODE_ENV !== "production" && (He.displayName = "Form");
|
|
1398
|
-
function Pt(e) {
|
|
1399
|
-
let {
|
|
1400
|
-
getKey: t,
|
|
1401
|
-
storageKey: r
|
|
1402
|
-
} = e;
|
|
1403
|
-
return Vt({
|
|
1404
|
-
getKey: t,
|
|
1405
|
-
storageKey: r
|
|
1406
|
-
}), null;
|
|
1407
|
-
}
|
|
1408
|
-
process.env.NODE_ENV !== "production" && (Pt.displayName = "ScrollRestoration");
|
|
1409
|
-
var $;
|
|
1410
|
-
(function(e) {
|
|
1411
|
-
e.UseScrollRestoration = "useScrollRestoration", e.UseSubmit = "useSubmit", e.UseSubmitFetcher = "useSubmitFetcher", e.UseFetcher = "useFetcher", e.useViewTransitionState = "useViewTransitionState";
|
|
1412
|
-
})($ || ($ = {}));
|
|
1413
|
-
var ee;
|
|
1414
|
-
(function(e) {
|
|
1415
|
-
e.UseFetcher = "useFetcher", e.UseFetchers = "useFetchers", e.UseScrollRestoration = "useScrollRestoration";
|
|
1416
|
-
})(ee || (ee = {}));
|
|
1417
|
-
function Lt(e) {
|
|
1418
|
-
return e + " must be used within a data router. See https://reactrouter.com/routers/picking-a-router.";
|
|
1419
|
-
}
|
|
1420
|
-
function ge(e) {
|
|
1421
|
-
let t = n.useContext(U);
|
|
1422
|
-
return t || (process.env.NODE_ENV !== "production" ? m(!1, Lt(e)) : m(!1)), t;
|
|
1423
|
-
}
|
|
1424
|
-
function Ke(e) {
|
|
1425
|
-
let t = n.useContext(B);
|
|
1426
|
-
return t || (process.env.NODE_ENV !== "production" ? m(!1, Lt(e)) : m(!1)), t;
|
|
1427
|
-
}
|
|
1428
|
-
function Tt(e, t) {
|
|
1429
|
-
let {
|
|
1430
|
-
target: r,
|
|
1431
|
-
replace: o,
|
|
1432
|
-
state: a,
|
|
1433
|
-
preventScrollReset: l,
|
|
1434
|
-
relative: i,
|
|
1435
|
-
viewTransition: u
|
|
1436
|
-
} = t === void 0 ? {} : t, f = te(), s = L(), c = Y(e, {
|
|
1437
|
-
relative: i
|
|
1438
|
-
});
|
|
1439
|
-
return n.useCallback((d) => {
|
|
1440
|
-
if (sr(d, r)) {
|
|
1441
|
-
d.preventDefault();
|
|
1442
|
-
let p = o !== void 0 ? o : Q(s) === Q(c);
|
|
1443
|
-
f(e, {
|
|
1444
|
-
replace: p,
|
|
1445
|
-
state: a,
|
|
1446
|
-
preventScrollReset: l,
|
|
1447
|
-
relative: i,
|
|
1448
|
-
viewTransition: u
|
|
1449
|
-
});
|
|
1450
|
-
}
|
|
1451
|
-
}, [s, f, c, o, a, r, e, l, i, u]);
|
|
1452
|
-
}
|
|
1453
|
-
function Tr(e) {
|
|
1454
|
-
process.env.NODE_ENV !== "production" && C(typeof URLSearchParams < "u", "You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");
|
|
1455
|
-
let t = n.useRef(ce(e)), r = n.useRef(!1), o = L(), a = n.useMemo(() => (
|
|
1456
|
-
// Only merge in the defaults if we haven't yet called setSearchParams.
|
|
1457
|
-
// Once we call that we want those to take precedence, otherwise you can't
|
|
1458
|
-
// remove a param with setSearchParams({}) if it has an initial value
|
|
1459
|
-
ur(o.search, r.current ? null : t.current)
|
|
1460
|
-
), [o.search]), l = te(), i = n.useCallback((u, f) => {
|
|
1461
|
-
const s = ce(typeof u == "function" ? u(a) : u);
|
|
1462
|
-
r.current = !0, l("?" + s, f);
|
|
1463
|
-
}, [l, a]);
|
|
1464
|
-
return [a, i];
|
|
1465
|
-
}
|
|
1466
|
-
function Fr() {
|
|
1467
|
-
if (typeof document > "u")
|
|
1468
|
-
throw new Error("You are calling submit during the server render. Try calling submit within a `useEffect` or callback instead.");
|
|
1469
|
-
}
|
|
1470
|
-
let Ur = 0, Ft = () => "__" + String(++Ur) + "__";
|
|
1471
|
-
function ze() {
|
|
1472
|
-
let {
|
|
1473
|
-
router: e
|
|
1474
|
-
} = ge($.UseSubmit), {
|
|
1475
|
-
basename: t
|
|
1476
|
-
} = n.useContext(S), r = Fe();
|
|
1477
|
-
return n.useCallback(function(o, a) {
|
|
1478
|
-
a === void 0 && (a = {}), Fr();
|
|
1479
|
-
let {
|
|
1480
|
-
action: l,
|
|
1481
|
-
method: i,
|
|
1482
|
-
encType: u,
|
|
1483
|
-
formData: f,
|
|
1484
|
-
body: s
|
|
1485
|
-
} = fr(o, t);
|
|
1486
|
-
if (a.navigate === !1) {
|
|
1487
|
-
let c = a.fetcherKey || Ft();
|
|
1488
|
-
e.fetch(c, r, a.action || l, {
|
|
1489
|
-
preventScrollReset: a.preventScrollReset,
|
|
1490
|
-
formData: f,
|
|
1491
|
-
body: s,
|
|
1492
|
-
formMethod: a.method || i,
|
|
1493
|
-
formEncType: a.encType || u,
|
|
1494
|
-
flushSync: a.flushSync
|
|
1495
|
-
});
|
|
1496
|
-
} else
|
|
1497
|
-
e.navigate(a.action || l, {
|
|
1498
|
-
preventScrollReset: a.preventScrollReset,
|
|
1499
|
-
formData: f,
|
|
1500
|
-
body: s,
|
|
1501
|
-
formMethod: a.method || i,
|
|
1502
|
-
formEncType: a.encType || u,
|
|
1503
|
-
replace: a.replace,
|
|
1504
|
-
state: a.state,
|
|
1505
|
-
fromRouteId: r,
|
|
1506
|
-
flushSync: a.flushSync,
|
|
1507
|
-
viewTransition: a.viewTransition
|
|
1508
|
-
});
|
|
1509
|
-
}, [e, t, r]);
|
|
1510
|
-
}
|
|
1511
|
-
function Ut(e, t) {
|
|
1512
|
-
let {
|
|
1513
|
-
relative: r
|
|
1514
|
-
} = t === void 0 ? {} : t, {
|
|
1515
|
-
basename: o
|
|
1516
|
-
} = n.useContext(S), a = n.useContext(_);
|
|
1517
|
-
a || (process.env.NODE_ENV !== "production" ? m(!1, "useFormAction must be used inside a RouteContext") : m(!1));
|
|
1518
|
-
let [l] = a.matches.slice(-1), i = D({}, Y(e || ".", {
|
|
1519
|
-
relative: r
|
|
1520
|
-
})), u = L();
|
|
1521
|
-
if (e == null) {
|
|
1522
|
-
i.search = u.search;
|
|
1523
|
-
let f = new URLSearchParams(i.search), s = f.getAll("index");
|
|
1524
|
-
if (s.some((d) => d === "")) {
|
|
1525
|
-
f.delete("index"), s.filter((p) => p).forEach((p) => f.append("index", p));
|
|
1526
|
-
let d = f.toString();
|
|
1527
|
-
i.search = d ? "?" + d : "";
|
|
1528
|
-
}
|
|
1529
|
-
}
|
|
1530
|
-
return (!e || e === ".") && l.route.index && (i.search = i.search ? i.search.replace(/^\?/, "?index&") : "?index"), o !== "/" && (i.pathname = i.pathname === "/" ? o : G([o, i.pathname])), Q(i);
|
|
1531
|
-
}
|
|
1532
|
-
function Vr(e) {
|
|
1533
|
-
var t;
|
|
1534
|
-
let {
|
|
1535
|
-
key: r
|
|
1536
|
-
} = e === void 0 ? {} : e, {
|
|
1537
|
-
router: o
|
|
1538
|
-
} = ge($.UseFetcher), a = Ke(ee.UseFetcher), l = n.useContext(ye), i = n.useContext(_), u = (t = i.matches[i.matches.length - 1]) == null ? void 0 : t.route.id;
|
|
1539
|
-
l || (process.env.NODE_ENV !== "production" ? m(!1, "useFetcher must be used inside a FetchersContext") : m(!1)), i || (process.env.NODE_ENV !== "production" ? m(!1, "useFetcher must be used inside a RouteContext") : m(!1)), u == null && (process.env.NODE_ENV !== "production" ? m(!1, 'useFetcher can only be used on routes that contain a unique "id"') : m(!1));
|
|
1540
|
-
let f = $e ? $e() : "", [s, c] = n.useState(r || f);
|
|
1541
|
-
r && r !== s ? c(r) : s || c(Ft()), n.useEffect(() => (o.getFetcher(s), () => {
|
|
1542
|
-
o.deleteFetcher(s);
|
|
1543
|
-
}), [o, s]);
|
|
1544
|
-
let d = n.useCallback((h, E) => {
|
|
1545
|
-
u || (process.env.NODE_ENV !== "production" ? m(!1, "No routeId available for fetcher.load()") : m(!1)), o.fetch(s, u, h, E);
|
|
1546
|
-
}, [s, u, o]), p = ze(), v = n.useCallback((h, E) => {
|
|
1547
|
-
p(h, D({}, E, {
|
|
1548
|
-
navigate: !1,
|
|
1549
|
-
fetcherKey: s
|
|
1550
|
-
}));
|
|
1551
|
-
}, [s, p]), g = n.useMemo(() => {
|
|
1552
|
-
let h = /* @__PURE__ */ n.forwardRef((E, b) => /* @__PURE__ */ n.createElement(He, D({}, E, {
|
|
1553
|
-
navigate: !1,
|
|
1554
|
-
fetcherKey: s,
|
|
1555
|
-
ref: b
|
|
1556
|
-
})));
|
|
1557
|
-
return process.env.NODE_ENV !== "production" && (h.displayName = "fetcher.Form"), h;
|
|
1558
|
-
}, [s]), N = a.fetchers.get(s) || Kt, y = l.get(s);
|
|
1559
|
-
return n.useMemo(() => D({
|
|
1560
|
-
Form: g,
|
|
1561
|
-
submit: v,
|
|
1562
|
-
load: d
|
|
1563
|
-
}, N, {
|
|
1564
|
-
data: y
|
|
1565
|
-
}), [g, v, d, N, y]);
|
|
1566
|
-
}
|
|
1567
|
-
function kr() {
|
|
1568
|
-
let e = Ke(ee.UseFetchers);
|
|
1569
|
-
return Array.from(e.fetchers.entries()).map((t) => {
|
|
1570
|
-
let [r, o] = t;
|
|
1571
|
-
return D({}, o, {
|
|
1572
|
-
key: r
|
|
1573
|
-
});
|
|
1574
|
-
});
|
|
1575
|
-
}
|
|
1576
|
-
const Je = "react-router-scroll-positions";
|
|
1577
|
-
let ie = {};
|
|
1578
|
-
function Vt(e) {
|
|
1579
|
-
let {
|
|
1580
|
-
getKey: t,
|
|
1581
|
-
storageKey: r
|
|
1582
|
-
} = e === void 0 ? {} : e, {
|
|
1583
|
-
router: o
|
|
1584
|
-
} = ge($.UseScrollRestoration), {
|
|
1585
|
-
restoreScrollPosition: a,
|
|
1586
|
-
preventScrollReset: l
|
|
1587
|
-
} = Ke(ee.UseScrollRestoration), {
|
|
1588
|
-
basename: i
|
|
1589
|
-
} = n.useContext(S), u = L(), f = Ve(), s = Ue();
|
|
1590
|
-
n.useEffect(() => (window.history.scrollRestoration = "manual", () => {
|
|
1591
|
-
window.history.scrollRestoration = "auto";
|
|
1592
|
-
}), []), Ar(n.useCallback(() => {
|
|
1593
|
-
if (s.state === "idle") {
|
|
1594
|
-
let c = (t ? t(u, f) : null) || u.key;
|
|
1595
|
-
ie[c] = window.scrollY;
|
|
1596
|
-
}
|
|
1597
|
-
try {
|
|
1598
|
-
sessionStorage.setItem(r || Je, JSON.stringify(ie));
|
|
1599
|
-
} catch (c) {
|
|
1600
|
-
process.env.NODE_ENV !== "production" && C(!1, "Failed to save scroll positions in sessionStorage, <ScrollRestoration /> will not work properly (" + c + ").");
|
|
1601
|
-
}
|
|
1602
|
-
window.history.scrollRestoration = "auto";
|
|
1603
|
-
}, [r, t, s.state, u, f])), typeof document < "u" && (n.useLayoutEffect(() => {
|
|
1604
|
-
try {
|
|
1605
|
-
let c = sessionStorage.getItem(r || Je);
|
|
1606
|
-
c && (ie = JSON.parse(c));
|
|
1607
|
-
} catch {
|
|
1608
|
-
}
|
|
1609
|
-
}, [r]), n.useLayoutEffect(() => {
|
|
1610
|
-
let c = t && i !== "/" ? (p, v) => t(
|
|
1611
|
-
// Strip the basename to match useLocation()
|
|
1612
|
-
D({}, p, {
|
|
1613
|
-
pathname: T(p.pathname, i) || p.pathname
|
|
1614
|
-
}),
|
|
1615
|
-
v
|
|
1616
|
-
) : t, d = o == null ? void 0 : o.enableScrollRestoration(ie, () => window.scrollY, c);
|
|
1617
|
-
return () => d && d();
|
|
1618
|
-
}, [o, i, t]), n.useLayoutEffect(() => {
|
|
1619
|
-
if (a !== !1) {
|
|
1620
|
-
if (typeof a == "number") {
|
|
1621
|
-
window.scrollTo(0, a);
|
|
1622
|
-
return;
|
|
1623
|
-
}
|
|
1624
|
-
if (u.hash) {
|
|
1625
|
-
let c = document.getElementById(decodeURIComponent(u.hash.slice(1)));
|
|
1626
|
-
if (c) {
|
|
1627
|
-
c.scrollIntoView();
|
|
1628
|
-
return;
|
|
1629
|
-
}
|
|
1630
|
-
}
|
|
1631
|
-
l !== !0 && window.scrollTo(0, 0);
|
|
1632
|
-
}
|
|
1633
|
-
}, [u, a, l]));
|
|
1634
|
-
}
|
|
1635
|
-
function Ir(e, t) {
|
|
1636
|
-
let {
|
|
1637
|
-
capture: r
|
|
1638
|
-
} = t || {};
|
|
1639
|
-
n.useEffect(() => {
|
|
1640
|
-
let o = r != null ? {
|
|
1641
|
-
capture: r
|
|
1642
|
-
} : void 0;
|
|
1643
|
-
return window.addEventListener("beforeunload", e, o), () => {
|
|
1644
|
-
window.removeEventListener("beforeunload", e, o);
|
|
1645
|
-
};
|
|
1646
|
-
}, [e, r]);
|
|
1647
|
-
}
|
|
1648
|
-
function Ar(e, t) {
|
|
1649
|
-
let {
|
|
1650
|
-
capture: r
|
|
1651
|
-
} = {};
|
|
1652
|
-
n.useEffect(() => {
|
|
1653
|
-
let o = r != null ? {
|
|
1654
|
-
capture: r
|
|
1655
|
-
} : void 0;
|
|
1656
|
-
return window.addEventListener("pagehide", e, o), () => {
|
|
1657
|
-
window.removeEventListener("pagehide", e, o);
|
|
1658
|
-
};
|
|
1659
|
-
}, [e, r]);
|
|
1660
|
-
}
|
|
1661
|
-
function Br(e) {
|
|
1662
|
-
let {
|
|
1663
|
-
when: t,
|
|
1664
|
-
message: r
|
|
1665
|
-
} = e, o = Ae(t);
|
|
1666
|
-
n.useEffect(() => {
|
|
1667
|
-
o.state === "blocked" && (window.confirm(r) ? setTimeout(o.proceed, 0) : o.reset());
|
|
1668
|
-
}, [o, r]), n.useEffect(() => {
|
|
1669
|
-
o.state === "blocked" && !t && o.reset();
|
|
1670
|
-
}, [o, t]);
|
|
1671
|
-
}
|
|
1672
|
-
function kt(e, t) {
|
|
1673
|
-
t === void 0 && (t = {});
|
|
1674
|
-
let r = n.useContext(Ee);
|
|
1675
|
-
r == null && (process.env.NODE_ENV !== "production" ? m(!1, "`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?") : m(!1));
|
|
1676
|
-
let {
|
|
1677
|
-
basename: o
|
|
1678
|
-
} = ge($.useViewTransitionState), a = Y(e, {
|
|
1679
|
-
relative: t.relative
|
|
1680
|
-
});
|
|
1681
|
-
if (!r.isTransitioning)
|
|
1682
|
-
return !1;
|
|
1683
|
-
let l = T(r.currentLocation.pathname, o) || r.currentLocation.pathname, i = T(r.nextLocation.pathname, o) || r.nextLocation.pathname;
|
|
1684
|
-
return X(a.pathname, i) != null || X(a.pathname, l) != null;
|
|
1685
|
-
}
|
|
1686
|
-
const Hr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1687
|
-
__proto__: null,
|
|
1688
|
-
AbortedDeferredError: Se,
|
|
1689
|
-
Await: Ct,
|
|
1690
|
-
BrowserRouter: Dr,
|
|
1691
|
-
Form: He,
|
|
1692
|
-
HashRouter: Or,
|
|
1693
|
-
Link: je,
|
|
1694
|
-
MemoryRouter: Nt,
|
|
1695
|
-
NavLink: Ot,
|
|
1696
|
-
Navigate: bt,
|
|
1697
|
-
get NavigationType() {
|
|
1698
|
-
return de;
|
|
1699
|
-
},
|
|
1700
|
-
Outlet: Rt,
|
|
1701
|
-
Route: Be,
|
|
1702
|
-
Router: H,
|
|
1703
|
-
RouterProvider: Sr,
|
|
1704
|
-
Routes: wt,
|
|
1705
|
-
ScrollRestoration: Pt,
|
|
1706
|
-
UNSAFE_DataRouterContext: U,
|
|
1707
|
-
UNSAFE_DataRouterStateContext: B,
|
|
1708
|
-
UNSAFE_ErrorResponseImpl: at,
|
|
1709
|
-
UNSAFE_FetchersContext: ye,
|
|
1710
|
-
UNSAFE_LocationContext: M,
|
|
1711
|
-
UNSAFE_NavigationContext: S,
|
|
1712
|
-
UNSAFE_RouteContext: _,
|
|
1713
|
-
UNSAFE_ViewTransitionContext: Ee,
|
|
1714
|
-
UNSAFE_useRouteId: Fe,
|
|
1715
|
-
UNSAFE_useScrollRestoration: Vt,
|
|
1716
|
-
createBrowserRouter: Er,
|
|
1717
|
-
createHashRouter: yr,
|
|
1718
|
-
createMemoryRouter: _t,
|
|
1719
|
-
createPath: Q,
|
|
1720
|
-
createRoutesFromChildren: W,
|
|
1721
|
-
createRoutesFromElements: W,
|
|
1722
|
-
createSearchParams: ce,
|
|
1723
|
-
defer: Ge,
|
|
1724
|
-
generatePath: Xe,
|
|
1725
|
-
isRouteErrorResponse: Ce,
|
|
1726
|
-
json: Qe,
|
|
1727
|
-
matchPath: X,
|
|
1728
|
-
matchRoutes: we,
|
|
1729
|
-
parsePath: fe,
|
|
1730
|
-
redirect: Ze,
|
|
1731
|
-
redirectDocument: et,
|
|
1732
|
-
renderMatches: St,
|
|
1733
|
-
replace: tt,
|
|
1734
|
-
resolvePath: rt,
|
|
1735
|
-
unstable_HistoryRouter: Dt,
|
|
1736
|
-
unstable_usePrompt: Br,
|
|
1737
|
-
useActionData: Et,
|
|
1738
|
-
useAsyncError: yt,
|
|
1739
|
-
useAsyncValue: Ie,
|
|
1740
|
-
useBeforeUnload: Ir,
|
|
1741
|
-
useBlocker: Ae,
|
|
1742
|
-
useFetcher: Vr,
|
|
1743
|
-
useFetchers: kr,
|
|
1744
|
-
useFormAction: Ut,
|
|
1745
|
-
useHref: De,
|
|
1746
|
-
useInRouterContext: V,
|
|
1747
|
-
useLinkClickHandler: Tt,
|
|
1748
|
-
useLoaderData: mt,
|
|
1749
|
-
useLocation: L,
|
|
1750
|
-
useMatch: lt,
|
|
1751
|
-
useMatches: Ve,
|
|
1752
|
-
useNavigate: te,
|
|
1753
|
-
useNavigation: Ue,
|
|
1754
|
-
useNavigationType: it,
|
|
1755
|
-
useOutlet: Oe,
|
|
1756
|
-
useOutletContext: dt,
|
|
1757
|
-
useParams: ft,
|
|
1758
|
-
useResolvedPath: Y,
|
|
1759
|
-
useRevalidator: ht,
|
|
1760
|
-
useRouteError: ke,
|
|
1761
|
-
useRouteLoaderData: vt,
|
|
1762
|
-
useRoutes: Pe,
|
|
1763
|
-
useSearchParams: Tr,
|
|
1764
|
-
useSubmit: ze,
|
|
1765
|
-
useViewTransitionState: kt
|
|
1766
|
-
}, Symbol.toStringTag, { value: "Module" }));
|
|
1767
|
-
export {
|
|
1768
|
-
je as L,
|
|
1769
|
-
bt as N,
|
|
1770
|
-
Rt as O,
|
|
1771
|
-
Sr as R,
|
|
1772
|
-
te as a,
|
|
1773
|
-
Tr as b,
|
|
1774
|
-
ft as c,
|
|
1775
|
-
ke as d,
|
|
1776
|
-
jr as e,
|
|
1777
|
-
Hr as f,
|
|
1778
|
-
Ot as g,
|
|
1779
|
-
Ue as h,
|
|
1780
|
-
lt as i,
|
|
1781
|
-
L as u
|
|
1782
|
-
};
|
|
1783
|
-
//# sourceMappingURL=index-CRo94sKK.js.map
|