zudoku 0.0.0-ff3bc72 → 0.0.0-zuplo-api-keys.95df9e9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +121 -0
- package/cli.js +11 -2
- package/dist/app/ZuploBuildConfig.d.ts +155 -0
- package/dist/app/ZuploBuildConfig.js +29 -0
- package/dist/app/ZuploBuildConfig.js.map +1 -0
- package/dist/app/demo.js +1 -4
- package/dist/app/demo.js.map +1 -1
- package/dist/app/entry.client.d.ts +6 -0
- package/dist/app/entry.client.js +53 -3
- package/dist/app/entry.client.js.map +1 -1
- package/dist/app/entry.server.d.ts +9 -6
- package/dist/app/entry.server.js +21 -14
- package/dist/app/entry.server.js.map +1 -1
- package/dist/app/env.d.ts +33 -0
- package/dist/app/env.js +29 -0
- package/dist/app/env.js.map +1 -0
- package/dist/app/main.d.ts +3 -2
- package/dist/app/main.js +50 -61
- 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 +1 -4
- package/dist/app/standalone.js.map +1 -1
- package/dist/cli/build/handler.d.ts +1 -3
- package/dist/cli/build/handler.js +9 -1
- package/dist/cli/build/handler.js.map +1 -1
- package/dist/cli/cli.js +18 -5
- 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/box.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 +16 -13
- 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 +20 -16
- 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 +19 -0
- package/dist/config/loader.js +135 -0
- package/dist/config/loader.js.map +1 -0
- package/dist/config/validators/BuildSchema.d.ts +60 -0
- package/dist/config/validators/BuildSchema.js +31 -0
- package/dist/config/validators/BuildSchema.js.map +1 -0
- package/dist/config/validators/InputSidebarSchema.d.ts +63 -32
- package/dist/config/validators/InputSidebarSchema.js +17 -28
- package/dist/config/validators/InputSidebarSchema.js.map +1 -1
- package/dist/config/validators/SidebarSchema.d.ts +24 -1
- package/dist/config/validators/SidebarSchema.js +80 -44
- package/dist/config/validators/SidebarSchema.js.map +1 -1
- package/dist/config/validators/icon-types.d.ts +1 -0
- package/dist/config/validators/icon-types.js +2 -0
- package/dist/config/validators/icon-types.js.map +1 -0
- package/dist/config/validators/validate.d.ts +4690 -332
- package/dist/config/validators/validate.js +273 -82
- package/dist/config/validators/validate.js.map +1 -1
- package/dist/index.d.ts +9 -2
- package/dist/index.js +4 -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/authentication/AuthenticationPlugin.d.ts +11 -4
- package/dist/lib/authentication/AuthenticationPlugin.js +16 -1
- package/dist/lib/authentication/AuthenticationPlugin.js.map +1 -1
- package/dist/lib/authentication/authentication.d.ts +4 -5
- package/dist/lib/authentication/components/CallbackHandler.js +25 -31
- package/dist/lib/authentication/components/CallbackHandler.js.map +1 -1
- package/dist/lib/authentication/components/SignIn.d.ts +1 -1
- package/dist/lib/authentication/components/SignIn.js +5 -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/hook.d.ts +6 -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 +15 -13
- package/dist/lib/authentication/providers/auth0.js.map +1 -1
- package/dist/lib/authentication/providers/clerk.d.ts +2 -2
- package/dist/lib/authentication/providers/clerk.js +116 -47
- package/dist/lib/authentication/providers/clerk.js.map +1 -1
- package/dist/lib/authentication/providers/openid.d.ts +21 -19
- package/dist/lib/authentication/providers/openid.js +62 -69
- 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 +115 -0
- package/dist/lib/authentication/providers/supabase.js.map +1 -0
- package/dist/lib/authentication/state.d.ts +23 -19
- package/dist/lib/authentication/state.js +34 -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 +1 -1
- 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/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 +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/Header.js +31 -12
- package/dist/lib/components/Header.js.map +1 -1
- package/dist/lib/components/Heading.d.ts +5 -5
- package/dist/lib/components/Heading.js +1 -1
- 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 -2
- package/dist/lib/components/Markdown.js +10 -14
- package/dist/lib/components/Markdown.js.map +1 -1
- package/dist/lib/components/MobileTopNavigation.js +14 -7
- package/dist/lib/components/MobileTopNavigation.js.map +1 -1
- package/dist/lib/components/NotFoundPage.js +2 -2
- package/dist/lib/components/NotFoundPage.js.map +1 -1
- 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.js +163 -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 +71 -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 +3 -0
- package/dist/lib/components/TopNavigation.js +53 -8
- package/dist/lib/components/TopNavigation.js.map +1 -1
- 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 +10 -14
- package/dist/lib/components/context/ZudokuContext.js +40 -27
- 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 +59 -16
- package/dist/lib/components/index.js +27 -6
- package/dist/lib/components/index.js.map +1 -1
- 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/Sidebar.d.ts +5 -1
- package/dist/lib/components/navigation/Sidebar.js +4 -8
- package/dist/lib/components/navigation/Sidebar.js.map +1 -1
- package/dist/lib/components/navigation/SidebarBadge.d.ts +6 -3
- package/dist/lib/components/navigation/SidebarBadge.js +13 -11
- package/dist/lib/components/navigation/SidebarBadge.js.map +1 -1
- package/dist/lib/components/navigation/SidebarCategory.d.ts +3 -3
- package/dist/lib/components/navigation/SidebarCategory.js +32 -14
- package/dist/lib/components/navigation/SidebarCategory.js.map +1 -1
- package/dist/lib/components/navigation/SidebarItem.d.ts +3 -4
- package/dist/lib/components/navigation/SidebarItem.js +23 -17
- package/dist/lib/components/navigation/SidebarItem.js.map +1 -1
- package/dist/lib/components/navigation/SidebarWrapper.d.ts +7 -6
- package/dist/lib/components/navigation/SidebarWrapper.js +18 -3
- package/dist/lib/components/navigation/SidebarWrapper.js.map +1 -1
- 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 +3 -0
- package/dist/lib/components/navigation/utils.js +19 -15
- 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 +112 -0
- package/dist/lib/core/ZudokuContext.js +70 -0
- package/dist/lib/core/ZudokuContext.js.map +1 -0
- package/dist/lib/core/plugins.d.ts +35 -17
- package/dist/lib/core/plugins.js +4 -0
- package/dist/lib/core/plugins.js.map +1 -1
- package/dist/lib/errors/ErrorAlert.d.ts +1 -1
- package/dist/lib/errors/ErrorAlert.js +13 -3
- 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 +3 -0
- package/dist/lib/hooks/index.js +5 -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.js +100 -0
- package/dist/lib/hooks/useEvent.test.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 +16 -8
- 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 +55 -24
- package/dist/lib/plugins/api-keys/SettingsApiKeys.js.map +1 -1
- package/dist/lib/plugins/api-keys/index.d.ts +23 -13
- package/dist/lib/plugins/api-keys/index.js +48 -32
- package/dist/lib/plugins/api-keys/index.js.map +1 -1
- package/dist/lib/plugins/custom-pages/CustomPage.d.ts +2 -0
- package/dist/lib/plugins/custom-pages/CustomPage.js +11 -0
- package/dist/lib/plugins/custom-pages/CustomPage.js.map +1 -0
- package/dist/lib/plugins/custom-pages/index.d.ts +10 -0
- package/dist/lib/plugins/custom-pages/index.js +11 -0
- package/dist/lib/plugins/custom-pages/index.js.map +1 -0
- package/dist/lib/plugins/markdown/MdxPage.d.ts +10 -2
- package/dist/lib/plugins/markdown/MdxPage.js +17 -4
- package/dist/lib/plugins/markdown/MdxPage.js.map +1 -1
- package/dist/lib/plugins/markdown/index.d.ts +8 -7
- package/dist/lib/plugins/markdown/index.js +31 -3
- package/dist/lib/plugins/markdown/index.js.map +1 -1
- package/dist/lib/plugins/markdown/resolver.d.ts +32 -0
- package/dist/lib/plugins/markdown/resolver.js +46 -0
- package/dist/lib/plugins/markdown/resolver.js.map +1 -0
- package/dist/lib/plugins/openapi/CollapsibleCode.d.ts +5 -0
- package/dist/lib/plugins/openapi/CollapsibleCode.js +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 +107 -27
- 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 +12 -6
- 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 +12 -3
- 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 +53 -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 +114 -65
- 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 +141 -25
- package/dist/lib/plugins/openapi/graphql/graphql.js +238 -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 +74 -104
- package/dist/lib/plugins/openapi/index.js.map +1 -1
- package/dist/lib/plugins/openapi/interfaces.d.ts +57 -3
- package/dist/lib/plugins/openapi/playground/ExamplesDropdown.d.ts +6 -0
- package/dist/lib/plugins/openapi/playground/ExamplesDropdown.js +8 -0
- package/dist/lib/plugins/openapi/playground/ExamplesDropdown.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/Headers.d.ts +4 -4
- package/dist/lib/plugins/openapi/playground/Headers.js +84 -5
- 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 +14 -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 +8 -0
- package/dist/lib/plugins/openapi/playground/IdentitySelector.js.map +1 -0
- 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 +5 -7
- package/dist/lib/plugins/openapi/playground/PathParams.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/Playground.d.ts +37 -2
- package/dist/lib/plugins/openapi/playground/Playground.js +133 -70
- package/dist/lib/plugins/openapi/playground/Playground.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js +2 -2
- package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/QueryParams.d.ts +1 -1
- package/dist/lib/plugins/openapi/playground/QueryParams.js +24 -18
- 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/SubmitButton.d.ts +7 -0
- package/dist/lib/plugins/openapi/playground/SubmitButton.js +22 -0
- package/dist/lib/plugins/openapi/playground/SubmitButton.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/result-panel/RequestTab.d.ts +7 -0
- package/dist/lib/plugins/openapi/playground/result-panel/RequestTab.js +11 -0
- package/dist/lib/plugins/openapi/playground/result-panel/RequestTab.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.d.ts +8 -0
- package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.js +101 -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 +9 -0
- package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.js +17 -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/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 +45 -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 +38 -49
- 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 +15 -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/createSidebarCategory.d.ts +9 -0
- package/dist/lib/plugins/openapi/util/createSidebarCategory.js +23 -0
- package/dist/lib/plugins/openapi/util/createSidebarCategory.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 +4 -7
- package/dist/lib/plugins/redirect/index.js +2 -2
- package/dist/lib/plugins/redirect/index.js.map +1 -1
- package/dist/lib/plugins/search-inkeep/index.d.ts +24 -5
- package/dist/lib/plugins/search-inkeep/index.js +41 -5
- package/dist/lib/plugins/search-inkeep/index.js.map +1 -1
- package/dist/lib/plugins/search-inkeep/inkeep.d.ts +3 -4
- package/dist/lib/plugins/search-inkeep/inkeep.js.map +1 -1
- package/dist/lib/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 +32 -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 +35 -0
- package/dist/lib/shiki.js +103 -0
- package/dist/lib/shiki.js.map +1 -0
- package/dist/lib/ui/Accordion.d.ts +7 -0
- package/dist/lib/ui/Accordion.js +14 -0
- package/dist/lib/ui/Accordion.js.map +1 -0
- package/dist/lib/ui/ActionButton.d.ts +4 -0
- package/dist/lib/ui/ActionButton.js +10 -0
- package/dist/lib/ui/ActionButton.js.map +1 -0
- package/dist/lib/ui/Alert.d.ts +8 -0
- package/dist/lib/ui/Alert.js +23 -0
- package/dist/lib/ui/Alert.js.map +1 -0
- package/dist/lib/ui/AlertDialog.d.ts +20 -0
- package/dist/lib/ui/AlertDialog.js +27 -0
- package/dist/lib/ui/AlertDialog.js.map +1 -0
- package/dist/lib/ui/AspectRatio.d.ts +3 -0
- package/dist/lib/ui/AspectRatio.js +4 -0
- package/dist/lib/ui/AspectRatio.js.map +1 -0
- package/dist/lib/ui/Badge.d.ts +9 -0
- package/dist/lib/ui/Badge.js +22 -0
- package/dist/lib/ui/Badge.js.map +1 -0
- package/dist/lib/ui/Breadcrumb.d.ts +19 -0
- package/dist/lib/ui/Breadcrumb.js +24 -0
- package/dist/lib/ui/Breadcrumb.js.map +1 -0
- package/dist/lib/ui/Button.d.ts +4 -5
- package/dist/lib/ui/Button.js +9 -6
- package/dist/lib/ui/Button.js.map +1 -1
- package/dist/lib/ui/Callout.d.ts +38 -36
- 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/Carousel.d.ts +18 -0
- package/dist/lib/ui/Carousel.js +99 -0
- package/dist/lib/ui/Carousel.js.map +1 -0
- package/dist/lib/ui/Checkbox.d.ts +4 -0
- package/dist/lib/ui/Checkbox.js +9 -0
- package/dist/lib/ui/Checkbox.js.map +1 -0
- package/dist/lib/ui/CodeBlock.d.ts +16 -0
- package/dist/lib/ui/CodeBlock.js +18 -0
- package/dist/lib/ui/CodeBlock.js.map +1 -0
- package/dist/lib/ui/Collapsible.d.ts +5 -0
- package/dist/lib/ui/Collapsible.js +6 -0
- package/dist/lib/ui/Collapsible.js.map +1 -0
- package/dist/lib/ui/Command.d.ts +94 -0
- package/dist/lib/ui/Command.js +35 -0
- package/dist/lib/ui/Command.js.map +1 -0
- package/dist/lib/ui/Dialog.js +23 -0
- package/dist/lib/ui/Dialog.js.map +1 -0
- package/dist/lib/ui/Drawer.d.ts +8 -10
- package/dist/lib/ui/Drawer.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/Form.d.ts +23 -0
- package/dist/lib/ui/Form.js +63 -0
- package/dist/lib/ui/Form.js.map +1 -0
- package/dist/lib/ui/HoverCard.d.ts +6 -0
- package/dist/lib/ui/HoverCard.js +10 -0
- package/dist/lib/ui/HoverCard.js.map +1 -0
- package/dist/lib/ui/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/Label.d.ts +5 -0
- package/dist/lib/ui/Label.js +10 -0
- package/dist/lib/ui/Label.js.map +1 -0
- package/dist/lib/ui/Pagination.d.ts +28 -0
- package/dist/lib/ui/Pagination.js +24 -0
- package/dist/lib/ui/Pagination.js.map +1 -0
- package/dist/lib/ui/Popover.d.ts +6 -0
- package/dist/lib/ui/Popover.js +10 -0
- package/dist/lib/ui/Popover.js.map +1 -0
- package/dist/lib/ui/Progress.d.ts +4 -0
- package/dist/lib/ui/Progress.js +8 -0
- package/dist/lib/ui/Progress.js.map +1 -0
- package/dist/lib/ui/RadioGroup.d.ts +5 -0
- package/dist/lib/ui/RadioGroup.js +15 -0
- package/dist/lib/ui/RadioGroup.js.map +1 -0
- package/dist/lib/ui/ScrollArea.d.ts +5 -0
- package/dist/lib/ui/ScrollArea.js +12 -0
- package/dist/lib/ui/ScrollArea.js.map +1 -0
- package/dist/lib/ui/Select.js +27 -0
- package/dist/lib/ui/Select.js.map +1 -0
- package/dist/lib/ui/Skeleton.d.ts +2 -0
- package/dist/lib/ui/Skeleton.js +7 -0
- package/dist/lib/ui/Skeleton.js.map +1 -0
- package/dist/lib/ui/Slider.d.ts +4 -0
- package/dist/lib/ui/Slider.js +8 -0
- package/dist/lib/ui/Slider.js.map +1 -0
- package/dist/lib/ui/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.d.ts +4 -0
- package/dist/lib/ui/Switch.js +8 -0
- package/dist/lib/ui/Switch.js.map +1 -0
- package/dist/lib/ui/SyntaxHighlight.d.ts +10 -0
- package/dist/lib/ui/SyntaxHighlight.js +14 -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.d.ts +4 -0
- package/dist/lib/ui/Textarea.js +9 -0
- package/dist/lib/ui/Textarea.js.map +1 -0
- package/dist/lib/ui/Toggle.d.ts +12 -0
- package/dist/lib/ui/Toggle.js +26 -0
- package/dist/lib/ui/Toggle.js.map +1 -0
- package/dist/lib/ui/ToggleGroup.d.ts +12 -0
- package/dist/lib/ui/ToggleGroup.js +21 -0
- package/dist/lib/ui/ToggleGroup.js.map +1 -0
- package/dist/lib/ui/Tooltip.d.ts +7 -0
- package/dist/lib/ui/Tooltip.js +11 -0
- package/dist/lib/ui/Tooltip.js.map +1 -0
- package/dist/lib/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 +30 -21
- package/dist/lib/util/MdxComponents.js +17 -15
- 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/invariant.d.ts +9 -0
- package/dist/lib/util/invariant.js +7 -3
- package/dist/lib/util/invariant.js.map +1 -1
- package/dist/lib/util/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/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/useExposedProps.d.ts +9 -0
- package/dist/lib/util/useExposedProps.js +9 -0
- package/dist/lib/util/useExposedProps.js.map +1 -0
- package/dist/lib/util/useIsomorphicLayoutEffect.d.ts +3 -0
- package/dist/lib/util/useIsomorphicLayoutEffect.js +4 -0
- package/dist/lib/util/useIsomorphicLayoutEffect.js.map +1 -0
- package/dist/lib/util/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 +42 -37
- 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 +122 -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 +85 -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 +313 -0
- package/dist/vite/api/schema-codegen.test.js.map +1 -0
- package/dist/vite/build.js +83 -12
- package/dist/vite/build.js.map +1 -1
- package/dist/vite/config.d.ts +2 -15
- package/dist/vite/config.js +121 -144
- 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 +5 -0
- package/dist/vite/css/plugin.js +79 -0
- package/dist/vite/css/plugin.js.map +1 -0
- package/dist/vite/debug.d.ts +1 -0
- package/dist/vite/debug.js +10 -0
- package/dist/vite/debug.js.map +1 -0
- package/dist/vite/dev-server.d.ts +11 -4
- package/dist/vite/dev-server.js +83 -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 +6 -2
- package/dist/vite/html.js +11 -10
- package/dist/vite/html.js.map +1 -1
- package/dist/vite/output.d.ts +113 -0
- package/dist/vite/output.js +60 -0
- package/dist/vite/output.js.map +1 -0
- package/dist/vite/plugin-api-keys.d.ts +2 -2
- package/dist/vite/plugin-api-keys.js +10 -5
- package/dist/vite/plugin-api-keys.js.map +1 -1
- package/dist/vite/plugin-api.d.ts +2 -2
- package/dist/vite/plugin-api.js +145 -32
- package/dist/vite/plugin-api.js.map +1 -1
- package/dist/vite/plugin-auth.d.ts +2 -2
- package/dist/vite/plugin-auth.js +7 -4
- package/dist/vite/plugin-auth.js.map +1 -1
- package/dist/vite/plugin-component.d.ts +2 -2
- package/dist/vite/plugin-component.js +22 -13
- package/dist/vite/plugin-component.js.map +1 -1
- package/dist/vite/plugin-config-reload.d.ts +4 -4
- package/dist/vite/plugin-config-reload.js +15 -8
- package/dist/vite/plugin-config-reload.js.map +1 -1
- package/dist/vite/plugin-config.d.ts +2 -3
- package/dist/vite/plugin-config.js +26 -3
- package/dist/vite/plugin-config.js.map +1 -1
- package/dist/vite/plugin-configure-tailwind.d.ts +3 -0
- package/dist/vite/plugin-configure-tailwind.js +37 -0
- package/dist/vite/plugin-configure-tailwind.js.map +1 -0
- package/dist/vite/plugin-custom-pages.d.ts +4 -0
- package/dist/vite/plugin-custom-pages.js +30 -0
- package/dist/vite/plugin-custom-pages.js.map +1 -0
- package/dist/vite/plugin-docs.d.ts +3 -3
- package/dist/vite/plugin-docs.js +57 -29
- package/dist/vite/plugin-docs.js.map +1 -1
- package/dist/vite/plugin-docs.test.js +15 -23
- package/dist/vite/plugin-docs.test.js.map +1 -1
- package/dist/vite/plugin-frontmatter.d.ts +2 -1
- package/dist/vite/plugin-frontmatter.js +28 -24
- package/dist/vite/plugin-frontmatter.js.map +1 -1
- package/dist/vite/plugin-mdx.d.ts +2 -8
- package/dist/vite/plugin-mdx.js +96 -13
- package/dist/vite/plugin-mdx.js.map +1 -1
- package/dist/vite/plugin-redirect.d.ts +2 -2
- package/dist/vite/plugin-redirect.js +3 -3
- package/dist/vite/plugin-redirect.js.map +1 -1
- package/dist/vite/plugin-search.d.ts +3 -0
- package/dist/vite/plugin-search.js +30 -0
- package/dist/vite/plugin-search.js.map +1 -0
- package/dist/vite/plugin-shiki-register.d.ts +3 -0
- package/dist/vite/plugin-shiki-register.js +38 -0
- package/dist/vite/plugin-shiki-register.js.map +1 -0
- package/dist/vite/plugin-sidebar.d.ts +5 -3
- package/dist/vite/plugin-sidebar.js +26 -10
- package/dist/vite/plugin-sidebar.js.map +1 -1
- package/dist/vite/plugin-theme-css.d.ts +6 -0
- package/dist/vite/plugin-theme-css.js +118 -0
- package/dist/vite/plugin-theme-css.js.map +1 -0
- package/dist/vite/plugin.d.ts +2 -3
- package/dist/vite/plugin.js +18 -6
- 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 +59 -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/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/Button-u7M2QYds.js +51 -0
- package/lib/Button-u7M2QYds.js.map +1 -0
- package/lib/Callout-CtCQJ6Cc.js +230 -0
- package/lib/Callout-CtCQJ6Cc.js.map +1 -0
- package/lib/Card-DkH-AU1V.js +61 -0
- package/lib/Card-DkH-AU1V.js.map +1 -0
- package/lib/CategoryHeading-BA7lKNWz.js +10 -0
- package/lib/CategoryHeading-BA7lKNWz.js.map +1 -0
- package/lib/ClientOnly-E7hGysn1.js +11 -0
- package/lib/ClientOnly-E7hGysn1.js.map +1 -0
- package/lib/Dialog-irKZWXGg.js +99 -0
- package/lib/Dialog-irKZWXGg.js.map +1 -0
- package/lib/Drawer-DZ214i5V.js +1133 -0
- package/lib/Drawer-DZ214i5V.js.map +1 -0
- package/lib/Markdown-BNG8bTDA.js +7691 -0
- package/lib/Markdown-BNG8bTDA.js.map +1 -0
- package/lib/MdxPage-C-P_N-H3.js +84 -0
- package/lib/MdxPage-C-P_N-H3.js.map +1 -0
- package/lib/OasProvider-DjFXGgWa.js +33 -0
- package/lib/OasProvider-DjFXGgWa.js.map +1 -0
- package/lib/OperationList-CchpZz4h.js +5141 -0
- package/lib/OperationList-CchpZz4h.js.map +1 -0
- package/lib/Pagination-BbcrfwgM.js +36 -0
- package/lib/Pagination-BbcrfwgM.js.map +1 -0
- package/lib/RouteGuard-CIyGFkFD.js +55 -0
- package/lib/RouteGuard-CIyGFkFD.js.map +1 -0
- package/lib/SchemaList-CrQd3KiR.js +160 -0
- package/lib/SchemaList-CrQd3KiR.js.map +1 -0
- package/lib/SchemaView-CQ_hMc8m.js +375 -0
- package/lib/SchemaView-CQ_hMc8m.js.map +1 -0
- package/lib/SignUp-DSn8NjRS.js +63 -0
- package/lib/SignUp-DSn8NjRS.js.map +1 -0
- package/lib/Slot-Dw-g06lX.js +160 -0
- package/lib/Slot-Dw-g06lX.js.map +1 -0
- package/lib/Spinner-mNLZ6awP.js +7 -0
- package/lib/Spinner-mNLZ6awP.js.map +1 -0
- package/lib/SyntaxHighlight-DTgNHbGp.js +9107 -0
- package/lib/SyntaxHighlight-DTgNHbGp.js.map +1 -0
- package/lib/Toc-Ccycwd-T.js +92 -0
- package/lib/Toc-Ccycwd-T.js.map +1 -0
- package/lib/chunk-BAXFHI7N-C9WnHsLV.js +1839 -0
- package/lib/chunk-BAXFHI7N-C9WnHsLV.js.map +1 -0
- package/lib/circular-DdByufCW.js +14929 -0
- package/lib/circular-DdByufCW.js.map +1 -0
- package/lib/cn-BOFVZgHd.js +2744 -0
- package/lib/cn-BOFVZgHd.js.map +1 -0
- package/lib/createServer-BL0QaN9q.js +12494 -0
- package/lib/createServer-BL0QaN9q.js.map +1 -0
- package/lib/hook-BpiAQVtd.js +1446 -0
- package/lib/hook-BpiAQVtd.js.map +1 -0
- package/lib/index--oeBayMa.js +86 -0
- package/lib/index--oeBayMa.js.map +1 -0
- package/lib/index-BjB1BHZu.js +3268 -0
- package/lib/index-BjB1BHZu.js.map +1 -0
- package/lib/index-BvvmIczU.js +2094 -0
- package/lib/index-BvvmIczU.js.map +1 -0
- package/lib/index-C1S4w-gl.js +36 -0
- package/lib/index-C1S4w-gl.js.map +1 -0
- package/lib/index-CrcNWbel.js +316 -0
- package/lib/index-CrcNWbel.js.map +1 -0
- package/lib/index-rsSMIHTN.js +4977 -0
- package/lib/index-rsSMIHTN.js.map +1 -0
- package/lib/index-zddirpDj.js +4822 -0
- package/lib/index-zddirpDj.js.map +1 -0
- package/lib/index.esm-BFcSKCe-.js +683 -0
- package/lib/index.esm-BFcSKCe-.js.map +1 -0
- package/lib/index.esm-DSfX_eMP.js +1216 -0
- package/lib/index.esm-DSfX_eMP.js.map +1 -0
- package/lib/invariant-DAFpPywt.js +48 -0
- package/lib/invariant-DAFpPywt.js.map +1 -0
- package/lib/jsx-runtime-C5mzlN2N.js +285 -0
- package/lib/jsx-runtime-C5mzlN2N.js.map +1 -0
- package/lib/mutation-CJrIFMgY.js +196 -0
- package/lib/mutation-CJrIFMgY.js.map +1 -0
- package/lib/objectEntries-yMIkr2mI.js +5 -0
- package/lib/objectEntries-yMIkr2mI.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 +47 -0
- package/lib/ui/Accordion.js.map +1 -0
- package/lib/ui/ActionButton.js +25 -0
- package/lib/ui/ActionButton.js.map +1 -0
- package/lib/ui/Alert.js +51 -0
- package/lib/ui/Alert.js.map +1 -0
- package/lib/ui/AlertDialog.js +114 -0
- package/lib/ui/AlertDialog.js.map +1 -0
- package/lib/ui/AspectRatio.js +6 -0
- package/lib/ui/AspectRatio.js.map +1 -0
- package/lib/ui/Badge.js +28 -0
- package/lib/ui/Badge.js.map +1 -0
- package/lib/ui/Breadcrumb.js +94 -0
- package/lib/ui/Breadcrumb.js.map +1 -0
- package/lib/ui/Button.js +52 -0
- package/lib/ui/Button.js.map +1 -0
- package/lib/ui/Callout.js +96 -0
- package/lib/ui/Callout.js.map +1 -0
- package/lib/ui/Card.js +62 -0
- package/lib/ui/Card.js.map +1 -0
- package/lib/ui/Carousel.js +1416 -0
- package/lib/ui/Carousel.js.map +1 -0
- package/lib/ui/Checkbox.js +29 -0
- package/lib/ui/Checkbox.js.map +1 -0
- package/lib/ui/CodeBlock.js +83 -0
- package/lib/ui/CodeBlock.js.map +1 -0
- package/lib/ui/Collapsible.js +8 -0
- package/lib/ui/Collapsible.js.map +1 -0
- package/lib/ui/Command.js +156 -0
- package/lib/ui/Command.js.map +1 -0
- package/lib/ui/Dialog.js +101 -0
- package/lib/ui/Dialog.js.map +1 -0
- package/lib/ui/Drawer.js +17 -0
- package/lib/ui/Drawer.js.map +1 -0
- package/lib/ui/DropdownMenu.js +145 -0
- package/lib/ui/DropdownMenu.js.map +1 -0
- package/lib/ui/Form.js +95 -0
- package/lib/ui/Form.js.map +1 -0
- package/lib/ui/HoverCard.js +24 -0
- package/lib/ui/HoverCard.js.map +1 -0
- package/lib/ui/Input.js +22 -0
- package/lib/ui/Input.js.map +1 -0
- package/lib/ui/Label.js +20 -0
- package/lib/ui/Label.js.map +1 -0
- package/lib/ui/Pagination.js +106 -0
- package/lib/ui/Pagination.js.map +1 -0
- package/lib/ui/Popover.js +24 -0
- package/lib/ui/Popover.js.map +1 -0
- package/lib/ui/Progress.js +27 -0
- package/lib/ui/Progress.js.map +1 -0
- package/lib/ui/RadioGroup.js +32 -0
- package/lib/ui/RadioGroup.js.map +1 -0
- package/lib/ui/ScrollArea.js +39 -0
- package/lib/ui/ScrollArea.js.map +1 -0
- package/lib/ui/Select.js +122 -0
- package/lib/ui/Select.js.map +1 -0
- package/lib/ui/Skeleton.js +18 -0
- package/lib/ui/Skeleton.js.map +1 -0
- package/lib/ui/Slider.js +24 -0
- package/lib/ui/Slider.js.map +1 -0
- package/lib/ui/Stepper.js +6 -0
- package/lib/ui/Stepper.js.map +1 -0
- package/lib/ui/Switch.js +28 -0
- package/lib/ui/Switch.js.map +1 -0
- package/lib/ui/SyntaxHighlight.js +10 -0
- package/lib/ui/SyntaxHighlight.js.map +1 -0
- package/lib/ui/Tabs.js +47 -0
- package/lib/ui/Tabs.js.map +1 -0
- package/lib/ui/Textarea.js +21 -0
- package/lib/ui/Textarea.js.map +1 -0
- package/lib/ui/Toggle.js +38 -0
- package/lib/ui/Toggle.js.map +1 -0
- package/lib/ui/ToggleGroup.js +42 -0
- package/lib/ui/ToggleGroup.js.map +1 -0
- package/lib/ui/Tooltip.js +24 -0
- package/lib/ui/Tooltip.js.map +1 -0
- package/lib/ui/util.js +6 -0
- package/lib/ui/util.js.map +1 -0
- package/lib/useExposedProps-DG8J6ewJ.js +9 -0
- package/lib/useExposedProps-DG8J6ewJ.js.map +1 -0
- package/lib/useLatest-hmRS46UF.js +11 -0
- package/lib/useLatest-hmRS46UF.js.map +1 -0
- package/lib/useMutation-B2LNwShM.js +97 -0
- package/lib/useMutation-B2LNwShM.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-clerk.js +115 -58
- package/lib/zudoku.auth-clerk.js.map +1 -1
- package/lib/zudoku.auth-openid.js +628 -628
- package/lib/zudoku.auth-openid.js.map +1 -1
- package/lib/zudoku.components.js +34 -3364
- package/lib/zudoku.components.js.map +1 -1
- package/lib/zudoku.hooks.js +19 -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 +117 -0
- package/lib/zudoku.plugin-api-catalog.js.map +1 -0
- package/lib/zudoku.plugin-api-keys.js +5019 -212
- package/lib/zudoku.plugin-api-keys.js.map +1 -1
- package/lib/zudoku.plugin-custom-pages.js +22 -0
- package/lib/zudoku.plugin-custom-pages.js.map +1 -0
- package/lib/zudoku.plugin-markdown.js +70 -27
- package/lib/zudoku.plugin-markdown.js.map +1 -1
- package/lib/zudoku.plugin-openapi.js +8 -12
- package/lib/zudoku.plugin-openapi.js.map +1 -1
- package/lib/zudoku.plugin-redirect.js +2 -2
- package/lib/zudoku.plugin-redirect.js.map +1 -1
- package/lib/zudoku.plugin-search-inkeep.js +52 -28
- package/lib/zudoku.plugin-search-inkeep.js.map +1 -1
- package/lib/zudoku.plugin-search-pagefind.js +230 -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 +186 -105
- package/src/app/ZuploBuildConfig.ts +33 -0
- package/src/app/defaultTheme.css +54 -0
- package/src/app/demo-cdn.html +31 -31
- package/src/app/demo.html +1 -1
- package/src/app/demo.tsx +1 -5
- package/src/app/entry.client.tsx +71 -3
- package/src/app/entry.server.tsx +81 -60
- package/src/app/env.ts +35 -0
- package/src/app/font.geist.css +73 -0
- package/src/app/main.css +202 -131
- package/src/app/main.tsx +81 -71
- package/src/app/sentry.ts +24 -0
- package/src/app/standalone.tsx +2 -6
- package/src/lib/MissingIcon.tsx +22 -0
- package/src/lib/authentication/AuthenticationPlugin.tsx +22 -5
- package/src/lib/authentication/authentication.ts +5 -6
- package/src/lib/authentication/components/CallbackHandler.tsx +30 -51
- package/src/lib/authentication/components/SignIn.tsx +35 -2
- package/src/lib/authentication/components/SignOut.tsx +3 -2
- package/src/lib/authentication/components/SignUp.tsx +35 -1
- package/src/lib/authentication/hook.ts +13 -4
- package/src/lib/authentication/providers/auth0.tsx +28 -18
- package/src/lib/authentication/providers/clerk.tsx +136 -53
- package/src/lib/authentication/providers/openid.tsx +87 -84
- package/src/lib/authentication/providers/supabase.tsx +157 -0
- package/src/lib/authentication/state.ts +56 -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 +113 -0
- package/src/lib/components/Banner.tsx +2 -1
- package/src/lib/components/Bootstrap.tsx +43 -16
- package/src/lib/components/BuildCheck.tsx +75 -0
- package/src/lib/components/ClientOnly.tsx +6 -3
- package/src/lib/components/DeveloperHint.tsx +6 -1
- package/src/lib/components/ErrorPage.tsx +1 -1
- package/src/lib/components/Footer.tsx +136 -0
- package/src/lib/components/Header.tsx +108 -55
- package/src/lib/components/Heading.tsx +14 -14
- package/src/lib/components/InlineCode.tsx +13 -16
- package/src/lib/components/Layout.tsx +36 -59
- package/src/lib/components/Main.tsx +51 -0
- package/src/lib/components/Markdown.tsx +33 -29
- package/src/lib/components/MobileTopNavigation.tsx +43 -28
- package/src/lib/components/NotFoundPage.tsx +2 -2
- package/src/lib/components/Pagination.tsx +44 -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 +19 -8
- package/src/lib/components/Slot.test.tsx +456 -0
- package/src/lib/components/Slot.tsx +64 -0
- package/src/lib/components/StatusPage.tsx +91 -0
- package/src/lib/components/ThemeSwitch.tsx +46 -0
- package/src/lib/components/TopNavigation.tsx +95 -25
- 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 +53 -29
- package/src/lib/components/context/ZudokuProvider.tsx +4 -3
- package/src/lib/components/index.ts +33 -6
- package/src/lib/components/navigation/PoweredByZudoku.tsx +33 -0
- package/src/lib/components/navigation/Sidebar.tsx +39 -30
- package/src/lib/components/navigation/SidebarBadge.tsx +17 -12
- package/src/lib/components/navigation/SidebarCategory.tsx +67 -54
- package/src/lib/components/navigation/SidebarItem.tsx +38 -51
- package/src/lib/components/navigation/SidebarWrapper.tsx +42 -22
- 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 +24 -17
- package/src/lib/core/RouteGuard.tsx +96 -0
- package/src/lib/core/ZudokuContext.ts +198 -0
- package/src/lib/core/plugins.ts +54 -22
- package/src/lib/errors/ErrorAlert.tsx +36 -15
- package/src/lib/errors/RouterError.tsx +1 -1
- package/src/lib/hooks/index.ts +5 -0
- package/src/lib/hooks/useEvent.test.tsx +149 -0
- package/src/lib/hooks/useEvent.ts +41 -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 +63 -47
- package/src/lib/plugins/api-keys/ProtectedRoute.tsx +1 -1
- package/src/lib/plugins/api-keys/SettingsApiKeys.tsx +293 -113
- package/src/lib/plugins/api-keys/index.tsx +107 -59
- package/src/lib/plugins/custom-pages/CustomPage.tsx +18 -0
- package/src/lib/plugins/custom-pages/index.tsx +24 -0
- package/src/lib/plugins/markdown/MdxPage.tsx +53 -49
- package/src/lib/plugins/markdown/index.tsx +53 -13
- package/src/lib/plugins/markdown/resolver.ts +59 -0
- 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 +240 -70
- package/src/lib/plugins/openapi/OperationListItem.tsx +122 -93
- 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 +78 -31
- package/src/lib/plugins/openapi/PlaygroundDialogWrapper.tsx +21 -2
- 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 +163 -0
- package/src/lib/plugins/openapi/Sidecar.tsx +181 -114
- package/src/lib/plugins/openapi/SidecarBox.tsx +4 -16
- package/src/lib/plugins/openapi/SidecarExamples.tsx +168 -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 +386 -682
- package/src/lib/plugins/openapi/index.tsx +111 -138
- package/src/lib/plugins/openapi/interfaces.ts +58 -3
- package/src/lib/plugins/openapi/playground/ExamplesDropdown.tsx +52 -0
- package/src/lib/plugins/openapi/playground/Headers.tsx +165 -36
- package/src/lib/plugins/openapi/playground/IdentityDialog.tsx +74 -0
- package/src/lib/plugins/openapi/playground/IdentitySelector.tsx +41 -0
- package/src/lib/plugins/openapi/playground/ParamsGrid.tsx +13 -0
- package/src/lib/plugins/openapi/playground/PathParams.tsx +39 -64
- package/src/lib/plugins/openapi/playground/Playground.tsx +386 -245
- package/src/lib/plugins/openapi/playground/PlaygroundDialog.tsx +7 -4
- package/src/lib/plugins/openapi/playground/QueryParams.tsx +87 -89
- package/src/lib/plugins/openapi/playground/RequestLoginDialog.tsx +51 -0
- package/src/lib/plugins/openapi/playground/SubmitButton.tsx +75 -0
- package/src/lib/plugins/openapi/playground/rememberedIdentity.ts +26 -0
- package/src/lib/plugins/openapi/playground/result-panel/RequestTab.tsx +73 -0
- package/src/lib/plugins/openapi/playground/result-panel/ResponseTab.tsx +230 -0
- package/src/lib/plugins/openapi/playground/result-panel/ResultPanel.tsx +123 -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/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 +160 -0
- package/src/lib/plugins/openapi/schema/SchemaView.tsx +105 -138
- package/src/lib/plugins/openapi/schema/utils.ts +32 -5
- package/src/lib/plugins/openapi/state.ts +36 -0
- package/src/lib/plugins/openapi/util/createSidebarCategory.tsx +37 -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 +6 -10
- package/src/lib/plugins/search-inkeep/index.tsx +80 -25
- package/src/lib/plugins/search-inkeep/inkeep.ts +3 -9
- package/src/lib/plugins/search-pagefind/PagefindSearch.tsx +164 -0
- package/src/lib/plugins/search-pagefind/ResultList.tsx +105 -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 +133 -0
- package/src/lib/ui/Accordion.tsx +56 -0
- package/src/lib/ui/ActionButton.tsx +28 -0
- package/src/lib/ui/Alert.tsx +59 -0
- package/src/lib/ui/AlertDialog.tsx +139 -0
- package/src/lib/ui/AspectRatio.tsx +5 -0
- package/src/lib/ui/Badge.tsx +37 -0
- package/src/lib/ui/Breadcrumb.tsx +115 -0
- package/src/lib/ui/Button.tsx +13 -8
- package/src/lib/ui/Callout.tsx +36 -16
- package/src/lib/ui/Card.tsx +1 -1
- package/src/lib/ui/Carousel.tsx +260 -0
- package/src/lib/ui/Checkbox.tsx +29 -0
- package/src/lib/ui/CodeBlock.tsx +102 -0
- package/src/lib/ui/Collapsible.tsx +9 -0
- package/src/lib/ui/Command.tsx +193 -0
- package/src/lib/ui/Dialog.tsx +120 -0
- package/src/lib/ui/Drawer.tsx +38 -36
- package/src/lib/ui/DropdownMenu.tsx +4 -4
- package/src/lib/ui/Form.tsx +177 -0
- package/src/lib/ui/HoverCard.tsx +27 -0
- package/src/lib/ui/Input.tsx +2 -3
- package/src/lib/ui/Label.tsx +24 -0
- package/src/lib/ui/Pagination.tsx +117 -0
- package/src/lib/ui/Popover.tsx +29 -0
- package/src/lib/ui/Progress.tsx +26 -0
- package/src/lib/ui/RadioGroup.tsx +42 -0
- package/src/lib/ui/ScrollArea.tsx +46 -0
- package/src/lib/ui/Select.tsx +157 -0
- package/src/lib/ui/Skeleton.tsx +15 -0
- package/src/lib/ui/Slider.tsx +26 -0
- package/src/lib/ui/Stepper.tsx +8 -0
- package/src/lib/ui/Switch.tsx +27 -0
- package/src/lib/ui/SyntaxHighlight.tsx +27 -0
- package/src/lib/ui/Tabs.tsx +2 -2
- package/src/lib/ui/Textarea.tsx +23 -0
- package/src/lib/ui/Toggle.tsx +43 -0
- package/src/lib/ui/ToggleGroup.tsx +59 -0
- package/src/lib/ui/Tooltip.tsx +28 -0
- package/src/lib/ui/util.tsx +3 -0
- package/src/lib/util/MdxComponents.tsx +37 -24
- 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/invariant.ts +15 -3
- 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/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/useExposedProps.tsx +27 -0
- 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 +48 -39
- 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/internal.d.ts +0 -1
- package/dist/internal.js +0 -2
- package/dist/internal.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/Dialog.js +0 -23
- package/dist/lib/components/Dialog.js.map +0 -1
- package/dist/lib/components/Select.js +0 -27
- package/dist/lib/components/Select.js.map +0 -1
- package/dist/lib/components/SlotletProvider.d.ts +0 -9
- package/dist/lib/components/SlotletProvider.js +0 -16
- 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 -50
- 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/core/DevPortalContext.d.ts +0 -78
- package/dist/lib/core/DevPortalContext.js +0 -49
- package/dist/lib/core/DevPortalContext.js.map +0 -1
- package/dist/lib/plugins/custom-page/index.d.ts +0 -8
- package/dist/lib/plugins/custom-page/index.js +0 -12
- package/dist/lib/plugins/custom-page/index.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/generateRoutes.d.ts +0 -3
- package/dist/lib/plugins/markdown/generateRoutes.js +0 -21
- package/dist/lib/plugins/markdown/generateRoutes.js.map +0 -1
- package/dist/lib/plugins/openapi/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/Editor.d.ts +0 -1
- package/dist/lib/plugins/openapi/playground/Editor.js +0 -5
- package/dist/lib/plugins/openapi/playground/Editor.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/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/util/urql.d.ts +0 -7
- package/dist/lib/plugins/openapi/util/urql.js +0 -8
- package/dist/lib/plugins/openapi/util/urql.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/ui/Note.d.ts +0 -8
- package/dist/lib/ui/Note.js +0 -23
- package/dist/lib/ui/Note.js.map +0 -1
- package/dist/lib/util/createWaitForNotify.d.ts +0 -1
- package/dist/lib/util/createWaitForNotify.js +0 -15
- package/dist/lib/util/createWaitForNotify.js.map +0 -1
- package/dist/vite/plugin-custom-css.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-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/prerender.d.ts +0 -17
- package/dist/vite/prerender.js +0 -87
- package/dist/vite/prerender.js.map +0 -1
- package/lib/AuthenticationPlugin-Bx9FK124.js +0 -55
- package/lib/AuthenticationPlugin-Bx9FK124.js.map +0 -1
- package/lib/CategoryHeading-ovR-zHRq.js +0 -10
- package/lib/CategoryHeading-ovR-zHRq.js.map +0 -1
- package/lib/DeveloperHint-YeWHKvyr.js +0 -16
- package/lib/DeveloperHint-YeWHKvyr.js.map +0 -1
- package/lib/ErrorPage-CsZAN_za.js +0 -16
- package/lib/ErrorPage-CsZAN_za.js.map +0 -1
- package/lib/InkeepCustomTrigger-CE5-K5ex.js +0 -6
- package/lib/InkeepCustomTrigger-CE5-K5ex.js.map +0 -1
- package/lib/Input-CtVUl3eT.js +0 -2198
- package/lib/Input-CtVUl3eT.js.map +0 -1
- package/lib/Markdown-DapSf3wG.js +0 -20281
- package/lib/Markdown-DapSf3wG.js.map +0 -1
- package/lib/MdxPage-BqBWsXZ1.js +0 -172
- package/lib/MdxPage-BqBWsXZ1.js.map +0 -1
- package/lib/OperationList-CYrmxPa8.js +0 -602
- package/lib/OperationList-CYrmxPa8.js.map +0 -1
- package/lib/Route-Q5mqNQrv.js +0 -14
- package/lib/Route-Q5mqNQrv.js.map +0 -1
- package/lib/SidebarBadge-Dx7jtnoA.js +0 -498
- package/lib/SidebarBadge-Dx7jtnoA.js.map +0 -1
- package/lib/SlotletProvider-D3UD5Go3.js +0 -238
- package/lib/SlotletProvider-D3UD5Go3.js.map +0 -1
- package/lib/Spinner-3cQDBVGr.js +0 -7
- package/lib/Spinner-3cQDBVGr.js.map +0 -1
- package/lib/ZudokuContext-cr-pTRY1.js +0 -1084
- package/lib/ZudokuContext-cr-pTRY1.js.map +0 -1
- package/lib/_commonjsHelpers-BkfeUUK-.js +0 -29
- package/lib/_commonjsHelpers-BkfeUUK-.js.map +0 -1
- package/lib/assets/index-B9EWVYfo.js +0 -4790
- package/lib/assets/index-B9EWVYfo.js.map +0 -1
- package/lib/assets/worker-BP8Uzflt.js +0 -17916
- package/lib/assets/worker-BP8Uzflt.js.map +0 -1
- package/lib/index-BG0g4WW0.js +0 -1771
- package/lib/index-BG0g4WW0.js.map +0 -1
- package/lib/index-BlJ2rj99.js +0 -5815
- package/lib/index-BlJ2rj99.js.map +0 -1
- package/lib/index-BngPzhKn.js +0 -124
- package/lib/index-BngPzhKn.js.map +0 -1
- package/lib/index-CLd8ycZz.js +0 -4790
- package/lib/index-CLd8ycZz.js.map +0 -1
- package/lib/index-Dolisrci.js +0 -2814
- package/lib/index-Dolisrci.js.map +0 -1
- package/lib/index-LNp6rxyU.js +0 -2094
- package/lib/index-LNp6rxyU.js.map +0 -1
- package/lib/joinPath-B7kNnUX4.js +0 -8
- package/lib/joinPath-B7kNnUX4.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-D2p7Olpn.js +0 -2971
- package/lib/router-D2p7Olpn.js.map +0 -1
- package/lib/state-hNe1dw4B.js +0 -548
- package/lib/state-hNe1dw4B.js.map +0 -1
- package/lib/urql-YhcsXYy8.js +0 -1591
- package/lib/urql-YhcsXYy8.js.map +0 -1
- package/lib/utils-ByIc_KIM.js +0 -749
- package/lib/utils-ByIc_KIM.js.map +0 -1
- package/lib/zudoku.openapi-worker.js +0 -16059
- package/lib/zudoku.openapi-worker.js.map +0 -1
- package/lib/zudoku.plugin-custom-page.js +0 -13
- package/lib/zudoku.plugin-custom-page.js.map +0 -1
- package/src/app/tailwind.ts +0 -68
- package/src/lib/components/DevPortal.tsx +0 -111
- package/src/lib/components/Dialog.tsx +0 -119
- package/src/lib/components/Select.tsx +0 -157
- package/src/lib/components/SlotletProvider.tsx +0 -30
- package/src/lib/components/SyntaxHighlight.tsx +0 -122
- 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/core/DevPortalContext.ts +0 -135
- package/src/lib/plugins/custom-page/index.tsx +0 -22
- package/src/lib/plugins/markdown/Toc.tsx +0 -135
- package/src/lib/plugins/markdown/generateRoutes.tsx +0 -38
- package/src/lib/plugins/openapi/Route.tsx +0 -21
- package/src/lib/plugins/openapi/client/createMemoryClient.ts +0 -56
- package/src/lib/plugins/openapi/client/createWorkerClient.ts +0 -80
- 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/Editor.tsx +0 -4
- package/src/lib/plugins/openapi/playground/ResponseTab.tsx +0 -76
- package/src/lib/plugins/openapi/schema/SchemaComponents.tsx +0 -126
- package/src/lib/plugins/openapi/util/urql.ts +0 -8
- 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/ui/Note.tsx +0 -58
- package/src/lib/util/createWaitForNotify.ts +0 -18
- /package/dist/lib/components/{context/PluginSystem.d.ts → Slot.test.d.ts} +0 -0
- /package/dist/lib/{plugins/markdown → components/navigation}/Toc.d.ts +0 -0
- /package/dist/lib/{plugins/openapi/client/worker.d.ts → hooks/useEvent.test.d.ts} +0 -0
- /package/dist/lib/{components → ui}/Dialog.d.ts +0 -0
- /package/dist/lib/{components → ui}/Select.d.ts +0 -0
package/lib/index-BG0g4WW0.js
DELETED
|
@@ -1,1771 +0,0 @@
|
|
|
1
|
-
import * as r from "react";
|
|
2
|
-
import * as At from "react-dom";
|
|
3
|
-
import { i as m, j as G, g as Re, w, a as Ne, m as _e, A as de, p as fe, s as T, b as we, c as X, d as Mt, e as Bt, I as jt, f as qe, h as Se, k as Ce, l as Q, n as Ge, o as Xe, q as Qe, r as Ze, t as et, u as tt, v as nt, x as rt, E as ot, y as Ht } from "./router-D2p7Olpn.js";
|
|
4
|
-
/**
|
|
5
|
-
* React Router v6.25.1
|
|
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 n = arguments[t];
|
|
18
|
-
for (var o in n)
|
|
19
|
-
Object.prototype.hasOwnProperty.call(n, o) && (e[o] = n[o]);
|
|
20
|
-
}
|
|
21
|
-
return e;
|
|
22
|
-
}, I.apply(this, arguments);
|
|
23
|
-
}
|
|
24
|
-
const U = /* @__PURE__ */ r.createContext(null);
|
|
25
|
-
process.env.NODE_ENV !== "production" && (U.displayName = "DataRouter");
|
|
26
|
-
const M = /* @__PURE__ */ r.createContext(null);
|
|
27
|
-
process.env.NODE_ENV !== "production" && (M.displayName = "DataRouterState");
|
|
28
|
-
const Z = /* @__PURE__ */ r.createContext(null);
|
|
29
|
-
process.env.NODE_ENV !== "production" && (Z.displayName = "Await");
|
|
30
|
-
const S = /* @__PURE__ */ r.createContext(null);
|
|
31
|
-
process.env.NODE_ENV !== "production" && (S.displayName = "Navigation");
|
|
32
|
-
const B = /* @__PURE__ */ r.createContext(null);
|
|
33
|
-
process.env.NODE_ENV !== "production" && (B.displayName = "Location");
|
|
34
|
-
const C = /* @__PURE__ */ r.createContext({
|
|
35
|
-
outlet: null,
|
|
36
|
-
matches: [],
|
|
37
|
-
isDataRoute: !1
|
|
38
|
-
});
|
|
39
|
-
process.env.NODE_ENV !== "production" && (C.displayName = "Route");
|
|
40
|
-
const xe = /* @__PURE__ */ r.createContext(null);
|
|
41
|
-
process.env.NODE_ENV !== "production" && (xe.displayName = "RouteError");
|
|
42
|
-
function De(e, t) {
|
|
43
|
-
let {
|
|
44
|
-
relative: n
|
|
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
|
-
} = r.useContext(S), {
|
|
56
|
-
hash: s,
|
|
57
|
-
pathname: i,
|
|
58
|
-
search: u
|
|
59
|
-
} = Y(e, {
|
|
60
|
-
relative: n
|
|
61
|
-
}), d = i;
|
|
62
|
-
return o !== "/" && (d = i === "/" ? o : G([o, i])), a.createHref({
|
|
63
|
-
pathname: d,
|
|
64
|
-
search: u,
|
|
65
|
-
hash: s
|
|
66
|
-
});
|
|
67
|
-
}
|
|
68
|
-
function V() {
|
|
69
|
-
return r.useContext(B) != 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)), r.useContext(B).location;
|
|
78
|
-
}
|
|
79
|
-
function at() {
|
|
80
|
-
return r.useContext(B).navigationType;
|
|
81
|
-
}
|
|
82
|
-
function it(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 r.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 lt(e) {
|
|
96
|
-
r.useContext(S).static || r.useLayoutEffect(e);
|
|
97
|
-
}
|
|
98
|
-
function te() {
|
|
99
|
-
let {
|
|
100
|
-
isDataRoute: e
|
|
101
|
-
} = r.useContext(C);
|
|
102
|
-
return e ? Gt() : Kt();
|
|
103
|
-
}
|
|
104
|
-
function Kt() {
|
|
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 = r.useContext(U), {
|
|
112
|
-
basename: t,
|
|
113
|
-
future: n,
|
|
114
|
-
navigator: o
|
|
115
|
-
} = r.useContext(S), {
|
|
116
|
-
matches: a
|
|
117
|
-
} = r.useContext(C), {
|
|
118
|
-
pathname: s
|
|
119
|
-
} = L(), i = JSON.stringify(Re(a, n.v7_relativeSplatPath)), u = r.useRef(!1);
|
|
120
|
-
return lt(() => {
|
|
121
|
-
u.current = !0;
|
|
122
|
-
}), r.useCallback(function(l, c) {
|
|
123
|
-
if (c === void 0 && (c = {}), process.env.NODE_ENV !== "production" && w(u.current, st), !u.current) return;
|
|
124
|
-
if (typeof l == "number") {
|
|
125
|
-
o.go(l);
|
|
126
|
-
return;
|
|
127
|
-
}
|
|
128
|
-
let f = Ne(l, JSON.parse(i), s, c.relative === "path");
|
|
129
|
-
e == null && t !== "/" && (f.pathname = f.pathname === "/" ? t : G([t, f.pathname])), (c.replace ? o.replace : o.push)(f, c.state, c);
|
|
130
|
-
}, [t, o, i, s, e]);
|
|
131
|
-
}
|
|
132
|
-
const ut = /* @__PURE__ */ r.createContext(null);
|
|
133
|
-
function ct() {
|
|
134
|
-
return r.useContext(ut);
|
|
135
|
-
}
|
|
136
|
-
function Oe(e) {
|
|
137
|
-
let t = r.useContext(C).outlet;
|
|
138
|
-
return t && /* @__PURE__ */ r.createElement(ut.Provider, {
|
|
139
|
-
value: e
|
|
140
|
-
}, t);
|
|
141
|
-
}
|
|
142
|
-
function dt() {
|
|
143
|
-
let {
|
|
144
|
-
matches: e
|
|
145
|
-
} = r.useContext(C), t = e[e.length - 1];
|
|
146
|
-
return t ? t.params : {};
|
|
147
|
-
}
|
|
148
|
-
function Y(e, t) {
|
|
149
|
-
let {
|
|
150
|
-
relative: n
|
|
151
|
-
} = t === void 0 ? {} : t, {
|
|
152
|
-
future: o
|
|
153
|
-
} = r.useContext(S), {
|
|
154
|
-
matches: a
|
|
155
|
-
} = r.useContext(C), {
|
|
156
|
-
pathname: s
|
|
157
|
-
} = L(), i = JSON.stringify(Re(a, o.v7_relativeSplatPath));
|
|
158
|
-
return r.useMemo(() => Ne(e, JSON.parse(i), s, n === "path"), [e, i, s, n]);
|
|
159
|
-
}
|
|
160
|
-
function Pe(e, t) {
|
|
161
|
-
return pe(e, t);
|
|
162
|
-
}
|
|
163
|
-
function pe(e, t, n, 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
|
-
} = r.useContext(S), {
|
|
173
|
-
matches: s
|
|
174
|
-
} = r.useContext(C), i = s[s.length - 1], u = i ? i.params : {}, d = i ? i.pathname : "/", l = i ? i.pathnameBase : "/", c = i && i.route;
|
|
175
|
-
if (process.env.NODE_ENV !== "production") {
|
|
176
|
-
let h = c && c.path || "";
|
|
177
|
-
yt(d, !c || h.endsWith("*"), "You rendered descendant <Routes> (or called `useRoutes()`) at " + ('"' + d + '" (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 f = L(), p;
|
|
182
|
-
if (t) {
|
|
183
|
-
var v;
|
|
184
|
-
let h = typeof t == "string" ? fe(t) : t;
|
|
185
|
-
l === "/" || (v = h.pathname) != null && v.startsWith(l) || (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 "' + l + '" ') + ('but pathname "' + h.pathname + '" was given in the `location` prop.')) : m(!1)), p = h;
|
|
186
|
-
} else
|
|
187
|
-
p = f;
|
|
188
|
-
let g = p.pathname || "/", b = g;
|
|
189
|
-
if (l !== "/") {
|
|
190
|
-
let h = l.replace(/^\//, "").split("/");
|
|
191
|
-
b = "/" + g.replace(/^\//, "").split("/").slice(h.length).join("/");
|
|
192
|
-
}
|
|
193
|
-
let y = _e(e, {
|
|
194
|
-
pathname: b
|
|
195
|
-
});
|
|
196
|
-
process.env.NODE_ENV !== "production" && (process.env.NODE_ENV !== "production" && w(c || y != null, 'No routes matched location "' + p.pathname + p.search + p.hash + '" '), process.env.NODE_ENV !== "production" && w(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 _ = ft(y && y.map((h) => Object.assign({}, h, {
|
|
198
|
-
params: Object.assign({}, u, h.params),
|
|
199
|
-
pathname: G([
|
|
200
|
-
l,
|
|
201
|
-
// Re-encode pathnames that were decoded inside matchRoutes
|
|
202
|
-
a.encodeLocation ? a.encodeLocation(h.pathname).pathname : h.pathname
|
|
203
|
-
]),
|
|
204
|
-
pathnameBase: h.pathnameBase === "/" ? l : G([
|
|
205
|
-
l,
|
|
206
|
-
// Re-encode pathnames that were decoded inside matchRoutes
|
|
207
|
-
a.encodeLocation ? a.encodeLocation(h.pathnameBase).pathname : h.pathnameBase
|
|
208
|
-
])
|
|
209
|
-
})), s, n, o);
|
|
210
|
-
return t && _ ? /* @__PURE__ */ r.createElement(B.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
|
-
}, _) : _;
|
|
222
|
-
}
|
|
223
|
-
function zt() {
|
|
224
|
-
let e = ke(), t = we(e) ? e.status + " " + e.statusText : e instanceof Error ? e.message : JSON.stringify(e), n = e instanceof Error ? e.stack : null, o = "rgba(200,200,200, 0.5)", a = {
|
|
225
|
-
padding: "0.5rem",
|
|
226
|
-
backgroundColor: o
|
|
227
|
-
}, s = {
|
|
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__ */ r.createElement(r.Fragment, null, /* @__PURE__ */ r.createElement("p", null, "💿 Hey developer 👋"), /* @__PURE__ */ r.createElement("p", null, "You can provide a way better UX than this when your app throws errors by providing your own ", /* @__PURE__ */ r.createElement("code", {
|
|
232
|
-
style: s
|
|
233
|
-
}, "ErrorBoundary"), " or", " ", /* @__PURE__ */ r.createElement("code", {
|
|
234
|
-
style: s
|
|
235
|
-
}, "errorElement"), " prop on your route."))), /* @__PURE__ */ r.createElement(r.Fragment, null, /* @__PURE__ */ r.createElement("h2", null, "Unexpected Application Error!"), /* @__PURE__ */ r.createElement("h3", {
|
|
236
|
-
style: {
|
|
237
|
-
fontStyle: "italic"
|
|
238
|
-
}
|
|
239
|
-
}, t), n ? /* @__PURE__ */ r.createElement("pre", {
|
|
240
|
-
style: a
|
|
241
|
-
}, n) : null, i);
|
|
242
|
-
}
|
|
243
|
-
const Wt = /* @__PURE__ */ r.createElement(zt, null);
|
|
244
|
-
class Yt extends r.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, n) {
|
|
258
|
-
return n.location !== t.location || n.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 : n.error,
|
|
264
|
-
location: n.location,
|
|
265
|
-
revalidation: t.revalidation || n.revalidation
|
|
266
|
-
};
|
|
267
|
-
}
|
|
268
|
-
componentDidCatch(t, n) {
|
|
269
|
-
console.error("React Router caught the following error during render", t, n);
|
|
270
|
-
}
|
|
271
|
-
render() {
|
|
272
|
-
return this.state.error !== void 0 ? /* @__PURE__ */ r.createElement(C.Provider, {
|
|
273
|
-
value: this.props.routeContext
|
|
274
|
-
}, /* @__PURE__ */ r.createElement(xe.Provider, {
|
|
275
|
-
value: this.state.error,
|
|
276
|
-
children: this.props.component
|
|
277
|
-
})) : this.props.children;
|
|
278
|
-
}
|
|
279
|
-
}
|
|
280
|
-
function $t(e) {
|
|
281
|
-
let {
|
|
282
|
-
routeContext: t,
|
|
283
|
-
match: n,
|
|
284
|
-
children: o
|
|
285
|
-
} = e, a = r.useContext(U);
|
|
286
|
-
return a && a.static && a.staticContext && (n.route.errorElement || n.route.ErrorBoundary) && (a.staticContext._deepestRenderedBoundaryId = n.route.id), /* @__PURE__ */ r.createElement(C.Provider, {
|
|
287
|
-
value: t
|
|
288
|
-
}, o);
|
|
289
|
-
}
|
|
290
|
-
function ft(e, t, n, o) {
|
|
291
|
-
var a;
|
|
292
|
-
if (t === void 0 && (t = []), n === void 0 && (n = null), o === void 0 && (o = null), e == null) {
|
|
293
|
-
var s;
|
|
294
|
-
if ((s = n) != null && s.errors)
|
|
295
|
-
e = n.matches;
|
|
296
|
-
else
|
|
297
|
-
return null;
|
|
298
|
-
}
|
|
299
|
-
let i = e, u = (a = n) == null ? void 0 : a.errors;
|
|
300
|
-
if (u != null) {
|
|
301
|
-
let c = i.findIndex((f) => f.route.id && (u == null ? void 0 : u[f.route.id]) !== void 0);
|
|
302
|
-
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));
|
|
303
|
-
}
|
|
304
|
-
let d = !1, l = -1;
|
|
305
|
-
if (n && o && o.v7_partialHydration)
|
|
306
|
-
for (let c = 0; c < i.length; c++) {
|
|
307
|
-
let f = i[c];
|
|
308
|
-
if ((f.route.HydrateFallback || f.route.hydrateFallbackElement) && (l = c), f.route.id) {
|
|
309
|
-
let {
|
|
310
|
-
loaderData: p,
|
|
311
|
-
errors: v
|
|
312
|
-
} = n, g = f.route.loader && p[f.route.id] === void 0 && (!v || v[f.route.id] === void 0);
|
|
313
|
-
if (f.route.lazy || g) {
|
|
314
|
-
d = !0, l >= 0 ? i = i.slice(0, l + 1) : i = [i[0]];
|
|
315
|
-
break;
|
|
316
|
-
}
|
|
317
|
-
}
|
|
318
|
-
}
|
|
319
|
-
return i.reduceRight((c, f, p) => {
|
|
320
|
-
let v, g = !1, b = null, y = null;
|
|
321
|
-
n && (v = u && f.route.id ? u[f.route.id] : void 0, b = f.route.errorElement || Wt, d && (l < 0 && p === 0 ? (yt("route-fallback", !1, "No `HydrateFallback` element provided to render during initial hydration"), g = !0, y = null) : l === p && (g = !0, y = f.route.hydrateFallbackElement || null)));
|
|
322
|
-
let _ = t.concat(i.slice(0, p + 1)), h = () => {
|
|
323
|
-
let E;
|
|
324
|
-
return v ? E = b : g ? E = y : f.route.Component ? E = /* @__PURE__ */ r.createElement(f.route.Component, null) : f.route.element ? E = f.route.element : E = c, /* @__PURE__ */ r.createElement($t, {
|
|
325
|
-
match: f,
|
|
326
|
-
routeContext: {
|
|
327
|
-
outlet: c,
|
|
328
|
-
matches: _,
|
|
329
|
-
isDataRoute: n != null
|
|
330
|
-
},
|
|
331
|
-
children: E
|
|
332
|
-
});
|
|
333
|
-
};
|
|
334
|
-
return n && (f.route.ErrorBoundary || f.route.errorElement || p === 0) ? /* @__PURE__ */ r.createElement(Yt, {
|
|
335
|
-
location: n.location,
|
|
336
|
-
revalidation: n.revalidation,
|
|
337
|
-
component: b,
|
|
338
|
-
error: v,
|
|
339
|
-
children: h(),
|
|
340
|
-
routeContext: {
|
|
341
|
-
outlet: null,
|
|
342
|
-
matches: _,
|
|
343
|
-
isDataRoute: !0
|
|
344
|
-
}
|
|
345
|
-
}) : h();
|
|
346
|
-
}, null);
|
|
347
|
-
}
|
|
348
|
-
var he = /* @__PURE__ */ function(e) {
|
|
349
|
-
return e.UseBlocker = "useBlocker", e.UseRevalidator = "useRevalidator", e.UseNavigateStable = "useNavigate", e;
|
|
350
|
-
}(he || {}), O = /* @__PURE__ */ function(e) {
|
|
351
|
-
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;
|
|
352
|
-
}(O || {});
|
|
353
|
-
function Le(e) {
|
|
354
|
-
return e + " must be used within a data router. See https://reactrouter.com/routers/picking-a-router.";
|
|
355
|
-
}
|
|
356
|
-
function Te(e) {
|
|
357
|
-
let t = r.useContext(U);
|
|
358
|
-
return t || (process.env.NODE_ENV !== "production" ? m(!1, Le(e)) : m(!1)), t;
|
|
359
|
-
}
|
|
360
|
-
function j(e) {
|
|
361
|
-
let t = r.useContext(M);
|
|
362
|
-
return t || (process.env.NODE_ENV !== "production" ? m(!1, Le(e)) : m(!1)), t;
|
|
363
|
-
}
|
|
364
|
-
function Jt(e) {
|
|
365
|
-
let t = r.useContext(C);
|
|
366
|
-
return t || (process.env.NODE_ENV !== "production" ? m(!1, Le(e)) : m(!1)), t;
|
|
367
|
-
}
|
|
368
|
-
function ne(e) {
|
|
369
|
-
let t = Jt(e), n = t.matches[t.matches.length - 1];
|
|
370
|
-
return n.route.id || (process.env.NODE_ENV !== "production" ? m(!1, e + ' can only be used on routes that contain a unique "id"') : m(!1)), n.route.id;
|
|
371
|
-
}
|
|
372
|
-
function Fe() {
|
|
373
|
-
return ne(O.UseRouteId);
|
|
374
|
-
}
|
|
375
|
-
function Ue() {
|
|
376
|
-
return j(O.UseNavigation).navigation;
|
|
377
|
-
}
|
|
378
|
-
function pt() {
|
|
379
|
-
let e = Te(he.UseRevalidator), t = j(O.UseRevalidator);
|
|
380
|
-
return r.useMemo(() => ({
|
|
381
|
-
revalidate: e.router.revalidate,
|
|
382
|
-
state: t.revalidation
|
|
383
|
-
}), [e.router.revalidate, t.revalidation]);
|
|
384
|
-
}
|
|
385
|
-
function Ve() {
|
|
386
|
-
let {
|
|
387
|
-
matches: e,
|
|
388
|
-
loaderData: t
|
|
389
|
-
} = j(O.UseMatches);
|
|
390
|
-
return r.useMemo(() => e.map((n) => Bt(n, t)), [e, t]);
|
|
391
|
-
}
|
|
392
|
-
function ht() {
|
|
393
|
-
let e = j(O.UseLoaderData), t = ne(O.UseLoaderData);
|
|
394
|
-
if (e.errors && e.errors[t] != null) {
|
|
395
|
-
console.error("You cannot `useLoaderData` in an errorElement (routeId: " + t + ")");
|
|
396
|
-
return;
|
|
397
|
-
}
|
|
398
|
-
return e.loaderData[t];
|
|
399
|
-
}
|
|
400
|
-
function mt(e) {
|
|
401
|
-
return j(O.UseRouteLoaderData).loaderData[e];
|
|
402
|
-
}
|
|
403
|
-
function vt() {
|
|
404
|
-
let e = j(O.UseActionData), t = ne(O.UseLoaderData);
|
|
405
|
-
return e.actionData ? e.actionData[t] : void 0;
|
|
406
|
-
}
|
|
407
|
-
function ke() {
|
|
408
|
-
var e;
|
|
409
|
-
let t = r.useContext(xe), n = j(O.UseRouteError), o = ne(O.UseRouteError);
|
|
410
|
-
return t !== void 0 ? t : (e = n.errors) == null ? void 0 : e[o];
|
|
411
|
-
}
|
|
412
|
-
function Ie() {
|
|
413
|
-
let e = r.useContext(Z);
|
|
414
|
-
return e == null ? void 0 : e._data;
|
|
415
|
-
}
|
|
416
|
-
function Et() {
|
|
417
|
-
let e = r.useContext(Z);
|
|
418
|
-
return e == null ? void 0 : e._error;
|
|
419
|
-
}
|
|
420
|
-
let qt = 0;
|
|
421
|
-
function Ae(e) {
|
|
422
|
-
let {
|
|
423
|
-
router: t,
|
|
424
|
-
basename: n
|
|
425
|
-
} = Te(he.UseBlocker), o = j(O.UseBlocker), [a, s] = r.useState(""), i = r.useCallback((u) => {
|
|
426
|
-
if (typeof e != "function")
|
|
427
|
-
return !!e;
|
|
428
|
-
if (n === "/")
|
|
429
|
-
return e(u);
|
|
430
|
-
let {
|
|
431
|
-
currentLocation: d,
|
|
432
|
-
nextLocation: l,
|
|
433
|
-
historyAction: c
|
|
434
|
-
} = u;
|
|
435
|
-
return e({
|
|
436
|
-
currentLocation: I({}, d, {
|
|
437
|
-
pathname: T(d.pathname, n) || d.pathname
|
|
438
|
-
}),
|
|
439
|
-
nextLocation: I({}, l, {
|
|
440
|
-
pathname: T(l.pathname, n) || l.pathname
|
|
441
|
-
}),
|
|
442
|
-
historyAction: c
|
|
443
|
-
});
|
|
444
|
-
}, [n, e]);
|
|
445
|
-
return r.useEffect(() => {
|
|
446
|
-
let u = String(++qt);
|
|
447
|
-
return s(u), () => t.deleteBlocker(u);
|
|
448
|
-
}, [t]), r.useEffect(() => {
|
|
449
|
-
a !== "" && t.getBlocker(a, i);
|
|
450
|
-
}, [t, a, i]), a && o.blockers.has(a) ? o.blockers.get(a) : jt;
|
|
451
|
-
}
|
|
452
|
-
function Gt() {
|
|
453
|
-
let {
|
|
454
|
-
router: e
|
|
455
|
-
} = Te(he.UseNavigateStable), t = ne(O.UseNavigateStable), n = r.useRef(!1);
|
|
456
|
-
return lt(() => {
|
|
457
|
-
n.current = !0;
|
|
458
|
-
}), r.useCallback(function(a, s) {
|
|
459
|
-
s === void 0 && (s = {}), process.env.NODE_ENV !== "production" && w(n.current, st), n.current && (typeof a == "number" ? e.navigate(a) : e.navigate(a, I({
|
|
460
|
-
fromRouteId: t
|
|
461
|
-
}, s)));
|
|
462
|
-
}, [e, t]);
|
|
463
|
-
}
|
|
464
|
-
const We = {};
|
|
465
|
-
function yt(e, t, n) {
|
|
466
|
-
!t && !We[e] && (We[e] = !0, process.env.NODE_ENV !== "production" && w(!1, n));
|
|
467
|
-
}
|
|
468
|
-
const Xt = "startTransition", ue = r[Xt];
|
|
469
|
-
function Qt(e) {
|
|
470
|
-
let {
|
|
471
|
-
fallbackElement: t,
|
|
472
|
-
router: n,
|
|
473
|
-
future: o
|
|
474
|
-
} = e, [a, s] = r.useState(n.state), {
|
|
475
|
-
v7_startTransition: i
|
|
476
|
-
} = o || {}, u = r.useCallback((f) => {
|
|
477
|
-
i && ue ? ue(() => s(f)) : s(f);
|
|
478
|
-
}, [s, i]);
|
|
479
|
-
r.useLayoutEffect(() => n.subscribe(u), [n, u]), r.useEffect(() => {
|
|
480
|
-
process.env.NODE_ENV !== "production" && w(t == null || !n.future.v7_partialHydration, "`<RouterProvider fallbackElement>` is deprecated when using `v7_partialHydration`, use a `HydrateFallback` component instead");
|
|
481
|
-
}, []);
|
|
482
|
-
let d = r.useMemo(() => ({
|
|
483
|
-
createHref: n.createHref,
|
|
484
|
-
encodeLocation: n.encodeLocation,
|
|
485
|
-
go: (f) => n.navigate(f),
|
|
486
|
-
push: (f, p, v) => n.navigate(f, {
|
|
487
|
-
state: p,
|
|
488
|
-
preventScrollReset: v == null ? void 0 : v.preventScrollReset
|
|
489
|
-
}),
|
|
490
|
-
replace: (f, p, v) => n.navigate(f, {
|
|
491
|
-
replace: !0,
|
|
492
|
-
state: p,
|
|
493
|
-
preventScrollReset: v == null ? void 0 : v.preventScrollReset
|
|
494
|
-
})
|
|
495
|
-
}), [n]), l = n.basename || "/", c = r.useMemo(() => ({
|
|
496
|
-
router: n,
|
|
497
|
-
navigator: d,
|
|
498
|
-
static: !1,
|
|
499
|
-
basename: l
|
|
500
|
-
}), [n, d, l]);
|
|
501
|
-
return /* @__PURE__ */ r.createElement(r.Fragment, null, /* @__PURE__ */ r.createElement(U.Provider, {
|
|
502
|
-
value: c
|
|
503
|
-
}, /* @__PURE__ */ r.createElement(M.Provider, {
|
|
504
|
-
value: a
|
|
505
|
-
}, /* @__PURE__ */ r.createElement(H, {
|
|
506
|
-
basename: l,
|
|
507
|
-
location: a.location,
|
|
508
|
-
navigationType: a.historyAction,
|
|
509
|
-
navigator: d,
|
|
510
|
-
future: {
|
|
511
|
-
v7_relativeSplatPath: n.future.v7_relativeSplatPath
|
|
512
|
-
}
|
|
513
|
-
}, a.initialized || n.future.v7_partialHydration ? /* @__PURE__ */ r.createElement(Zt, {
|
|
514
|
-
routes: n.routes,
|
|
515
|
-
future: n.future,
|
|
516
|
-
state: a
|
|
517
|
-
}) : t))), null);
|
|
518
|
-
}
|
|
519
|
-
function Zt(e) {
|
|
520
|
-
let {
|
|
521
|
-
routes: t,
|
|
522
|
-
future: n,
|
|
523
|
-
state: o
|
|
524
|
-
} = e;
|
|
525
|
-
return pe(t, void 0, o, n);
|
|
526
|
-
}
|
|
527
|
-
function gt(e) {
|
|
528
|
-
let {
|
|
529
|
-
basename: t,
|
|
530
|
-
children: n,
|
|
531
|
-
initialEntries: o,
|
|
532
|
-
initialIndex: a,
|
|
533
|
-
future: s
|
|
534
|
-
} = e, i = r.useRef();
|
|
535
|
-
i.current == null && (i.current = qe({
|
|
536
|
-
initialEntries: o,
|
|
537
|
-
initialIndex: a,
|
|
538
|
-
v5Compat: !0
|
|
539
|
-
}));
|
|
540
|
-
let u = i.current, [d, l] = r.useState({
|
|
541
|
-
action: u.action,
|
|
542
|
-
location: u.location
|
|
543
|
-
}), {
|
|
544
|
-
v7_startTransition: c
|
|
545
|
-
} = s || {}, f = r.useCallback((p) => {
|
|
546
|
-
c && ue ? ue(() => l(p)) : l(p);
|
|
547
|
-
}, [l, c]);
|
|
548
|
-
return r.useLayoutEffect(() => u.listen(f), [u, f]), /* @__PURE__ */ r.createElement(H, {
|
|
549
|
-
basename: t,
|
|
550
|
-
children: n,
|
|
551
|
-
location: d.location,
|
|
552
|
-
navigationType: d.action,
|
|
553
|
-
navigator: u,
|
|
554
|
-
future: s
|
|
555
|
-
});
|
|
556
|
-
}
|
|
557
|
-
function bt(e) {
|
|
558
|
-
let {
|
|
559
|
-
to: t,
|
|
560
|
-
replace: n,
|
|
561
|
-
state: o,
|
|
562
|
-
relative: a
|
|
563
|
-
} = e;
|
|
564
|
-
V() || (process.env.NODE_ENV !== "production" ? m(
|
|
565
|
-
!1,
|
|
566
|
-
// TODO: This error is probably because they somehow have 2 versions of
|
|
567
|
-
// the router loaded. We can help them understand how to avoid that.
|
|
568
|
-
"<Navigate> may be used only in the context of a <Router> component."
|
|
569
|
-
) : m(!1));
|
|
570
|
-
let {
|
|
571
|
-
future: s,
|
|
572
|
-
static: i
|
|
573
|
-
} = r.useContext(S);
|
|
574
|
-
process.env.NODE_ENV !== "production" && w(!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.");
|
|
575
|
-
let {
|
|
576
|
-
matches: u
|
|
577
|
-
} = r.useContext(C), {
|
|
578
|
-
pathname: d
|
|
579
|
-
} = L(), l = te(), c = Ne(t, Re(u, s.v7_relativeSplatPath), d, a === "path"), f = JSON.stringify(c);
|
|
580
|
-
return r.useEffect(() => l(JSON.parse(f), {
|
|
581
|
-
replace: n,
|
|
582
|
-
state: o,
|
|
583
|
-
relative: a
|
|
584
|
-
}), [l, f, a, n, o]), null;
|
|
585
|
-
}
|
|
586
|
-
function Rt(e) {
|
|
587
|
-
return Oe(e.context);
|
|
588
|
-
}
|
|
589
|
-
function Me(e) {
|
|
590
|
-
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);
|
|
591
|
-
}
|
|
592
|
-
function H(e) {
|
|
593
|
-
let {
|
|
594
|
-
basename: t = "/",
|
|
595
|
-
children: n = null,
|
|
596
|
-
location: o,
|
|
597
|
-
navigationType: a = de.Pop,
|
|
598
|
-
navigator: s,
|
|
599
|
-
static: i = !1,
|
|
600
|
-
future: u
|
|
601
|
-
} = e;
|
|
602
|
-
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));
|
|
603
|
-
let d = t.replace(/^\/*/, "/"), l = r.useMemo(() => ({
|
|
604
|
-
basename: d,
|
|
605
|
-
navigator: s,
|
|
606
|
-
static: i,
|
|
607
|
-
future: I({
|
|
608
|
-
v7_relativeSplatPath: !1
|
|
609
|
-
}, u)
|
|
610
|
-
}), [d, u, s, i]);
|
|
611
|
-
typeof o == "string" && (o = fe(o));
|
|
612
|
-
let {
|
|
613
|
-
pathname: c = "/",
|
|
614
|
-
search: f = "",
|
|
615
|
-
hash: p = "",
|
|
616
|
-
state: v = null,
|
|
617
|
-
key: g = "default"
|
|
618
|
-
} = o, b = r.useMemo(() => {
|
|
619
|
-
let y = T(c, d);
|
|
620
|
-
return y == null ? null : {
|
|
621
|
-
location: {
|
|
622
|
-
pathname: y,
|
|
623
|
-
search: f,
|
|
624
|
-
hash: p,
|
|
625
|
-
state: v,
|
|
626
|
-
key: g
|
|
627
|
-
},
|
|
628
|
-
navigationType: a
|
|
629
|
-
};
|
|
630
|
-
}, [d, c, f, p, v, g, a]);
|
|
631
|
-
return process.env.NODE_ENV !== "production" && w(b != null, '<Router basename="' + d + '"> is not able to match the URL ' + ('"' + c + f + p + '" because it does not start with the ') + "basename, so the <Router> won't render anything."), b == null ? null : /* @__PURE__ */ r.createElement(S.Provider, {
|
|
632
|
-
value: l
|
|
633
|
-
}, /* @__PURE__ */ r.createElement(B.Provider, {
|
|
634
|
-
children: n,
|
|
635
|
-
value: b
|
|
636
|
-
}));
|
|
637
|
-
}
|
|
638
|
-
function Nt(e) {
|
|
639
|
-
let {
|
|
640
|
-
children: t,
|
|
641
|
-
location: n
|
|
642
|
-
} = e;
|
|
643
|
-
return Pe(W(t), n);
|
|
644
|
-
}
|
|
645
|
-
function _t(e) {
|
|
646
|
-
let {
|
|
647
|
-
children: t,
|
|
648
|
-
errorElement: n,
|
|
649
|
-
resolve: o
|
|
650
|
-
} = e;
|
|
651
|
-
return /* @__PURE__ */ r.createElement(tn, {
|
|
652
|
-
resolve: o,
|
|
653
|
-
errorElement: n
|
|
654
|
-
}, /* @__PURE__ */ r.createElement(nn, null, t));
|
|
655
|
-
}
|
|
656
|
-
var P = /* @__PURE__ */ function(e) {
|
|
657
|
-
return e[e.pending = 0] = "pending", e[e.success = 1] = "success", e[e.error = 2] = "error", e;
|
|
658
|
-
}(P || {});
|
|
659
|
-
const en = new Promise(() => {
|
|
660
|
-
});
|
|
661
|
-
class tn extends r.Component {
|
|
662
|
-
constructor(t) {
|
|
663
|
-
super(t), this.state = {
|
|
664
|
-
error: null
|
|
665
|
-
};
|
|
666
|
-
}
|
|
667
|
-
static getDerivedStateFromError(t) {
|
|
668
|
-
return {
|
|
669
|
-
error: t
|
|
670
|
-
};
|
|
671
|
-
}
|
|
672
|
-
componentDidCatch(t, n) {
|
|
673
|
-
console.error("<Await> caught the following error during render", t, n);
|
|
674
|
-
}
|
|
675
|
-
render() {
|
|
676
|
-
let {
|
|
677
|
-
children: t,
|
|
678
|
-
errorElement: n,
|
|
679
|
-
resolve: o
|
|
680
|
-
} = this.props, a = null, s = P.pending;
|
|
681
|
-
if (!(o instanceof Promise))
|
|
682
|
-
s = P.success, a = Promise.resolve(), Object.defineProperty(a, "_tracked", {
|
|
683
|
-
get: () => !0
|
|
684
|
-
}), Object.defineProperty(a, "_data", {
|
|
685
|
-
get: () => o
|
|
686
|
-
});
|
|
687
|
-
else if (this.state.error) {
|
|
688
|
-
s = P.error;
|
|
689
|
-
let i = this.state.error;
|
|
690
|
-
a = Promise.reject().catch(() => {
|
|
691
|
-
}), Object.defineProperty(a, "_tracked", {
|
|
692
|
-
get: () => !0
|
|
693
|
-
}), Object.defineProperty(a, "_error", {
|
|
694
|
-
get: () => i
|
|
695
|
-
});
|
|
696
|
-
} else o._tracked ? (a = o, s = "_error" in a ? P.error : "_data" in a ? P.success : P.pending) : (s = P.pending, Object.defineProperty(o, "_tracked", {
|
|
697
|
-
get: () => !0
|
|
698
|
-
}), a = o.then((i) => Object.defineProperty(o, "_data", {
|
|
699
|
-
get: () => i
|
|
700
|
-
}), (i) => Object.defineProperty(o, "_error", {
|
|
701
|
-
get: () => i
|
|
702
|
-
})));
|
|
703
|
-
if (s === P.error && a._error instanceof Se)
|
|
704
|
-
throw en;
|
|
705
|
-
if (s === P.error && !n)
|
|
706
|
-
throw a._error;
|
|
707
|
-
if (s === P.error)
|
|
708
|
-
return /* @__PURE__ */ r.createElement(Z.Provider, {
|
|
709
|
-
value: a,
|
|
710
|
-
children: n
|
|
711
|
-
});
|
|
712
|
-
if (s === P.success)
|
|
713
|
-
return /* @__PURE__ */ r.createElement(Z.Provider, {
|
|
714
|
-
value: a,
|
|
715
|
-
children: t
|
|
716
|
-
});
|
|
717
|
-
throw a;
|
|
718
|
-
}
|
|
719
|
-
}
|
|
720
|
-
function nn(e) {
|
|
721
|
-
let {
|
|
722
|
-
children: t
|
|
723
|
-
} = e, n = Ie(), o = typeof t == "function" ? t(n) : t;
|
|
724
|
-
return /* @__PURE__ */ r.createElement(r.Fragment, null, o);
|
|
725
|
-
}
|
|
726
|
-
function W(e, t) {
|
|
727
|
-
t === void 0 && (t = []);
|
|
728
|
-
let n = [];
|
|
729
|
-
return r.Children.forEach(e, (o, a) => {
|
|
730
|
-
if (!/* @__PURE__ */ r.isValidElement(o))
|
|
731
|
-
return;
|
|
732
|
-
let s = [...t, a];
|
|
733
|
-
if (o.type === r.Fragment) {
|
|
734
|
-
n.push.apply(n, W(o.props.children, s));
|
|
735
|
-
return;
|
|
736
|
-
}
|
|
737
|
-
o.type !== Me && (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));
|
|
738
|
-
let i = {
|
|
739
|
-
id: o.props.id || s.join("-"),
|
|
740
|
-
caseSensitive: o.props.caseSensitive,
|
|
741
|
-
element: o.props.element,
|
|
742
|
-
Component: o.props.Component,
|
|
743
|
-
index: o.props.index,
|
|
744
|
-
path: o.props.path,
|
|
745
|
-
loader: o.props.loader,
|
|
746
|
-
action: o.props.action,
|
|
747
|
-
errorElement: o.props.errorElement,
|
|
748
|
-
ErrorBoundary: o.props.ErrorBoundary,
|
|
749
|
-
hasErrorBoundary: o.props.ErrorBoundary != null || o.props.errorElement != null,
|
|
750
|
-
shouldRevalidate: o.props.shouldRevalidate,
|
|
751
|
-
handle: o.props.handle,
|
|
752
|
-
lazy: o.props.lazy
|
|
753
|
-
};
|
|
754
|
-
o.props.children && (i.children = W(o.props.children, s)), n.push(i);
|
|
755
|
-
}), n;
|
|
756
|
-
}
|
|
757
|
-
function wt(e) {
|
|
758
|
-
return ft(e);
|
|
759
|
-
}
|
|
760
|
-
function me(e) {
|
|
761
|
-
let t = {
|
|
762
|
-
// Note: this check also occurs in createRoutesFromChildren so update
|
|
763
|
-
// there if you change this -- please and thank you!
|
|
764
|
-
hasErrorBoundary: e.ErrorBoundary != null || e.errorElement != null
|
|
765
|
-
};
|
|
766
|
-
return e.Component && (process.env.NODE_ENV !== "production" && e.element && process.env.NODE_ENV !== "production" && w(!1, "You should not include both `Component` and `element` on your route - `Component` will be used."), Object.assign(t, {
|
|
767
|
-
element: /* @__PURE__ */ r.createElement(e.Component),
|
|
768
|
-
Component: void 0
|
|
769
|
-
})), e.HydrateFallback && (process.env.NODE_ENV !== "production" && e.hydrateFallbackElement && process.env.NODE_ENV !== "production" && w(!1, "You should not include both `HydrateFallback` and `hydrateFallbackElement` on your route - `HydrateFallback` will be used."), Object.assign(t, {
|
|
770
|
-
hydrateFallbackElement: /* @__PURE__ */ r.createElement(e.HydrateFallback),
|
|
771
|
-
HydrateFallback: void 0
|
|
772
|
-
})), e.ErrorBoundary && (process.env.NODE_ENV !== "production" && e.errorElement && process.env.NODE_ENV !== "production" && w(!1, "You should not include both `ErrorBoundary` and `errorElement` on your route - `ErrorBoundary` will be used."), Object.assign(t, {
|
|
773
|
-
errorElement: /* @__PURE__ */ r.createElement(e.ErrorBoundary),
|
|
774
|
-
ErrorBoundary: void 0
|
|
775
|
-
})), t;
|
|
776
|
-
}
|
|
777
|
-
function St(e, t) {
|
|
778
|
-
return Ce({
|
|
779
|
-
basename: t == null ? void 0 : t.basename,
|
|
780
|
-
future: I({}, t == null ? void 0 : t.future, {
|
|
781
|
-
v7_prependBasename: !0
|
|
782
|
-
}),
|
|
783
|
-
history: qe({
|
|
784
|
-
initialEntries: t == null ? void 0 : t.initialEntries,
|
|
785
|
-
initialIndex: t == null ? void 0 : t.initialIndex
|
|
786
|
-
}),
|
|
787
|
-
hydrationData: t == null ? void 0 : t.hydrationData,
|
|
788
|
-
routes: e,
|
|
789
|
-
mapRouteProperties: me,
|
|
790
|
-
unstable_dataStrategy: t == null ? void 0 : t.unstable_dataStrategy,
|
|
791
|
-
unstable_patchRoutesOnMiss: t == null ? void 0 : t.unstable_patchRoutesOnMiss
|
|
792
|
-
}).initialize();
|
|
793
|
-
}
|
|
794
|
-
const jn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
795
|
-
__proto__: null,
|
|
796
|
-
AbortedDeferredError: Se,
|
|
797
|
-
Await: _t,
|
|
798
|
-
MemoryRouter: gt,
|
|
799
|
-
Navigate: bt,
|
|
800
|
-
get NavigationType() {
|
|
801
|
-
return de;
|
|
802
|
-
},
|
|
803
|
-
Outlet: Rt,
|
|
804
|
-
Route: Me,
|
|
805
|
-
Router: H,
|
|
806
|
-
RouterProvider: Qt,
|
|
807
|
-
Routes: Nt,
|
|
808
|
-
UNSAFE_DataRouterContext: U,
|
|
809
|
-
UNSAFE_DataRouterStateContext: M,
|
|
810
|
-
UNSAFE_LocationContext: B,
|
|
811
|
-
UNSAFE_NavigationContext: S,
|
|
812
|
-
UNSAFE_RouteContext: C,
|
|
813
|
-
UNSAFE_mapRouteProperties: me,
|
|
814
|
-
UNSAFE_useRouteId: Fe,
|
|
815
|
-
UNSAFE_useRoutesImpl: pe,
|
|
816
|
-
createMemoryRouter: St,
|
|
817
|
-
createPath: Q,
|
|
818
|
-
createRoutesFromChildren: W,
|
|
819
|
-
createRoutesFromElements: W,
|
|
820
|
-
defer: Ge,
|
|
821
|
-
generatePath: Xe,
|
|
822
|
-
isRouteErrorResponse: we,
|
|
823
|
-
json: Qe,
|
|
824
|
-
matchPath: X,
|
|
825
|
-
matchRoutes: _e,
|
|
826
|
-
parsePath: fe,
|
|
827
|
-
redirect: Ze,
|
|
828
|
-
redirectDocument: et,
|
|
829
|
-
renderMatches: wt,
|
|
830
|
-
resolvePath: tt,
|
|
831
|
-
useActionData: vt,
|
|
832
|
-
useAsyncError: Et,
|
|
833
|
-
useAsyncValue: Ie,
|
|
834
|
-
useBlocker: Ae,
|
|
835
|
-
useHref: De,
|
|
836
|
-
useInRouterContext: V,
|
|
837
|
-
useLoaderData: ht,
|
|
838
|
-
useLocation: L,
|
|
839
|
-
useMatch: it,
|
|
840
|
-
useMatches: Ve,
|
|
841
|
-
useNavigate: te,
|
|
842
|
-
useNavigation: Ue,
|
|
843
|
-
useNavigationType: at,
|
|
844
|
-
useOutlet: Oe,
|
|
845
|
-
useOutletContext: ct,
|
|
846
|
-
useParams: dt,
|
|
847
|
-
useResolvedPath: Y,
|
|
848
|
-
useRevalidator: pt,
|
|
849
|
-
useRouteError: ke,
|
|
850
|
-
useRouteLoaderData: mt,
|
|
851
|
-
useRoutes: Pe
|
|
852
|
-
}, Symbol.toStringTag, { value: "Module" }));
|
|
853
|
-
/**
|
|
854
|
-
* React Router DOM v6.25.1
|
|
855
|
-
*
|
|
856
|
-
* Copyright (c) Remix Software Inc.
|
|
857
|
-
*
|
|
858
|
-
* This source code is licensed under the MIT license found in the
|
|
859
|
-
* LICENSE.md file in the root directory of this source tree.
|
|
860
|
-
*
|
|
861
|
-
* @license MIT
|
|
862
|
-
*/
|
|
863
|
-
function D() {
|
|
864
|
-
return D = Object.assign ? Object.assign.bind() : function(e) {
|
|
865
|
-
for (var t = 1; t < arguments.length; t++) {
|
|
866
|
-
var n = arguments[t];
|
|
867
|
-
for (var o in n)
|
|
868
|
-
Object.prototype.hasOwnProperty.call(n, o) && (e[o] = n[o]);
|
|
869
|
-
}
|
|
870
|
-
return e;
|
|
871
|
-
}, D.apply(this, arguments);
|
|
872
|
-
}
|
|
873
|
-
function Be(e, t) {
|
|
874
|
-
if (e == null) return {};
|
|
875
|
-
var n = {}, o = Object.keys(e), a, s;
|
|
876
|
-
for (s = 0; s < o.length; s++)
|
|
877
|
-
a = o[s], !(t.indexOf(a) >= 0) && (n[a] = e[a]);
|
|
878
|
-
return n;
|
|
879
|
-
}
|
|
880
|
-
const se = "get", le = "application/x-www-form-urlencoded";
|
|
881
|
-
function ve(e) {
|
|
882
|
-
return e != null && typeof e.tagName == "string";
|
|
883
|
-
}
|
|
884
|
-
function rn(e) {
|
|
885
|
-
return ve(e) && e.tagName.toLowerCase() === "button";
|
|
886
|
-
}
|
|
887
|
-
function on(e) {
|
|
888
|
-
return ve(e) && e.tagName.toLowerCase() === "form";
|
|
889
|
-
}
|
|
890
|
-
function an(e) {
|
|
891
|
-
return ve(e) && e.tagName.toLowerCase() === "input";
|
|
892
|
-
}
|
|
893
|
-
function sn(e) {
|
|
894
|
-
return !!(e.metaKey || e.altKey || e.ctrlKey || e.shiftKey);
|
|
895
|
-
}
|
|
896
|
-
function ln(e, t) {
|
|
897
|
-
return e.button === 0 && // Ignore everything but left clicks
|
|
898
|
-
(!t || t === "_self") && // Let browser handle "target=_blank" etc.
|
|
899
|
-
!sn(e);
|
|
900
|
-
}
|
|
901
|
-
function ce(e) {
|
|
902
|
-
return e === void 0 && (e = ""), new URLSearchParams(typeof e == "string" || Array.isArray(e) || e instanceof URLSearchParams ? e : Object.keys(e).reduce((t, n) => {
|
|
903
|
-
let o = e[n];
|
|
904
|
-
return t.concat(Array.isArray(o) ? o.map((a) => [n, a]) : [[n, o]]);
|
|
905
|
-
}, []));
|
|
906
|
-
}
|
|
907
|
-
function un(e, t) {
|
|
908
|
-
let n = ce(e);
|
|
909
|
-
return t && t.forEach((o, a) => {
|
|
910
|
-
n.has(a) || t.getAll(a).forEach((s) => {
|
|
911
|
-
n.append(a, s);
|
|
912
|
-
});
|
|
913
|
-
}), n;
|
|
914
|
-
}
|
|
915
|
-
let ae = null;
|
|
916
|
-
function cn() {
|
|
917
|
-
if (ae === null)
|
|
918
|
-
try {
|
|
919
|
-
new FormData(
|
|
920
|
-
document.createElement("form"),
|
|
921
|
-
// @ts-expect-error if FormData supports the submitter parameter, this will throw
|
|
922
|
-
0
|
|
923
|
-
), ae = !1;
|
|
924
|
-
} catch {
|
|
925
|
-
ae = !0;
|
|
926
|
-
}
|
|
927
|
-
return ae;
|
|
928
|
-
}
|
|
929
|
-
const dn = /* @__PURE__ */ new Set(["application/x-www-form-urlencoded", "multipart/form-data", "text/plain"]);
|
|
930
|
-
function be(e) {
|
|
931
|
-
return e != null && !dn.has(e) ? (process.env.NODE_ENV !== "production" && w(!1, '"' + e + '" is not a valid `encType` for `<Form>`/`<fetcher.Form>` ' + ('and will default to "' + le + '"')), null) : e;
|
|
932
|
-
}
|
|
933
|
-
function fn(e, t) {
|
|
934
|
-
let n, o, a, s, i;
|
|
935
|
-
if (on(e)) {
|
|
936
|
-
let u = e.getAttribute("action");
|
|
937
|
-
o = u ? T(u, t) : null, n = e.getAttribute("method") || se, a = be(e.getAttribute("enctype")) || le, s = new FormData(e);
|
|
938
|
-
} else if (rn(e) || an(e) && (e.type === "submit" || e.type === "image")) {
|
|
939
|
-
let u = e.form;
|
|
940
|
-
if (u == null)
|
|
941
|
-
throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');
|
|
942
|
-
let d = e.getAttribute("formaction") || u.getAttribute("action");
|
|
943
|
-
if (o = d ? T(d, t) : null, n = e.getAttribute("formmethod") || u.getAttribute("method") || se, a = be(e.getAttribute("formenctype")) || be(u.getAttribute("enctype")) || le, s = new FormData(u, e), !cn()) {
|
|
944
|
-
let {
|
|
945
|
-
name: l,
|
|
946
|
-
type: c,
|
|
947
|
-
value: f
|
|
948
|
-
} = e;
|
|
949
|
-
if (c === "image") {
|
|
950
|
-
let p = l ? l + "." : "";
|
|
951
|
-
s.append(p + "x", "0"), s.append(p + "y", "0");
|
|
952
|
-
} else l && s.append(l, f);
|
|
953
|
-
}
|
|
954
|
-
} else {
|
|
955
|
-
if (ve(e))
|
|
956
|
-
throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');
|
|
957
|
-
n = se, o = null, a = le, i = e;
|
|
958
|
-
}
|
|
959
|
-
return s && a === "text/plain" && (i = s, s = void 0), {
|
|
960
|
-
action: o,
|
|
961
|
-
method: n.toLowerCase(),
|
|
962
|
-
encType: a,
|
|
963
|
-
formData: s,
|
|
964
|
-
body: i
|
|
965
|
-
};
|
|
966
|
-
}
|
|
967
|
-
const pn = ["onClick", "relative", "reloadDocument", "replace", "state", "target", "to", "preventScrollReset", "unstable_viewTransition"], hn = ["aria-current", "caseSensitive", "className", "end", "style", "to", "unstable_viewTransition", "children"], mn = ["fetcherKey", "navigate", "reloadDocument", "replace", "state", "method", "action", "onSubmit", "relative", "preventScrollReset", "unstable_viewTransition"], vn = "6";
|
|
968
|
-
try {
|
|
969
|
-
window.__reactRouterVersion = vn;
|
|
970
|
-
} catch {
|
|
971
|
-
}
|
|
972
|
-
function En(e, t) {
|
|
973
|
-
return Ce({
|
|
974
|
-
basename: t == null ? void 0 : t.basename,
|
|
975
|
-
future: D({}, t == null ? void 0 : t.future, {
|
|
976
|
-
v7_prependBasename: !0
|
|
977
|
-
}),
|
|
978
|
-
history: nt({
|
|
979
|
-
window: t == null ? void 0 : t.window
|
|
980
|
-
}),
|
|
981
|
-
hydrationData: (t == null ? void 0 : t.hydrationData) || Ct(),
|
|
982
|
-
routes: e,
|
|
983
|
-
mapRouteProperties: me,
|
|
984
|
-
unstable_dataStrategy: t == null ? void 0 : t.unstable_dataStrategy,
|
|
985
|
-
unstable_patchRoutesOnMiss: t == null ? void 0 : t.unstable_patchRoutesOnMiss,
|
|
986
|
-
window: t == null ? void 0 : t.window
|
|
987
|
-
}).initialize();
|
|
988
|
-
}
|
|
989
|
-
function yn(e, t) {
|
|
990
|
-
return Ce({
|
|
991
|
-
basename: t == null ? void 0 : t.basename,
|
|
992
|
-
future: D({}, t == null ? void 0 : t.future, {
|
|
993
|
-
v7_prependBasename: !0
|
|
994
|
-
}),
|
|
995
|
-
history: rt({
|
|
996
|
-
window: t == null ? void 0 : t.window
|
|
997
|
-
}),
|
|
998
|
-
hydrationData: (t == null ? void 0 : t.hydrationData) || Ct(),
|
|
999
|
-
routes: e,
|
|
1000
|
-
mapRouteProperties: me,
|
|
1001
|
-
unstable_dataStrategy: t == null ? void 0 : t.unstable_dataStrategy,
|
|
1002
|
-
unstable_patchRoutesOnMiss: t == null ? void 0 : t.unstable_patchRoutesOnMiss,
|
|
1003
|
-
window: t == null ? void 0 : t.window
|
|
1004
|
-
}).initialize();
|
|
1005
|
-
}
|
|
1006
|
-
function Ct() {
|
|
1007
|
-
var e;
|
|
1008
|
-
let t = (e = window) == null ? void 0 : e.__staticRouterHydrationData;
|
|
1009
|
-
return t && t.errors && (t = D({}, t, {
|
|
1010
|
-
errors: gn(t.errors)
|
|
1011
|
-
})), t;
|
|
1012
|
-
}
|
|
1013
|
-
function gn(e) {
|
|
1014
|
-
if (!e) return null;
|
|
1015
|
-
let t = Object.entries(e), n = {};
|
|
1016
|
-
for (let [o, a] of t)
|
|
1017
|
-
if (a && a.__type === "RouteErrorResponse")
|
|
1018
|
-
n[o] = new ot(a.status, a.statusText, a.data, a.internal === !0);
|
|
1019
|
-
else if (a && a.__type === "Error") {
|
|
1020
|
-
if (a.__subType) {
|
|
1021
|
-
let s = window[a.__subType];
|
|
1022
|
-
if (typeof s == "function")
|
|
1023
|
-
try {
|
|
1024
|
-
let i = new s(a.message);
|
|
1025
|
-
i.stack = "", n[o] = i;
|
|
1026
|
-
} catch {
|
|
1027
|
-
}
|
|
1028
|
-
}
|
|
1029
|
-
if (n[o] == null) {
|
|
1030
|
-
let s = new Error(a.message);
|
|
1031
|
-
s.stack = "", n[o] = s;
|
|
1032
|
-
}
|
|
1033
|
-
} else
|
|
1034
|
-
n[o] = a;
|
|
1035
|
-
return n;
|
|
1036
|
-
}
|
|
1037
|
-
const Ee = /* @__PURE__ */ r.createContext({
|
|
1038
|
-
isTransitioning: !1
|
|
1039
|
-
});
|
|
1040
|
-
process.env.NODE_ENV !== "production" && (Ee.displayName = "ViewTransition");
|
|
1041
|
-
const ye = /* @__PURE__ */ r.createContext(/* @__PURE__ */ new Map());
|
|
1042
|
-
process.env.NODE_ENV !== "production" && (ye.displayName = "Fetchers");
|
|
1043
|
-
const bn = "startTransition", A = r[bn], Rn = "flushSync", Ye = At[Rn], Nn = "useId", $e = r[Nn];
|
|
1044
|
-
function _n(e) {
|
|
1045
|
-
A ? A(e) : e();
|
|
1046
|
-
}
|
|
1047
|
-
function q(e) {
|
|
1048
|
-
Ye ? Ye(e) : e();
|
|
1049
|
-
}
|
|
1050
|
-
class wn {
|
|
1051
|
-
constructor() {
|
|
1052
|
-
this.status = "pending", this.promise = new Promise((t, n) => {
|
|
1053
|
-
this.resolve = (o) => {
|
|
1054
|
-
this.status === "pending" && (this.status = "resolved", t(o));
|
|
1055
|
-
}, this.reject = (o) => {
|
|
1056
|
-
this.status === "pending" && (this.status = "rejected", n(o));
|
|
1057
|
-
};
|
|
1058
|
-
});
|
|
1059
|
-
}
|
|
1060
|
-
}
|
|
1061
|
-
function Sn(e) {
|
|
1062
|
-
let {
|
|
1063
|
-
fallbackElement: t,
|
|
1064
|
-
router: n,
|
|
1065
|
-
future: o
|
|
1066
|
-
} = e, [a, s] = r.useState(n.state), [i, u] = r.useState(), [d, l] = r.useState({
|
|
1067
|
-
isTransitioning: !1
|
|
1068
|
-
}), [c, f] = r.useState(), [p, v] = r.useState(), [g, b] = r.useState(), y = r.useRef(/* @__PURE__ */ new Map()), {
|
|
1069
|
-
v7_startTransition: _
|
|
1070
|
-
} = o || {}, h = r.useCallback((N) => {
|
|
1071
|
-
_ ? _n(N) : N();
|
|
1072
|
-
}, [_]), E = r.useCallback((N, F) => {
|
|
1073
|
-
let {
|
|
1074
|
-
deletedFetchers: x,
|
|
1075
|
-
unstable_flushSync: oe,
|
|
1076
|
-
unstable_viewTransitionOpts: K
|
|
1077
|
-
} = F;
|
|
1078
|
-
x.forEach((z) => y.current.delete(z)), N.fetchers.forEach((z, It) => {
|
|
1079
|
-
z.data !== void 0 && y.current.set(It, z.data);
|
|
1080
|
-
});
|
|
1081
|
-
let kt = n.window == null || n.window.document == null || typeof n.window.document.startViewTransition != "function";
|
|
1082
|
-
if (!K || kt) {
|
|
1083
|
-
oe ? q(() => s(N)) : h(() => s(N));
|
|
1084
|
-
return;
|
|
1085
|
-
}
|
|
1086
|
-
if (oe) {
|
|
1087
|
-
q(() => {
|
|
1088
|
-
p && (c && c.resolve(), p.skipTransition()), l({
|
|
1089
|
-
isTransitioning: !0,
|
|
1090
|
-
flushSync: !0,
|
|
1091
|
-
currentLocation: K.currentLocation,
|
|
1092
|
-
nextLocation: K.nextLocation
|
|
1093
|
-
});
|
|
1094
|
-
});
|
|
1095
|
-
let z = n.window.document.startViewTransition(() => {
|
|
1096
|
-
q(() => s(N));
|
|
1097
|
-
});
|
|
1098
|
-
z.finished.finally(() => {
|
|
1099
|
-
q(() => {
|
|
1100
|
-
f(void 0), v(void 0), u(void 0), l({
|
|
1101
|
-
isTransitioning: !1
|
|
1102
|
-
});
|
|
1103
|
-
});
|
|
1104
|
-
}), q(() => v(z));
|
|
1105
|
-
return;
|
|
1106
|
-
}
|
|
1107
|
-
p ? (c && c.resolve(), p.skipTransition(), b({
|
|
1108
|
-
state: N,
|
|
1109
|
-
currentLocation: K.currentLocation,
|
|
1110
|
-
nextLocation: K.nextLocation
|
|
1111
|
-
})) : (u(N), l({
|
|
1112
|
-
isTransitioning: !0,
|
|
1113
|
-
flushSync: !1,
|
|
1114
|
-
currentLocation: K.currentLocation,
|
|
1115
|
-
nextLocation: K.nextLocation
|
|
1116
|
-
}));
|
|
1117
|
-
}, [n.window, p, c, y, h]);
|
|
1118
|
-
r.useLayoutEffect(() => n.subscribe(E), [n, E]), r.useEffect(() => {
|
|
1119
|
-
d.isTransitioning && !d.flushSync && f(new wn());
|
|
1120
|
-
}, [d]), r.useEffect(() => {
|
|
1121
|
-
if (c && i && n.window) {
|
|
1122
|
-
let N = i, F = c.promise, x = n.window.document.startViewTransition(async () => {
|
|
1123
|
-
h(() => s(N)), await F;
|
|
1124
|
-
});
|
|
1125
|
-
x.finished.finally(() => {
|
|
1126
|
-
f(void 0), v(void 0), u(void 0), l({
|
|
1127
|
-
isTransitioning: !1
|
|
1128
|
-
});
|
|
1129
|
-
}), v(x);
|
|
1130
|
-
}
|
|
1131
|
-
}, [h, i, c, n.window]), r.useEffect(() => {
|
|
1132
|
-
c && i && a.location.key === i.location.key && c.resolve();
|
|
1133
|
-
}, [c, p, a.location, i]), r.useEffect(() => {
|
|
1134
|
-
!d.isTransitioning && g && (u(g.state), l({
|
|
1135
|
-
isTransitioning: !0,
|
|
1136
|
-
flushSync: !1,
|
|
1137
|
-
currentLocation: g.currentLocation,
|
|
1138
|
-
nextLocation: g.nextLocation
|
|
1139
|
-
}), b(void 0));
|
|
1140
|
-
}, [d.isTransitioning, g]), r.useEffect(() => {
|
|
1141
|
-
process.env.NODE_ENV !== "production" && w(t == null || !n.future.v7_partialHydration, "`<RouterProvider fallbackElement>` is deprecated when using `v7_partialHydration`, use a `HydrateFallback` component instead");
|
|
1142
|
-
}, []);
|
|
1143
|
-
let R = r.useMemo(() => ({
|
|
1144
|
-
createHref: n.createHref,
|
|
1145
|
-
encodeLocation: n.encodeLocation,
|
|
1146
|
-
go: (N) => n.navigate(N),
|
|
1147
|
-
push: (N, F, x) => n.navigate(N, {
|
|
1148
|
-
state: F,
|
|
1149
|
-
preventScrollReset: x == null ? void 0 : x.preventScrollReset
|
|
1150
|
-
}),
|
|
1151
|
-
replace: (N, F, x) => n.navigate(N, {
|
|
1152
|
-
replace: !0,
|
|
1153
|
-
state: F,
|
|
1154
|
-
preventScrollReset: x == null ? void 0 : x.preventScrollReset
|
|
1155
|
-
})
|
|
1156
|
-
}), [n]), k = n.basename || "/", J = r.useMemo(() => ({
|
|
1157
|
-
router: n,
|
|
1158
|
-
navigator: R,
|
|
1159
|
-
static: !1,
|
|
1160
|
-
basename: k
|
|
1161
|
-
}), [n, R, k]), re = r.useMemo(() => ({
|
|
1162
|
-
v7_relativeSplatPath: n.future.v7_relativeSplatPath
|
|
1163
|
-
}), [n.future.v7_relativeSplatPath]);
|
|
1164
|
-
return /* @__PURE__ */ r.createElement(r.Fragment, null, /* @__PURE__ */ r.createElement(U.Provider, {
|
|
1165
|
-
value: J
|
|
1166
|
-
}, /* @__PURE__ */ r.createElement(M.Provider, {
|
|
1167
|
-
value: a
|
|
1168
|
-
}, /* @__PURE__ */ r.createElement(ye.Provider, {
|
|
1169
|
-
value: y.current
|
|
1170
|
-
}, /* @__PURE__ */ r.createElement(Ee.Provider, {
|
|
1171
|
-
value: d
|
|
1172
|
-
}, /* @__PURE__ */ r.createElement(H, {
|
|
1173
|
-
basename: k,
|
|
1174
|
-
location: a.location,
|
|
1175
|
-
navigationType: a.historyAction,
|
|
1176
|
-
navigator: R,
|
|
1177
|
-
future: re
|
|
1178
|
-
}, a.initialized || n.future.v7_partialHydration ? /* @__PURE__ */ r.createElement(Cn, {
|
|
1179
|
-
routes: n.routes,
|
|
1180
|
-
future: n.future,
|
|
1181
|
-
state: a
|
|
1182
|
-
}) : t))))), null);
|
|
1183
|
-
}
|
|
1184
|
-
const Cn = /* @__PURE__ */ r.memo(xn);
|
|
1185
|
-
function xn(e) {
|
|
1186
|
-
let {
|
|
1187
|
-
routes: t,
|
|
1188
|
-
future: n,
|
|
1189
|
-
state: o
|
|
1190
|
-
} = e;
|
|
1191
|
-
return pe(t, void 0, o, n);
|
|
1192
|
-
}
|
|
1193
|
-
function Dn(e) {
|
|
1194
|
-
let {
|
|
1195
|
-
basename: t,
|
|
1196
|
-
children: n,
|
|
1197
|
-
future: o,
|
|
1198
|
-
window: a
|
|
1199
|
-
} = e, s = r.useRef();
|
|
1200
|
-
s.current == null && (s.current = nt({
|
|
1201
|
-
window: a,
|
|
1202
|
-
v5Compat: !0
|
|
1203
|
-
}));
|
|
1204
|
-
let i = s.current, [u, d] = r.useState({
|
|
1205
|
-
action: i.action,
|
|
1206
|
-
location: i.location
|
|
1207
|
-
}), {
|
|
1208
|
-
v7_startTransition: l
|
|
1209
|
-
} = o || {}, c = r.useCallback((f) => {
|
|
1210
|
-
l && A ? A(() => d(f)) : d(f);
|
|
1211
|
-
}, [d, l]);
|
|
1212
|
-
return r.useLayoutEffect(() => i.listen(c), [i, c]), /* @__PURE__ */ r.createElement(H, {
|
|
1213
|
-
basename: t,
|
|
1214
|
-
children: n,
|
|
1215
|
-
location: u.location,
|
|
1216
|
-
navigationType: u.action,
|
|
1217
|
-
navigator: i,
|
|
1218
|
-
future: o
|
|
1219
|
-
});
|
|
1220
|
-
}
|
|
1221
|
-
function On(e) {
|
|
1222
|
-
let {
|
|
1223
|
-
basename: t,
|
|
1224
|
-
children: n,
|
|
1225
|
-
future: o,
|
|
1226
|
-
window: a
|
|
1227
|
-
} = e, s = r.useRef();
|
|
1228
|
-
s.current == null && (s.current = rt({
|
|
1229
|
-
window: a,
|
|
1230
|
-
v5Compat: !0
|
|
1231
|
-
}));
|
|
1232
|
-
let i = s.current, [u, d] = r.useState({
|
|
1233
|
-
action: i.action,
|
|
1234
|
-
location: i.location
|
|
1235
|
-
}), {
|
|
1236
|
-
v7_startTransition: l
|
|
1237
|
-
} = o || {}, c = r.useCallback((f) => {
|
|
1238
|
-
l && A ? A(() => d(f)) : d(f);
|
|
1239
|
-
}, [d, l]);
|
|
1240
|
-
return r.useLayoutEffect(() => i.listen(c), [i, c]), /* @__PURE__ */ r.createElement(H, {
|
|
1241
|
-
basename: t,
|
|
1242
|
-
children: n,
|
|
1243
|
-
location: u.location,
|
|
1244
|
-
navigationType: u.action,
|
|
1245
|
-
navigator: i,
|
|
1246
|
-
future: o
|
|
1247
|
-
});
|
|
1248
|
-
}
|
|
1249
|
-
function xt(e) {
|
|
1250
|
-
let {
|
|
1251
|
-
basename: t,
|
|
1252
|
-
children: n,
|
|
1253
|
-
future: o,
|
|
1254
|
-
history: a
|
|
1255
|
-
} = e, [s, i] = r.useState({
|
|
1256
|
-
action: a.action,
|
|
1257
|
-
location: a.location
|
|
1258
|
-
}), {
|
|
1259
|
-
v7_startTransition: u
|
|
1260
|
-
} = o || {}, d = r.useCallback((l) => {
|
|
1261
|
-
u && A ? A(() => i(l)) : i(l);
|
|
1262
|
-
}, [i, u]);
|
|
1263
|
-
return r.useLayoutEffect(() => a.listen(d), [a, d]), /* @__PURE__ */ r.createElement(H, {
|
|
1264
|
-
basename: t,
|
|
1265
|
-
children: n,
|
|
1266
|
-
location: s.location,
|
|
1267
|
-
navigationType: s.action,
|
|
1268
|
-
navigator: a,
|
|
1269
|
-
future: o
|
|
1270
|
-
});
|
|
1271
|
-
}
|
|
1272
|
-
process.env.NODE_ENV !== "production" && (xt.displayName = "unstable_HistoryRouter");
|
|
1273
|
-
const Pn = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u", Ln = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, je = /* @__PURE__ */ r.forwardRef(function(t, n) {
|
|
1274
|
-
let {
|
|
1275
|
-
onClick: o,
|
|
1276
|
-
relative: a,
|
|
1277
|
-
reloadDocument: s,
|
|
1278
|
-
replace: i,
|
|
1279
|
-
state: u,
|
|
1280
|
-
target: d,
|
|
1281
|
-
to: l,
|
|
1282
|
-
preventScrollReset: c,
|
|
1283
|
-
unstable_viewTransition: f
|
|
1284
|
-
} = t, p = Be(t, pn), {
|
|
1285
|
-
basename: v
|
|
1286
|
-
} = r.useContext(S), g, b = !1;
|
|
1287
|
-
if (typeof l == "string" && Ln.test(l) && (g = l, Pn))
|
|
1288
|
-
try {
|
|
1289
|
-
let E = new URL(window.location.href), R = l.startsWith("//") ? new URL(E.protocol + l) : new URL(l), k = T(R.pathname, v);
|
|
1290
|
-
R.origin === E.origin && k != null ? l = k + R.search + R.hash : b = !0;
|
|
1291
|
-
} catch {
|
|
1292
|
-
process.env.NODE_ENV !== "production" && w(!1, '<Link to="' + l + '"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.');
|
|
1293
|
-
}
|
|
1294
|
-
let y = De(l, {
|
|
1295
|
-
relative: a
|
|
1296
|
-
}), _ = Lt(l, {
|
|
1297
|
-
replace: i,
|
|
1298
|
-
state: u,
|
|
1299
|
-
target: d,
|
|
1300
|
-
preventScrollReset: c,
|
|
1301
|
-
relative: a,
|
|
1302
|
-
unstable_viewTransition: f
|
|
1303
|
-
});
|
|
1304
|
-
function h(E) {
|
|
1305
|
-
o && o(E), E.defaultPrevented || _(E);
|
|
1306
|
-
}
|
|
1307
|
-
return (
|
|
1308
|
-
// eslint-disable-next-line jsx-a11y/anchor-has-content
|
|
1309
|
-
/* @__PURE__ */ r.createElement("a", D({}, p, {
|
|
1310
|
-
href: g || y,
|
|
1311
|
-
onClick: b || s ? o : h,
|
|
1312
|
-
ref: n,
|
|
1313
|
-
target: d
|
|
1314
|
-
}))
|
|
1315
|
-
);
|
|
1316
|
-
});
|
|
1317
|
-
process.env.NODE_ENV !== "production" && (je.displayName = "Link");
|
|
1318
|
-
const Dt = /* @__PURE__ */ r.forwardRef(function(t, n) {
|
|
1319
|
-
let {
|
|
1320
|
-
"aria-current": o = "page",
|
|
1321
|
-
caseSensitive: a = !1,
|
|
1322
|
-
className: s = "",
|
|
1323
|
-
end: i = !1,
|
|
1324
|
-
style: u,
|
|
1325
|
-
to: d,
|
|
1326
|
-
unstable_viewTransition: l,
|
|
1327
|
-
children: c
|
|
1328
|
-
} = t, f = Be(t, hn), p = Y(d, {
|
|
1329
|
-
relative: f.relative
|
|
1330
|
-
}), v = L(), g = r.useContext(M), {
|
|
1331
|
-
navigator: b,
|
|
1332
|
-
basename: y
|
|
1333
|
-
} = r.useContext(S), _ = g != null && // Conditional usage is OK here because the usage of a data router is static
|
|
1334
|
-
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
1335
|
-
Vt(p) && l === !0, h = b.encodeLocation ? b.encodeLocation(p).pathname : p.pathname, E = v.pathname, R = g && g.navigation && g.navigation.location ? g.navigation.location.pathname : null;
|
|
1336
|
-
a || (E = E.toLowerCase(), R = R ? R.toLowerCase() : null, h = h.toLowerCase()), R && y && (R = T(R, y) || R);
|
|
1337
|
-
const k = h !== "/" && h.endsWith("/") ? h.length - 1 : h.length;
|
|
1338
|
-
let J = E === h || !i && E.startsWith(h) && E.charAt(k) === "/", re = R != null && (R === h || !i && R.startsWith(h) && R.charAt(h.length) === "/"), N = {
|
|
1339
|
-
isActive: J,
|
|
1340
|
-
isPending: re,
|
|
1341
|
-
isTransitioning: _
|
|
1342
|
-
}, F = J ? o : void 0, x;
|
|
1343
|
-
typeof s == "function" ? x = s(N) : x = [s, J ? "active" : null, re ? "pending" : null, _ ? "transitioning" : null].filter(Boolean).join(" ");
|
|
1344
|
-
let oe = typeof u == "function" ? u(N) : u;
|
|
1345
|
-
return /* @__PURE__ */ r.createElement(je, D({}, f, {
|
|
1346
|
-
"aria-current": F,
|
|
1347
|
-
className: x,
|
|
1348
|
-
ref: n,
|
|
1349
|
-
style: oe,
|
|
1350
|
-
to: d,
|
|
1351
|
-
unstable_viewTransition: l
|
|
1352
|
-
}), typeof c == "function" ? c(N) : c);
|
|
1353
|
-
});
|
|
1354
|
-
process.env.NODE_ENV !== "production" && (Dt.displayName = "NavLink");
|
|
1355
|
-
const He = /* @__PURE__ */ r.forwardRef((e, t) => {
|
|
1356
|
-
let {
|
|
1357
|
-
fetcherKey: n,
|
|
1358
|
-
navigate: o,
|
|
1359
|
-
reloadDocument: a,
|
|
1360
|
-
replace: s,
|
|
1361
|
-
state: i,
|
|
1362
|
-
method: u = se,
|
|
1363
|
-
action: d,
|
|
1364
|
-
onSubmit: l,
|
|
1365
|
-
relative: c,
|
|
1366
|
-
preventScrollReset: f,
|
|
1367
|
-
unstable_viewTransition: p
|
|
1368
|
-
} = e, v = Be(e, mn), g = ze(), b = Ft(d, {
|
|
1369
|
-
relative: c
|
|
1370
|
-
}), y = u.toLowerCase() === "get" ? "get" : "post", _ = (h) => {
|
|
1371
|
-
if (l && l(h), h.defaultPrevented) return;
|
|
1372
|
-
h.preventDefault();
|
|
1373
|
-
let E = h.nativeEvent.submitter, R = (E == null ? void 0 : E.getAttribute("formmethod")) || u;
|
|
1374
|
-
g(E || h.currentTarget, {
|
|
1375
|
-
fetcherKey: n,
|
|
1376
|
-
method: R,
|
|
1377
|
-
navigate: o,
|
|
1378
|
-
replace: s,
|
|
1379
|
-
state: i,
|
|
1380
|
-
relative: c,
|
|
1381
|
-
preventScrollReset: f,
|
|
1382
|
-
unstable_viewTransition: p
|
|
1383
|
-
});
|
|
1384
|
-
};
|
|
1385
|
-
return /* @__PURE__ */ r.createElement("form", D({
|
|
1386
|
-
ref: t,
|
|
1387
|
-
method: y,
|
|
1388
|
-
action: b,
|
|
1389
|
-
onSubmit: a ? l : _
|
|
1390
|
-
}, v));
|
|
1391
|
-
});
|
|
1392
|
-
process.env.NODE_ENV !== "production" && (He.displayName = "Form");
|
|
1393
|
-
function Ot(e) {
|
|
1394
|
-
let {
|
|
1395
|
-
getKey: t,
|
|
1396
|
-
storageKey: n
|
|
1397
|
-
} = e;
|
|
1398
|
-
return Ut({
|
|
1399
|
-
getKey: t,
|
|
1400
|
-
storageKey: n
|
|
1401
|
-
}), null;
|
|
1402
|
-
}
|
|
1403
|
-
process.env.NODE_ENV !== "production" && (Ot.displayName = "ScrollRestoration");
|
|
1404
|
-
var $;
|
|
1405
|
-
(function(e) {
|
|
1406
|
-
e.UseScrollRestoration = "useScrollRestoration", e.UseSubmit = "useSubmit", e.UseSubmitFetcher = "useSubmitFetcher", e.UseFetcher = "useFetcher", e.useViewTransitionState = "useViewTransitionState";
|
|
1407
|
-
})($ || ($ = {}));
|
|
1408
|
-
var ee;
|
|
1409
|
-
(function(e) {
|
|
1410
|
-
e.UseFetcher = "useFetcher", e.UseFetchers = "useFetchers", e.UseScrollRestoration = "useScrollRestoration";
|
|
1411
|
-
})(ee || (ee = {}));
|
|
1412
|
-
function Pt(e) {
|
|
1413
|
-
return e + " must be used within a data router. See https://reactrouter.com/routers/picking-a-router.";
|
|
1414
|
-
}
|
|
1415
|
-
function ge(e) {
|
|
1416
|
-
let t = r.useContext(U);
|
|
1417
|
-
return t || (process.env.NODE_ENV !== "production" ? m(!1, Pt(e)) : m(!1)), t;
|
|
1418
|
-
}
|
|
1419
|
-
function Ke(e) {
|
|
1420
|
-
let t = r.useContext(M);
|
|
1421
|
-
return t || (process.env.NODE_ENV !== "production" ? m(!1, Pt(e)) : m(!1)), t;
|
|
1422
|
-
}
|
|
1423
|
-
function Lt(e, t) {
|
|
1424
|
-
let {
|
|
1425
|
-
target: n,
|
|
1426
|
-
replace: o,
|
|
1427
|
-
state: a,
|
|
1428
|
-
preventScrollReset: s,
|
|
1429
|
-
relative: i,
|
|
1430
|
-
unstable_viewTransition: u
|
|
1431
|
-
} = t === void 0 ? {} : t, d = te(), l = L(), c = Y(e, {
|
|
1432
|
-
relative: i
|
|
1433
|
-
});
|
|
1434
|
-
return r.useCallback((f) => {
|
|
1435
|
-
if (ln(f, n)) {
|
|
1436
|
-
f.preventDefault();
|
|
1437
|
-
let p = o !== void 0 ? o : Q(l) === Q(c);
|
|
1438
|
-
d(e, {
|
|
1439
|
-
replace: p,
|
|
1440
|
-
state: a,
|
|
1441
|
-
preventScrollReset: s,
|
|
1442
|
-
relative: i,
|
|
1443
|
-
unstable_viewTransition: u
|
|
1444
|
-
});
|
|
1445
|
-
}
|
|
1446
|
-
}, [l, d, c, o, a, n, e, s, i, u]);
|
|
1447
|
-
}
|
|
1448
|
-
function Tn(e) {
|
|
1449
|
-
process.env.NODE_ENV !== "production" && w(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.");
|
|
1450
|
-
let t = r.useRef(ce(e)), n = r.useRef(!1), o = L(), a = r.useMemo(() => (
|
|
1451
|
-
// Only merge in the defaults if we haven't yet called setSearchParams.
|
|
1452
|
-
// Once we call that we want those to take precedence, otherwise you can't
|
|
1453
|
-
// remove a param with setSearchParams({}) if it has an initial value
|
|
1454
|
-
un(o.search, n.current ? null : t.current)
|
|
1455
|
-
), [o.search]), s = te(), i = r.useCallback((u, d) => {
|
|
1456
|
-
const l = ce(typeof u == "function" ? u(a) : u);
|
|
1457
|
-
n.current = !0, s("?" + l, d);
|
|
1458
|
-
}, [s, a]);
|
|
1459
|
-
return [a, i];
|
|
1460
|
-
}
|
|
1461
|
-
function Fn() {
|
|
1462
|
-
if (typeof document > "u")
|
|
1463
|
-
throw new Error("You are calling submit during the server render. Try calling submit within a `useEffect` or callback instead.");
|
|
1464
|
-
}
|
|
1465
|
-
let Un = 0, Tt = () => "__" + String(++Un) + "__";
|
|
1466
|
-
function ze() {
|
|
1467
|
-
let {
|
|
1468
|
-
router: e
|
|
1469
|
-
} = ge($.UseSubmit), {
|
|
1470
|
-
basename: t
|
|
1471
|
-
} = r.useContext(S), n = Fe();
|
|
1472
|
-
return r.useCallback(function(o, a) {
|
|
1473
|
-
a === void 0 && (a = {}), Fn();
|
|
1474
|
-
let {
|
|
1475
|
-
action: s,
|
|
1476
|
-
method: i,
|
|
1477
|
-
encType: u,
|
|
1478
|
-
formData: d,
|
|
1479
|
-
body: l
|
|
1480
|
-
} = fn(o, t);
|
|
1481
|
-
if (a.navigate === !1) {
|
|
1482
|
-
let c = a.fetcherKey || Tt();
|
|
1483
|
-
e.fetch(c, n, a.action || s, {
|
|
1484
|
-
preventScrollReset: a.preventScrollReset,
|
|
1485
|
-
formData: d,
|
|
1486
|
-
body: l,
|
|
1487
|
-
formMethod: a.method || i,
|
|
1488
|
-
formEncType: a.encType || u,
|
|
1489
|
-
unstable_flushSync: a.unstable_flushSync
|
|
1490
|
-
});
|
|
1491
|
-
} else
|
|
1492
|
-
e.navigate(a.action || s, {
|
|
1493
|
-
preventScrollReset: a.preventScrollReset,
|
|
1494
|
-
formData: d,
|
|
1495
|
-
body: l,
|
|
1496
|
-
formMethod: a.method || i,
|
|
1497
|
-
formEncType: a.encType || u,
|
|
1498
|
-
replace: a.replace,
|
|
1499
|
-
state: a.state,
|
|
1500
|
-
fromRouteId: n,
|
|
1501
|
-
unstable_flushSync: a.unstable_flushSync,
|
|
1502
|
-
unstable_viewTransition: a.unstable_viewTransition
|
|
1503
|
-
});
|
|
1504
|
-
}, [e, t, n]);
|
|
1505
|
-
}
|
|
1506
|
-
function Ft(e, t) {
|
|
1507
|
-
let {
|
|
1508
|
-
relative: n
|
|
1509
|
-
} = t === void 0 ? {} : t, {
|
|
1510
|
-
basename: o
|
|
1511
|
-
} = r.useContext(S), a = r.useContext(C);
|
|
1512
|
-
a || (process.env.NODE_ENV !== "production" ? m(!1, "useFormAction must be used inside a RouteContext") : m(!1));
|
|
1513
|
-
let [s] = a.matches.slice(-1), i = D({}, Y(e || ".", {
|
|
1514
|
-
relative: n
|
|
1515
|
-
})), u = L();
|
|
1516
|
-
if (e == null) {
|
|
1517
|
-
i.search = u.search;
|
|
1518
|
-
let d = new URLSearchParams(i.search);
|
|
1519
|
-
d.has("index") && d.get("index") === "" && (d.delete("index"), i.search = d.toString() ? "?" + d.toString() : "");
|
|
1520
|
-
}
|
|
1521
|
-
return (!e || e === ".") && s.route.index && (i.search = i.search ? i.search.replace(/^\?/, "?index&") : "?index"), o !== "/" && (i.pathname = i.pathname === "/" ? o : G([o, i.pathname])), Q(i);
|
|
1522
|
-
}
|
|
1523
|
-
function Vn(e) {
|
|
1524
|
-
var t;
|
|
1525
|
-
let {
|
|
1526
|
-
key: n
|
|
1527
|
-
} = e === void 0 ? {} : e, {
|
|
1528
|
-
router: o
|
|
1529
|
-
} = ge($.UseFetcher), a = Ke(ee.UseFetcher), s = r.useContext(ye), i = r.useContext(C), u = (t = i.matches[i.matches.length - 1]) == null ? void 0 : t.route.id;
|
|
1530
|
-
s || (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));
|
|
1531
|
-
let d = $e ? $e() : "", [l, c] = r.useState(n || d);
|
|
1532
|
-
n && n !== l ? c(n) : l || c(Tt()), r.useEffect(() => (o.getFetcher(l), () => {
|
|
1533
|
-
o.deleteFetcher(l);
|
|
1534
|
-
}), [o, l]);
|
|
1535
|
-
let f = r.useCallback((h, E) => {
|
|
1536
|
-
u || (process.env.NODE_ENV !== "production" ? m(!1, "No routeId available for fetcher.load()") : m(!1)), o.fetch(l, u, h, E);
|
|
1537
|
-
}, [l, u, o]), p = ze(), v = r.useCallback((h, E) => {
|
|
1538
|
-
p(h, D({}, E, {
|
|
1539
|
-
navigate: !1,
|
|
1540
|
-
fetcherKey: l
|
|
1541
|
-
}));
|
|
1542
|
-
}, [l, p]), g = r.useMemo(() => {
|
|
1543
|
-
let h = /* @__PURE__ */ r.forwardRef((E, R) => /* @__PURE__ */ r.createElement(He, D({}, E, {
|
|
1544
|
-
navigate: !1,
|
|
1545
|
-
fetcherKey: l,
|
|
1546
|
-
ref: R
|
|
1547
|
-
})));
|
|
1548
|
-
return process.env.NODE_ENV !== "production" && (h.displayName = "fetcher.Form"), h;
|
|
1549
|
-
}, [l]), b = a.fetchers.get(l) || Ht, y = s.get(l);
|
|
1550
|
-
return r.useMemo(() => D({
|
|
1551
|
-
Form: g,
|
|
1552
|
-
submit: v,
|
|
1553
|
-
load: f
|
|
1554
|
-
}, b, {
|
|
1555
|
-
data: y
|
|
1556
|
-
}), [g, v, f, b, y]);
|
|
1557
|
-
}
|
|
1558
|
-
function kn() {
|
|
1559
|
-
let e = Ke(ee.UseFetchers);
|
|
1560
|
-
return Array.from(e.fetchers.entries()).map((t) => {
|
|
1561
|
-
let [n, o] = t;
|
|
1562
|
-
return D({}, o, {
|
|
1563
|
-
key: n
|
|
1564
|
-
});
|
|
1565
|
-
});
|
|
1566
|
-
}
|
|
1567
|
-
const Je = "react-router-scroll-positions";
|
|
1568
|
-
let ie = {};
|
|
1569
|
-
function Ut(e) {
|
|
1570
|
-
let {
|
|
1571
|
-
getKey: t,
|
|
1572
|
-
storageKey: n
|
|
1573
|
-
} = e === void 0 ? {} : e, {
|
|
1574
|
-
router: o
|
|
1575
|
-
} = ge($.UseScrollRestoration), {
|
|
1576
|
-
restoreScrollPosition: a,
|
|
1577
|
-
preventScrollReset: s
|
|
1578
|
-
} = Ke(ee.UseScrollRestoration), {
|
|
1579
|
-
basename: i
|
|
1580
|
-
} = r.useContext(S), u = L(), d = Ve(), l = Ue();
|
|
1581
|
-
r.useEffect(() => (window.history.scrollRestoration = "manual", () => {
|
|
1582
|
-
window.history.scrollRestoration = "auto";
|
|
1583
|
-
}), []), An(r.useCallback(() => {
|
|
1584
|
-
if (l.state === "idle") {
|
|
1585
|
-
let c = (t ? t(u, d) : null) || u.key;
|
|
1586
|
-
ie[c] = window.scrollY;
|
|
1587
|
-
}
|
|
1588
|
-
try {
|
|
1589
|
-
sessionStorage.setItem(n || Je, JSON.stringify(ie));
|
|
1590
|
-
} catch (c) {
|
|
1591
|
-
process.env.NODE_ENV !== "production" && w(!1, "Failed to save scroll positions in sessionStorage, <ScrollRestoration /> will not work properly (" + c + ").");
|
|
1592
|
-
}
|
|
1593
|
-
window.history.scrollRestoration = "auto";
|
|
1594
|
-
}, [n, t, l.state, u, d])), typeof document < "u" && (r.useLayoutEffect(() => {
|
|
1595
|
-
try {
|
|
1596
|
-
let c = sessionStorage.getItem(n || Je);
|
|
1597
|
-
c && (ie = JSON.parse(c));
|
|
1598
|
-
} catch {
|
|
1599
|
-
}
|
|
1600
|
-
}, [n]), r.useLayoutEffect(() => {
|
|
1601
|
-
let c = t && i !== "/" ? (p, v) => t(
|
|
1602
|
-
// Strip the basename to match useLocation()
|
|
1603
|
-
D({}, p, {
|
|
1604
|
-
pathname: T(p.pathname, i) || p.pathname
|
|
1605
|
-
}),
|
|
1606
|
-
v
|
|
1607
|
-
) : t, f = o == null ? void 0 : o.enableScrollRestoration(ie, () => window.scrollY, c);
|
|
1608
|
-
return () => f && f();
|
|
1609
|
-
}, [o, i, t]), r.useLayoutEffect(() => {
|
|
1610
|
-
if (a !== !1) {
|
|
1611
|
-
if (typeof a == "number") {
|
|
1612
|
-
window.scrollTo(0, a);
|
|
1613
|
-
return;
|
|
1614
|
-
}
|
|
1615
|
-
if (u.hash) {
|
|
1616
|
-
let c = document.getElementById(decodeURIComponent(u.hash.slice(1)));
|
|
1617
|
-
if (c) {
|
|
1618
|
-
c.scrollIntoView();
|
|
1619
|
-
return;
|
|
1620
|
-
}
|
|
1621
|
-
}
|
|
1622
|
-
s !== !0 && window.scrollTo(0, 0);
|
|
1623
|
-
}
|
|
1624
|
-
}, [u, a, s]));
|
|
1625
|
-
}
|
|
1626
|
-
function In(e, t) {
|
|
1627
|
-
let {
|
|
1628
|
-
capture: n
|
|
1629
|
-
} = t || {};
|
|
1630
|
-
r.useEffect(() => {
|
|
1631
|
-
let o = n != null ? {
|
|
1632
|
-
capture: n
|
|
1633
|
-
} : void 0;
|
|
1634
|
-
return window.addEventListener("beforeunload", e, o), () => {
|
|
1635
|
-
window.removeEventListener("beforeunload", e, o);
|
|
1636
|
-
};
|
|
1637
|
-
}, [e, n]);
|
|
1638
|
-
}
|
|
1639
|
-
function An(e, t) {
|
|
1640
|
-
let {
|
|
1641
|
-
capture: n
|
|
1642
|
-
} = {};
|
|
1643
|
-
r.useEffect(() => {
|
|
1644
|
-
let o = n != null ? {
|
|
1645
|
-
capture: n
|
|
1646
|
-
} : void 0;
|
|
1647
|
-
return window.addEventListener("pagehide", e, o), () => {
|
|
1648
|
-
window.removeEventListener("pagehide", e, o);
|
|
1649
|
-
};
|
|
1650
|
-
}, [e, n]);
|
|
1651
|
-
}
|
|
1652
|
-
function Mn(e) {
|
|
1653
|
-
let {
|
|
1654
|
-
when: t,
|
|
1655
|
-
message: n
|
|
1656
|
-
} = e, o = Ae(t);
|
|
1657
|
-
r.useEffect(() => {
|
|
1658
|
-
o.state === "blocked" && (window.confirm(n) ? setTimeout(o.proceed, 0) : o.reset());
|
|
1659
|
-
}, [o, n]), r.useEffect(() => {
|
|
1660
|
-
o.state === "blocked" && !t && o.reset();
|
|
1661
|
-
}, [o, t]);
|
|
1662
|
-
}
|
|
1663
|
-
function Vt(e, t) {
|
|
1664
|
-
t === void 0 && (t = {});
|
|
1665
|
-
let n = r.useContext(Ee);
|
|
1666
|
-
n == null && (process.env.NODE_ENV !== "production" ? m(!1, "`unstable_useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?") : m(!1));
|
|
1667
|
-
let {
|
|
1668
|
-
basename: o
|
|
1669
|
-
} = ge($.useViewTransitionState), a = Y(e, {
|
|
1670
|
-
relative: t.relative
|
|
1671
|
-
});
|
|
1672
|
-
if (!n.isTransitioning)
|
|
1673
|
-
return !1;
|
|
1674
|
-
let s = T(n.currentLocation.pathname, o) || n.currentLocation.pathname, i = T(n.nextLocation.pathname, o) || n.nextLocation.pathname;
|
|
1675
|
-
return X(a.pathname, i) != null || X(a.pathname, s) != null;
|
|
1676
|
-
}
|
|
1677
|
-
const Hn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1678
|
-
__proto__: null,
|
|
1679
|
-
AbortedDeferredError: Se,
|
|
1680
|
-
Await: _t,
|
|
1681
|
-
BrowserRouter: Dn,
|
|
1682
|
-
Form: He,
|
|
1683
|
-
HashRouter: On,
|
|
1684
|
-
Link: je,
|
|
1685
|
-
MemoryRouter: gt,
|
|
1686
|
-
NavLink: Dt,
|
|
1687
|
-
Navigate: bt,
|
|
1688
|
-
get NavigationType() {
|
|
1689
|
-
return de;
|
|
1690
|
-
},
|
|
1691
|
-
Outlet: Rt,
|
|
1692
|
-
Route: Me,
|
|
1693
|
-
Router: H,
|
|
1694
|
-
RouterProvider: Sn,
|
|
1695
|
-
Routes: Nt,
|
|
1696
|
-
ScrollRestoration: Ot,
|
|
1697
|
-
UNSAFE_DataRouterContext: U,
|
|
1698
|
-
UNSAFE_DataRouterStateContext: M,
|
|
1699
|
-
UNSAFE_ErrorResponseImpl: ot,
|
|
1700
|
-
UNSAFE_FetchersContext: ye,
|
|
1701
|
-
UNSAFE_LocationContext: B,
|
|
1702
|
-
UNSAFE_NavigationContext: S,
|
|
1703
|
-
UNSAFE_RouteContext: C,
|
|
1704
|
-
UNSAFE_ViewTransitionContext: Ee,
|
|
1705
|
-
UNSAFE_useRouteId: Fe,
|
|
1706
|
-
UNSAFE_useScrollRestoration: Ut,
|
|
1707
|
-
createBrowserRouter: En,
|
|
1708
|
-
createHashRouter: yn,
|
|
1709
|
-
createMemoryRouter: St,
|
|
1710
|
-
createPath: Q,
|
|
1711
|
-
createRoutesFromChildren: W,
|
|
1712
|
-
createRoutesFromElements: W,
|
|
1713
|
-
createSearchParams: ce,
|
|
1714
|
-
defer: Ge,
|
|
1715
|
-
generatePath: Xe,
|
|
1716
|
-
isRouteErrorResponse: we,
|
|
1717
|
-
json: Qe,
|
|
1718
|
-
matchPath: X,
|
|
1719
|
-
matchRoutes: _e,
|
|
1720
|
-
parsePath: fe,
|
|
1721
|
-
redirect: Ze,
|
|
1722
|
-
redirectDocument: et,
|
|
1723
|
-
renderMatches: wt,
|
|
1724
|
-
resolvePath: tt,
|
|
1725
|
-
unstable_HistoryRouter: xt,
|
|
1726
|
-
unstable_usePrompt: Mn,
|
|
1727
|
-
unstable_useViewTransitionState: Vt,
|
|
1728
|
-
useActionData: vt,
|
|
1729
|
-
useAsyncError: Et,
|
|
1730
|
-
useAsyncValue: Ie,
|
|
1731
|
-
useBeforeUnload: In,
|
|
1732
|
-
useBlocker: Ae,
|
|
1733
|
-
useFetcher: Vn,
|
|
1734
|
-
useFetchers: kn,
|
|
1735
|
-
useFormAction: Ft,
|
|
1736
|
-
useHref: De,
|
|
1737
|
-
useInRouterContext: V,
|
|
1738
|
-
useLinkClickHandler: Lt,
|
|
1739
|
-
useLoaderData: ht,
|
|
1740
|
-
useLocation: L,
|
|
1741
|
-
useMatch: it,
|
|
1742
|
-
useMatches: Ve,
|
|
1743
|
-
useNavigate: te,
|
|
1744
|
-
useNavigation: Ue,
|
|
1745
|
-
useNavigationType: at,
|
|
1746
|
-
useOutlet: Oe,
|
|
1747
|
-
useOutletContext: ct,
|
|
1748
|
-
useParams: dt,
|
|
1749
|
-
useResolvedPath: Y,
|
|
1750
|
-
useRevalidator: pt,
|
|
1751
|
-
useRouteError: ke,
|
|
1752
|
-
useRouteLoaderData: mt,
|
|
1753
|
-
useRoutes: Pe,
|
|
1754
|
-
useSearchParams: Tn,
|
|
1755
|
-
useSubmit: ze
|
|
1756
|
-
}, Symbol.toStringTag, { value: "Module" }));
|
|
1757
|
-
export {
|
|
1758
|
-
je as L,
|
|
1759
|
-
Dt as N,
|
|
1760
|
-
Rt as O,
|
|
1761
|
-
Sn as R,
|
|
1762
|
-
te as a,
|
|
1763
|
-
L as b,
|
|
1764
|
-
dt as c,
|
|
1765
|
-
ke as d,
|
|
1766
|
-
jn as e,
|
|
1767
|
-
Hn as f,
|
|
1768
|
-
Ue as g,
|
|
1769
|
-
Tn as u
|
|
1770
|
-
};
|
|
1771
|
-
//# sourceMappingURL=index-BG0g4WW0.js.map
|