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