zudoku 0.0.0-ee328ec → 0.0.0-efc60ba6
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 +2 -2
- package/cli.js +8 -2
- package/dist/app/ZuploBuildConfig.d.ts +11 -121
- package/dist/app/ZuploBuildConfig.js +8 -8
- package/dist/app/ZuploBuildConfig.js.map +1 -1
- package/dist/app/demo.js +21 -5
- package/dist/app/demo.js.map +1 -1
- package/dist/app/entry.client.d.ts +0 -2
- package/dist/app/entry.client.js +0 -2
- package/dist/app/entry.client.js.map +1 -1
- package/dist/app/entry.server.d.ts +0 -2
- package/dist/app/entry.server.js +0 -2
- package/dist/app/entry.server.js.map +1 -1
- package/dist/app/env.d.ts +7 -7
- package/dist/app/env.js +8 -0
- package/dist/app/env.js.map +1 -1
- package/dist/app/main.d.ts +2 -1
- package/dist/app/main.js +26 -45
- package/dist/app/main.js.map +1 -1
- package/dist/app/standalone.js +7 -6
- package/dist/app/standalone.js.map +1 -1
- package/dist/cli/build/handler.js +9 -1
- package/dist/cli/build/handler.js.map +1 -1
- package/dist/config/config.d.ts +14 -2
- 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 -4
- package/dist/config/loader.js +91 -15
- package/dist/config/loader.js.map +1 -1
- package/dist/config/validators/BuildSchema.d.ts +20 -44
- package/dist/config/validators/BuildSchema.js +8 -14
- package/dist/config/validators/BuildSchema.js.map +1 -1
- package/dist/config/validators/InputNavigationSchema.d.ts +7460 -0
- package/dist/config/validators/InputNavigationSchema.js +74 -0
- package/dist/config/validators/InputNavigationSchema.js.map +1 -0
- package/dist/config/validators/InputNavigationSchema.test-d.js +145 -0
- package/dist/config/validators/InputNavigationSchema.test-d.js.map +1 -0
- package/dist/config/validators/NavigationSchema.d.ts +44 -0
- package/dist/config/validators/NavigationSchema.js +98 -0
- package/dist/config/validators/NavigationSchema.js.map +1 -0
- package/dist/config/validators/ProtectedRoutesSchema.d.ts +12 -0
- package/dist/config/validators/ProtectedRoutesSchema.js +19 -0
- package/dist/config/validators/ProtectedRoutesSchema.js.map +1 -0
- package/dist/config/validators/icon-types.d.ts +2 -1
- package/dist/config/validators/icon-types.js +1829 -1
- package/dist/config/validators/icon-types.js.map +1 -1
- package/dist/config/validators/validate.d.ts +596 -2810
- package/dist/config/validators/validate.js +438 -16
- package/dist/config/validators/validate.js.map +1 -1
- package/dist/config/validators/validate.test.d.ts +1 -0
- package/dist/config/validators/validate.test.js +141 -0
- package/dist/config/validators/validate.test.js.map +1 -0
- package/dist/index.d.ts +6 -3
- package/dist/index.js +3 -0
- package/dist/index.js.map +1 -1
- package/dist/lib/auth/issuer.d.ts +2 -0
- package/dist/lib/auth/issuer.js +37 -0
- package/dist/lib/auth/issuer.js.map +1 -0
- package/dist/lib/auth/issuer.test.d.ts +1 -0
- package/dist/lib/auth/issuer.test.js +94 -0
- package/dist/lib/auth/issuer.test.js.map +1 -0
- package/dist/lib/authentication/AuthenticationPlugin.d.ts +2 -2
- package/dist/lib/authentication/AuthenticationPlugin.js +1 -1
- package/dist/lib/authentication/AuthenticationPlugin.js.map +1 -1
- package/dist/lib/authentication/authentication.d.ts +4 -4
- package/dist/lib/authentication/components/CallbackHandler.js +12 -10
- package/dist/lib/authentication/components/CallbackHandler.js.map +1 -1
- package/dist/lib/authentication/components/OAuthErrorPage.d.ts +3 -0
- package/dist/lib/authentication/components/OAuthErrorPage.js +99 -0
- package/dist/lib/authentication/components/OAuthErrorPage.js.map +1 -0
- package/dist/lib/authentication/components/SignIn.js +4 -3
- package/dist/lib/authentication/components/SignIn.js.map +1 -1
- package/dist/lib/authentication/errors.d.ts +6 -12
- package/dist/lib/authentication/errors.js +2 -1
- package/dist/lib/authentication/errors.js.map +1 -1
- package/dist/lib/authentication/hook.d.ts +7 -0
- package/dist/lib/authentication/hook.js.map +1 -1
- package/dist/lib/authentication/providers/auth0.js +1 -1
- package/dist/lib/authentication/providers/auth0.js.map +1 -1
- package/dist/lib/authentication/providers/azureb2c.d.ts +28 -0
- package/dist/lib/authentication/providers/azureb2c.js +147 -0
- package/dist/lib/authentication/providers/azureb2c.js.map +1 -0
- package/dist/lib/authentication/providers/clerk.js +66 -54
- package/dist/lib/authentication/providers/clerk.js.map +1 -1
- package/dist/lib/authentication/providers/openid.d.ts +12 -14
- package/dist/lib/authentication/providers/openid.js +62 -27
- package/dist/lib/authentication/providers/openid.js.map +1 -1
- package/dist/lib/authentication/providers/supabase.js +5 -14
- package/dist/lib/authentication/providers/supabase.js.map +1 -1
- package/dist/lib/authentication/state.d.ts +6 -5
- package/dist/lib/authentication/state.js +19 -6
- package/dist/lib/authentication/state.js.map +1 -1
- package/dist/lib/components/Autocomplete.js +3 -3
- package/dist/lib/components/Autocomplete.js.map +1 -1
- package/dist/lib/components/Banner.js +2 -2
- package/dist/lib/components/Banner.js.map +1 -1
- package/dist/lib/components/BuildCheck.d.ts +2 -1
- package/dist/lib/components/BuildCheck.js +3 -4
- package/dist/lib/components/BuildCheck.js.map +1 -1
- package/dist/lib/components/CategoryHeading.js +1 -1
- package/dist/lib/components/CategoryHeading.js.map +1 -1
- package/dist/lib/components/ErrorPage.js +2 -2
- package/dist/lib/components/ErrorPage.js.map +1 -1
- package/dist/lib/components/Footer.js +6 -6
- package/dist/lib/components/Footer.js.map +1 -1
- package/dist/lib/components/Framed.d.ts +7 -0
- package/dist/lib/components/Framed.js +26 -0
- package/dist/lib/components/Framed.js.map +1 -0
- package/dist/lib/components/Header.js +24 -15
- package/dist/lib/components/Header.js.map +1 -1
- package/dist/lib/components/Heading.d.ts +6 -2
- package/dist/lib/components/Heading.js +7 -2
- package/dist/lib/components/Heading.js.map +1 -1
- package/dist/lib/components/InlineCode.js +1 -1
- package/dist/lib/components/InlineCode.js.map +1 -1
- package/dist/lib/components/Layout.js +2 -2
- package/dist/lib/components/Layout.js.map +1 -1
- package/dist/lib/components/Main.js +5 -5
- package/dist/lib/components/Main.js.map +1 -1
- package/dist/lib/components/Markdown.d.ts +3 -2
- package/dist/lib/components/Markdown.js +14 -16
- 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/PageProgress.d.ts +1 -0
- package/dist/lib/components/PageProgress.js +20 -0
- package/dist/lib/components/PageProgress.js.map +1 -0
- package/dist/lib/components/Pagination.js +1 -1
- package/dist/lib/components/Pagination.js.map +1 -1
- package/dist/lib/components/Search.js +1 -1
- package/dist/lib/components/Search.js.map +1 -1
- package/dist/lib/components/Slot.d.ts +17 -0
- package/dist/lib/components/Slot.js +24 -0
- package/dist/lib/components/Slot.js.map +1 -0
- package/dist/lib/components/Slot.test.d.ts +1 -0
- package/dist/lib/components/Slot.test.js +168 -0
- package/dist/lib/components/Slot.test.js.map +1 -0
- package/dist/lib/components/StatusPage.js +4 -0
- package/dist/lib/components/StatusPage.js.map +1 -1
- package/dist/lib/components/TopNavigation.d.ts +7 -6
- package/dist/lib/components/TopNavigation.js +52 -54
- package/dist/lib/components/TopNavigation.js.map +1 -1
- package/dist/lib/components/Typography.d.ts +5 -0
- package/dist/lib/components/Typography.js +8 -0
- package/dist/lib/components/Typography.js.map +1 -0
- package/dist/lib/components/Zudoku.js +2 -2
- package/dist/lib/components/Zudoku.js.map +1 -1
- 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/ZudokuContext.d.ts +3 -7
- package/dist/lib/components/context/ZudokuContext.js +57 -32
- package/dist/lib/components/context/ZudokuContext.js.map +1 -1
- package/dist/lib/components/context/ZudokuProvider.d.ts +1 -1
- 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 +43 -25
- package/dist/lib/components/index.js +15 -7
- package/dist/lib/components/index.js.map +1 -1
- package/dist/lib/components/navigation/Navigation.d.ts +5 -0
- package/dist/lib/components/navigation/Navigation.js +12 -0
- package/dist/lib/components/navigation/Navigation.js.map +1 -0
- package/dist/lib/components/navigation/{SidebarBadge.d.ts → NavigationBadge.d.ts} +1 -1
- package/dist/lib/components/navigation/{SidebarBadge.js → NavigationBadge.js} +3 -3
- package/dist/lib/components/navigation/NavigationBadge.js.map +1 -0
- package/dist/lib/components/navigation/NavigationCategory.d.ts +5 -0
- package/dist/lib/components/navigation/{SidebarCategory.js → NavigationCategory.js} +16 -14
- package/dist/lib/components/navigation/NavigationCategory.js.map +1 -0
- package/dist/lib/components/navigation/NavigationItem.d.ts +6 -0
- package/dist/lib/components/navigation/NavigationItem.js +54 -0
- package/dist/lib/components/navigation/NavigationItem.js.map +1 -0
- package/dist/lib/components/navigation/{SidebarWrapper.d.ts → NavigationWrapper.d.ts} +1 -1
- package/dist/lib/components/navigation/{SidebarWrapper.js → NavigationWrapper.js} +5 -5
- package/dist/lib/components/navigation/NavigationWrapper.js.map +1 -0
- package/dist/lib/components/navigation/PoweredByZudoku.js +1 -1
- package/dist/lib/components/navigation/Toc.js +1 -1
- package/dist/lib/components/navigation/Toc.js.map +1 -1
- package/dist/lib/components/navigation/utils.d.ts +14 -6
- package/dist/lib/components/navigation/utils.js +49 -18
- package/dist/lib/components/navigation/utils.js.map +1 -1
- package/dist/lib/core/RouteGuard.js +9 -9
- package/dist/lib/core/RouteGuard.js.map +1 -1
- package/dist/lib/core/ZudokuContext.d.ts +34 -21
- package/dist/lib/core/ZudokuContext.js +38 -14
- package/dist/lib/core/ZudokuContext.js.map +1 -1
- package/dist/lib/core/plugins.d.ts +8 -4
- package/dist/lib/core/plugins.js +1 -0
- package/dist/lib/core/plugins.js.map +1 -1
- package/dist/lib/errors/ErrorAlert.js +2 -3
- package/dist/lib/errors/ErrorAlert.js.map +1 -1
- package/dist/lib/hooks/index.d.ts +25 -0
- package/dist/lib/hooks/index.js +11 -0
- package/dist/lib/hooks/index.js.map +1 -1
- package/dist/lib/hooks/useEvent.test.js +5 -3
- package/dist/lib/hooks/useEvent.test.js.map +1 -1
- package/dist/lib/hooks/useHotkey.d.ts +4 -0
- package/dist/lib/hooks/useHotkey.js +58 -0
- package/dist/lib/hooks/useHotkey.js.map +1 -0
- package/dist/lib/oas/graphql/circular.js +23 -18
- package/dist/lib/oas/graphql/circular.js.map +1 -1
- package/dist/lib/plugins/api-catalog/Catalog.d.ts +1 -1
- package/dist/lib/plugins/api-catalog/Catalog.js +1 -1
- package/dist/lib/plugins/api-catalog/index.d.ts +6 -6
- package/dist/lib/plugins/api-catalog/index.js +10 -10
- package/dist/lib/plugins/api-catalog/index.js.map +1 -1
- package/dist/lib/plugins/api-keys/CreateApiKey.d.ts +3 -2
- package/dist/lib/plugins/api-keys/CreateApiKey.js +18 -4
- package/dist/lib/plugins/api-keys/CreateApiKey.js.map +1 -1
- package/dist/lib/plugins/api-keys/SettingsApiKeys.d.ts +1 -1
- package/dist/lib/plugins/api-keys/SettingsApiKeys.js +152 -27
- package/dist/lib/plugins/api-keys/SettingsApiKeys.js.map +1 -1
- package/dist/lib/plugins/api-keys/index.d.ts +29 -15
- package/dist/lib/plugins/api-keys/index.js +63 -33
- package/dist/lib/plugins/api-keys/index.js.map +1 -1
- package/dist/lib/plugins/custom-pages/index.d.ts +4 -6
- package/dist/lib/plugins/custom-pages/index.js +15 -10
- package/dist/lib/plugins/custom-pages/index.js.map +1 -1
- package/dist/lib/plugins/markdown/MdxPage.d.ts +1 -2
- package/dist/lib/plugins/markdown/MdxPage.js +30 -10
- package/dist/lib/plugins/markdown/MdxPage.js.map +1 -1
- package/dist/lib/plugins/markdown/index.d.ts +11 -3
- package/dist/lib/plugins/markdown/index.js +9 -26
- package/dist/lib/plugins/markdown/index.js.map +1 -1
- package/dist/lib/plugins/openapi/CollapsibleCode.js +1 -1
- package/dist/lib/plugins/openapi/CollapsibleCode.js.map +1 -1
- package/dist/lib/plugins/openapi/ColorizedParam.js +1 -1
- package/dist/lib/plugins/openapi/ColorizedParam.js.map +1 -1
- package/dist/lib/plugins/openapi/OperationList.js +3 -3
- package/dist/lib/plugins/openapi/OperationList.js.map +1 -1
- package/dist/lib/plugins/openapi/OperationListItem.js +3 -4
- package/dist/lib/plugins/openapi/OperationListItem.js.map +1 -1
- package/dist/lib/plugins/openapi/ParamInfos.js +3 -1
- package/dist/lib/plugins/openapi/ParamInfos.js.map +1 -1
- package/dist/lib/plugins/openapi/ParameterListItem.js +1 -1
- package/dist/lib/plugins/openapi/ParameterListItem.js.map +1 -1
- package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.d.ts +1 -1
- package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.js +5 -1
- package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.js.map +1 -1
- package/dist/lib/plugins/openapi/ResponsesSidecarBox.d.ts +2 -4
- package/dist/lib/plugins/openapi/ResponsesSidecarBox.js +1 -4
- package/dist/lib/plugins/openapi/ResponsesSidecarBox.js.map +1 -1
- package/dist/lib/plugins/openapi/SchemaList.js +7 -7
- package/dist/lib/plugins/openapi/SchemaList.js.map +1 -1
- package/dist/lib/plugins/openapi/Sidecar.js +11 -91
- package/dist/lib/plugins/openapi/Sidecar.js.map +1 -1
- package/dist/lib/plugins/openapi/SidecarExamples.js +9 -1
- package/dist/lib/plugins/openapi/SidecarExamples.js.map +1 -1
- package/dist/lib/plugins/openapi/components/EnumValues.js +1 -1
- package/dist/lib/plugins/openapi/components/EnumValues.js.map +1 -1
- 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/graphql/gql.d.ts +1 -1
- package/dist/lib/plugins/openapi/graphql/gql.js +1 -1
- package/dist/lib/plugins/openapi/graphql/gql.js.map +1 -1
- package/dist/lib/plugins/openapi/graphql/graphql.d.ts +4 -3
- package/dist/lib/plugins/openapi/graphql/graphql.js +3 -2
- package/dist/lib/plugins/openapi/graphql/graphql.js.map +1 -1
- package/dist/lib/plugins/openapi/index.d.ts +3 -3
- package/dist/lib/plugins/openapi/index.js +51 -19
- package/dist/lib/plugins/openapi/index.js.map +1 -1
- package/dist/lib/plugins/openapi/interfaces.d.ts +3 -3
- package/dist/lib/plugins/openapi/playground/BodyPanel.d.ts +5 -0
- package/dist/lib/plugins/openapi/playground/BodyPanel.js +26 -0
- package/dist/lib/plugins/openapi/playground/BodyPanel.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/CollapsibleHeader.d.ts +8 -0
- package/dist/lib/plugins/openapi/playground/CollapsibleHeader.js +11 -0
- package/dist/lib/plugins/openapi/playground/CollapsibleHeader.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/ExamplesDropdown.js +2 -1
- package/dist/lib/plugins/openapi/playground/ExamplesDropdown.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/Headers.d.ts +5 -4
- package/dist/lib/plugins/openapi/playground/Headers.js +54 -32
- package/dist/lib/plugins/openapi/playground/Headers.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/IdentityDialog.js +2 -1
- package/dist/lib/plugins/openapi/playground/IdentityDialog.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/IdentitySelector.js +1 -4
- package/dist/lib/plugins/openapi/playground/IdentitySelector.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/InlineInput.js +1 -1
- package/dist/lib/plugins/openapi/playground/InlineInput.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/ParamsGrid.js +2 -2
- package/dist/lib/plugins/openapi/playground/ParamsGrid.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/PathParams.js +1 -2
- package/dist/lib/plugins/openapi/playground/PathParams.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/Playground.d.ts +3 -8
- package/dist/lib/plugins/openapi/playground/Playground.js +115 -93
- package/dist/lib/plugins/openapi/playground/Playground.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js +1 -1
- package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/QueryParams.d.ts +2 -2
- package/dist/lib/plugins/openapi/playground/QueryParams.js +38 -23
- package/dist/lib/plugins/openapi/playground/QueryParams.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/Spinner.d.ts +2 -0
- package/dist/lib/plugins/openapi/playground/Spinner.js +63 -0
- package/dist/lib/plugins/openapi/playground/Spinner.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/fileUtils.d.ts +2 -0
- package/dist/lib/plugins/openapi/playground/fileUtils.js +22 -0
- package/dist/lib/plugins/openapi/playground/fileUtils.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/request-panel/UrlPath.d.ts +3 -0
- package/dist/lib/plugins/openapi/playground/request-panel/UrlPath.js +13 -0
- package/dist/lib/plugins/openapi/playground/request-panel/UrlPath.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/request-panel/UrlQueryParams.d.ts +1 -0
- package/dist/lib/plugins/openapi/playground/request-panel/UrlQueryParams.js +12 -0
- package/dist/lib/plugins/openapi/playground/request-panel/UrlQueryParams.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/result-panel/Highlight.d.ts +12 -0
- package/dist/lib/plugins/openapi/playground/result-panel/Highlight.js +11 -0
- package/dist/lib/plugins/openapi/playground/result-panel/Highlight.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/result-panel/ResponseStatusBar.d.ts +8 -0
- package/dist/lib/plugins/openapi/playground/result-panel/ResponseStatusBar.js +69 -0
- package/dist/lib/plugins/openapi/playground/result-panel/ResponseStatusBar.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.d.ts +10 -4
- package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.js +33 -31
- package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.d.ts +4 -2
- package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.js +8 -10
- package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/useRememberSkipLoginDialog.d.ts +16 -0
- package/dist/lib/plugins/openapi/playground/useRememberSkipLoginDialog.js +10 -0
- package/dist/lib/plugins/openapi/playground/useRememberSkipLoginDialog.js.map +1 -0
- package/dist/lib/plugins/openapi/schema/SchemaExampleAndDefault.js +3 -3
- package/dist/lib/plugins/openapi/schema/SchemaExampleAndDefault.js.map +1 -1
- package/dist/lib/plugins/openapi/schema/SchemaPropertyItem.js +12 -14
- package/dist/lib/plugins/openapi/schema/SchemaPropertyItem.js.map +1 -1
- package/dist/lib/plugins/openapi/schema/SchemaView.d.ts +2 -1
- package/dist/lib/plugins/openapi/schema/SchemaView.js +7 -7
- package/dist/lib/plugins/openapi/schema/SchemaView.js.map +1 -1
- package/dist/lib/plugins/openapi/schema/utils.d.ts +5 -1
- package/dist/lib/plugins/openapi/schema/utils.js +12 -7
- package/dist/lib/plugins/openapi/schema/utils.js.map +1 -1
- package/dist/lib/plugins/openapi/util/createHttpSnippet.d.ts +11 -0
- package/dist/lib/plugins/openapi/util/createHttpSnippet.js +89 -0
- package/dist/lib/plugins/openapi/util/createHttpSnippet.js.map +1 -0
- package/dist/lib/plugins/openapi/util/createNavigationCategory.d.ts +9 -0
- package/dist/lib/plugins/openapi/util/{createSidebarCategory.js → createNavigationCategory.js} +5 -4
- package/dist/lib/plugins/openapi/util/createNavigationCategory.js.map +1 -0
- package/dist/lib/plugins/openapi/util/generateSchemaExample.d.ts +1 -1
- package/dist/lib/plugins/openapi/util/generateSchemaExample.js +4 -0
- package/dist/lib/plugins/openapi/util/generateSchemaExample.js.map +1 -1
- package/dist/lib/plugins/openapi/util/getRoutes.js +2 -2
- package/dist/lib/plugins/openapi/util/getRoutes.js.map +1 -1
- package/dist/lib/plugins/openapi/util/methodColorMap.d.ts +1 -1
- package/dist/lib/plugins/redirect/index.d.ts +1 -1
- package/dist/lib/plugins/search-inkeep/index.d.ts +5 -22
- package/dist/lib/plugins/search-inkeep/index.js +35 -29
- package/dist/lib/plugins/search-inkeep/index.js.map +1 -1
- package/dist/lib/plugins/search-inkeep/inkeep.d.ts +5 -21
- package/dist/lib/plugins/search-inkeep/inkeep.js +10 -19
- package/dist/lib/plugins/search-inkeep/inkeep.js.map +1 -1
- package/dist/lib/plugins/search-pagefind/PagefindSearch.js +1 -1
- package/dist/lib/plugins/search-pagefind/PagefindSearch.js.map +1 -1
- package/dist/lib/plugins/search-pagefind/ResultList.d.ts +1 -1
- package/dist/lib/plugins/search-pagefind/ResultList.js +12 -5
- package/dist/lib/plugins/search-pagefind/ResultList.js.map +1 -1
- 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/ActionButton.js +1 -1
- package/dist/lib/ui/ActionButton.js.map +1 -1
- package/dist/lib/ui/Alert.d.ts +6 -5
- package/dist/lib/ui/Alert.js +12 -10
- package/dist/lib/ui/Alert.js.map +1 -1
- package/dist/lib/ui/Badge.d.ts +2 -2
- package/dist/lib/ui/Badge.js +1 -1
- package/dist/lib/ui/Badge.js.map +1 -1
- package/dist/lib/ui/Button.d.ts +2 -2
- package/dist/lib/ui/Button.js +8 -6
- package/dist/lib/ui/Button.js.map +1 -1
- package/dist/lib/ui/Callout.js +1 -1
- package/dist/lib/ui/Callout.js.map +1 -1
- package/dist/lib/ui/Card.js +1 -1
- package/dist/lib/ui/Checkbox.js +1 -1
- package/dist/lib/ui/Checkbox.js.map +1 -1
- package/dist/lib/ui/CodeBlock.d.ts +15 -0
- package/dist/lib/ui/CodeBlock.js +43 -0
- package/dist/lib/ui/CodeBlock.js.map +1 -0
- package/dist/lib/ui/Command.d.ts +1 -1
- package/dist/lib/ui/Command.js +3 -3
- package/dist/lib/ui/Command.js.map +1 -1
- package/dist/lib/ui/Dialog.d.ts +3 -1
- package/dist/lib/ui/Dialog.js +2 -2
- package/dist/lib/ui/Dialog.js.map +1 -1
- package/dist/lib/ui/DropdownMenu.js +4 -4
- package/dist/lib/ui/DropdownMenu.js.map +1 -1
- package/dist/lib/ui/EmbeddedCodeBlock.d.ts +15 -0
- package/dist/lib/ui/EmbeddedCodeBlock.js +18 -0
- package/dist/lib/ui/EmbeddedCodeBlock.js.map +1 -0
- package/dist/lib/ui/HoverCard.js +1 -1
- package/dist/lib/ui/HoverCard.js.map +1 -1
- package/dist/lib/ui/Input.js +1 -1
- package/dist/lib/ui/Input.js.map +1 -1
- package/dist/lib/ui/Popover.js +1 -1
- package/dist/lib/ui/Popover.js.map +1 -1
- package/dist/lib/ui/RadioGroup.js +1 -1
- package/dist/lib/ui/RadioGroup.js.map +1 -1
- package/dist/lib/ui/Select.js +2 -2
- package/dist/lib/ui/Select.js.map +1 -1
- package/dist/lib/ui/Slider.js +1 -1
- package/dist/lib/ui/Slider.js.map +1 -1
- package/dist/lib/ui/Switch.js +1 -1
- package/dist/lib/ui/Switch.js.map +1 -1
- package/dist/lib/ui/SyntaxHighlight.d.ts +12 -15
- package/dist/lib/ui/SyntaxHighlight.js +13 -60
- package/dist/lib/ui/SyntaxHighlight.js.map +1 -1
- package/dist/lib/ui/Tabs.js +2 -2
- package/dist/lib/ui/Tabs.js.map +1 -1
- package/dist/lib/ui/Textarea.js +1 -1
- package/dist/lib/ui/Textarea.js.map +1 -1
- package/dist/lib/ui/Toggle.js +1 -1
- package/dist/lib/ui/Toggle.js.map +1 -1
- package/dist/lib/ui/Tooltip.d.ts +2 -1
- package/dist/lib/ui/Tooltip.js +2 -1
- package/dist/lib/ui/Tooltip.js.map +1 -1
- package/dist/lib/util/MdxComponents.d.ts +17 -3
- package/dist/lib/util/MdxComponents.js +13 -12
- package/dist/lib/util/MdxComponents.js.map +1 -1
- package/dist/lib/util/humanFileSize.d.ts +6 -0
- package/dist/lib/util/humanFileSize.js +14 -0
- package/dist/lib/util/humanFileSize.js.map +1 -0
- package/dist/lib/util/humanFileSize.test.d.ts +1 -0
- package/dist/lib/util/humanFileSize.test.js +22 -0
- package/dist/lib/util/humanFileSize.test.js.map +1 -0
- package/dist/lib/util/invariant.d.ts +6 -5
- package/dist/lib/util/invariant.js +1 -1
- package/dist/lib/util/invariant.js.map +1 -1
- package/dist/lib/util/os.d.ts +2 -0
- package/dist/lib/util/os.js +21 -0
- package/dist/lib/util/os.js.map +1 -0
- package/dist/lib/util/useCopyToClipboard.d.ts +1 -0
- package/dist/lib/util/useCopyToClipboard.js +11 -0
- package/dist/lib/util/useCopyToClipboard.js.map +1 -0
- package/dist/lib/util/useExposedProps.d.ts +8 -1
- package/dist/lib/util/useExposedProps.js.map +1 -1
- package/dist/lib/util/useScrollToAnchor.js +3 -3
- package/dist/lib/util/useScrollToAnchor.js.map +1 -1
- package/dist/vite/api/SchemaManager.d.ts +4 -4
- package/dist/vite/api/SchemaManager.js +41 -22
- package/dist/vite/api/SchemaManager.js.map +1 -1
- package/dist/vite/api/SchemaManager.test.js +4 -4
- package/dist/vite/api/SchemaManager.test.js.map +1 -1
- package/dist/vite/api/schema-codegen.js +42 -11
- package/dist/vite/api/schema-codegen.js.map +1 -1
- package/dist/vite/api/schema-codegen.test.js +82 -0
- package/dist/vite/api/schema-codegen.test.js.map +1 -1
- package/dist/vite/build.js +21 -7
- package/dist/vite/build.js.map +1 -1
- package/dist/vite/config.d.ts +2 -9
- package/dist/vite/config.js +58 -98
- package/dist/vite/config.js.map +1 -1
- package/dist/vite/config.test.js +1 -1
- package/dist/vite/config.test.js.map +1 -1
- package/dist/vite/css/plugin.d.ts +1 -2
- package/dist/vite/css/plugin.js +14 -2
- package/dist/vite/css/plugin.js.map +1 -1
- package/dist/vite/dev-server.d.ts +0 -1
- package/dist/vite/dev-server.js +19 -13
- package/dist/vite/dev-server.js.map +1 -1
- package/dist/vite/html.d.ts +2 -2
- package/dist/vite/html.js +5 -2
- package/dist/vite/html.js.map +1 -1
- package/dist/vite/mdx/remark-last-modified.d.ts +3 -0
- package/dist/vite/mdx/remark-last-modified.js +29 -0
- package/dist/vite/mdx/remark-last-modified.js.map +1 -0
- package/dist/vite/mdx/utils.d.ts +2 -0
- package/dist/vite/mdx/utils.js +31 -0
- package/dist/vite/mdx/utils.js.map +1 -0
- package/dist/vite/plugin-api-keys.d.ts +1 -2
- package/dist/vite/plugin-api-keys.js +9 -3
- package/dist/vite/plugin-api-keys.js.map +1 -1
- package/dist/vite/plugin-api.d.ts +1 -2
- package/dist/vite/plugin-api.js +13 -12
- package/dist/vite/plugin-api.js.map +1 -1
- package/dist/vite/plugin-auth.d.ts +1 -2
- package/dist/vite/plugin-auth.js +3 -2
- package/dist/vite/plugin-auth.js.map +1 -1
- package/dist/vite/plugin-component.d.ts +1 -2
- package/dist/vite/plugin-component.js +3 -2
- package/dist/vite/plugin-component.js.map +1 -1
- package/dist/vite/plugin-config-reload.d.ts +1 -2
- package/dist/vite/plugin-config-reload.js +23 -22
- 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 +6 -4
- package/dist/vite/plugin-config.js.map +1 -1
- package/dist/vite/plugin-custom-pages.d.ts +1 -2
- package/dist/vite/plugin-custom-pages.js +5 -4
- package/dist/vite/plugin-custom-pages.js.map +1 -1
- package/dist/vite/plugin-docs.d.ts +1 -2
- package/dist/vite/plugin-docs.js +69 -61
- package/dist/vite/plugin-docs.js.map +1 -1
- package/dist/vite/plugin-frontmatter.d.ts +1 -2
- package/dist/vite/plugin-frontmatter.js +9 -4
- package/dist/vite/plugin-frontmatter.js.map +1 -1
- package/dist/vite/plugin-mdx.d.ts +1 -2
- package/dist/vite/plugin-mdx.js +24 -51
- package/dist/vite/plugin-mdx.js.map +1 -1
- package/dist/vite/{plugin-sidebar.d.ts → plugin-navigation.d.ts} +1 -2
- package/dist/vite/{plugin-sidebar.js → plugin-navigation.js} +22 -20
- package/dist/vite/plugin-navigation.js.map +1 -0
- package/dist/vite/plugin-redirect.d.ts +1 -2
- package/dist/vite/plugin-redirect.js +3 -2
- package/dist/vite/plugin-redirect.js.map +1 -1
- package/dist/vite/plugin-search.d.ts +1 -2
- package/dist/vite/plugin-search.js +3 -2
- package/dist/vite/plugin-search.js.map +1 -1
- package/dist/vite/plugin-shiki-register.d.ts +2 -0
- package/dist/vite/plugin-shiki-register.js +39 -0
- package/dist/vite/plugin-shiki-register.js.map +1 -0
- package/dist/vite/plugin-theme.d.ts +8 -0
- package/dist/vite/plugin-theme.js +274 -0
- package/dist/vite/plugin-theme.js.map +1 -0
- package/dist/vite/plugin-theme.test.d.ts +1 -0
- package/dist/vite/plugin-theme.test.js +312 -0
- package/dist/vite/plugin-theme.test.js.map +1 -0
- package/dist/vite/plugin.d.ts +1 -2
- package/dist/vite/plugin.js +23 -22
- package/dist/vite/plugin.js.map +1 -1
- package/dist/vite/prerender/worker.js +5 -1
- package/dist/vite/prerender/worker.js.map +1 -1
- package/dist/vite/shadcn-registry.d.ts +45 -0
- package/dist/vite/shadcn-registry.js +29 -0
- package/dist/vite/shadcn-registry.js.map +1 -0
- package/dist/vite/sitemap.d.ts +1 -1
- package/dist/zuplo/with-zuplo.d.ts +2 -2
- package/dist/zuplo/with-zuplo.js.map +1 -1
- package/lib/Button-B3o-2Xdf.js +51 -0
- package/lib/Button-B3o-2Xdf.js.map +1 -0
- package/lib/{Card-BtheiD7j.js → Card-CMDQUPM4.js} +3 -3
- package/lib/{Card-BtheiD7j.js.map → Card-CMDQUPM4.js.map} +1 -1
- package/lib/ClientOnly-E7hGysn1.js.map +1 -1
- package/lib/CodeBlock-NFCmSWOK.js +98 -0
- package/lib/CodeBlock-NFCmSWOK.js.map +1 -0
- package/lib/Command-BYukybsa.js +140 -0
- package/lib/Command-BYukybsa.js.map +1 -0
- package/lib/{Dialog-ByYz4ABw.js → Dialog-u9Uz9sTt.js} +26 -25
- package/lib/Dialog-u9Uz9sTt.js.map +1 -0
- package/lib/{Drawer-CEwbkLDb.js → Drawer-DJ05s2pH.js} +105 -105
- package/lib/{Drawer-CEwbkLDb.js.map → Drawer-DJ05s2pH.js.map} +1 -1
- package/lib/MdxPage-CdxPkV7p.js +110 -0
- package/lib/MdxPage-CdxPkV7p.js.map +1 -0
- package/lib/OAuthErrorPage-CNbVseNs.js +150 -0
- package/lib/OAuthErrorPage-CNbVseNs.js.map +1 -0
- package/lib/OasProvider-dNGQw-A8.js +35 -0
- package/lib/OasProvider-dNGQw-A8.js.map +1 -0
- package/lib/OperationList-ckGHyNMV.js +5168 -0
- package/lib/OperationList-ckGHyNMV.js.map +1 -0
- package/lib/Pagination-Chy4IAeH.js +37 -0
- package/lib/Pagination-Chy4IAeH.js.map +1 -0
- package/lib/{RouteGuard-D2gX29iI.js → RouteGuard-D17dUEM_.js} +277 -283
- package/lib/RouteGuard-D17dUEM_.js.map +1 -0
- package/lib/{SchemaList-DGOmVkot.js → SchemaList-BVirSc9P.js} +59 -57
- package/lib/SchemaList-BVirSc9P.js.map +1 -0
- package/lib/SchemaView-DhJktH3K.js +366 -0
- package/lib/SchemaView-DhJktH3K.js.map +1 -0
- package/lib/Select-CHg-8SQA.js +273 -0
- package/lib/Select-CHg-8SQA.js.map +1 -0
- package/lib/SignUp-xrEyHGja.js +56 -0
- package/lib/SignUp-xrEyHGja.js.map +1 -0
- package/lib/{Markdown-DvdVn1O7.js → Slot-DwKHufbT.js} +14307 -15696
- package/lib/Slot-DwKHufbT.js.map +1 -0
- package/lib/Spinner-mNLZ6awP.js.map +1 -1
- package/lib/SyntaxHighlight-DQ64ObSH.js +10308 -0
- package/lib/SyntaxHighlight-DQ64ObSH.js.map +1 -0
- package/lib/{Toc-BnN4zBb3.js → Toc-IyR_0dSg.js} +5 -5
- package/lib/Toc-IyR_0dSg.js.map +1 -0
- package/lib/ZudokuContext-Coxa0DfE.js +1278 -0
- package/lib/ZudokuContext-Coxa0DfE.js.map +1 -0
- package/lib/chunk-QMGIS6GS-CdEm9pzB.js +1839 -0
- package/lib/chunk-QMGIS6GS-CdEm9pzB.js.map +1 -0
- package/lib/{circular-WY7p7GWq.js → circular-3tGytcdj.js} +1568 -1560
- package/lib/circular-3tGytcdj.js.map +1 -0
- package/lib/clsx-OuTLNxxd.js +17 -0
- package/lib/clsx-OuTLNxxd.js.map +1 -0
- package/lib/{cn-qaFjX9_3.js → cn-dYga0KKN.js} +1015 -563
- package/lib/cn-dYga0KKN.js.map +1 -0
- package/lib/{createServer-D3RtEIGE.js → createServer-C1PpesMb.js} +3985 -4127
- package/lib/createServer-C1PpesMb.js.map +1 -0
- package/lib/errors-DekB3aZw.js +45 -0
- package/lib/errors-DekB3aZw.js.map +1 -0
- package/lib/hook-DEPqwjke.js +247 -0
- package/lib/hook-DEPqwjke.js.map +1 -0
- package/lib/index-B2tq8ySG.js +4082 -0
- package/lib/index-B2tq8ySG.js.map +1 -0
- package/lib/{index-LNp6rxyU.js → index-BWWkmg0b.js} +3 -3
- package/lib/{index-LNp6rxyU.js.map → index-BWWkmg0b.js.map} +1 -1
- package/lib/{index-CuBIgTKC.js → index-CrcNWbel.js} +9 -9
- package/lib/{index-CuBIgTKC.js.map → index-CrcNWbel.js.map} +1 -1
- package/lib/index-D7-DP8pf.js +3391 -0
- package/lib/index-D7-DP8pf.js.map +1 -0
- package/lib/{index-CPNSgwSb.js → index-DI5SPFK9.js} +5 -5
- package/lib/{index-CPNSgwSb.js.map → index-DI5SPFK9.js.map} +1 -1
- package/lib/{index-DcHeSvkE.js → index-DmNq2fbN.js} +773 -796
- package/lib/index-DmNq2fbN.js.map +1 -0
- package/lib/index.esm-CdzlRw50.js +1254 -0
- package/lib/index.esm-CdzlRw50.js.map +1 -0
- package/lib/invariant-Bm-FVUQE.js +44 -0
- package/lib/invariant-Bm-FVUQE.js.map +1 -0
- package/lib/jsx-runtime-C5mzlN2N.js.map +1 -1
- package/lib/processors/removeExtensions.js.map +1 -1
- package/lib/processors/removeParameters.js +27 -28
- package/lib/processors/removeParameters.js.map +1 -1
- package/lib/processors/removePaths.js +17 -17
- package/lib/processors/removePaths.js.map +1 -1
- package/lib/processors/traverse.js.map +1 -1
- package/lib/ui/Accordion.js +1 -1
- package/lib/ui/Accordion.js.map +1 -1
- package/lib/ui/ActionButton.js +10 -10
- package/lib/ui/ActionButton.js.map +1 -1
- package/lib/ui/Alert.js +54 -38
- package/lib/ui/Alert.js.map +1 -1
- package/lib/ui/AlertDialog.js +1 -1
- package/lib/ui/AlertDialog.js.map +1 -1
- package/lib/ui/Badge.js +3 -3
- package/lib/ui/Badge.js.map +1 -1
- package/lib/ui/Breadcrumb.js +1 -1
- package/lib/ui/Breadcrumb.js.map +1 -1
- package/lib/ui/Button.js +20 -18
- package/lib/ui/Button.js.map +1 -1
- package/lib/ui/Callout.js +11 -10
- package/lib/ui/Callout.js.map +1 -1
- package/lib/ui/Card.js +8 -8
- package/lib/ui/Card.js.map +1 -1
- package/lib/ui/Carousel.js +175 -175
- package/lib/ui/Carousel.js.map +1 -1
- package/lib/ui/Checkbox.js +7 -7
- package/lib/ui/Checkbox.js.map +1 -1
- package/lib/ui/CodeBlock.js +9 -0
- package/lib/ui/CodeBlock.js.map +1 -0
- package/lib/ui/Command.js +57 -57
- package/lib/ui/Command.js.map +1 -1
- package/lib/ui/Dialog.js +40 -40
- package/lib/ui/Dialog.js.map +1 -1
- package/lib/ui/Drawer.js +2 -2
- package/lib/ui/DropdownMenu.js +34 -34
- package/lib/ui/DropdownMenu.js.map +1 -1
- package/lib/ui/EmbeddedCodeBlock.js +80 -0
- package/lib/ui/EmbeddedCodeBlock.js.map +1 -0
- package/lib/ui/Form.js +2 -2
- package/lib/ui/Form.js.map +1 -1
- package/lib/ui/HoverCard.js +5 -5
- package/lib/ui/HoverCard.js.map +1 -1
- package/lib/ui/Input.js +2 -2
- package/lib/ui/Input.js.map +1 -1
- package/lib/ui/Label.js +2 -2
- package/lib/ui/Label.js.map +1 -1
- package/lib/ui/Pagination.js +1 -1
- package/lib/ui/Pagination.js.map +1 -1
- package/lib/ui/Popover.js +2 -2
- package/lib/ui/Popover.js.map +1 -1
- package/lib/ui/Progress.js +1 -1
- package/lib/ui/Progress.js.map +1 -1
- package/lib/ui/RadioGroup.js +10 -10
- package/lib/ui/RadioGroup.js.map +1 -1
- package/lib/ui/ScrollArea.js +1 -1
- package/lib/ui/ScrollArea.js.map +1 -1
- package/lib/ui/Select.js +31 -31
- package/lib/ui/Select.js.map +1 -1
- package/lib/ui/Skeleton.js +1 -1
- package/lib/ui/Skeleton.js.map +1 -1
- package/lib/ui/Slider.js +5 -5
- package/lib/ui/Slider.js.map +1 -1
- package/lib/ui/Stepper.js.map +1 -1
- package/lib/ui/Switch.js +5 -5
- package/lib/ui/Switch.js.map +1 -1
- package/lib/ui/SyntaxHighlight.js +5 -5
- package/lib/ui/Tabs.js +16 -16
- package/lib/ui/Tabs.js.map +1 -1
- package/lib/ui/Textarea.js +5 -5
- package/lib/ui/Textarea.js.map +1 -1
- package/lib/ui/Toggle.js +7 -7
- package/lib/ui/Toggle.js.map +1 -1
- package/lib/ui/ToggleGroup.js +1 -1
- package/lib/ui/ToggleGroup.js.map +1 -1
- package/lib/ui/Tooltip.js +15 -8
- package/lib/ui/Tooltip.js.map +1 -1
- package/lib/ui/util.js +1 -1
- package/lib/useExposedProps-DUoV7MCU.js +113 -0
- package/lib/useExposedProps-DUoV7MCU.js.map +1 -0
- package/lib/zudoku.auth-auth0.js +29 -32
- package/lib/zudoku.auth-auth0.js.map +1 -1
- package/lib/zudoku.auth-azureb2c.js +137 -0
- package/lib/zudoku.auth-azureb2c.js.map +1 -0
- package/lib/zudoku.auth-clerk.js +104 -99
- package/lib/zudoku.auth-clerk.js.map +1 -1
- package/lib/zudoku.auth-openid.js +452 -447
- package/lib/zudoku.auth-openid.js.map +1 -1
- package/lib/zudoku.auth-supabase.js +97 -0
- package/lib/zudoku.auth-supabase.js.map +1 -0
- package/lib/zudoku.components.js +21 -20
- package/lib/zudoku.hooks.js +21 -13
- package/lib/zudoku.hooks.js.map +1 -1
- package/lib/zudoku.icons.js.map +1 -1
- package/lib/zudoku.plugin-api-catalog.js +64 -63
- package/lib/zudoku.plugin-api-catalog.js.map +1 -1
- package/lib/zudoku.plugin-api-keys.js +654 -191
- package/lib/zudoku.plugin-api-keys.js.map +1 -1
- package/lib/zudoku.plugin-custom-pages.js +12 -18
- package/lib/zudoku.plugin-custom-pages.js.map +1 -1
- package/lib/zudoku.plugin-markdown.js +20 -73
- package/lib/zudoku.plugin-markdown.js.map +1 -1
- package/lib/zudoku.plugin-openapi.js +5 -4
- package/lib/zudoku.plugin-openapi.js.map +1 -1
- package/lib/zudoku.plugin-redirect.js +1 -1
- package/lib/zudoku.plugin-redirect.js.map +1 -1
- package/lib/zudoku.plugin-search-inkeep.js +55 -59
- package/lib/zudoku.plugin-search-inkeep.js.map +1 -1
- package/lib/zudoku.plugin-search-pagefind.js +216 -124
- package/lib/zudoku.plugin-search-pagefind.js.map +1 -1
- package/lib/zudoku.plugins.js +7 -6
- package/lib/zudoku.plugins.js.map +1 -1
- package/package.json +112 -81
- package/src/app/ZuploBuildConfig.ts +8 -8
- package/src/app/defaultTheme.css +73 -0
- package/src/app/demo.tsx +24 -6
- package/src/app/entry.client.tsx +0 -2
- package/src/app/entry.server.tsx +0 -2
- package/src/app/env.ts +8 -0
- package/src/app/font.geist.css +73 -0
- package/src/app/main.css +131 -150
- package/src/app/main.tsx +32 -57
- package/src/app/standalone.tsx +7 -6
- package/src/lib/auth/issuer.test.ts +120 -0
- package/src/lib/auth/issuer.ts +41 -0
- package/src/lib/authentication/AuthenticationPlugin.tsx +4 -4
- package/src/lib/authentication/authentication.ts +4 -7
- package/src/lib/authentication/components/CallbackHandler.tsx +23 -16
- package/src/lib/authentication/components/OAuthErrorPage.tsx +171 -0
- package/src/lib/authentication/components/SignIn.tsx +5 -12
- package/src/lib/authentication/errors.ts +27 -13
- package/src/lib/authentication/hook.ts +2 -0
- package/src/lib/authentication/providers/auth0.tsx +9 -3
- package/src/lib/authentication/providers/azureb2c.tsx +201 -0
- package/src/lib/authentication/providers/clerk.tsx +76 -58
- package/src/lib/authentication/providers/openid.tsx +101 -30
- package/src/lib/authentication/providers/supabase.tsx +9 -16
- package/src/lib/authentication/state.ts +37 -7
- package/src/lib/components/Autocomplete.tsx +3 -2
- package/src/lib/components/Banner.tsx +2 -3
- package/src/lib/components/BuildCheck.tsx +4 -4
- package/src/lib/components/CategoryHeading.tsx +4 -1
- package/src/lib/components/ErrorPage.tsx +3 -3
- package/src/lib/components/Footer.tsx +8 -11
- package/src/lib/components/Framed.tsx +51 -0
- package/src/lib/components/Header.tsx +43 -40
- package/src/lib/components/Heading.tsx +16 -8
- package/src/lib/components/InlineCode.tsx +1 -1
- package/src/lib/components/Layout.tsx +3 -3
- package/src/lib/components/Main.tsx +13 -13
- package/src/lib/components/Markdown.tsx +40 -27
- package/src/lib/components/MobileTopNavigation.tsx +74 -16
- package/src/lib/components/NotFoundPage.tsx +6 -5
- package/src/lib/components/PageProgress.tsx +28 -0
- package/src/lib/components/Pagination.tsx +5 -10
- package/src/lib/components/Search.tsx +1 -1
- package/src/lib/components/Slot.test.tsx +465 -0
- package/src/lib/components/Slot.tsx +64 -0
- package/src/lib/components/StatusPage.tsx +5 -0
- package/src/lib/components/TopNavigation.tsx +80 -85
- package/src/lib/components/Typography.tsx +14 -0
- package/src/lib/components/Zudoku.tsx +9 -9
- package/src/lib/components/context/SlotProvider.tsx +149 -0
- package/src/lib/components/context/ZudokuContext.ts +67 -43
- package/src/lib/components/context/ZudokuProvider.tsx +3 -2
- package/src/lib/components/index.ts +16 -10
- package/src/lib/components/navigation/Navigation.tsx +50 -0
- package/src/lib/components/navigation/{SidebarBadge.tsx → NavigationBadge.tsx} +2 -2
- package/src/lib/components/navigation/{SidebarCategory.tsx → NavigationCategory.tsx} +19 -17
- package/src/lib/components/navigation/NavigationItem.tsx +159 -0
- package/src/lib/components/navigation/{SidebarWrapper.tsx → NavigationWrapper.tsx} +8 -5
- package/src/lib/components/navigation/PoweredByZudoku.tsx +1 -1
- package/src/lib/components/navigation/Toc.tsx +2 -2
- package/src/lib/components/navigation/utils.ts +69 -28
- package/src/lib/core/RouteGuard.tsx +13 -13
- package/src/lib/core/ZudokuContext.ts +77 -31
- package/src/lib/core/plugins.ts +13 -4
- package/src/lib/errors/ErrorAlert.tsx +8 -16
- package/src/lib/hooks/index.ts +11 -0
- package/src/lib/hooks/useEvent.test.tsx +7 -5
- package/src/lib/hooks/useHotkey.ts +70 -0
- package/src/lib/oas/graphql/circular.ts +27 -19
- package/src/lib/plugins/api-catalog/Catalog.tsx +2 -2
- package/src/lib/plugins/api-catalog/index.tsx +19 -19
- package/src/lib/plugins/api-keys/CreateApiKey.tsx +70 -44
- package/src/lib/plugins/api-keys/SettingsApiKeys.tsx +484 -118
- package/src/lib/plugins/api-keys/index.tsx +140 -62
- package/src/lib/plugins/custom-pages/index.tsx +21 -16
- package/src/lib/plugins/markdown/MdxPage.tsx +77 -22
- package/src/lib/plugins/markdown/index.tsx +29 -42
- package/src/lib/plugins/openapi/CollapsibleCode.tsx +6 -3
- package/src/lib/plugins/openapi/ColorizedParam.tsx +2 -2
- package/src/lib/plugins/openapi/OperationList.tsx +13 -21
- package/src/lib/plugins/openapi/OperationListItem.tsx +9 -37
- package/src/lib/plugins/openapi/ParamInfos.tsx +3 -1
- package/src/lib/plugins/openapi/ParameterListItem.tsx +6 -0
- package/src/lib/plugins/openapi/PlaygroundDialogWrapper.tsx +8 -2
- package/src/lib/plugins/openapi/ResponsesSidecarBox.tsx +5 -16
- package/src/lib/plugins/openapi/SchemaList.tsx +24 -18
- package/src/lib/plugins/openapi/Sidecar.tsx +14 -99
- package/src/lib/plugins/openapi/SidecarExamples.tsx +9 -2
- package/src/lib/plugins/openapi/components/EnumValues.tsx +1 -1
- package/src/lib/plugins/openapi/components/ResponseContent.tsx +104 -0
- package/src/lib/plugins/openapi/graphql/gql.ts +5 -5
- package/src/lib/plugins/openapi/graphql/graphql.ts +8 -6
- package/src/lib/plugins/openapi/index.tsx +77 -27
- package/src/lib/plugins/openapi/interfaces.ts +3 -3
- package/src/lib/plugins/openapi/playground/BodyPanel.tsx +55 -0
- package/src/lib/plugins/openapi/playground/CollapsibleHeader.tsx +47 -0
- package/src/lib/plugins/openapi/playground/ExamplesDropdown.tsx +8 -1
- package/src/lib/plugins/openapi/playground/Headers.tsx +217 -115
- package/src/lib/plugins/openapi/playground/IdentityDialog.tsx +3 -2
- package/src/lib/plugins/openapi/playground/IdentitySelector.tsx +19 -35
- package/src/lib/plugins/openapi/playground/InlineInput.tsx +1 -1
- package/src/lib/plugins/openapi/playground/ParamsGrid.tsx +2 -2
- package/src/lib/plugins/openapi/playground/PathParams.tsx +5 -6
- package/src/lib/plugins/openapi/playground/Playground.tsx +267 -290
- package/src/lib/plugins/openapi/playground/PlaygroundDialog.tsx +3 -2
- package/src/lib/plugins/openapi/playground/QueryParams.tsx +104 -58
- package/src/lib/plugins/openapi/playground/Spinner.tsx +87 -0
- package/src/lib/plugins/openapi/playground/fileUtils.ts +32 -0
- package/src/lib/plugins/openapi/playground/request-panel/UrlPath.tsx +31 -0
- package/src/lib/plugins/openapi/playground/request-panel/UrlQueryParams.tsx +25 -0
- package/src/lib/plugins/openapi/playground/result-panel/Highlight.tsx +26 -0
- package/src/lib/plugins/openapi/playground/result-panel/ResponseStatusBar.tsx +115 -0
- package/src/lib/plugins/openapi/playground/result-panel/ResponseTab.tsx +149 -108
- package/src/lib/plugins/openapi/playground/result-panel/ResultPanel.tsx +68 -89
- package/src/lib/plugins/openapi/playground/useRememberSkipLoginDialog.tsx +20 -0
- package/src/lib/plugins/openapi/schema/SchemaExampleAndDefault.tsx +5 -5
- package/src/lib/plugins/openapi/schema/SchemaPropertyItem.tsx +25 -20
- package/src/lib/plugins/openapi/schema/SchemaView.tsx +13 -14
- package/src/lib/plugins/openapi/schema/utils.ts +21 -8
- package/src/lib/plugins/openapi/util/createHttpSnippet.ts +107 -0
- package/src/lib/plugins/openapi/util/{createSidebarCategory.tsx → createNavigationCategory.tsx} +6 -5
- package/src/lib/plugins/openapi/util/generateSchemaExample.ts +6 -1
- package/src/lib/plugins/openapi/util/getRoutes.tsx +2 -2
- package/src/lib/plugins/openapi/util/methodColorMap.tsx +1 -1
- package/src/lib/plugins/redirect/index.tsx +1 -1
- package/src/lib/plugins/search-inkeep/index.tsx +54 -58
- package/src/lib/plugins/search-inkeep/inkeep.ts +19 -21
- package/src/lib/plugins/search-pagefind/PagefindSearch.tsx +1 -0
- package/src/lib/plugins/search-pagefind/ResultList.tsx +13 -4
- package/src/lib/shiki.ts +134 -0
- package/src/lib/ui/ActionButton.tsx +3 -1
- package/src/lib/ui/Alert.tsx +45 -39
- package/src/lib/ui/Badge.tsx +2 -2
- package/src/lib/ui/Button.tsx +9 -6
- package/src/lib/ui/Callout.tsx +2 -1
- package/src/lib/ui/Card.tsx +1 -1
- package/src/lib/ui/Checkbox.tsx +1 -1
- package/src/lib/ui/CodeBlock.tsx +113 -0
- package/src/lib/ui/Command.tsx +5 -5
- package/src/lib/ui/Dialog.tsx +11 -7
- package/src/lib/ui/DropdownMenu.tsx +4 -4
- package/src/lib/ui/EmbeddedCodeBlock.tsx +94 -0
- package/src/lib/ui/HoverCard.tsx +1 -1
- package/src/lib/ui/Input.tsx +1 -1
- package/src/lib/ui/Popover.tsx +1 -1
- package/src/lib/ui/RadioGroup.tsx +1 -1
- package/src/lib/ui/Select.tsx +3 -3
- package/src/lib/ui/Slider.tsx +1 -1
- package/src/lib/ui/Switch.tsx +1 -1
- package/src/lib/ui/SyntaxHighlight.tsx +28 -179
- package/src/lib/ui/Tabs.tsx +2 -2
- package/src/lib/ui/Textarea.tsx +1 -1
- package/src/lib/ui/Toggle.tsx +1 -1
- package/src/lib/ui/Tooltip.tsx +16 -1
- package/src/lib/util/MdxComponents.tsx +40 -16
- package/src/lib/util/humanFileSize.test.ts +24 -0
- package/src/lib/util/humanFileSize.ts +16 -0
- package/src/lib/util/invariant.ts +7 -5
- package/src/lib/util/os.ts +18 -0
- package/src/lib/util/useCopyToClipboard.ts +17 -0
- package/src/lib/util/useExposedProps.tsx +12 -1
- package/src/lib/util/useScrollToAnchor.ts +3 -3
- 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/dist/app/tailwind.d.ts +0 -4
- package/dist/app/tailwind.js +0 -97
- package/dist/app/tailwind.js.map +0 -1
- package/dist/config/common.d.ts +0 -10
- package/dist/config/common.js +0 -2
- package/dist/config/common.js.map +0 -1
- package/dist/config/validators/InputSidebarSchema.d.ts +0 -217
- package/dist/config/validators/InputSidebarSchema.js +0 -62
- package/dist/config/validators/InputSidebarSchema.js.map +0 -1
- package/dist/config/validators/SidebarSchema.d.ts +0 -46
- package/dist/config/validators/SidebarSchema.js +0 -118
- package/dist/config/validators/SidebarSchema.js.map +0 -1
- package/dist/config/validators/common.d.ts +0 -7869
- package/dist/config/validators/common.js +0 -404
- package/dist/config/validators/common.js.map +0 -1
- package/dist/lib/components/SlotletProvider.d.ts +0 -17
- package/dist/lib/components/SlotletProvider.js +0 -18
- package/dist/lib/components/SlotletProvider.js.map +0 -1
- package/dist/lib/components/navigation/Sidebar.d.ts +0 -5
- package/dist/lib/components/navigation/Sidebar.js +0 -10
- package/dist/lib/components/navigation/Sidebar.js.map +0 -1
- package/dist/lib/components/navigation/SidebarBadge.js.map +0 -1
- package/dist/lib/components/navigation/SidebarCategory.d.ts +0 -5
- package/dist/lib/components/navigation/SidebarCategory.js.map +0 -1
- package/dist/lib/components/navigation/SidebarItem.d.ts +0 -11
- package/dist/lib/components/navigation/SidebarItem.js +0 -49
- package/dist/lib/components/navigation/SidebarItem.js.map +0 -1
- package/dist/lib/components/navigation/SidebarWrapper.js.map +0 -1
- package/dist/lib/plugins/custom-pages/CustomPage.d.ts +0 -2
- package/dist/lib/plugins/custom-pages/CustomPage.js +0 -11
- package/dist/lib/plugins/custom-pages/CustomPage.js.map +0 -1
- package/dist/lib/plugins/markdown/resolver.d.ts +0 -32
- package/dist/lib/plugins/markdown/resolver.js +0 -46
- package/dist/lib/plugins/markdown/resolver.js.map +0 -1
- package/dist/lib/plugins/openapi/playground/SubmitButton.d.ts +0 -7
- package/dist/lib/plugins/openapi/playground/SubmitButton.js +0 -22
- package/dist/lib/plugins/openapi/playground/SubmitButton.js.map +0 -1
- package/dist/lib/plugins/openapi/playground/UrlDisplay.d.ts +0 -4
- package/dist/lib/plugins/openapi/playground/UrlDisplay.js +0 -22
- package/dist/lib/plugins/openapi/playground/UrlDisplay.js.map +0 -1
- package/dist/lib/plugins/openapi/playground/result-panel/RequestTab.d.ts +0 -7
- package/dist/lib/plugins/openapi/playground/result-panel/RequestTab.js +0 -11
- package/dist/lib/plugins/openapi/playground/result-panel/RequestTab.js.map +0 -1
- package/dist/lib/plugins/openapi/util/createSidebarCategory.d.ts +0 -9
- package/dist/lib/plugins/openapi/util/createSidebarCategory.js.map +0 -1
- package/dist/vite/plugin-docs.test.js +0 -22
- package/dist/vite/plugin-docs.test.js.map +0 -1
- package/dist/vite/plugin-sidebar.js.map +0 -1
- package/dist/vite/plugin-theme-css.d.ts +0 -6
- package/dist/vite/plugin-theme-css.js +0 -117
- package/dist/vite/plugin-theme-css.js.map +0 -1
- package/lib/AuthenticationPlugin-Bqlq5kRN.js +0 -99
- package/lib/AuthenticationPlugin-Bqlq5kRN.js.map +0 -1
- package/lib/Button-BBNrKpQd.js +0 -49
- package/lib/Button-BBNrKpQd.js.map +0 -1
- package/lib/Callout-D3Ja4OPX.js +0 -230
- package/lib/Callout-D3Ja4OPX.js.map +0 -1
- package/lib/CategoryHeading-D06WK_Wo.js +0 -10
- package/lib/CategoryHeading-D06WK_Wo.js.map +0 -1
- package/lib/Dialog-ByYz4ABw.js.map +0 -1
- package/lib/Markdown-DvdVn1O7.js.map +0 -1
- package/lib/MdxPage-_8H25sEU.js +0 -85
- package/lib/MdxPage-_8H25sEU.js.map +0 -1
- package/lib/OasProvider-hBA9fTDC.js +0 -33
- package/lib/OasProvider-hBA9fTDC.js.map +0 -1
- package/lib/OperationList-0n_9nYIg.js +0 -5147
- package/lib/OperationList-0n_9nYIg.js.map +0 -1
- package/lib/Pagination-B4iXKAzG.js +0 -48
- package/lib/Pagination-B4iXKAzG.js.map +0 -1
- package/lib/RouteGuard-D2gX29iI.js.map +0 -1
- package/lib/SchemaList-DGOmVkot.js.map +0 -1
- package/lib/SchemaView-DBar2RLi.js +0 -365
- package/lib/SchemaView-DBar2RLi.js.map +0 -1
- package/lib/Select-CYaEBIYK.js +0 -223
- package/lib/Select-CYaEBIYK.js.map +0 -1
- package/lib/SlotletProvider-wWbHYqWf.js +0 -340
- package/lib/SlotletProvider-wWbHYqWf.js.map +0 -1
- package/lib/SyntaxHighlight-o7q0acut.js +0 -2890
- package/lib/SyntaxHighlight-o7q0acut.js.map +0 -1
- package/lib/Toc-BnN4zBb3.js.map +0 -1
- package/lib/_commonjsHelpers-B4e78b8K.js +0 -29
- package/lib/_commonjsHelpers-B4e78b8K.js.map +0 -1
- package/lib/chunk-BAXFHI7N-BLTsN6tl.js +0 -1846
- package/lib/chunk-BAXFHI7N-BLTsN6tl.js.map +0 -1
- package/lib/circular-WY7p7GWq.js.map +0 -1
- package/lib/cn-qaFjX9_3.js.map +0 -1
- package/lib/createServer-D3RtEIGE.js.map +0 -1
- package/lib/hook-8GM2HXNM.js +0 -1478
- package/lib/hook-8GM2HXNM.js.map +0 -1
- package/lib/index-B1CQk2lf.js +0 -3208
- package/lib/index-B1CQk2lf.js.map +0 -1
- package/lib/index-Bn6Lc9tq.js +0 -9
- package/lib/index-Bn6Lc9tq.js.map +0 -1
- package/lib/index-DcHeSvkE.js.map +0 -1
- package/lib/index-Dh-bWAb8.js +0 -5039
- package/lib/index-Dh-bWAb8.js.map +0 -1
- package/lib/index-DwT-v3zK.js +0 -86
- package/lib/index-DwT-v3zK.js.map +0 -1
- package/lib/index.esm-D2ZUREQN.js +0 -1216
- package/lib/index.esm-D2ZUREQN.js.map +0 -1
- package/lib/invariant-Caa8-XvF.js +0 -26
- package/lib/invariant-Caa8-XvF.js.map +0 -1
- package/lib/mutation-Bq5bn7Hf.js +0 -211
- package/lib/mutation-Bq5bn7Hf.js.map +0 -1
- package/lib/objectEntries-yMIkr2mI.js +0 -5
- package/lib/objectEntries-yMIkr2mI.js.map +0 -1
- package/lib/prism-bash.min-HHIMdNJ_.js +0 -7
- package/lib/prism-bash.min-HHIMdNJ_.js.map +0 -1
- package/lib/prism-csharp.min-C43x1RY2.js +0 -63
- package/lib/prism-csharp.min-C43x1RY2.js.map +0 -1
- package/lib/prism-java.min-CQzr40NQ.js +0 -35
- package/lib/prism-java.min-CQzr40NQ.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-jsstacktrace.min-BfobCF2F.js +0 -2
- package/lib/prism-jsstacktrace.min-BfobCF2F.js.map +0 -1
- package/lib/prism-markdown.min-C0Qn0m-5.js +0 -61
- package/lib/prism-markdown.min-C0Qn0m-5.js.map +0 -1
- package/lib/prism-markup-BNGj0Tvm.js +0 -174
- package/lib/prism-markup-BNGj0Tvm.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-ruby.min-L9OdQ6tU.js +0 -38
- package/lib/prism-ruby.min-L9OdQ6tU.js.map +0 -1
- package/lib/prism-typescript.min-qTySPvCh.js +0 -34
- package/lib/prism-typescript.min-qTySPvCh.js.map +0 -1
- package/lib/useExposedProps-DmTJxEXG.js +0 -9
- package/lib/useExposedProps-DmTJxEXG.js.map +0 -1
- package/lib/useLatest-hmRS46UF.js +0 -11
- package/lib/useLatest-hmRS46UF.js.map +0 -1
- package/src/app/tailwind.ts +0 -103
- package/src/lib/components/SlotletProvider.tsx +0 -55
- package/src/lib/components/navigation/Sidebar.tsx +0 -48
- package/src/lib/components/navigation/SidebarItem.tsx +0 -117
- package/src/lib/plugins/custom-pages/CustomPage.tsx +0 -18
- package/src/lib/plugins/markdown/resolver.ts +0 -57
- package/src/lib/plugins/openapi/playground/SubmitButton.tsx +0 -75
- package/src/lib/plugins/openapi/playground/UrlDisplay.tsx +0 -32
- package/src/lib/plugins/openapi/playground/result-panel/RequestTab.tsx +0 -73
- /package/dist/{vite/plugin-docs.test.d.ts → config/validators/InputNavigationSchema.test-d.d.ts} +0 -0
|
@@ -1,1846 +0,0 @@
|
|
|
1
|
-
import * as o from "react";
|
|
2
|
-
var F = {}, ue;
|
|
3
|
-
function Ae() {
|
|
4
|
-
if (ue) return F;
|
|
5
|
-
ue = 1, Object.defineProperty(F, "__esModule", { value: !0 }), F.parse = s, F.serialize = u;
|
|
6
|
-
const e = /^[\u0021-\u003A\u003C\u003E-\u007E]+$/, n = /^[\u0021-\u003A\u003C-\u007E]*$/, t = /^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i, a = /^[\u0020-\u003A\u003D-\u007E]*$/, r = Object.prototype.toString, i = /* @__PURE__ */ (() => {
|
|
7
|
-
const d = function() {
|
|
8
|
-
};
|
|
9
|
-
return d.prototype = /* @__PURE__ */ Object.create(null), d;
|
|
10
|
-
})();
|
|
11
|
-
function s(d, g) {
|
|
12
|
-
const f = new i(), w = d.length;
|
|
13
|
-
if (w < 2)
|
|
14
|
-
return f;
|
|
15
|
-
const E = (g == null ? void 0 : g.decode) || h;
|
|
16
|
-
let p = 0;
|
|
17
|
-
do {
|
|
18
|
-
const v = d.indexOf("=", p);
|
|
19
|
-
if (v === -1)
|
|
20
|
-
break;
|
|
21
|
-
const y = d.indexOf(";", p), b = y === -1 ? w : y;
|
|
22
|
-
if (v > b) {
|
|
23
|
-
p = d.lastIndexOf(";", v - 1) + 1;
|
|
24
|
-
continue;
|
|
25
|
-
}
|
|
26
|
-
const x = c(d, p, v), C = l(d, v, x), $ = d.slice(x, C);
|
|
27
|
-
if (f[$] === void 0) {
|
|
28
|
-
let S = c(d, v + 1, b), P = l(d, b, S);
|
|
29
|
-
const D = E(d.slice(S, P));
|
|
30
|
-
f[$] = D;
|
|
31
|
-
}
|
|
32
|
-
p = b + 1;
|
|
33
|
-
} while (p < w);
|
|
34
|
-
return f;
|
|
35
|
-
}
|
|
36
|
-
function c(d, g, f) {
|
|
37
|
-
do {
|
|
38
|
-
const w = d.charCodeAt(g);
|
|
39
|
-
if (w !== 32 && w !== 9)
|
|
40
|
-
return g;
|
|
41
|
-
} while (++g < f);
|
|
42
|
-
return f;
|
|
43
|
-
}
|
|
44
|
-
function l(d, g, f) {
|
|
45
|
-
for (; g > f; ) {
|
|
46
|
-
const w = d.charCodeAt(--g);
|
|
47
|
-
if (w !== 32 && w !== 9)
|
|
48
|
-
return g + 1;
|
|
49
|
-
}
|
|
50
|
-
return f;
|
|
51
|
-
}
|
|
52
|
-
function u(d, g, f) {
|
|
53
|
-
const w = (f == null ? void 0 : f.encode) || encodeURIComponent;
|
|
54
|
-
if (!e.test(d))
|
|
55
|
-
throw new TypeError(`argument name is invalid: ${d}`);
|
|
56
|
-
const E = w(g);
|
|
57
|
-
if (!n.test(E))
|
|
58
|
-
throw new TypeError(`argument val is invalid: ${g}`);
|
|
59
|
-
let p = d + "=" + E;
|
|
60
|
-
if (!f)
|
|
61
|
-
return p;
|
|
62
|
-
if (f.maxAge !== void 0) {
|
|
63
|
-
if (!Number.isInteger(f.maxAge))
|
|
64
|
-
throw new TypeError(`option maxAge is invalid: ${f.maxAge}`);
|
|
65
|
-
p += "; Max-Age=" + f.maxAge;
|
|
66
|
-
}
|
|
67
|
-
if (f.domain) {
|
|
68
|
-
if (!t.test(f.domain))
|
|
69
|
-
throw new TypeError(`option domain is invalid: ${f.domain}`);
|
|
70
|
-
p += "; Domain=" + f.domain;
|
|
71
|
-
}
|
|
72
|
-
if (f.path) {
|
|
73
|
-
if (!a.test(f.path))
|
|
74
|
-
throw new TypeError(`option path is invalid: ${f.path}`);
|
|
75
|
-
p += "; Path=" + f.path;
|
|
76
|
-
}
|
|
77
|
-
if (f.expires) {
|
|
78
|
-
if (!m(f.expires) || !Number.isFinite(f.expires.valueOf()))
|
|
79
|
-
throw new TypeError(`option expires is invalid: ${f.expires}`);
|
|
80
|
-
p += "; Expires=" + f.expires.toUTCString();
|
|
81
|
-
}
|
|
82
|
-
if (f.httpOnly && (p += "; HttpOnly"), f.secure && (p += "; Secure"), f.partitioned && (p += "; Partitioned"), f.priority)
|
|
83
|
-
switch (typeof f.priority == "string" ? f.priority.toLowerCase() : void 0) {
|
|
84
|
-
case "low":
|
|
85
|
-
p += "; Priority=Low";
|
|
86
|
-
break;
|
|
87
|
-
case "medium":
|
|
88
|
-
p += "; Priority=Medium";
|
|
89
|
-
break;
|
|
90
|
-
case "high":
|
|
91
|
-
p += "; Priority=High";
|
|
92
|
-
break;
|
|
93
|
-
default:
|
|
94
|
-
throw new TypeError(`option priority is invalid: ${f.priority}`);
|
|
95
|
-
}
|
|
96
|
-
if (f.sameSite)
|
|
97
|
-
switch (typeof f.sameSite == "string" ? f.sameSite.toLowerCase() : f.sameSite) {
|
|
98
|
-
case !0:
|
|
99
|
-
case "strict":
|
|
100
|
-
p += "; SameSite=Strict";
|
|
101
|
-
break;
|
|
102
|
-
case "lax":
|
|
103
|
-
p += "; SameSite=Lax";
|
|
104
|
-
break;
|
|
105
|
-
case "none":
|
|
106
|
-
p += "; SameSite=None";
|
|
107
|
-
break;
|
|
108
|
-
default:
|
|
109
|
-
throw new TypeError(`option sameSite is invalid: ${f.sameSite}`);
|
|
110
|
-
}
|
|
111
|
-
return p;
|
|
112
|
-
}
|
|
113
|
-
function h(d) {
|
|
114
|
-
if (d.indexOf("%") === -1)
|
|
115
|
-
return d;
|
|
116
|
-
try {
|
|
117
|
-
return decodeURIComponent(d);
|
|
118
|
-
} catch {
|
|
119
|
-
return d;
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
function m(d) {
|
|
123
|
-
return r.call(d) === "[object Date]";
|
|
124
|
-
}
|
|
125
|
-
return F;
|
|
126
|
-
}
|
|
127
|
-
Ae();
|
|
128
|
-
/**
|
|
129
|
-
* react-router v7.5.2
|
|
130
|
-
*
|
|
131
|
-
* Copyright (c) Remix Software Inc.
|
|
132
|
-
*
|
|
133
|
-
* This source code is licensed under the MIT license found in the
|
|
134
|
-
* LICENSE.md file in the root directory of this source tree.
|
|
135
|
-
*
|
|
136
|
-
* @license MIT
|
|
137
|
-
*/
|
|
138
|
-
function R(e, n) {
|
|
139
|
-
if (e === !1 || e === null || typeof e > "u")
|
|
140
|
-
throw new Error(n);
|
|
141
|
-
}
|
|
142
|
-
function L(e, n) {
|
|
143
|
-
if (!e) {
|
|
144
|
-
typeof console < "u" && console.warn(n);
|
|
145
|
-
try {
|
|
146
|
-
throw new Error(n);
|
|
147
|
-
} catch {
|
|
148
|
-
}
|
|
149
|
-
}
|
|
150
|
-
}
|
|
151
|
-
function W({
|
|
152
|
-
pathname: e = "/",
|
|
153
|
-
search: n = "",
|
|
154
|
-
hash: t = ""
|
|
155
|
-
}) {
|
|
156
|
-
return n && n !== "?" && (e += n.charAt(0) === "?" ? n : "?" + n), t && t !== "#" && (e += t.charAt(0) === "#" ? t : "#" + t), e;
|
|
157
|
-
}
|
|
158
|
-
function Y(e) {
|
|
159
|
-
let n = {};
|
|
160
|
-
if (e) {
|
|
161
|
-
let t = e.indexOf("#");
|
|
162
|
-
t >= 0 && (n.hash = e.substring(t), e = e.substring(0, t));
|
|
163
|
-
let a = e.indexOf("?");
|
|
164
|
-
a >= 0 && (n.search = e.substring(a), e = e.substring(0, a)), e && (n.pathname = e);
|
|
165
|
-
}
|
|
166
|
-
return n;
|
|
167
|
-
}
|
|
168
|
-
function pe(e, n, t = "/") {
|
|
169
|
-
return De(e, n, t, !1);
|
|
170
|
-
}
|
|
171
|
-
function De(e, n, t, a) {
|
|
172
|
-
let r = typeof n == "string" ? Y(n) : n, i = A(r.pathname || "/", t);
|
|
173
|
-
if (i == null)
|
|
174
|
-
return null;
|
|
175
|
-
let s = ge(e);
|
|
176
|
-
Oe(s);
|
|
177
|
-
let c = null;
|
|
178
|
-
for (let l = 0; c == null && l < s.length; ++l) {
|
|
179
|
-
let u = ye(i);
|
|
180
|
-
c = je(
|
|
181
|
-
s[l],
|
|
182
|
-
u,
|
|
183
|
-
a
|
|
184
|
-
);
|
|
185
|
-
}
|
|
186
|
-
return c;
|
|
187
|
-
}
|
|
188
|
-
function ge(e, n = [], t = [], a = "") {
|
|
189
|
-
let r = (i, s, c) => {
|
|
190
|
-
let l = {
|
|
191
|
-
relativePath: c === void 0 ? i.path || "" : c,
|
|
192
|
-
caseSensitive: i.caseSensitive === !0,
|
|
193
|
-
childrenIndex: s,
|
|
194
|
-
route: i
|
|
195
|
-
};
|
|
196
|
-
l.relativePath.startsWith("/") && (R(
|
|
197
|
-
l.relativePath.startsWith(a),
|
|
198
|
-
`Absolute route path "${l.relativePath}" nested under path "${a}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`
|
|
199
|
-
), l.relativePath = l.relativePath.slice(a.length));
|
|
200
|
-
let u = M([a, l.relativePath]), h = t.concat(l);
|
|
201
|
-
i.children && i.children.length > 0 && (R(
|
|
202
|
-
// Our types know better, but runtime JS may not!
|
|
203
|
-
// @ts-expect-error
|
|
204
|
-
i.index !== !0,
|
|
205
|
-
`Index routes must not have child routes. Please remove all child routes from route path "${u}".`
|
|
206
|
-
), ge(i.children, n, h, u)), !(i.path == null && !i.index) && n.push({
|
|
207
|
-
path: u,
|
|
208
|
-
score: He(u, i.index),
|
|
209
|
-
routesMeta: h
|
|
210
|
-
});
|
|
211
|
-
};
|
|
212
|
-
return e.forEach((i, s) => {
|
|
213
|
-
var c;
|
|
214
|
-
if (i.path === "" || !((c = i.path) != null && c.includes("?")))
|
|
215
|
-
r(i, s);
|
|
216
|
-
else
|
|
217
|
-
for (let l of ve(i.path))
|
|
218
|
-
r(i, s, l);
|
|
219
|
-
}), n;
|
|
220
|
-
}
|
|
221
|
-
function ve(e) {
|
|
222
|
-
let n = e.split("/");
|
|
223
|
-
if (n.length === 0) return [];
|
|
224
|
-
let [t, ...a] = n, r = t.endsWith("?"), i = t.replace(/\?$/, "");
|
|
225
|
-
if (a.length === 0)
|
|
226
|
-
return r ? [i, ""] : [i];
|
|
227
|
-
let s = ve(a.join("/")), c = [];
|
|
228
|
-
return c.push(
|
|
229
|
-
...s.map(
|
|
230
|
-
(l) => l === "" ? i : [i, l].join("/")
|
|
231
|
-
)
|
|
232
|
-
), r && c.push(...s), c.map(
|
|
233
|
-
(l) => e.startsWith("/") && l === "" ? "/" : l
|
|
234
|
-
);
|
|
235
|
-
}
|
|
236
|
-
function Oe(e) {
|
|
237
|
-
e.sort(
|
|
238
|
-
(n, t) => n.score !== t.score ? t.score - n.score : ze(
|
|
239
|
-
n.routesMeta.map((a) => a.childrenIndex),
|
|
240
|
-
t.routesMeta.map((a) => a.childrenIndex)
|
|
241
|
-
)
|
|
242
|
-
);
|
|
243
|
-
}
|
|
244
|
-
var Ie = /^:[\w-]+$/, _e = 3, Fe = 2, Ue = 1, We = 10, Be = -2, ce = (e) => e === "*";
|
|
245
|
-
function He(e, n) {
|
|
246
|
-
let t = e.split("/"), a = t.length;
|
|
247
|
-
return t.some(ce) && (a += Be), n && (a += Fe), t.filter((r) => !ce(r)).reduce(
|
|
248
|
-
(r, i) => r + (Ie.test(i) ? _e : i === "" ? Ue : We),
|
|
249
|
-
a
|
|
250
|
-
);
|
|
251
|
-
}
|
|
252
|
-
function ze(e, n) {
|
|
253
|
-
return e.length === n.length && e.slice(0, -1).every((a, r) => a === n[r]) ? (
|
|
254
|
-
// If two routes are siblings, we should try to match the earlier sibling
|
|
255
|
-
// first. This allows people to have fine-grained control over the matching
|
|
256
|
-
// behavior by simply putting routes with identical paths in the order they
|
|
257
|
-
// want them tried.
|
|
258
|
-
e[e.length - 1] - n[n.length - 1]
|
|
259
|
-
) : (
|
|
260
|
-
// Otherwise, it doesn't really make sense to rank non-siblings by index,
|
|
261
|
-
// so they sort equally.
|
|
262
|
-
0
|
|
263
|
-
);
|
|
264
|
-
}
|
|
265
|
-
function je(e, n, t = !1) {
|
|
266
|
-
let { routesMeta: a } = e, r = {}, i = "/", s = [];
|
|
267
|
-
for (let c = 0; c < a.length; ++c) {
|
|
268
|
-
let l = a[c], u = c === a.length - 1, h = i === "/" ? n : n.slice(i.length) || "/", m = B(
|
|
269
|
-
{ path: l.relativePath, caseSensitive: l.caseSensitive, end: u },
|
|
270
|
-
h
|
|
271
|
-
), d = l.route;
|
|
272
|
-
if (!m && u && t && !a[a.length - 1].route.index && (m = B(
|
|
273
|
-
{
|
|
274
|
-
path: l.relativePath,
|
|
275
|
-
caseSensitive: l.caseSensitive,
|
|
276
|
-
end: !1
|
|
277
|
-
},
|
|
278
|
-
h
|
|
279
|
-
)), !m)
|
|
280
|
-
return null;
|
|
281
|
-
Object.assign(r, m.params), s.push({
|
|
282
|
-
// TODO: Can this as be avoided?
|
|
283
|
-
params: r,
|
|
284
|
-
pathname: M([i, m.pathname]),
|
|
285
|
-
pathnameBase: qe(
|
|
286
|
-
M([i, m.pathnameBase])
|
|
287
|
-
),
|
|
288
|
-
route: d
|
|
289
|
-
}), m.pathnameBase !== "/" && (i = M([i, m.pathnameBase]));
|
|
290
|
-
}
|
|
291
|
-
return s;
|
|
292
|
-
}
|
|
293
|
-
function on(e, n = {}) {
|
|
294
|
-
let t = e;
|
|
295
|
-
t.endsWith("*") && t !== "*" && !t.endsWith("/*") && (L(
|
|
296
|
-
!1,
|
|
297
|
-
`Route path "${t}" will be treated as if it were "${t.replace(/\*$/, "/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${t.replace(/\*$/, "/*")}".`
|
|
298
|
-
), t = t.replace(/\*$/, "/*"));
|
|
299
|
-
const a = t.startsWith("/") ? "/" : "", r = (s) => s == null ? "" : typeof s == "string" ? s : String(s), i = t.split(/\/+/).map((s, c, l) => {
|
|
300
|
-
if (c === l.length - 1 && s === "*")
|
|
301
|
-
return r(n["*"]);
|
|
302
|
-
const h = s.match(/^:([\w-]+)(\??)$/);
|
|
303
|
-
if (h) {
|
|
304
|
-
const [, m, d] = h;
|
|
305
|
-
let g = n[m];
|
|
306
|
-
return R(d === "?" || g != null, `Missing ":${m}" param`), r(g);
|
|
307
|
-
}
|
|
308
|
-
return s.replace(/\?$/g, "");
|
|
309
|
-
}).filter((s) => !!s);
|
|
310
|
-
return a + i.join("/");
|
|
311
|
-
}
|
|
312
|
-
function B(e, n) {
|
|
313
|
-
typeof e == "string" && (e = { path: e, caseSensitive: !1, end: !0 });
|
|
314
|
-
let [t, a] = Ve(
|
|
315
|
-
e.path,
|
|
316
|
-
e.caseSensitive,
|
|
317
|
-
e.end
|
|
318
|
-
), r = n.match(t);
|
|
319
|
-
if (!r) return null;
|
|
320
|
-
let i = r[0], s = i.replace(/(.)\/+$/, "$1"), c = r.slice(1);
|
|
321
|
-
return {
|
|
322
|
-
params: a.reduce(
|
|
323
|
-
(u, { paramName: h, isOptional: m }, d) => {
|
|
324
|
-
if (h === "*") {
|
|
325
|
-
let f = c[d] || "";
|
|
326
|
-
s = i.slice(0, i.length - f.length).replace(/(.)\/+$/, "$1");
|
|
327
|
-
}
|
|
328
|
-
const g = c[d];
|
|
329
|
-
return m && !g ? u[h] = void 0 : u[h] = (g || "").replace(/%2F/g, "/"), u;
|
|
330
|
-
},
|
|
331
|
-
{}
|
|
332
|
-
),
|
|
333
|
-
pathname: i,
|
|
334
|
-
pathnameBase: s,
|
|
335
|
-
pattern: e
|
|
336
|
-
};
|
|
337
|
-
}
|
|
338
|
-
function Ve(e, n = !1, t = !0) {
|
|
339
|
-
L(
|
|
340
|
-
e === "*" || !e.endsWith("*") || e.endsWith("/*"),
|
|
341
|
-
`Route path "${e}" will be treated as if it were "${e.replace(/\*$/, "/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/, "/*")}".`
|
|
342
|
-
);
|
|
343
|
-
let a = [], r = "^" + e.replace(/\/*\*?$/, "").replace(/^\/*/, "/").replace(/[\\.*+^${}|()[\]]/g, "\\$&").replace(
|
|
344
|
-
/\/:([\w-]+)(\?)?/g,
|
|
345
|
-
(s, c, l) => (a.push({ paramName: c, isOptional: l != null }), l ? "/?([^\\/]+)?" : "/([^\\/]+)")
|
|
346
|
-
);
|
|
347
|
-
return e.endsWith("*") ? (a.push({ paramName: "*" }), r += e === "*" || e === "/*" ? "(.*)$" : "(?:\\/(.+)|\\/*)$") : t ? r += "\\/*$" : e !== "" && e !== "/" && (r += "(?:(?=\\/|$))"), [new RegExp(r, n ? void 0 : "i"), a];
|
|
348
|
-
}
|
|
349
|
-
function ye(e) {
|
|
350
|
-
try {
|
|
351
|
-
return e.split("/").map((n) => decodeURIComponent(n).replace(/\//g, "%2F")).join("/");
|
|
352
|
-
} catch (n) {
|
|
353
|
-
return L(
|
|
354
|
-
!1,
|
|
355
|
-
`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${n}).`
|
|
356
|
-
), e;
|
|
357
|
-
}
|
|
358
|
-
}
|
|
359
|
-
function A(e, n) {
|
|
360
|
-
if (n === "/") return e;
|
|
361
|
-
if (!e.toLowerCase().startsWith(n.toLowerCase()))
|
|
362
|
-
return null;
|
|
363
|
-
let t = n.endsWith("/") ? n.length - 1 : n.length, a = e.charAt(t);
|
|
364
|
-
return a && a !== "/" ? null : e.slice(t) || "/";
|
|
365
|
-
}
|
|
366
|
-
function Ye(e, n = "/") {
|
|
367
|
-
let {
|
|
368
|
-
pathname: t,
|
|
369
|
-
search: a = "",
|
|
370
|
-
hash: r = ""
|
|
371
|
-
} = typeof e == "string" ? Y(e) : e;
|
|
372
|
-
return {
|
|
373
|
-
pathname: t ? t.startsWith("/") ? t : Je(t, n) : n,
|
|
374
|
-
search: Ge(a),
|
|
375
|
-
hash: Xe(r)
|
|
376
|
-
};
|
|
377
|
-
}
|
|
378
|
-
function Je(e, n) {
|
|
379
|
-
let t = n.replace(/\/+$/, "").split("/");
|
|
380
|
-
return e.split("/").forEach((r) => {
|
|
381
|
-
r === ".." ? t.length > 1 && t.pop() : r !== "." && t.push(r);
|
|
382
|
-
}), t.length > 1 ? t.join("/") : "/";
|
|
383
|
-
}
|
|
384
|
-
function G(e, n, t, a) {
|
|
385
|
-
return `Cannot include a '${e}' character in a manually specified \`to.${n}\` field [${JSON.stringify(
|
|
386
|
-
a
|
|
387
|
-
)}]. Please separate it out to the \`to.${t}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`;
|
|
388
|
-
}
|
|
389
|
-
function Ke(e) {
|
|
390
|
-
return e.filter(
|
|
391
|
-
(n, t) => t === 0 || n.route.path && n.route.path.length > 0
|
|
392
|
-
);
|
|
393
|
-
}
|
|
394
|
-
function Z(e) {
|
|
395
|
-
let n = Ke(e);
|
|
396
|
-
return n.map(
|
|
397
|
-
(t, a) => a === n.length - 1 ? t.pathname : t.pathnameBase
|
|
398
|
-
);
|
|
399
|
-
}
|
|
400
|
-
function ee(e, n, t, a = !1) {
|
|
401
|
-
let r;
|
|
402
|
-
typeof e == "string" ? r = Y(e) : (r = { ...e }, R(
|
|
403
|
-
!r.pathname || !r.pathname.includes("?"),
|
|
404
|
-
G("?", "pathname", "search", r)
|
|
405
|
-
), R(
|
|
406
|
-
!r.pathname || !r.pathname.includes("#"),
|
|
407
|
-
G("#", "pathname", "hash", r)
|
|
408
|
-
), R(
|
|
409
|
-
!r.search || !r.search.includes("#"),
|
|
410
|
-
G("#", "search", "hash", r)
|
|
411
|
-
));
|
|
412
|
-
let i = e === "" || r.pathname === "", s = i ? "/" : r.pathname, c;
|
|
413
|
-
if (s == null)
|
|
414
|
-
c = t;
|
|
415
|
-
else {
|
|
416
|
-
let m = n.length - 1;
|
|
417
|
-
if (!a && s.startsWith("..")) {
|
|
418
|
-
let d = s.split("/");
|
|
419
|
-
for (; d[0] === ".."; )
|
|
420
|
-
d.shift(), m -= 1;
|
|
421
|
-
r.pathname = d.join("/");
|
|
422
|
-
}
|
|
423
|
-
c = m >= 0 ? n[m] : "/";
|
|
424
|
-
}
|
|
425
|
-
let l = Ye(r, c), u = s && s !== "/" && s.endsWith("/"), h = (i || s === ".") && t.endsWith("/");
|
|
426
|
-
return !l.pathname.endsWith("/") && (u || h) && (l.pathname += "/"), l;
|
|
427
|
-
}
|
|
428
|
-
var M = (e) => e.join("/").replace(/\/\/+/g, "/"), qe = (e) => e.replace(/\/+$/, "").replace(/^\/*/, "/"), Ge = (e) => !e || e === "?" ? "" : e.startsWith("?") ? e : "?" + e, Xe = (e) => !e || e === "#" ? "" : e.startsWith("#") ? e : "#" + e, ln = (e, n = 302) => {
|
|
429
|
-
let t = n;
|
|
430
|
-
typeof t == "number" ? t = { status: t } : typeof t.status > "u" && (t.status = 302);
|
|
431
|
-
let a = new Headers(t.headers);
|
|
432
|
-
return a.set("Location", e), new Response(null, { ...t, headers: a });
|
|
433
|
-
};
|
|
434
|
-
function we(e) {
|
|
435
|
-
return e != null && typeof e.status == "number" && typeof e.statusText == "string" && typeof e.internal == "boolean" && "data" in e;
|
|
436
|
-
}
|
|
437
|
-
var Ee = [
|
|
438
|
-
"POST",
|
|
439
|
-
"PUT",
|
|
440
|
-
"PATCH",
|
|
441
|
-
"DELETE"
|
|
442
|
-
];
|
|
443
|
-
new Set(
|
|
444
|
-
Ee
|
|
445
|
-
);
|
|
446
|
-
var Qe = [
|
|
447
|
-
"GET",
|
|
448
|
-
...Ee
|
|
449
|
-
];
|
|
450
|
-
new Set(Qe);
|
|
451
|
-
var O = o.createContext(null);
|
|
452
|
-
O.displayName = "DataRouter";
|
|
453
|
-
var _ = o.createContext(null);
|
|
454
|
-
_.displayName = "DataRouterState";
|
|
455
|
-
var J = o.createContext({
|
|
456
|
-
isTransitioning: !1
|
|
457
|
-
});
|
|
458
|
-
J.displayName = "ViewTransition";
|
|
459
|
-
var te = o.createContext(
|
|
460
|
-
/* @__PURE__ */ new Map()
|
|
461
|
-
);
|
|
462
|
-
te.displayName = "Fetchers";
|
|
463
|
-
var Ze = o.createContext(null);
|
|
464
|
-
Ze.displayName = "Await";
|
|
465
|
-
var T = o.createContext(
|
|
466
|
-
null
|
|
467
|
-
);
|
|
468
|
-
T.displayName = "Navigation";
|
|
469
|
-
var K = o.createContext(
|
|
470
|
-
null
|
|
471
|
-
);
|
|
472
|
-
K.displayName = "Location";
|
|
473
|
-
var k = o.createContext({
|
|
474
|
-
outlet: null,
|
|
475
|
-
matches: [],
|
|
476
|
-
isDataRoute: !1
|
|
477
|
-
});
|
|
478
|
-
k.displayName = "Route";
|
|
479
|
-
var ne = o.createContext(null);
|
|
480
|
-
ne.displayName = "RouteError";
|
|
481
|
-
function et(e, { relative: n } = {}) {
|
|
482
|
-
R(
|
|
483
|
-
I(),
|
|
484
|
-
// TODO: This error is probably because they somehow have 2 versions of the
|
|
485
|
-
// router loaded. We can help them understand how to avoid that.
|
|
486
|
-
"useHref() may be used only in the context of a <Router> component."
|
|
487
|
-
);
|
|
488
|
-
let { basename: t, navigator: a } = o.useContext(T), { hash: r, pathname: i, search: s } = H(e, { relative: n }), c = i;
|
|
489
|
-
return t !== "/" && (c = i === "/" ? t : M([t, i])), a.createHref({ pathname: c, search: s, hash: r });
|
|
490
|
-
}
|
|
491
|
-
function I() {
|
|
492
|
-
return o.useContext(K) != null;
|
|
493
|
-
}
|
|
494
|
-
function N() {
|
|
495
|
-
return R(
|
|
496
|
-
I(),
|
|
497
|
-
// TODO: This error is probably because they somehow have 2 versions of the
|
|
498
|
-
// router loaded. We can help them understand how to avoid that.
|
|
499
|
-
"useLocation() may be used only in the context of a <Router> component."
|
|
500
|
-
), o.useContext(K).location;
|
|
501
|
-
}
|
|
502
|
-
function sn(e) {
|
|
503
|
-
R(
|
|
504
|
-
I(),
|
|
505
|
-
// TODO: This error is probably because they somehow have 2 versions of the
|
|
506
|
-
// router loaded. We can help them understand how to avoid that.
|
|
507
|
-
"useMatch() may be used only in the context of a <Router> component."
|
|
508
|
-
);
|
|
509
|
-
let { pathname: n } = N();
|
|
510
|
-
return o.useMemo(
|
|
511
|
-
() => B(e, ye(n)),
|
|
512
|
-
[n, e]
|
|
513
|
-
);
|
|
514
|
-
}
|
|
515
|
-
var xe = "You should call navigate() in a React.useEffect(), not when your component is first rendered.";
|
|
516
|
-
function be(e) {
|
|
517
|
-
o.useContext(T).static || o.useLayoutEffect(e);
|
|
518
|
-
}
|
|
519
|
-
function re() {
|
|
520
|
-
let { isDataRoute: e } = o.useContext(k);
|
|
521
|
-
return e ? ht() : tt();
|
|
522
|
-
}
|
|
523
|
-
function tt() {
|
|
524
|
-
R(
|
|
525
|
-
I(),
|
|
526
|
-
// TODO: This error is probably because they somehow have 2 versions of the
|
|
527
|
-
// router loaded. We can help them understand how to avoid that.
|
|
528
|
-
"useNavigate() may be used only in the context of a <Router> component."
|
|
529
|
-
);
|
|
530
|
-
let e = o.useContext(O), { basename: n, navigator: t } = o.useContext(T), { matches: a } = o.useContext(k), { pathname: r } = N(), i = JSON.stringify(Z(a)), s = o.useRef(!1);
|
|
531
|
-
return be(() => {
|
|
532
|
-
s.current = !0;
|
|
533
|
-
}), o.useCallback(
|
|
534
|
-
(l, u = {}) => {
|
|
535
|
-
if (L(s.current, xe), !s.current) return;
|
|
536
|
-
if (typeof l == "number") {
|
|
537
|
-
t.go(l);
|
|
538
|
-
return;
|
|
539
|
-
}
|
|
540
|
-
let h = ee(
|
|
541
|
-
l,
|
|
542
|
-
JSON.parse(i),
|
|
543
|
-
r,
|
|
544
|
-
u.relative === "path"
|
|
545
|
-
);
|
|
546
|
-
e == null && n !== "/" && (h.pathname = h.pathname === "/" ? n : M([n, h.pathname])), (u.replace ? t.replace : t.push)(
|
|
547
|
-
h,
|
|
548
|
-
u.state,
|
|
549
|
-
u
|
|
550
|
-
);
|
|
551
|
-
},
|
|
552
|
-
[
|
|
553
|
-
n,
|
|
554
|
-
t,
|
|
555
|
-
i,
|
|
556
|
-
r,
|
|
557
|
-
e
|
|
558
|
-
]
|
|
559
|
-
);
|
|
560
|
-
}
|
|
561
|
-
var nt = o.createContext(null);
|
|
562
|
-
function rt(e) {
|
|
563
|
-
let n = o.useContext(k).outlet;
|
|
564
|
-
return n && /* @__PURE__ */ o.createElement(nt.Provider, { value: e }, n);
|
|
565
|
-
}
|
|
566
|
-
function un() {
|
|
567
|
-
let { matches: e } = o.useContext(k), n = e[e.length - 1];
|
|
568
|
-
return n ? n.params : {};
|
|
569
|
-
}
|
|
570
|
-
function H(e, { relative: n } = {}) {
|
|
571
|
-
let { matches: t } = o.useContext(k), { pathname: a } = N(), r = JSON.stringify(Z(t));
|
|
572
|
-
return o.useMemo(
|
|
573
|
-
() => ee(
|
|
574
|
-
e,
|
|
575
|
-
JSON.parse(r),
|
|
576
|
-
a,
|
|
577
|
-
n === "path"
|
|
578
|
-
),
|
|
579
|
-
[e, r, a, n]
|
|
580
|
-
);
|
|
581
|
-
}
|
|
582
|
-
function Re(e, n, t, a) {
|
|
583
|
-
R(
|
|
584
|
-
I(),
|
|
585
|
-
// TODO: This error is probably because they somehow have 2 versions of the
|
|
586
|
-
// router loaded. We can help them understand how to avoid that.
|
|
587
|
-
"useRoutes() may be used only in the context of a <Router> component."
|
|
588
|
-
);
|
|
589
|
-
let { navigator: r, static: i } = o.useContext(T), { matches: s } = o.useContext(k), c = s[s.length - 1], l = c ? c.params : {}, u = c ? c.pathname : "/", h = c ? c.pathnameBase : "/", m = c && c.route;
|
|
590
|
-
{
|
|
591
|
-
let v = m && m.path || "";
|
|
592
|
-
Se(
|
|
593
|
-
u,
|
|
594
|
-
!m || v.endsWith("*") || v.endsWith("*?"),
|
|
595
|
-
`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${u}" (under <Route path="${v}">) 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.
|
|
596
|
-
|
|
597
|
-
Please change the parent <Route path="${v}"> to <Route path="${v === "/" ? "*" : `${v}/*`}">.`
|
|
598
|
-
);
|
|
599
|
-
}
|
|
600
|
-
let d = N(), g;
|
|
601
|
-
g = d;
|
|
602
|
-
let f = g.pathname || "/", w = f;
|
|
603
|
-
if (h !== "/") {
|
|
604
|
-
let v = h.replace(/^\//, "").split("/");
|
|
605
|
-
w = "/" + f.replace(/^\//, "").split("/").slice(v.length).join("/");
|
|
606
|
-
}
|
|
607
|
-
let E = !i && t && t.matches && t.matches.length > 0 ? t.matches : pe(e, { pathname: w });
|
|
608
|
-
return L(
|
|
609
|
-
m || E != null,
|
|
610
|
-
`No routes matched location "${g.pathname}${g.search}${g.hash}" `
|
|
611
|
-
), L(
|
|
612
|
-
E == null || E[E.length - 1].route.element !== void 0 || E[E.length - 1].route.Component !== void 0 || E[E.length - 1].route.lazy !== void 0,
|
|
613
|
-
`Matched leaf route at location "${g.pathname}${g.search}${g.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.`
|
|
614
|
-
), st(
|
|
615
|
-
E && E.map(
|
|
616
|
-
(v) => Object.assign({}, v, {
|
|
617
|
-
params: Object.assign({}, l, v.params),
|
|
618
|
-
pathname: M([
|
|
619
|
-
h,
|
|
620
|
-
// Re-encode pathnames that were decoded inside matchRoutes
|
|
621
|
-
r.encodeLocation ? r.encodeLocation(v.pathname).pathname : v.pathname
|
|
622
|
-
]),
|
|
623
|
-
pathnameBase: v.pathnameBase === "/" ? h : M([
|
|
624
|
-
h,
|
|
625
|
-
// Re-encode pathnames that were decoded inside matchRoutes
|
|
626
|
-
r.encodeLocation ? r.encodeLocation(v.pathnameBase).pathname : v.pathnameBase
|
|
627
|
-
])
|
|
628
|
-
})
|
|
629
|
-
),
|
|
630
|
-
s,
|
|
631
|
-
t,
|
|
632
|
-
a
|
|
633
|
-
);
|
|
634
|
-
}
|
|
635
|
-
function at() {
|
|
636
|
-
let e = dt(), n = we(e) ? `${e.status} ${e.statusText}` : e instanceof Error ? e.message : JSON.stringify(e), t = e instanceof Error ? e.stack : null, a = "rgba(200,200,200, 0.5)", r = { padding: "0.5rem", backgroundColor: a }, i = { padding: "2px 4px", backgroundColor: a }, s = null;
|
|
637
|
-
return console.error(
|
|
638
|
-
"Error handled by React Router default ErrorBoundary:",
|
|
639
|
-
e
|
|
640
|
-
), s = /* @__PURE__ */ o.createElement(o.Fragment, null, /* @__PURE__ */ o.createElement("p", null, "💿 Hey developer 👋"), /* @__PURE__ */ o.createElement("p", null, "You can provide a way better UX than this when your app throws errors by providing your own ", /* @__PURE__ */ o.createElement("code", { style: i }, "ErrorBoundary"), " or", " ", /* @__PURE__ */ o.createElement("code", { style: i }, "errorElement"), " prop on your route.")), /* @__PURE__ */ o.createElement(o.Fragment, null, /* @__PURE__ */ o.createElement("h2", null, "Unexpected Application Error!"), /* @__PURE__ */ o.createElement("h3", { style: { fontStyle: "italic" } }, n), t ? /* @__PURE__ */ o.createElement("pre", { style: r }, t) : null, s);
|
|
641
|
-
}
|
|
642
|
-
var it = /* @__PURE__ */ o.createElement(at, null), ot = class extends o.Component {
|
|
643
|
-
constructor(e) {
|
|
644
|
-
super(e), this.state = {
|
|
645
|
-
location: e.location,
|
|
646
|
-
revalidation: e.revalidation,
|
|
647
|
-
error: e.error
|
|
648
|
-
};
|
|
649
|
-
}
|
|
650
|
-
static getDerivedStateFromError(e) {
|
|
651
|
-
return { error: e };
|
|
652
|
-
}
|
|
653
|
-
static getDerivedStateFromProps(e, n) {
|
|
654
|
-
return n.location !== e.location || n.revalidation !== "idle" && e.revalidation === "idle" ? {
|
|
655
|
-
error: e.error,
|
|
656
|
-
location: e.location,
|
|
657
|
-
revalidation: e.revalidation
|
|
658
|
-
} : {
|
|
659
|
-
error: e.error !== void 0 ? e.error : n.error,
|
|
660
|
-
location: n.location,
|
|
661
|
-
revalidation: e.revalidation || n.revalidation
|
|
662
|
-
};
|
|
663
|
-
}
|
|
664
|
-
componentDidCatch(e, n) {
|
|
665
|
-
console.error(
|
|
666
|
-
"React Router caught the following error during render",
|
|
667
|
-
e,
|
|
668
|
-
n
|
|
669
|
-
);
|
|
670
|
-
}
|
|
671
|
-
render() {
|
|
672
|
-
return this.state.error !== void 0 ? /* @__PURE__ */ o.createElement(k.Provider, { value: this.props.routeContext }, /* @__PURE__ */ o.createElement(
|
|
673
|
-
ne.Provider,
|
|
674
|
-
{
|
|
675
|
-
value: this.state.error,
|
|
676
|
-
children: this.props.component
|
|
677
|
-
}
|
|
678
|
-
)) : this.props.children;
|
|
679
|
-
}
|
|
680
|
-
};
|
|
681
|
-
function lt({ routeContext: e, match: n, children: t }) {
|
|
682
|
-
let a = o.useContext(O);
|
|
683
|
-
return a && a.static && a.staticContext && (n.route.errorElement || n.route.ErrorBoundary) && (a.staticContext._deepestRenderedBoundaryId = n.route.id), /* @__PURE__ */ o.createElement(k.Provider, { value: e }, t);
|
|
684
|
-
}
|
|
685
|
-
function st(e, n = [], t = null, a = null) {
|
|
686
|
-
if (e == null) {
|
|
687
|
-
if (!t)
|
|
688
|
-
return null;
|
|
689
|
-
if (t.errors)
|
|
690
|
-
e = t.matches;
|
|
691
|
-
else if (n.length === 0 && !t.initialized && t.matches.length > 0)
|
|
692
|
-
e = t.matches;
|
|
693
|
-
else
|
|
694
|
-
return null;
|
|
695
|
-
}
|
|
696
|
-
let r = e, i = t == null ? void 0 : t.errors;
|
|
697
|
-
if (i != null) {
|
|
698
|
-
let l = r.findIndex(
|
|
699
|
-
(u) => u.route.id && (i == null ? void 0 : i[u.route.id]) !== void 0
|
|
700
|
-
);
|
|
701
|
-
R(
|
|
702
|
-
l >= 0,
|
|
703
|
-
`Could not find a matching route for errors on route IDs: ${Object.keys(
|
|
704
|
-
i
|
|
705
|
-
).join(",")}`
|
|
706
|
-
), r = r.slice(
|
|
707
|
-
0,
|
|
708
|
-
Math.min(r.length, l + 1)
|
|
709
|
-
);
|
|
710
|
-
}
|
|
711
|
-
let s = !1, c = -1;
|
|
712
|
-
if (t)
|
|
713
|
-
for (let l = 0; l < r.length; l++) {
|
|
714
|
-
let u = r[l];
|
|
715
|
-
if ((u.route.HydrateFallback || u.route.hydrateFallbackElement) && (c = l), u.route.id) {
|
|
716
|
-
let { loaderData: h, errors: m } = t, d = u.route.loader && !h.hasOwnProperty(u.route.id) && (!m || m[u.route.id] === void 0);
|
|
717
|
-
if (u.route.lazy || d) {
|
|
718
|
-
s = !0, c >= 0 ? r = r.slice(0, c + 1) : r = [r[0]];
|
|
719
|
-
break;
|
|
720
|
-
}
|
|
721
|
-
}
|
|
722
|
-
}
|
|
723
|
-
return r.reduceRight((l, u, h) => {
|
|
724
|
-
let m, d = !1, g = null, f = null;
|
|
725
|
-
t && (m = i && u.route.id ? i[u.route.id] : void 0, g = u.route.errorElement || it, s && (c < 0 && h === 0 ? (Se(
|
|
726
|
-
"route-fallback",
|
|
727
|
-
!1,
|
|
728
|
-
"No `HydrateFallback` element provided to render during initial hydration"
|
|
729
|
-
), d = !0, f = null) : c === h && (d = !0, f = u.route.hydrateFallbackElement || null)));
|
|
730
|
-
let w = n.concat(r.slice(0, h + 1)), E = () => {
|
|
731
|
-
let p;
|
|
732
|
-
return m ? p = g : d ? p = f : u.route.Component ? p = /* @__PURE__ */ o.createElement(u.route.Component, null) : u.route.element ? p = u.route.element : p = l, /* @__PURE__ */ o.createElement(
|
|
733
|
-
lt,
|
|
734
|
-
{
|
|
735
|
-
match: u,
|
|
736
|
-
routeContext: {
|
|
737
|
-
outlet: l,
|
|
738
|
-
matches: w,
|
|
739
|
-
isDataRoute: t != null
|
|
740
|
-
},
|
|
741
|
-
children: p
|
|
742
|
-
}
|
|
743
|
-
);
|
|
744
|
-
};
|
|
745
|
-
return t && (u.route.ErrorBoundary || u.route.errorElement || h === 0) ? /* @__PURE__ */ o.createElement(
|
|
746
|
-
ot,
|
|
747
|
-
{
|
|
748
|
-
location: t.location,
|
|
749
|
-
revalidation: t.revalidation,
|
|
750
|
-
component: g,
|
|
751
|
-
error: m,
|
|
752
|
-
children: E(),
|
|
753
|
-
routeContext: { outlet: null, matches: w, isDataRoute: !0 }
|
|
754
|
-
}
|
|
755
|
-
) : E();
|
|
756
|
-
}, null);
|
|
757
|
-
}
|
|
758
|
-
function ae(e) {
|
|
759
|
-
return `${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`;
|
|
760
|
-
}
|
|
761
|
-
function ut(e) {
|
|
762
|
-
let n = o.useContext(O);
|
|
763
|
-
return R(n, ae(e)), n;
|
|
764
|
-
}
|
|
765
|
-
function Ce(e) {
|
|
766
|
-
let n = o.useContext(_);
|
|
767
|
-
return R(n, ae(e)), n;
|
|
768
|
-
}
|
|
769
|
-
function ct(e) {
|
|
770
|
-
let n = o.useContext(k);
|
|
771
|
-
return R(n, ae(e)), n;
|
|
772
|
-
}
|
|
773
|
-
function ie(e) {
|
|
774
|
-
let n = ct(e), t = n.matches[n.matches.length - 1];
|
|
775
|
-
return R(
|
|
776
|
-
t.route.id,
|
|
777
|
-
`${e} can only be used on routes that contain a unique "id"`
|
|
778
|
-
), t.route.id;
|
|
779
|
-
}
|
|
780
|
-
function ft() {
|
|
781
|
-
return ie(
|
|
782
|
-
"useRouteId"
|
|
783
|
-
/* UseRouteId */
|
|
784
|
-
);
|
|
785
|
-
}
|
|
786
|
-
function cn() {
|
|
787
|
-
return Ce(
|
|
788
|
-
"useNavigation"
|
|
789
|
-
/* UseNavigation */
|
|
790
|
-
).navigation;
|
|
791
|
-
}
|
|
792
|
-
function dt() {
|
|
793
|
-
var a;
|
|
794
|
-
let e = o.useContext(ne), n = Ce(
|
|
795
|
-
"useRouteError"
|
|
796
|
-
/* UseRouteError */
|
|
797
|
-
), t = ie(
|
|
798
|
-
"useRouteError"
|
|
799
|
-
/* UseRouteError */
|
|
800
|
-
);
|
|
801
|
-
return e !== void 0 ? e : (a = n.errors) == null ? void 0 : a[t];
|
|
802
|
-
}
|
|
803
|
-
function ht() {
|
|
804
|
-
let { router: e } = ut(
|
|
805
|
-
"useNavigate"
|
|
806
|
-
/* UseNavigateStable */
|
|
807
|
-
), n = ie(
|
|
808
|
-
"useNavigate"
|
|
809
|
-
/* UseNavigateStable */
|
|
810
|
-
), t = o.useRef(!1);
|
|
811
|
-
return be(() => {
|
|
812
|
-
t.current = !0;
|
|
813
|
-
}), o.useCallback(
|
|
814
|
-
async (r, i = {}) => {
|
|
815
|
-
L(t.current, xe), t.current && (typeof r == "number" ? e.navigate(r) : await e.navigate(r, { fromRouteId: n, ...i }));
|
|
816
|
-
},
|
|
817
|
-
[e, n]
|
|
818
|
-
);
|
|
819
|
-
}
|
|
820
|
-
var fe = {};
|
|
821
|
-
function Se(e, n, t) {
|
|
822
|
-
!n && !fe[e] && (fe[e] = !0, L(!1, t));
|
|
823
|
-
}
|
|
824
|
-
var de = {};
|
|
825
|
-
function he(e, n) {
|
|
826
|
-
!e && !de[n] && (de[n] = !0, console.warn(n));
|
|
827
|
-
}
|
|
828
|
-
var mt = class {
|
|
829
|
-
constructor() {
|
|
830
|
-
this.status = "pending", this.promise = new Promise((e, n) => {
|
|
831
|
-
this.resolve = (t) => {
|
|
832
|
-
this.status === "pending" && (this.status = "resolved", e(t));
|
|
833
|
-
}, this.reject = (t) => {
|
|
834
|
-
this.status === "pending" && (this.status = "rejected", n(t));
|
|
835
|
-
};
|
|
836
|
-
});
|
|
837
|
-
}
|
|
838
|
-
};
|
|
839
|
-
function fn({
|
|
840
|
-
router: e,
|
|
841
|
-
flushSync: n
|
|
842
|
-
}) {
|
|
843
|
-
let [t, a] = o.useState(e.state), [r, i] = o.useState(), [s, c] = o.useState({
|
|
844
|
-
isTransitioning: !1
|
|
845
|
-
}), [l, u] = o.useState(), [h, m] = o.useState(), [d, g] = o.useState(), f = o.useRef(/* @__PURE__ */ new Map()), w = o.useCallback(
|
|
846
|
-
(y, { deletedFetchers: b, flushSync: x, viewTransitionOpts: C }) => {
|
|
847
|
-
y.fetchers.forEach((S, P) => {
|
|
848
|
-
S.data !== void 0 && f.current.set(P, S.data);
|
|
849
|
-
}), b.forEach((S) => f.current.delete(S)), he(
|
|
850
|
-
x === !1 || n != null,
|
|
851
|
-
'You provided the `flushSync` option to a router update, but you are not using the `<RouterProvider>` from `react-router/dom` so `ReactDOM.flushSync()` is unavailable. Please update your app to `import { RouterProvider } from "react-router/dom"` and ensure you have `react-dom` installed as a dependency to use the `flushSync` option.'
|
|
852
|
-
);
|
|
853
|
-
let $ = e.window != null && e.window.document != null && typeof e.window.document.startViewTransition == "function";
|
|
854
|
-
if (he(
|
|
855
|
-
C == null || $,
|
|
856
|
-
"You provided the `viewTransition` option to a router update, but you do not appear to be running in a DOM environment as `window.startViewTransition` is not available."
|
|
857
|
-
), !C || !$) {
|
|
858
|
-
n && x ? n(() => a(y)) : o.startTransition(() => a(y));
|
|
859
|
-
return;
|
|
860
|
-
}
|
|
861
|
-
if (n && x) {
|
|
862
|
-
n(() => {
|
|
863
|
-
h && (l && l.resolve(), h.skipTransition()), c({
|
|
864
|
-
isTransitioning: !0,
|
|
865
|
-
flushSync: !0,
|
|
866
|
-
currentLocation: C.currentLocation,
|
|
867
|
-
nextLocation: C.nextLocation
|
|
868
|
-
});
|
|
869
|
-
});
|
|
870
|
-
let S = e.window.document.startViewTransition(() => {
|
|
871
|
-
n(() => a(y));
|
|
872
|
-
});
|
|
873
|
-
S.finished.finally(() => {
|
|
874
|
-
n(() => {
|
|
875
|
-
u(void 0), m(void 0), i(void 0), c({ isTransitioning: !1 });
|
|
876
|
-
});
|
|
877
|
-
}), n(() => m(S));
|
|
878
|
-
return;
|
|
879
|
-
}
|
|
880
|
-
h ? (l && l.resolve(), h.skipTransition(), g({
|
|
881
|
-
state: y,
|
|
882
|
-
currentLocation: C.currentLocation,
|
|
883
|
-
nextLocation: C.nextLocation
|
|
884
|
-
})) : (i(y), c({
|
|
885
|
-
isTransitioning: !0,
|
|
886
|
-
flushSync: !1,
|
|
887
|
-
currentLocation: C.currentLocation,
|
|
888
|
-
nextLocation: C.nextLocation
|
|
889
|
-
}));
|
|
890
|
-
},
|
|
891
|
-
[e.window, n, h, l]
|
|
892
|
-
);
|
|
893
|
-
o.useLayoutEffect(() => e.subscribe(w), [e, w]), o.useEffect(() => {
|
|
894
|
-
s.isTransitioning && !s.flushSync && u(new mt());
|
|
895
|
-
}, [s]), o.useEffect(() => {
|
|
896
|
-
if (l && r && e.window) {
|
|
897
|
-
let y = r, b = l.promise, x = e.window.document.startViewTransition(async () => {
|
|
898
|
-
o.startTransition(() => a(y)), await b;
|
|
899
|
-
});
|
|
900
|
-
x.finished.finally(() => {
|
|
901
|
-
u(void 0), m(void 0), i(void 0), c({ isTransitioning: !1 });
|
|
902
|
-
}), m(x);
|
|
903
|
-
}
|
|
904
|
-
}, [r, l, e.window]), o.useEffect(() => {
|
|
905
|
-
l && r && t.location.key === r.location.key && l.resolve();
|
|
906
|
-
}, [l, h, t.location, r]), o.useEffect(() => {
|
|
907
|
-
!s.isTransitioning && d && (i(d.state), c({
|
|
908
|
-
isTransitioning: !0,
|
|
909
|
-
flushSync: !1,
|
|
910
|
-
currentLocation: d.currentLocation,
|
|
911
|
-
nextLocation: d.nextLocation
|
|
912
|
-
}), g(void 0));
|
|
913
|
-
}, [s.isTransitioning, d]);
|
|
914
|
-
let E = o.useMemo(() => ({
|
|
915
|
-
createHref: e.createHref,
|
|
916
|
-
encodeLocation: e.encodeLocation,
|
|
917
|
-
go: (y) => e.navigate(y),
|
|
918
|
-
push: (y, b, x) => e.navigate(y, {
|
|
919
|
-
state: b,
|
|
920
|
-
preventScrollReset: x == null ? void 0 : x.preventScrollReset
|
|
921
|
-
}),
|
|
922
|
-
replace: (y, b, x) => e.navigate(y, {
|
|
923
|
-
replace: !0,
|
|
924
|
-
state: b,
|
|
925
|
-
preventScrollReset: x == null ? void 0 : x.preventScrollReset
|
|
926
|
-
})
|
|
927
|
-
}), [e]), p = e.basename || "/", v = o.useMemo(
|
|
928
|
-
() => ({
|
|
929
|
-
router: e,
|
|
930
|
-
navigator: E,
|
|
931
|
-
static: !1,
|
|
932
|
-
basename: p
|
|
933
|
-
}),
|
|
934
|
-
[e, E, p]
|
|
935
|
-
);
|
|
936
|
-
return /* @__PURE__ */ o.createElement(o.Fragment, null, /* @__PURE__ */ o.createElement(O.Provider, { value: v }, /* @__PURE__ */ o.createElement(_.Provider, { value: t }, /* @__PURE__ */ o.createElement(te.Provider, { value: f.current }, /* @__PURE__ */ o.createElement(J.Provider, { value: s }, /* @__PURE__ */ o.createElement(
|
|
937
|
-
Pe,
|
|
938
|
-
{
|
|
939
|
-
basename: p,
|
|
940
|
-
location: t.location,
|
|
941
|
-
navigationType: t.historyAction,
|
|
942
|
-
navigator: E
|
|
943
|
-
},
|
|
944
|
-
/* @__PURE__ */ o.createElement(
|
|
945
|
-
pt,
|
|
946
|
-
{
|
|
947
|
-
routes: e.routes,
|
|
948
|
-
future: e.future,
|
|
949
|
-
state: t
|
|
950
|
-
}
|
|
951
|
-
)
|
|
952
|
-
))))), null);
|
|
953
|
-
}
|
|
954
|
-
var pt = o.memo(gt);
|
|
955
|
-
function gt({
|
|
956
|
-
routes: e,
|
|
957
|
-
future: n,
|
|
958
|
-
state: t
|
|
959
|
-
}) {
|
|
960
|
-
return Re(e, void 0, t, n);
|
|
961
|
-
}
|
|
962
|
-
function dn({
|
|
963
|
-
to: e,
|
|
964
|
-
replace: n,
|
|
965
|
-
state: t,
|
|
966
|
-
relative: a
|
|
967
|
-
}) {
|
|
968
|
-
R(
|
|
969
|
-
I(),
|
|
970
|
-
// TODO: This error is probably because they somehow have 2 versions of
|
|
971
|
-
// the router loaded. We can help them understand how to avoid that.
|
|
972
|
-
"<Navigate> may be used only in the context of a <Router> component."
|
|
973
|
-
);
|
|
974
|
-
let { static: r } = o.useContext(T);
|
|
975
|
-
L(
|
|
976
|
-
!r,
|
|
977
|
-
"<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."
|
|
978
|
-
);
|
|
979
|
-
let { matches: i } = o.useContext(k), { pathname: s } = N(), c = re(), l = ee(
|
|
980
|
-
e,
|
|
981
|
-
Z(i),
|
|
982
|
-
s,
|
|
983
|
-
a === "path"
|
|
984
|
-
), u = JSON.stringify(l);
|
|
985
|
-
return o.useEffect(() => {
|
|
986
|
-
c(JSON.parse(u), { replace: n, state: t, relative: a });
|
|
987
|
-
}, [c, u, a, n, t]), null;
|
|
988
|
-
}
|
|
989
|
-
function hn(e) {
|
|
990
|
-
return rt(e.context);
|
|
991
|
-
}
|
|
992
|
-
function Pe({
|
|
993
|
-
basename: e = "/",
|
|
994
|
-
children: n = null,
|
|
995
|
-
location: t,
|
|
996
|
-
navigationType: a = "POP",
|
|
997
|
-
navigator: r,
|
|
998
|
-
static: i = !1
|
|
999
|
-
}) {
|
|
1000
|
-
R(
|
|
1001
|
-
!I(),
|
|
1002
|
-
"You cannot render a <Router> inside another <Router>. You should never have more than one in your app."
|
|
1003
|
-
);
|
|
1004
|
-
let s = e.replace(/^\/*/, "/"), c = o.useMemo(
|
|
1005
|
-
() => ({
|
|
1006
|
-
basename: s,
|
|
1007
|
-
navigator: r,
|
|
1008
|
-
static: i,
|
|
1009
|
-
future: {}
|
|
1010
|
-
}),
|
|
1011
|
-
[s, r, i]
|
|
1012
|
-
);
|
|
1013
|
-
typeof t == "string" && (t = Y(t));
|
|
1014
|
-
let {
|
|
1015
|
-
pathname: l = "/",
|
|
1016
|
-
search: u = "",
|
|
1017
|
-
hash: h = "",
|
|
1018
|
-
state: m = null,
|
|
1019
|
-
key: d = "default"
|
|
1020
|
-
} = t, g = o.useMemo(() => {
|
|
1021
|
-
let f = A(l, s);
|
|
1022
|
-
return f == null ? null : {
|
|
1023
|
-
location: {
|
|
1024
|
-
pathname: f,
|
|
1025
|
-
search: u,
|
|
1026
|
-
hash: h,
|
|
1027
|
-
state: m,
|
|
1028
|
-
key: d
|
|
1029
|
-
},
|
|
1030
|
-
navigationType: a
|
|
1031
|
-
};
|
|
1032
|
-
}, [s, l, u, h, m, d, a]);
|
|
1033
|
-
return L(
|
|
1034
|
-
g != null,
|
|
1035
|
-
`<Router basename="${s}"> is not able to match the URL "${l}${u}${h}" because it does not start with the basename, so the <Router> won't render anything.`
|
|
1036
|
-
), g == null ? null : /* @__PURE__ */ o.createElement(T.Provider, { value: c }, /* @__PURE__ */ o.createElement(K.Provider, { children: n, value: g }));
|
|
1037
|
-
}
|
|
1038
|
-
var j = "get", V = "application/x-www-form-urlencoded";
|
|
1039
|
-
function q(e) {
|
|
1040
|
-
return e != null && typeof e.tagName == "string";
|
|
1041
|
-
}
|
|
1042
|
-
function vt(e) {
|
|
1043
|
-
return q(e) && e.tagName.toLowerCase() === "button";
|
|
1044
|
-
}
|
|
1045
|
-
function yt(e) {
|
|
1046
|
-
return q(e) && e.tagName.toLowerCase() === "form";
|
|
1047
|
-
}
|
|
1048
|
-
function wt(e) {
|
|
1049
|
-
return q(e) && e.tagName.toLowerCase() === "input";
|
|
1050
|
-
}
|
|
1051
|
-
function Et(e) {
|
|
1052
|
-
return !!(e.metaKey || e.altKey || e.ctrlKey || e.shiftKey);
|
|
1053
|
-
}
|
|
1054
|
-
function xt(e, n) {
|
|
1055
|
-
return e.button === 0 && // Ignore everything but left clicks
|
|
1056
|
-
(!n || n === "_self") && // Let browser handle "target=_blank" etc.
|
|
1057
|
-
!Et(e);
|
|
1058
|
-
}
|
|
1059
|
-
function Q(e = "") {
|
|
1060
|
-
return new URLSearchParams(
|
|
1061
|
-
typeof e == "string" || Array.isArray(e) || e instanceof URLSearchParams ? e : Object.keys(e).reduce((n, t) => {
|
|
1062
|
-
let a = e[t];
|
|
1063
|
-
return n.concat(
|
|
1064
|
-
Array.isArray(a) ? a.map((r) => [t, r]) : [[t, a]]
|
|
1065
|
-
);
|
|
1066
|
-
}, [])
|
|
1067
|
-
);
|
|
1068
|
-
}
|
|
1069
|
-
function bt(e, n) {
|
|
1070
|
-
let t = Q(e);
|
|
1071
|
-
return n && n.forEach((a, r) => {
|
|
1072
|
-
t.has(r) || n.getAll(r).forEach((i) => {
|
|
1073
|
-
t.append(r, i);
|
|
1074
|
-
});
|
|
1075
|
-
}), t;
|
|
1076
|
-
}
|
|
1077
|
-
var z = null;
|
|
1078
|
-
function Rt() {
|
|
1079
|
-
if (z === null)
|
|
1080
|
-
try {
|
|
1081
|
-
new FormData(
|
|
1082
|
-
document.createElement("form"),
|
|
1083
|
-
// @ts-expect-error if FormData supports the submitter parameter, this will throw
|
|
1084
|
-
0
|
|
1085
|
-
), z = !1;
|
|
1086
|
-
} catch {
|
|
1087
|
-
z = !0;
|
|
1088
|
-
}
|
|
1089
|
-
return z;
|
|
1090
|
-
}
|
|
1091
|
-
var Ct = /* @__PURE__ */ new Set([
|
|
1092
|
-
"application/x-www-form-urlencoded",
|
|
1093
|
-
"multipart/form-data",
|
|
1094
|
-
"text/plain"
|
|
1095
|
-
]);
|
|
1096
|
-
function X(e) {
|
|
1097
|
-
return e != null && !Ct.has(e) ? (L(
|
|
1098
|
-
!1,
|
|
1099
|
-
`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${V}"`
|
|
1100
|
-
), null) : e;
|
|
1101
|
-
}
|
|
1102
|
-
function St(e, n) {
|
|
1103
|
-
let t, a, r, i, s;
|
|
1104
|
-
if (yt(e)) {
|
|
1105
|
-
let c = e.getAttribute("action");
|
|
1106
|
-
a = c ? A(c, n) : null, t = e.getAttribute("method") || j, r = X(e.getAttribute("enctype")) || V, i = new FormData(e);
|
|
1107
|
-
} else if (vt(e) || wt(e) && (e.type === "submit" || e.type === "image")) {
|
|
1108
|
-
let c = e.form;
|
|
1109
|
-
if (c == null)
|
|
1110
|
-
throw new Error(
|
|
1111
|
-
'Cannot submit a <button> or <input type="submit"> without a <form>'
|
|
1112
|
-
);
|
|
1113
|
-
let l = e.getAttribute("formaction") || c.getAttribute("action");
|
|
1114
|
-
if (a = l ? A(l, n) : null, t = e.getAttribute("formmethod") || c.getAttribute("method") || j, r = X(e.getAttribute("formenctype")) || X(c.getAttribute("enctype")) || V, i = new FormData(c, e), !Rt()) {
|
|
1115
|
-
let { name: u, type: h, value: m } = e;
|
|
1116
|
-
if (h === "image") {
|
|
1117
|
-
let d = u ? `${u}.` : "";
|
|
1118
|
-
i.append(`${d}x`, "0"), i.append(`${d}y`, "0");
|
|
1119
|
-
} else u && i.append(u, m);
|
|
1120
|
-
}
|
|
1121
|
-
} else {
|
|
1122
|
-
if (q(e))
|
|
1123
|
-
throw new Error(
|
|
1124
|
-
'Cannot submit element that is not <form>, <button>, or <input type="submit|image">'
|
|
1125
|
-
);
|
|
1126
|
-
t = j, a = null, r = V, s = e;
|
|
1127
|
-
}
|
|
1128
|
-
return i && r === "text/plain" && (s = i, i = void 0), { action: a, method: t.toLowerCase(), encType: r, formData: i, body: s };
|
|
1129
|
-
}
|
|
1130
|
-
function oe(e, n) {
|
|
1131
|
-
if (e === !1 || e === null || typeof e > "u")
|
|
1132
|
-
throw new Error(n);
|
|
1133
|
-
}
|
|
1134
|
-
async function Pt(e, n) {
|
|
1135
|
-
if (e.id in n)
|
|
1136
|
-
return n[e.id];
|
|
1137
|
-
try {
|
|
1138
|
-
let t = await import(
|
|
1139
|
-
/* @vite-ignore */
|
|
1140
|
-
/* webpackIgnore: true */
|
|
1141
|
-
e.module
|
|
1142
|
-
);
|
|
1143
|
-
return n[e.id] = t, t;
|
|
1144
|
-
} catch (t) {
|
|
1145
|
-
return console.error(
|
|
1146
|
-
`Error loading route module \`${e.module}\`, reloading page...`
|
|
1147
|
-
), console.error(t), window.__reactRouterContext && window.__reactRouterContext.isSpaMode, window.location.reload(), new Promise(() => {
|
|
1148
|
-
});
|
|
1149
|
-
}
|
|
1150
|
-
}
|
|
1151
|
-
function Lt(e) {
|
|
1152
|
-
return e == null ? !1 : e.href == null ? e.rel === "preload" && typeof e.imageSrcSet == "string" && typeof e.imageSizes == "string" : typeof e.rel == "string" && typeof e.href == "string";
|
|
1153
|
-
}
|
|
1154
|
-
async function kt(e, n, t) {
|
|
1155
|
-
let a = await Promise.all(
|
|
1156
|
-
e.map(async (r) => {
|
|
1157
|
-
let i = n.routes[r.route.id];
|
|
1158
|
-
if (i) {
|
|
1159
|
-
let s = await Pt(i, t);
|
|
1160
|
-
return s.links ? s.links() : [];
|
|
1161
|
-
}
|
|
1162
|
-
return [];
|
|
1163
|
-
})
|
|
1164
|
-
);
|
|
1165
|
-
return Mt(
|
|
1166
|
-
a.flat(1).filter(Lt).filter((r) => r.rel === "stylesheet" || r.rel === "preload").map(
|
|
1167
|
-
(r) => r.rel === "stylesheet" ? { ...r, rel: "prefetch", as: "style" } : { ...r, rel: "prefetch" }
|
|
1168
|
-
)
|
|
1169
|
-
);
|
|
1170
|
-
}
|
|
1171
|
-
function me(e, n, t, a, r, i) {
|
|
1172
|
-
let s = (l, u) => t[u] ? l.route.id !== t[u].route.id : !0, c = (l, u) => {
|
|
1173
|
-
var h;
|
|
1174
|
-
return (
|
|
1175
|
-
// param change, /users/123 -> /users/456
|
|
1176
|
-
t[u].pathname !== l.pathname || // splat param changed, which is not present in match.path
|
|
1177
|
-
// e.g. /files/images/avatar.jpg -> files/finances.xls
|
|
1178
|
-
((h = t[u].route.path) == null ? void 0 : h.endsWith("*")) && t[u].params["*"] !== l.params["*"]
|
|
1179
|
-
);
|
|
1180
|
-
};
|
|
1181
|
-
return i === "assets" ? n.filter(
|
|
1182
|
-
(l, u) => s(l, u) || c(l, u)
|
|
1183
|
-
) : i === "data" ? n.filter((l, u) => {
|
|
1184
|
-
var m;
|
|
1185
|
-
let h = a.routes[l.route.id];
|
|
1186
|
-
if (!h || !h.hasLoader)
|
|
1187
|
-
return !1;
|
|
1188
|
-
if (s(l, u) || c(l, u))
|
|
1189
|
-
return !0;
|
|
1190
|
-
if (l.route.shouldRevalidate) {
|
|
1191
|
-
let d = l.route.shouldRevalidate({
|
|
1192
|
-
currentUrl: new URL(
|
|
1193
|
-
r.pathname + r.search + r.hash,
|
|
1194
|
-
window.origin
|
|
1195
|
-
),
|
|
1196
|
-
currentParams: ((m = t[0]) == null ? void 0 : m.params) || {},
|
|
1197
|
-
nextUrl: new URL(e, window.origin),
|
|
1198
|
-
nextParams: l.params,
|
|
1199
|
-
defaultShouldRevalidate: !0
|
|
1200
|
-
});
|
|
1201
|
-
if (typeof d == "boolean")
|
|
1202
|
-
return d;
|
|
1203
|
-
}
|
|
1204
|
-
return !0;
|
|
1205
|
-
}) : [];
|
|
1206
|
-
}
|
|
1207
|
-
function $t(e, n, { includeHydrateFallback: t } = {}) {
|
|
1208
|
-
return Tt(
|
|
1209
|
-
e.map((a) => {
|
|
1210
|
-
let r = n.routes[a.route.id];
|
|
1211
|
-
if (!r) return [];
|
|
1212
|
-
let i = [r.module];
|
|
1213
|
-
return r.clientActionModule && (i = i.concat(r.clientActionModule)), r.clientLoaderModule && (i = i.concat(r.clientLoaderModule)), t && r.hydrateFallbackModule && (i = i.concat(r.hydrateFallbackModule)), r.imports && (i = i.concat(r.imports)), i;
|
|
1214
|
-
}).flat(1)
|
|
1215
|
-
);
|
|
1216
|
-
}
|
|
1217
|
-
function Tt(e) {
|
|
1218
|
-
return [...new Set(e)];
|
|
1219
|
-
}
|
|
1220
|
-
function Nt(e) {
|
|
1221
|
-
let n = {}, t = Object.keys(e).sort();
|
|
1222
|
-
for (let a of t)
|
|
1223
|
-
n[a] = e[a];
|
|
1224
|
-
return n;
|
|
1225
|
-
}
|
|
1226
|
-
function Mt(e, n) {
|
|
1227
|
-
let t = /* @__PURE__ */ new Set();
|
|
1228
|
-
return new Set(n), e.reduce((a, r) => {
|
|
1229
|
-
let i = JSON.stringify(Nt(r));
|
|
1230
|
-
return t.has(i) || (t.add(i), a.push({ key: i, link: r })), a;
|
|
1231
|
-
}, []);
|
|
1232
|
-
}
|
|
1233
|
-
var At = /* @__PURE__ */ new Set([100, 101, 204, 205]);
|
|
1234
|
-
function Dt(e, n) {
|
|
1235
|
-
let t = typeof e == "string" ? new URL(
|
|
1236
|
-
e,
|
|
1237
|
-
// This can be called during the SSR flow via PrefetchPageLinksImpl so
|
|
1238
|
-
// don't assume window is available
|
|
1239
|
-
typeof window > "u" ? "server://singlefetch/" : window.location.origin
|
|
1240
|
-
) : e;
|
|
1241
|
-
return t.pathname === "/" ? t.pathname = "_root.data" : n && A(t.pathname, n) === "/" ? t.pathname = `${n.replace(/\/$/, "")}/_root.data` : t.pathname = `${t.pathname.replace(/\/$/, "")}.data`, t;
|
|
1242
|
-
}
|
|
1243
|
-
function Le() {
|
|
1244
|
-
let e = o.useContext(O);
|
|
1245
|
-
return oe(
|
|
1246
|
-
e,
|
|
1247
|
-
"You must render this element inside a <DataRouterContext.Provider> element"
|
|
1248
|
-
), e;
|
|
1249
|
-
}
|
|
1250
|
-
function Ot() {
|
|
1251
|
-
let e = o.useContext(_);
|
|
1252
|
-
return oe(
|
|
1253
|
-
e,
|
|
1254
|
-
"You must render this element inside a <DataRouterStateContext.Provider> element"
|
|
1255
|
-
), e;
|
|
1256
|
-
}
|
|
1257
|
-
var le = o.createContext(void 0);
|
|
1258
|
-
le.displayName = "FrameworkContext";
|
|
1259
|
-
function ke() {
|
|
1260
|
-
let e = o.useContext(le);
|
|
1261
|
-
return oe(
|
|
1262
|
-
e,
|
|
1263
|
-
"You must render this element inside a <HydratedRouter> element"
|
|
1264
|
-
), e;
|
|
1265
|
-
}
|
|
1266
|
-
function It(e, n) {
|
|
1267
|
-
let t = o.useContext(le), [a, r] = o.useState(!1), [i, s] = o.useState(!1), { onFocus: c, onBlur: l, onMouseEnter: u, onMouseLeave: h, onTouchStart: m } = n, d = o.useRef(null);
|
|
1268
|
-
o.useEffect(() => {
|
|
1269
|
-
if (e === "render" && s(!0), e === "viewport") {
|
|
1270
|
-
let w = (p) => {
|
|
1271
|
-
p.forEach((v) => {
|
|
1272
|
-
s(v.isIntersecting);
|
|
1273
|
-
});
|
|
1274
|
-
}, E = new IntersectionObserver(w, { threshold: 0.5 });
|
|
1275
|
-
return d.current && E.observe(d.current), () => {
|
|
1276
|
-
E.disconnect();
|
|
1277
|
-
};
|
|
1278
|
-
}
|
|
1279
|
-
}, [e]), o.useEffect(() => {
|
|
1280
|
-
if (a) {
|
|
1281
|
-
let w = setTimeout(() => {
|
|
1282
|
-
s(!0);
|
|
1283
|
-
}, 100);
|
|
1284
|
-
return () => {
|
|
1285
|
-
clearTimeout(w);
|
|
1286
|
-
};
|
|
1287
|
-
}
|
|
1288
|
-
}, [a]);
|
|
1289
|
-
let g = () => {
|
|
1290
|
-
r(!0);
|
|
1291
|
-
}, f = () => {
|
|
1292
|
-
r(!1), s(!1);
|
|
1293
|
-
};
|
|
1294
|
-
return t ? e !== "intent" ? [i, d, {}] : [
|
|
1295
|
-
i,
|
|
1296
|
-
d,
|
|
1297
|
-
{
|
|
1298
|
-
onFocus: U(c, g),
|
|
1299
|
-
onBlur: U(l, f),
|
|
1300
|
-
onMouseEnter: U(u, g),
|
|
1301
|
-
onMouseLeave: U(h, f),
|
|
1302
|
-
onTouchStart: U(m, g)
|
|
1303
|
-
}
|
|
1304
|
-
] : [!1, d, {}];
|
|
1305
|
-
}
|
|
1306
|
-
function U(e, n) {
|
|
1307
|
-
return (t) => {
|
|
1308
|
-
e && e(t), t.defaultPrevented || n(t);
|
|
1309
|
-
};
|
|
1310
|
-
}
|
|
1311
|
-
function _t({
|
|
1312
|
-
page: e,
|
|
1313
|
-
...n
|
|
1314
|
-
}) {
|
|
1315
|
-
let { router: t } = Le(), a = o.useMemo(
|
|
1316
|
-
() => pe(t.routes, e, t.basename),
|
|
1317
|
-
[t.routes, e, t.basename]
|
|
1318
|
-
);
|
|
1319
|
-
return a ? /* @__PURE__ */ o.createElement(Ut, { page: e, matches: a, ...n }) : null;
|
|
1320
|
-
}
|
|
1321
|
-
function Ft(e) {
|
|
1322
|
-
let { manifest: n, routeModules: t } = ke(), [a, r] = o.useState([]);
|
|
1323
|
-
return o.useEffect(() => {
|
|
1324
|
-
let i = !1;
|
|
1325
|
-
return kt(e, n, t).then(
|
|
1326
|
-
(s) => {
|
|
1327
|
-
i || r(s);
|
|
1328
|
-
}
|
|
1329
|
-
), () => {
|
|
1330
|
-
i = !0;
|
|
1331
|
-
};
|
|
1332
|
-
}, [e, n, t]), a;
|
|
1333
|
-
}
|
|
1334
|
-
function Ut({
|
|
1335
|
-
page: e,
|
|
1336
|
-
matches: n,
|
|
1337
|
-
...t
|
|
1338
|
-
}) {
|
|
1339
|
-
let a = N(), { manifest: r, routeModules: i } = ke(), { basename: s } = Le(), { loaderData: c, matches: l } = Ot(), u = o.useMemo(
|
|
1340
|
-
() => me(
|
|
1341
|
-
e,
|
|
1342
|
-
n,
|
|
1343
|
-
l,
|
|
1344
|
-
r,
|
|
1345
|
-
a,
|
|
1346
|
-
"data"
|
|
1347
|
-
),
|
|
1348
|
-
[e, n, l, r, a]
|
|
1349
|
-
), h = o.useMemo(
|
|
1350
|
-
() => me(
|
|
1351
|
-
e,
|
|
1352
|
-
n,
|
|
1353
|
-
l,
|
|
1354
|
-
r,
|
|
1355
|
-
a,
|
|
1356
|
-
"assets"
|
|
1357
|
-
),
|
|
1358
|
-
[e, n, l, r, a]
|
|
1359
|
-
), m = o.useMemo(() => {
|
|
1360
|
-
if (e === a.pathname + a.search + a.hash)
|
|
1361
|
-
return [];
|
|
1362
|
-
let f = /* @__PURE__ */ new Set(), w = !1;
|
|
1363
|
-
if (n.forEach((p) => {
|
|
1364
|
-
var y;
|
|
1365
|
-
let v = r.routes[p.route.id];
|
|
1366
|
-
!v || !v.hasLoader || (!u.some((b) => b.route.id === p.route.id) && p.route.id in c && ((y = i[p.route.id]) != null && y.shouldRevalidate) || v.hasClientLoader ? w = !0 : f.add(p.route.id));
|
|
1367
|
-
}), f.size === 0)
|
|
1368
|
-
return [];
|
|
1369
|
-
let E = Dt(e, s);
|
|
1370
|
-
return w && f.size > 0 && E.searchParams.set(
|
|
1371
|
-
"_routes",
|
|
1372
|
-
n.filter((p) => f.has(p.route.id)).map((p) => p.route.id).join(",")
|
|
1373
|
-
), [E.pathname + E.search];
|
|
1374
|
-
}, [
|
|
1375
|
-
s,
|
|
1376
|
-
c,
|
|
1377
|
-
a,
|
|
1378
|
-
r,
|
|
1379
|
-
u,
|
|
1380
|
-
n,
|
|
1381
|
-
e,
|
|
1382
|
-
i
|
|
1383
|
-
]), d = o.useMemo(
|
|
1384
|
-
() => $t(h, r),
|
|
1385
|
-
[h, r]
|
|
1386
|
-
), g = Ft(h);
|
|
1387
|
-
return /* @__PURE__ */ o.createElement(o.Fragment, null, m.map((f) => /* @__PURE__ */ o.createElement("link", { key: f, rel: "prefetch", as: "fetch", href: f, ...t })), d.map((f) => /* @__PURE__ */ o.createElement("link", { key: f, rel: "modulepreload", href: f, ...t })), g.map(({ key: f, link: w }) => (
|
|
1388
|
-
// these don't spread `linkProps` because they are full link descriptors
|
|
1389
|
-
// already with their own props
|
|
1390
|
-
/* @__PURE__ */ o.createElement("link", { key: f, ...w })
|
|
1391
|
-
)));
|
|
1392
|
-
}
|
|
1393
|
-
function Wt(...e) {
|
|
1394
|
-
return (n) => {
|
|
1395
|
-
e.forEach((t) => {
|
|
1396
|
-
typeof t == "function" ? t(n) : t != null && (t.current = n);
|
|
1397
|
-
});
|
|
1398
|
-
};
|
|
1399
|
-
}
|
|
1400
|
-
var $e = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u";
|
|
1401
|
-
try {
|
|
1402
|
-
$e && (window.__reactRouterVersion = "7.5.2");
|
|
1403
|
-
} catch {
|
|
1404
|
-
}
|
|
1405
|
-
var Te = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, Ne = o.forwardRef(
|
|
1406
|
-
function({
|
|
1407
|
-
onClick: n,
|
|
1408
|
-
discover: t = "render",
|
|
1409
|
-
prefetch: a = "none",
|
|
1410
|
-
relative: r,
|
|
1411
|
-
reloadDocument: i,
|
|
1412
|
-
replace: s,
|
|
1413
|
-
state: c,
|
|
1414
|
-
target: l,
|
|
1415
|
-
to: u,
|
|
1416
|
-
preventScrollReset: h,
|
|
1417
|
-
viewTransition: m,
|
|
1418
|
-
...d
|
|
1419
|
-
}, g) {
|
|
1420
|
-
let { basename: f } = o.useContext(T), w = typeof u == "string" && Te.test(u), E, p = !1;
|
|
1421
|
-
if (typeof u == "string" && w && (E = u, $e))
|
|
1422
|
-
try {
|
|
1423
|
-
let P = new URL(window.location.href), D = u.startsWith("//") ? new URL(P.protocol + u) : new URL(u), se = A(D.pathname, f);
|
|
1424
|
-
D.origin === P.origin && se != null ? u = se + D.search + D.hash : p = !0;
|
|
1425
|
-
} catch {
|
|
1426
|
-
L(
|
|
1427
|
-
!1,
|
|
1428
|
-
`<Link to="${u}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`
|
|
1429
|
-
);
|
|
1430
|
-
}
|
|
1431
|
-
let v = et(u, { relative: r }), [y, b, x] = It(
|
|
1432
|
-
a,
|
|
1433
|
-
d
|
|
1434
|
-
), C = jt(u, {
|
|
1435
|
-
replace: s,
|
|
1436
|
-
state: c,
|
|
1437
|
-
target: l,
|
|
1438
|
-
preventScrollReset: h,
|
|
1439
|
-
relative: r,
|
|
1440
|
-
viewTransition: m
|
|
1441
|
-
});
|
|
1442
|
-
function $(P) {
|
|
1443
|
-
n && n(P), P.defaultPrevented || C(P);
|
|
1444
|
-
}
|
|
1445
|
-
let S = (
|
|
1446
|
-
// eslint-disable-next-line jsx-a11y/anchor-has-content
|
|
1447
|
-
/* @__PURE__ */ o.createElement(
|
|
1448
|
-
"a",
|
|
1449
|
-
{
|
|
1450
|
-
...d,
|
|
1451
|
-
...x,
|
|
1452
|
-
href: E || v,
|
|
1453
|
-
onClick: p || i ? n : $,
|
|
1454
|
-
ref: Wt(g, b),
|
|
1455
|
-
target: l,
|
|
1456
|
-
"data-discover": !w && t === "render" ? "true" : void 0
|
|
1457
|
-
}
|
|
1458
|
-
)
|
|
1459
|
-
);
|
|
1460
|
-
return y && !w ? /* @__PURE__ */ o.createElement(o.Fragment, null, S, /* @__PURE__ */ o.createElement(_t, { page: v })) : S;
|
|
1461
|
-
}
|
|
1462
|
-
);
|
|
1463
|
-
Ne.displayName = "Link";
|
|
1464
|
-
var Bt = o.forwardRef(
|
|
1465
|
-
function({
|
|
1466
|
-
"aria-current": n = "page",
|
|
1467
|
-
caseSensitive: t = !1,
|
|
1468
|
-
className: a = "",
|
|
1469
|
-
end: r = !1,
|
|
1470
|
-
style: i,
|
|
1471
|
-
to: s,
|
|
1472
|
-
viewTransition: c,
|
|
1473
|
-
children: l,
|
|
1474
|
-
...u
|
|
1475
|
-
}, h) {
|
|
1476
|
-
let m = H(s, { relative: u.relative }), d = N(), g = o.useContext(_), { navigator: f, basename: w } = o.useContext(T), E = g != null && // Conditional usage is OK here because the usage of a data router is static
|
|
1477
|
-
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
1478
|
-
qt(m) && c === !0, p = f.encodeLocation ? f.encodeLocation(m).pathname : m.pathname, v = d.pathname, y = g && g.navigation && g.navigation.location ? g.navigation.location.pathname : null;
|
|
1479
|
-
t || (v = v.toLowerCase(), y = y ? y.toLowerCase() : null, p = p.toLowerCase()), y && w && (y = A(y, w) || y);
|
|
1480
|
-
const b = p !== "/" && p.endsWith("/") ? p.length - 1 : p.length;
|
|
1481
|
-
let x = v === p || !r && v.startsWith(p) && v.charAt(b) === "/", C = y != null && (y === p || !r && y.startsWith(p) && y.charAt(p.length) === "/"), $ = {
|
|
1482
|
-
isActive: x,
|
|
1483
|
-
isPending: C,
|
|
1484
|
-
isTransitioning: E
|
|
1485
|
-
}, S = x ? n : void 0, P;
|
|
1486
|
-
typeof a == "function" ? P = a($) : P = [
|
|
1487
|
-
a,
|
|
1488
|
-
x ? "active" : null,
|
|
1489
|
-
C ? "pending" : null,
|
|
1490
|
-
E ? "transitioning" : null
|
|
1491
|
-
].filter(Boolean).join(" ");
|
|
1492
|
-
let D = typeof i == "function" ? i($) : i;
|
|
1493
|
-
return /* @__PURE__ */ o.createElement(
|
|
1494
|
-
Ne,
|
|
1495
|
-
{
|
|
1496
|
-
...u,
|
|
1497
|
-
"aria-current": S,
|
|
1498
|
-
className: P,
|
|
1499
|
-
ref: h,
|
|
1500
|
-
style: D,
|
|
1501
|
-
to: s,
|
|
1502
|
-
viewTransition: c
|
|
1503
|
-
},
|
|
1504
|
-
typeof l == "function" ? l($) : l
|
|
1505
|
-
);
|
|
1506
|
-
}
|
|
1507
|
-
);
|
|
1508
|
-
Bt.displayName = "NavLink";
|
|
1509
|
-
var Ht = o.forwardRef(
|
|
1510
|
-
({
|
|
1511
|
-
discover: e = "render",
|
|
1512
|
-
fetcherKey: n,
|
|
1513
|
-
navigate: t,
|
|
1514
|
-
reloadDocument: a,
|
|
1515
|
-
replace: r,
|
|
1516
|
-
state: i,
|
|
1517
|
-
method: s = j,
|
|
1518
|
-
action: c,
|
|
1519
|
-
onSubmit: l,
|
|
1520
|
-
relative: u,
|
|
1521
|
-
preventScrollReset: h,
|
|
1522
|
-
viewTransition: m,
|
|
1523
|
-
...d
|
|
1524
|
-
}, g) => {
|
|
1525
|
-
let f = Jt(), w = Kt(c, { relative: u }), E = s.toLowerCase() === "get" ? "get" : "post", p = typeof c == "string" && Te.test(c), v = (y) => {
|
|
1526
|
-
if (l && l(y), y.defaultPrevented) return;
|
|
1527
|
-
y.preventDefault();
|
|
1528
|
-
let b = y.nativeEvent.submitter, x = (b == null ? void 0 : b.getAttribute("formmethod")) || s;
|
|
1529
|
-
f(b || y.currentTarget, {
|
|
1530
|
-
fetcherKey: n,
|
|
1531
|
-
method: x,
|
|
1532
|
-
navigate: t,
|
|
1533
|
-
replace: r,
|
|
1534
|
-
state: i,
|
|
1535
|
-
relative: u,
|
|
1536
|
-
preventScrollReset: h,
|
|
1537
|
-
viewTransition: m
|
|
1538
|
-
});
|
|
1539
|
-
};
|
|
1540
|
-
return /* @__PURE__ */ o.createElement(
|
|
1541
|
-
"form",
|
|
1542
|
-
{
|
|
1543
|
-
ref: g,
|
|
1544
|
-
method: E,
|
|
1545
|
-
action: w,
|
|
1546
|
-
onSubmit: a ? l : v,
|
|
1547
|
-
...d,
|
|
1548
|
-
"data-discover": !p && e === "render" ? "true" : void 0
|
|
1549
|
-
}
|
|
1550
|
-
);
|
|
1551
|
-
}
|
|
1552
|
-
);
|
|
1553
|
-
Ht.displayName = "Form";
|
|
1554
|
-
function zt(e) {
|
|
1555
|
-
return `${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`;
|
|
1556
|
-
}
|
|
1557
|
-
function Me(e) {
|
|
1558
|
-
let n = o.useContext(O);
|
|
1559
|
-
return R(n, zt(e)), n;
|
|
1560
|
-
}
|
|
1561
|
-
function jt(e, {
|
|
1562
|
-
target: n,
|
|
1563
|
-
replace: t,
|
|
1564
|
-
state: a,
|
|
1565
|
-
preventScrollReset: r,
|
|
1566
|
-
relative: i,
|
|
1567
|
-
viewTransition: s
|
|
1568
|
-
} = {}) {
|
|
1569
|
-
let c = re(), l = N(), u = H(e, { relative: i });
|
|
1570
|
-
return o.useCallback(
|
|
1571
|
-
(h) => {
|
|
1572
|
-
if (xt(h, n)) {
|
|
1573
|
-
h.preventDefault();
|
|
1574
|
-
let m = t !== void 0 ? t : W(l) === W(u);
|
|
1575
|
-
c(e, {
|
|
1576
|
-
replace: m,
|
|
1577
|
-
state: a,
|
|
1578
|
-
preventScrollReset: r,
|
|
1579
|
-
relative: i,
|
|
1580
|
-
viewTransition: s
|
|
1581
|
-
});
|
|
1582
|
-
}
|
|
1583
|
-
},
|
|
1584
|
-
[
|
|
1585
|
-
l,
|
|
1586
|
-
c,
|
|
1587
|
-
u,
|
|
1588
|
-
t,
|
|
1589
|
-
a,
|
|
1590
|
-
n,
|
|
1591
|
-
e,
|
|
1592
|
-
r,
|
|
1593
|
-
i,
|
|
1594
|
-
s
|
|
1595
|
-
]
|
|
1596
|
-
);
|
|
1597
|
-
}
|
|
1598
|
-
function mn(e) {
|
|
1599
|
-
L(
|
|
1600
|
-
typeof URLSearchParams < "u",
|
|
1601
|
-
"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."
|
|
1602
|
-
);
|
|
1603
|
-
let n = o.useRef(Q(e)), t = o.useRef(!1), a = N(), r = o.useMemo(
|
|
1604
|
-
() => (
|
|
1605
|
-
// Only merge in the defaults if we haven't yet called setSearchParams.
|
|
1606
|
-
// Once we call that we want those to take precedence, otherwise you can't
|
|
1607
|
-
// remove a param with setSearchParams({}) if it has an initial value
|
|
1608
|
-
bt(
|
|
1609
|
-
a.search,
|
|
1610
|
-
t.current ? null : n.current
|
|
1611
|
-
)
|
|
1612
|
-
),
|
|
1613
|
-
[a.search]
|
|
1614
|
-
), i = re(), s = o.useCallback(
|
|
1615
|
-
(c, l) => {
|
|
1616
|
-
const u = Q(
|
|
1617
|
-
typeof c == "function" ? c(r) : c
|
|
1618
|
-
);
|
|
1619
|
-
t.current = !0, i("?" + u, l);
|
|
1620
|
-
},
|
|
1621
|
-
[i, r]
|
|
1622
|
-
);
|
|
1623
|
-
return [r, s];
|
|
1624
|
-
}
|
|
1625
|
-
var Vt = 0, Yt = () => `__${String(++Vt)}__`;
|
|
1626
|
-
function Jt() {
|
|
1627
|
-
let { router: e } = Me(
|
|
1628
|
-
"useSubmit"
|
|
1629
|
-
/* UseSubmit */
|
|
1630
|
-
), { basename: n } = o.useContext(T), t = ft();
|
|
1631
|
-
return o.useCallback(
|
|
1632
|
-
async (a, r = {}) => {
|
|
1633
|
-
let { action: i, method: s, encType: c, formData: l, body: u } = St(
|
|
1634
|
-
a,
|
|
1635
|
-
n
|
|
1636
|
-
);
|
|
1637
|
-
if (r.navigate === !1) {
|
|
1638
|
-
let h = r.fetcherKey || Yt();
|
|
1639
|
-
await e.fetch(h, t, r.action || i, {
|
|
1640
|
-
preventScrollReset: r.preventScrollReset,
|
|
1641
|
-
formData: l,
|
|
1642
|
-
body: u,
|
|
1643
|
-
formMethod: r.method || s,
|
|
1644
|
-
formEncType: r.encType || c,
|
|
1645
|
-
flushSync: r.flushSync
|
|
1646
|
-
});
|
|
1647
|
-
} else
|
|
1648
|
-
await e.navigate(r.action || i, {
|
|
1649
|
-
preventScrollReset: r.preventScrollReset,
|
|
1650
|
-
formData: l,
|
|
1651
|
-
body: u,
|
|
1652
|
-
formMethod: r.method || s,
|
|
1653
|
-
formEncType: r.encType || c,
|
|
1654
|
-
replace: r.replace,
|
|
1655
|
-
state: r.state,
|
|
1656
|
-
fromRouteId: t,
|
|
1657
|
-
flushSync: r.flushSync,
|
|
1658
|
-
viewTransition: r.viewTransition
|
|
1659
|
-
});
|
|
1660
|
-
},
|
|
1661
|
-
[e, n, t]
|
|
1662
|
-
);
|
|
1663
|
-
}
|
|
1664
|
-
function Kt(e, { relative: n } = {}) {
|
|
1665
|
-
let { basename: t } = o.useContext(T), a = o.useContext(k);
|
|
1666
|
-
R(a, "useFormAction must be used inside a RouteContext");
|
|
1667
|
-
let [r] = a.matches.slice(-1), i = { ...H(e || ".", { relative: n }) }, s = N();
|
|
1668
|
-
if (e == null) {
|
|
1669
|
-
i.search = s.search;
|
|
1670
|
-
let c = new URLSearchParams(i.search), l = c.getAll("index");
|
|
1671
|
-
if (l.some((h) => h === "")) {
|
|
1672
|
-
c.delete("index"), l.filter((m) => m).forEach((m) => c.append("index", m));
|
|
1673
|
-
let h = c.toString();
|
|
1674
|
-
i.search = h ? `?${h}` : "";
|
|
1675
|
-
}
|
|
1676
|
-
}
|
|
1677
|
-
return (!e || e === ".") && r.route.index && (i.search = i.search ? i.search.replace(/^\?/, "?index&") : "?index"), t !== "/" && (i.pathname = i.pathname === "/" ? t : M([t, i.pathname])), W(i);
|
|
1678
|
-
}
|
|
1679
|
-
function qt(e, n = {}) {
|
|
1680
|
-
let t = o.useContext(J);
|
|
1681
|
-
R(
|
|
1682
|
-
t != null,
|
|
1683
|
-
"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?"
|
|
1684
|
-
);
|
|
1685
|
-
let { basename: a } = Me(
|
|
1686
|
-
"useViewTransitionState"
|
|
1687
|
-
/* useViewTransitionState */
|
|
1688
|
-
), r = H(e, { relative: n.relative });
|
|
1689
|
-
if (!t.isTransitioning)
|
|
1690
|
-
return !1;
|
|
1691
|
-
let i = A(t.currentLocation.pathname, a) || t.currentLocation.pathname, s = A(t.nextLocation.pathname, a) || t.nextLocation.pathname;
|
|
1692
|
-
return B(r.pathname, s) != null || B(r.pathname, i) != null;
|
|
1693
|
-
}
|
|
1694
|
-
function pn({
|
|
1695
|
-
context: e,
|
|
1696
|
-
router: n,
|
|
1697
|
-
hydrate: t = !0,
|
|
1698
|
-
nonce: a
|
|
1699
|
-
}) {
|
|
1700
|
-
R(
|
|
1701
|
-
n && e,
|
|
1702
|
-
"You must provide `router` and `context` to <StaticRouterProvider>"
|
|
1703
|
-
);
|
|
1704
|
-
let r = {
|
|
1705
|
-
router: n,
|
|
1706
|
-
navigator: Qt(),
|
|
1707
|
-
static: !0,
|
|
1708
|
-
staticContext: e,
|
|
1709
|
-
basename: e.basename || "/"
|
|
1710
|
-
}, i = /* @__PURE__ */ new Map(), s = "";
|
|
1711
|
-
if (t !== !1) {
|
|
1712
|
-
let l = {
|
|
1713
|
-
loaderData: e.loaderData,
|
|
1714
|
-
actionData: e.actionData,
|
|
1715
|
-
errors: Xt(e.errors)
|
|
1716
|
-
};
|
|
1717
|
-
s = `window.__staticRouterHydrationData = JSON.parse(${an(JSON.stringify(JSON.stringify(l)))});`;
|
|
1718
|
-
}
|
|
1719
|
-
let { state: c } = r.router;
|
|
1720
|
-
return /* @__PURE__ */ o.createElement(o.Fragment, null, /* @__PURE__ */ o.createElement(O.Provider, { value: r }, /* @__PURE__ */ o.createElement(_.Provider, { value: c }, /* @__PURE__ */ o.createElement(te.Provider, { value: i }, /* @__PURE__ */ o.createElement(J.Provider, { value: { isTransitioning: !1 } }, /* @__PURE__ */ o.createElement(
|
|
1721
|
-
Pe,
|
|
1722
|
-
{
|
|
1723
|
-
basename: r.basename,
|
|
1724
|
-
location: c.location,
|
|
1725
|
-
navigationType: c.historyAction,
|
|
1726
|
-
navigator: r.navigator,
|
|
1727
|
-
static: r.static
|
|
1728
|
-
},
|
|
1729
|
-
/* @__PURE__ */ o.createElement(
|
|
1730
|
-
Gt,
|
|
1731
|
-
{
|
|
1732
|
-
routes: n.routes,
|
|
1733
|
-
future: n.future,
|
|
1734
|
-
state: c
|
|
1735
|
-
}
|
|
1736
|
-
)
|
|
1737
|
-
))))), s ? /* @__PURE__ */ o.createElement(
|
|
1738
|
-
"script",
|
|
1739
|
-
{
|
|
1740
|
-
suppressHydrationWarning: !0,
|
|
1741
|
-
nonce: a,
|
|
1742
|
-
dangerouslySetInnerHTML: { __html: s }
|
|
1743
|
-
}
|
|
1744
|
-
) : null);
|
|
1745
|
-
}
|
|
1746
|
-
function Gt({
|
|
1747
|
-
routes: e,
|
|
1748
|
-
future: n,
|
|
1749
|
-
state: t
|
|
1750
|
-
}) {
|
|
1751
|
-
return Re(e, void 0, t, n);
|
|
1752
|
-
}
|
|
1753
|
-
function Xt(e) {
|
|
1754
|
-
if (!e) return null;
|
|
1755
|
-
let n = Object.entries(e), t = {};
|
|
1756
|
-
for (let [a, r] of n)
|
|
1757
|
-
we(r) ? t[a] = { ...r, __type: "RouteErrorResponse" } : r instanceof Error ? t[a] = {
|
|
1758
|
-
message: r.message,
|
|
1759
|
-
__type: "Error",
|
|
1760
|
-
// If this is a subclass (i.e., ReferenceError), send up the type so we
|
|
1761
|
-
// can re-create the same type during hydration.
|
|
1762
|
-
...r.name !== "Error" ? {
|
|
1763
|
-
__subType: r.name
|
|
1764
|
-
} : {}
|
|
1765
|
-
} : t[a] = r;
|
|
1766
|
-
return t;
|
|
1767
|
-
}
|
|
1768
|
-
function Qt() {
|
|
1769
|
-
return {
|
|
1770
|
-
createHref: Zt,
|
|
1771
|
-
encodeLocation: en,
|
|
1772
|
-
push(e) {
|
|
1773
|
-
throw new Error(
|
|
1774
|
-
`You cannot use navigator.push() on the server because it is a stateless environment. This error was probably triggered when you did a \`navigate(${JSON.stringify(e)})\` somewhere in your app.`
|
|
1775
|
-
);
|
|
1776
|
-
},
|
|
1777
|
-
replace(e) {
|
|
1778
|
-
throw new Error(
|
|
1779
|
-
`You cannot use navigator.replace() on the server because it is a stateless environment. This error was probably triggered when you did a \`navigate(${JSON.stringify(e)}, { replace: true })\` somewhere in your app.`
|
|
1780
|
-
);
|
|
1781
|
-
},
|
|
1782
|
-
go(e) {
|
|
1783
|
-
throw new Error(
|
|
1784
|
-
`You cannot use navigator.go() on the server because it is a stateless environment. This error was probably triggered when you did a \`navigate(${e})\` somewhere in your app.`
|
|
1785
|
-
);
|
|
1786
|
-
},
|
|
1787
|
-
back() {
|
|
1788
|
-
throw new Error(
|
|
1789
|
-
"You cannot use navigator.back() on the server because it is a stateless environment."
|
|
1790
|
-
);
|
|
1791
|
-
},
|
|
1792
|
-
forward() {
|
|
1793
|
-
throw new Error(
|
|
1794
|
-
"You cannot use navigator.forward() on the server because it is a stateless environment."
|
|
1795
|
-
);
|
|
1796
|
-
}
|
|
1797
|
-
};
|
|
1798
|
-
}
|
|
1799
|
-
function Zt(e) {
|
|
1800
|
-
return typeof e == "string" ? e : W(e);
|
|
1801
|
-
}
|
|
1802
|
-
function en(e) {
|
|
1803
|
-
let n = typeof e == "string" ? e : W(e);
|
|
1804
|
-
n = n.replace(/ $/, "%20");
|
|
1805
|
-
let t = tn.test(n) ? new URL(n) : new URL(n, "http://localhost");
|
|
1806
|
-
return {
|
|
1807
|
-
pathname: t.pathname,
|
|
1808
|
-
search: t.search,
|
|
1809
|
-
hash: t.hash
|
|
1810
|
-
};
|
|
1811
|
-
}
|
|
1812
|
-
var tn = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, nn = {
|
|
1813
|
-
"&": "\\u0026",
|
|
1814
|
-
">": "\\u003e",
|
|
1815
|
-
"<": "\\u003c",
|
|
1816
|
-
"\u2028": "\\u2028",
|
|
1817
|
-
"\u2029": "\\u2029"
|
|
1818
|
-
}, rn = /[&><\u2028\u2029]/g;
|
|
1819
|
-
function an(e) {
|
|
1820
|
-
return e.replace(rn, (n) => nn[n]);
|
|
1821
|
-
}
|
|
1822
|
-
new TextEncoder();
|
|
1823
|
-
[
|
|
1824
|
-
...At
|
|
1825
|
-
];
|
|
1826
|
-
export {
|
|
1827
|
-
Ne as L,
|
|
1828
|
-
dn as N,
|
|
1829
|
-
hn as O,
|
|
1830
|
-
fn as R,
|
|
1831
|
-
pn as S,
|
|
1832
|
-
re as a,
|
|
1833
|
-
mn as b,
|
|
1834
|
-
un as c,
|
|
1835
|
-
sn as d,
|
|
1836
|
-
dt as e,
|
|
1837
|
-
cn as f,
|
|
1838
|
-
Bt as g,
|
|
1839
|
-
on as h,
|
|
1840
|
-
we as i,
|
|
1841
|
-
et as j,
|
|
1842
|
-
B as m,
|
|
1843
|
-
ln as r,
|
|
1844
|
-
N as u
|
|
1845
|
-
};
|
|
1846
|
-
//# sourceMappingURL=chunk-BAXFHI7N-BLTsN6tl.js.map
|