zudoku 0.0.0-fabd0c1 → 0.0.0-fb5b775d
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 +34 -14
- package/cli.js +10 -0
- package/dist/app/ZuploBuildConfig.d.ts +45 -0
- package/dist/app/ZuploBuildConfig.js +29 -0
- package/dist/app/ZuploBuildConfig.js.map +1 -0
- package/dist/app/demo.js +22 -7
- package/dist/app/demo.js.map +1 -1
- package/dist/app/entry.client.d.ts +5 -2
- package/dist/app/entry.client.js +40 -4
- package/dist/app/entry.client.js.map +1 -1
- package/dist/app/entry.server.d.ts +8 -8
- package/dist/app/entry.server.js +27 -12
- package/dist/app/entry.server.js.map +1 -1
- package/dist/app/env.d.ts +33 -0
- package/dist/app/env.js +37 -0
- package/dist/app/env.js.map +1 -0
- package/dist/app/main.d.ts +93 -2
- package/dist/app/main.js +53 -43
- package/dist/app/main.js.map +1 -1
- package/dist/app/sentry.js +1 -1
- package/dist/app/standalone.js +11 -8
- package/dist/app/standalone.js.map +1 -1
- package/dist/cli/build/handler.d.ts +1 -3
- package/dist/cli/build/handler.js +18 -2
- package/dist/cli/build/handler.js.map +1 -1
- package/dist/cli/cli.d.ts +9 -0
- package/dist/cli/cli.js +22 -11
- package/dist/cli/cli.js.map +1 -1
- package/dist/cli/cmds/build.d.ts +11 -3
- package/dist/cli/cmds/build.js +20 -13
- package/dist/cli/cmds/build.js.map +1 -1
- package/dist/cli/cmds/dev.d.ts +1 -1
- package/dist/cli/cmds/dev.js +5 -0
- package/dist/cli/cmds/dev.js.map +1 -1
- package/dist/cli/cmds/preview.d.ts +16 -0
- package/dist/cli/cmds/preview.js +25 -0
- package/dist/cli/cmds/preview.js.map +1 -0
- package/dist/cli/common/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 -1
- 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/utils/ports.d.ts +1 -1
- package/dist/cli/common/utils/ports.js +16 -15
- package/dist/cli/common/utils/ports.js.map +1 -1
- package/dist/cli/common/validators/lib.js +1 -1
- package/dist/cli/common/validators/lib.js.map +1 -1
- package/dist/cli/common/version-check.d.ts +2 -0
- package/dist/cli/common/version-check.js +58 -0
- package/dist/cli/common/version-check.js.map +1 -0
- package/dist/cli/dev/handler.d.ts +1 -0
- package/dist/cli/dev/handler.js +14 -15
- package/dist/cli/dev/handler.js.map +1 -1
- package/dist/cli/preview/handler.d.ts +3 -0
- package/dist/cli/preview/handler.js +35 -0
- package/dist/cli/preview/handler.js.map +1 -0
- package/dist/codegen.js +2 -2
- package/dist/codegen.js.map +1 -1
- package/dist/config/config.d.ts +21 -32
- 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 -18
- package/dist/config/loader.js +104 -117
- package/dist/config/loader.js.map +1 -1
- package/dist/config/validators/BuildSchema.d.ts +44 -0
- package/dist/config/validators/BuildSchema.js +57 -0
- package/dist/config/validators/BuildSchema.js.map +1 -0
- package/dist/config/validators/InputNavigationSchema.d.ts +7646 -0
- package/dist/config/validators/InputNavigationSchema.js +78 -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 +96 -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 +1872 -1
- package/dist/config/validators/icon-types.js.map +1 -1
- package/dist/config/validators/validate.d.ts +919 -1846
- package/dist/config/validators/validate.js +506 -18
- package/dist/config/validators/validate.js.map +1 -1
- package/dist/config/validators/validate.test.js +183 -0
- package/dist/config/validators/validate.test.js.map +1 -0
- package/dist/flat-config.d.ts +386 -0
- package/dist/index.d.ts +10 -5
- package/dist/index.js +5 -0
- package/dist/index.js.map +1 -1
- package/dist/lib/MissingIcon.d.ts +2 -0
- package/dist/lib/MissingIcon.js +7 -0
- package/dist/lib/MissingIcon.js.map +1 -0
- package/dist/lib/assets/language-icons/c.d.ts +3 -0
- package/dist/lib/assets/language-icons/c.js +4 -0
- package/dist/lib/assets/language-icons/c.js.map +1 -0
- package/dist/lib/assets/language-icons/commonlisp.d.ts +3 -0
- package/dist/lib/assets/language-icons/commonlisp.js +4 -0
- package/dist/lib/assets/language-icons/commonlisp.js.map +1 -0
- package/dist/lib/assets/language-icons/cpp.d.ts +3 -0
- package/dist/lib/assets/language-icons/cpp.js +4 -0
- package/dist/lib/assets/language-icons/cpp.js.map +1 -0
- 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/dart.d.ts +3 -0
- package/dist/lib/assets/language-icons/dart.js +4 -0
- package/dist/lib/assets/language-icons/dart.js.map +1 -0
- package/dist/lib/assets/language-icons/elixir.d.ts +3 -0
- package/dist/lib/assets/language-icons/elixir.js +4 -0
- package/dist/lib/assets/language-icons/elixir.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/ocaml.d.ts +3 -0
- package/dist/lib/assets/language-icons/ocaml.js +4 -0
- package/dist/lib/assets/language-icons/ocaml.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/powershell.d.ts +3 -0
- package/dist/lib/assets/language-icons/powershell.js +4 -0
- package/dist/lib/assets/language-icons/powershell.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/scala.d.ts +3 -0
- package/dist/lib/assets/language-icons/scala.js +4 -0
- package/dist/lib/assets/language-icons/scala.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/assets/language-icons/zig.d.ts +3 -0
- package/dist/lib/assets/language-icons/zig.js +4 -0
- package/dist/lib/assets/language-icons/zig.js.map +1 -0
- package/dist/lib/auth/issuer.d.ts +2 -0
- package/dist/lib/auth/issuer.js +40 -0
- package/dist/lib/auth/issuer.js.map +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 +22 -14
- package/dist/lib/authentication/components/CallbackHandler.js +17 -11
- package/dist/lib/authentication/components/CallbackHandler.js.map +1 -1
- package/dist/lib/authentication/components/OAuthErrorPage.d.ts +3 -0
- package/dist/lib/authentication/components/OAuthErrorPage.js +99 -0
- package/dist/lib/authentication/components/OAuthErrorPage.js.map +1 -0
- package/dist/lib/authentication/components/SignIn.d.ts +1 -1
- package/dist/lib/authentication/components/SignIn.js +13 -6
- package/dist/lib/authentication/components/SignIn.js.map +1 -1
- package/dist/lib/authentication/components/SignOut.js +6 -6
- package/dist/lib/authentication/components/SignOut.js.map +1 -1
- package/dist/lib/authentication/components/SignUp.d.ts +1 -1
- package/dist/lib/authentication/components/SignUp.js +10 -5
- package/dist/lib/authentication/components/SignUp.js.map +1 -1
- package/dist/lib/authentication/errors.d.ts +6 -12
- package/dist/lib/authentication/errors.js +2 -1
- package/dist/lib/authentication/errors.js.map +1 -1
- package/dist/lib/authentication/hook.d.ts +12 -1
- package/dist/lib/authentication/hook.js +28 -4
- package/dist/lib/authentication/hook.js.map +1 -1
- package/dist/lib/authentication/providers/auth0.d.ts +2 -2
- package/dist/lib/authentication/providers/auth0.js +18 -8
- 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 +111 -49
- package/dist/lib/authentication/providers/clerk.js.map +1 -1
- package/dist/lib/authentication/providers/firebase.d.ts +4 -0
- package/dist/lib/authentication/providers/firebase.js +273 -0
- package/dist/lib/authentication/providers/firebase.js.map +1 -0
- package/dist/lib/authentication/providers/openid.d.ts +23 -24
- package/dist/lib/authentication/providers/openid.js +97 -47
- package/dist/lib/authentication/providers/openid.js.map +1 -1
- package/dist/lib/authentication/providers/supabase/SupabaseAuthUI.d.ts +8 -0
- package/dist/lib/authentication/providers/supabase/SupabaseAuthUI.js +39 -0
- package/dist/lib/authentication/providers/supabase/SupabaseAuthUI.js.map +1 -0
- package/dist/lib/authentication/providers/supabase.d.ts +4 -0
- package/dist/lib/authentication/providers/supabase.js +108 -0
- package/dist/lib/authentication/providers/supabase.js.map +1 -0
- package/dist/lib/authentication/state.d.ts +11 -29
- package/dist/lib/authentication/state.js +29 -26
- package/dist/lib/authentication/state.js.map +1 -1
- package/dist/lib/authentication/ui/EmailVerificationUi.d.ts +4 -0
- package/dist/lib/authentication/ui/EmailVerificationUi.js +34 -0
- package/dist/lib/authentication/ui/EmailVerificationUi.js.map +1 -0
- package/dist/lib/authentication/ui/ZudokuAuthUi.d.ts +29 -0
- package/dist/lib/authentication/ui/ZudokuAuthUi.js +160 -0
- package/dist/lib/authentication/ui/ZudokuAuthUi.js.map +1 -0
- package/dist/lib/authentication/ui/icons/Apple.d.ts +3 -0
- package/dist/lib/authentication/ui/icons/Apple.js +4 -0
- package/dist/lib/authentication/ui/icons/Apple.js.map +1 -0
- package/dist/lib/authentication/ui/icons/Facebook.d.ts +3 -0
- package/dist/lib/authentication/ui/icons/Facebook.js +4 -0
- package/dist/lib/authentication/ui/icons/Facebook.js.map +1 -0
- package/dist/lib/authentication/ui/icons/Github.d.ts +3 -0
- package/dist/lib/authentication/ui/icons/Github.js +4 -0
- package/dist/lib/authentication/ui/icons/Github.js.map +1 -0
- package/dist/lib/authentication/ui/icons/Google.d.ts +3 -0
- package/dist/lib/authentication/ui/icons/Google.js +4 -0
- package/dist/lib/authentication/ui/icons/Google.js.map +1 -0
- package/dist/lib/authentication/ui/icons/Microsoft.d.ts +3 -0
- package/dist/lib/authentication/ui/icons/Microsoft.js +4 -0
- package/dist/lib/authentication/ui/icons/Microsoft.js.map +1 -0
- package/dist/lib/authentication/ui/icons/X.d.ts +3 -0
- package/dist/lib/authentication/ui/icons/X.js +4 -0
- package/dist/lib/authentication/ui/icons/X.js.map +1 -0
- 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/authentication/utils/relativeRedirectUrl.d.ts +1 -0
- package/dist/lib/authentication/utils/relativeRedirectUrl.js +8 -0
- package/dist/lib/authentication/utils/relativeRedirectUrl.js.map +1 -0
- package/dist/lib/components/AnchorLink.d.ts +2 -2
- package/dist/lib/components/AnchorLink.js +9 -5
- package/dist/lib/components/AnchorLink.js.map +1 -1
- package/dist/lib/components/Autocomplete.d.ts +15 -0
- package/dist/lib/components/Autocomplete.js +51 -0
- package/dist/lib/components/Autocomplete.js.map +1 -0
- package/dist/lib/components/Banner.js +2 -2
- package/dist/lib/components/Banner.js.map +1 -1
- package/dist/lib/components/Bootstrap.d.ts +2 -1
- package/dist/lib/components/Bootstrap.js +3 -2
- package/dist/lib/components/Bootstrap.js.map +1 -1
- package/dist/lib/components/BuildCheck.d.ts +5 -0
- package/dist/lib/components/BuildCheck.js +45 -0
- package/dist/lib/components/BuildCheck.js.map +1 -0
- package/dist/lib/components/CategoryHeading.js +1 -1
- package/dist/lib/components/CategoryHeading.js.map +1 -1
- package/dist/lib/components/ErrorPage.js +2 -2
- package/dist/lib/components/ErrorPage.js.map +1 -1
- package/dist/lib/components/Footer.d.ts +1 -0
- package/dist/lib/components/Footer.js +32 -0
- package/dist/lib/components/Footer.js.map +1 -0
- package/dist/lib/components/Framed.d.ts +7 -0
- package/dist/lib/components/Framed.js +26 -0
- package/dist/lib/components/Framed.js.map +1 -0
- package/dist/lib/components/Header.js +20 -13
- package/dist/lib/components/Header.js.map +1 -1
- package/dist/lib/components/Heading.d.ts +9 -5
- package/dist/lib/components/Heading.js +4 -3
- package/dist/lib/components/Heading.js.map +1 -1
- package/dist/lib/components/InlineCode.d.ts +2 -1
- package/dist/lib/components/InlineCode.js +2 -9
- package/dist/lib/components/InlineCode.js.map +1 -1
- package/dist/lib/components/LanguageIcon.d.ts +3 -0
- package/dist/lib/components/LanguageIcon.js +163 -0
- package/dist/lib/components/LanguageIcon.js.map +1 -0
- package/dist/lib/components/Layout.js +10 -32
- package/dist/lib/components/Layout.js.map +1 -1
- package/dist/lib/components/Main.d.ts +2 -0
- package/dist/lib/components/Main.js +18 -0
- package/dist/lib/components/Main.js.map +1 -0
- package/dist/lib/components/Markdown.d.ts +4 -3
- package/dist/lib/components/Markdown.js +15 -15
- package/dist/lib/components/Markdown.js.map +1 -1
- package/dist/lib/components/Mermaid.d.ts +7 -0
- package/dist/lib/components/Mermaid.js +42 -0
- package/dist/lib/components/Mermaid.js.map +1 -0
- 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 +14 -4
- 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/PagefindSearchMeta.d.ts +8 -0
- package/dist/lib/components/PagefindSearchMeta.js +7 -0
- package/dist/lib/components/PagefindSearchMeta.js.map +1 -0
- package/dist/lib/components/Pagination.d.ts +11 -0
- package/dist/lib/components/Pagination.js +10 -0
- package/dist/lib/components/Pagination.js.map +1 -0
- package/dist/lib/components/PathRenderer.d.ts +11 -0
- package/dist/lib/components/PathRenderer.js +28 -0
- package/dist/lib/components/PathRenderer.js.map +1 -0
- package/dist/lib/components/Search.js +8 -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.js +172 -0
- package/dist/lib/components/Slot.test.js.map +1 -0
- package/dist/lib/components/StatusPage.d.ts +7 -0
- package/dist/lib/components/StatusPage.js +75 -0
- package/dist/lib/components/StatusPage.js.map +1 -0
- package/dist/lib/components/ThemeSwitch.js +8 -5
- package/dist/lib/components/ThemeSwitch.js.map +1 -1
- package/dist/lib/components/TopNavigation.d.ts +7 -5
- package/dist/lib/components/TopNavigation.js +54 -42
- package/dist/lib/components/TopNavigation.js.map +1 -1
- package/dist/lib/components/Typography.d.ts +5 -0
- package/dist/lib/components/Typography.js +8 -0
- package/dist/lib/components/Typography.js.map +1 -0
- package/dist/lib/components/Zudoku.d.ts +1 -1
- package/dist/lib/components/Zudoku.js +17 -15
- package/dist/lib/components/Zudoku.js.map +1 -1
- package/dist/lib/components/cache.d.ts +15 -0
- package/dist/lib/components/cache.js +18 -0
- package/dist/lib/components/cache.js.map +1 -0
- package/dist/lib/components/context/BypassProtectedRoutesContext.d.ts +1 -0
- package/dist/lib/components/context/BypassProtectedRoutesContext.js +3 -0
- package/dist/lib/components/context/BypassProtectedRoutesContext.js.map +1 -0
- package/dist/lib/components/context/ComponentsContext.js.map +1 -1
- package/dist/lib/components/context/RouterEventsEmitter.d.ts +1 -0
- package/dist/lib/components/context/RouterEventsEmitter.js +17 -0
- package/dist/lib/components/context/RouterEventsEmitter.js.map +1 -0
- package/dist/lib/components/context/SlotProvider.d.ts +26 -0
- package/dist/lib/components/context/SlotProvider.js +83 -0
- package/dist/lib/components/context/SlotProvider.js.map +1 -0
- package/dist/lib/components/context/ViewportAnchorContext.d.ts +2 -4
- package/dist/lib/components/context/ViewportAnchorContext.js +30 -24
- package/dist/lib/components/context/ViewportAnchorContext.js.map +1 -1
- package/dist/lib/components/context/ZudokuContext.d.ts +4 -8
- package/dist/lib/components/context/ZudokuContext.js +68 -22
- 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 +63 -37
- package/dist/lib/components/index.js +25 -15
- package/dist/lib/components/index.js.map +1 -1
- package/dist/lib/components/navigation/Navigation.d.ts +5 -0
- package/dist/lib/components/navigation/Navigation.js +12 -0
- package/dist/lib/components/navigation/Navigation.js.map +1 -0
- package/dist/lib/components/navigation/NavigationBadge.d.ts +26 -0
- package/dist/lib/components/navigation/NavigationBadge.js +26 -0
- package/dist/lib/components/navigation/NavigationBadge.js.map +1 -0
- package/dist/lib/components/navigation/NavigationCategory.d.ts +5 -0
- package/dist/lib/components/navigation/NavigationCategory.js +66 -0
- package/dist/lib/components/navigation/NavigationCategory.js.map +1 -0
- package/dist/lib/components/navigation/NavigationItem.d.ts +6 -0
- package/dist/lib/components/navigation/NavigationItem.js +55 -0
- package/dist/lib/components/navigation/NavigationItem.js.map +1 -0
- package/dist/lib/components/navigation/NavigationWrapper.d.ts +7 -0
- package/dist/lib/components/navigation/NavigationWrapper.js +21 -0
- package/dist/lib/components/navigation/NavigationWrapper.js.map +1 -0
- package/dist/lib/components/navigation/PoweredByZudoku.d.ts +3 -0
- package/dist/lib/components/navigation/PoweredByZudoku.js +7 -0
- package/dist/lib/components/navigation/PoweredByZudoku.js.map +1 -0
- package/dist/lib/components/navigation/Toc.js +46 -0
- package/dist/lib/components/navigation/Toc.js.map +1 -0
- package/dist/lib/components/navigation/ZudokuLogo.d.ts +6 -0
- package/dist/lib/components/navigation/ZudokuLogo.js +5 -0
- package/dist/lib/components/navigation/ZudokuLogo.js.map +1 -0
- package/dist/lib/components/navigation/ZuploLogo.d.ts +3 -0
- package/dist/lib/components/navigation/ZuploLogo.js +4 -0
- package/dist/lib/components/navigation/ZuploLogo.js.map +1 -0
- package/dist/lib/components/navigation/utils.d.ts +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.d.ts +2 -0
- package/dist/lib/core/RouteGuard.js +49 -0
- package/dist/lib/core/RouteGuard.js.map +1 -0
- package/dist/lib/core/ZudokuContext.d.ts +67 -22
- package/dist/lib/core/ZudokuContext.js +79 -17
- 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 +23 -9
- package/dist/lib/core/plugins.js +4 -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 +5 -2
- package/dist/lib/errors/ErrorAlert.js.map +1 -1
- package/dist/lib/errors/ErrorMessage.d.ts +3 -0
- package/dist/lib/errors/ErrorMessage.js +16 -0
- package/dist/lib/errors/ErrorMessage.js.map +1 -0
- package/dist/lib/errors/RouterError.d.ts +3 -1
- package/dist/lib/errors/RouterError.js +3 -2
- package/dist/lib/errors/RouterError.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 +30 -0
- package/dist/lib/hooks/index.js +16 -0
- package/dist/lib/hooks/index.js.map +1 -0
- package/dist/lib/hooks/useEvent.d.ts +11 -0
- package/dist/lib/hooks/useEvent.js +19 -0
- package/dist/lib/hooks/useEvent.js.map +1 -0
- package/dist/lib/hooks/useEvent.test.d.ts +1 -0
- package/dist/lib/hooks/useEvent.test.js +102 -0
- package/dist/lib/hooks/useEvent.test.js.map +1 -0
- package/dist/lib/hooks/useHotkey.d.ts +4 -0
- package/dist/lib/hooks/useHotkey.js +58 -0
- package/dist/lib/hooks/useHotkey.js.map +1 -0
- package/dist/lib/icons.d.ts +1 -0
- package/dist/lib/icons.js +1 -0
- package/dist/lib/icons.js.map +1 -1
- package/dist/lib/oas/graphql/circular.d.ts +4 -0
- package/dist/lib/oas/graphql/circular.js +58 -0
- package/dist/lib/oas/graphql/circular.js.map +1 -0
- package/dist/lib/oas/graphql/index.d.ts +25 -1
- package/dist/lib/oas/graphql/index.js +251 -67
- package/dist/lib/oas/graphql/index.js.map +1 -1
- package/dist/lib/oas/parser/dereference/index.js +10 -4
- 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.d.ts +9 -3
- package/dist/lib/oas/parser/index.js +12 -24
- package/dist/lib/oas/parser/index.js.map +1 -1
- package/dist/lib/oas/parser/upgrade/index.d.ts +1 -0
- package/dist/lib/oas/parser/upgrade/index.js +83 -15
- package/dist/lib/oas/parser/upgrade/index.js.map +1 -1
- package/dist/lib/plugins/api-catalog/Catalog.d.ts +4 -2
- package/dist/lib/plugins/api-catalog/Catalog.js +22 -26
- package/dist/lib/plugins/api-catalog/Catalog.js.map +1 -1
- package/dist/lib/plugins/api-catalog/index.d.ts +7 -6
- package/dist/lib/plugins/api-catalog/index.js +39 -8
- 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 +25 -7
- 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/ProtectedRoute.js +4 -1
- package/dist/lib/plugins/api-keys/ProtectedRoute.js.map +1 -1
- package/dist/lib/plugins/api-keys/SettingsApiKeys.d.ts +1 -1
- package/dist/lib/plugins/api-keys/SettingsApiKeys.js +11 -55
- package/dist/lib/plugins/api-keys/SettingsApiKeys.js.map +1 -1
- package/dist/lib/plugins/api-keys/index.d.ts +38 -16
- package/dist/lib/plugins/api-keys/index.js +91 -46
- package/dist/lib/plugins/api-keys/index.js.map +1 -1
- package/dist/lib/plugins/api-keys/settings/ApiKeyItem.d.ts +12 -0
- package/dist/lib/plugins/api-keys/settings/ApiKeyItem.js +133 -0
- package/dist/lib/plugins/api-keys/settings/ApiKeyItem.js.map +1 -0
- package/dist/lib/plugins/api-keys/settings/ApiKeyList.d.ts +4 -0
- package/dist/lib/plugins/api-keys/settings/ApiKeyList.js +33 -0
- package/dist/lib/plugins/api-keys/settings/ApiKeyList.js.map +1 -0
- package/dist/lib/plugins/api-keys/settings/RevealApiKey.d.ts +6 -0
- package/dist/lib/plugins/api-keys/settings/RevealApiKey.js +39 -0
- package/dist/lib/plugins/api-keys/settings/RevealApiKey.js.map +1 -0
- 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 +3 -3
- package/dist/lib/plugins/markdown/MdxPage.js +57 -13
- package/dist/lib/plugins/markdown/MdxPage.js.map +1 -1
- package/dist/lib/plugins/markdown/assets/ChatGPTLogo.d.ts +2 -0
- package/dist/lib/plugins/markdown/assets/ChatGPTLogo.js +3 -0
- package/dist/lib/plugins/markdown/assets/ChatGPTLogo.js.map +1 -0
- package/dist/lib/plugins/markdown/assets/ClaudeLogo.d.ts +2 -0
- package/dist/lib/plugins/markdown/assets/ClaudeLogo.js +3 -0
- package/dist/lib/plugins/markdown/assets/ClaudeLogo.js.map +1 -0
- package/dist/lib/plugins/markdown/index.d.ts +14 -4
- package/dist/lib/plugins/markdown/index.js +9 -26
- package/dist/lib/plugins/markdown/index.js.map +1 -1
- package/dist/lib/plugins/openapi/CollapsibleCode.d.ts +1 -0
- package/dist/lib/plugins/openapi/CollapsibleCode.js +3 -1
- package/dist/lib/plugins/openapi/CollapsibleCode.js.map +1 -1
- package/dist/lib/plugins/openapi/ColorizedParam.d.ts +10 -2
- package/dist/lib/plugins/openapi/ColorizedParam.js +21 -7
- package/dist/lib/plugins/openapi/ColorizedParam.js.map +1 -1
- package/dist/lib/plugins/openapi/DownloadSchemaButton.d.ts +3 -0
- package/dist/lib/plugins/openapi/DownloadSchemaButton.js +47 -0
- package/dist/lib/plugins/openapi/DownloadSchemaButton.js.map +1 -0
- package/dist/lib/plugins/openapi/Endpoint.d.ts +1 -1
- package/dist/lib/plugins/openapi/Endpoint.js +8 -10
- package/dist/lib/plugins/openapi/Endpoint.js.map +1 -1
- package/dist/lib/plugins/openapi/GeneratedExampleSidecarBox.d.ts +5 -0
- package/dist/lib/plugins/openapi/GeneratedExampleSidecarBox.js +10 -0
- package/dist/lib/plugins/openapi/GeneratedExampleSidecarBox.js.map +1 -0
- package/dist/lib/plugins/openapi/MCPEndpoint.d.ts +5 -0
- package/dist/lib/plugins/openapi/MCPEndpoint.js +56 -0
- package/dist/lib/plugins/openapi/MCPEndpoint.js.map +1 -0
- package/dist/lib/plugins/openapi/OasProvider.d.ts +8 -0
- package/dist/lib/plugins/openapi/OasProvider.js +39 -0
- package/dist/lib/plugins/openapi/OasProvider.js.map +1 -0
- package/dist/lib/plugins/openapi/OperationList.d.ts +4 -3
- package/dist/lib/plugins/openapi/OperationList.js +118 -28
- package/dist/lib/plugins/openapi/OperationList.js.map +1 -1
- package/dist/lib/plugins/openapi/OperationListItem.d.ts +6 -4
- package/dist/lib/plugins/openapi/OperationListItem.js +21 -17
- package/dist/lib/plugins/openapi/OperationListItem.js.map +1 -1
- package/dist/lib/plugins/openapi/ParamInfos.d.ts +6 -0
- package/dist/lib/plugins/openapi/ParamInfos.js +48 -0
- package/dist/lib/plugins/openapi/ParamInfos.js.map +1 -0
- package/dist/lib/plugins/openapi/ParameterList.d.ts +4 -3
- package/dist/lib/plugins/openapi/ParameterList.js +10 -6
- 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 +27 -3
- package/dist/lib/plugins/openapi/ParameterListItem.js.map +1 -1
- package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.d.ts +5 -4
- package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.js +15 -4
- package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.js.map +1 -1
- package/dist/lib/plugins/openapi/RequestBodySidecarBox.d.ts +11 -5
- package/dist/lib/plugins/openapi/RequestBodySidecarBox.js +8 -13
- package/dist/lib/plugins/openapi/RequestBodySidecarBox.js.map +1 -1
- package/dist/lib/plugins/openapi/ResponsesSidecarBox.d.ts +6 -6
- package/dist/lib/plugins/openapi/ResponsesSidecarBox.js +28 -15
- package/dist/lib/plugins/openapi/ResponsesSidecarBox.js.map +1 -1
- package/dist/lib/plugins/openapi/SchemaList.d.ts +1 -0
- package/dist/lib/plugins/openapi/SchemaList.js +53 -0
- package/dist/lib/plugins/openapi/SchemaList.js.map +1 -0
- package/dist/lib/plugins/openapi/Sidecar.d.ts +5 -4
- package/dist/lib/plugins/openapi/Sidecar.js +105 -93
- package/dist/lib/plugins/openapi/Sidecar.js.map +1 -1
- package/dist/lib/plugins/openapi/SidecarBox.js +4 -4
- package/dist/lib/plugins/openapi/SidecarBox.js.map +1 -1
- package/dist/lib/plugins/openapi/SidecarExamples.d.ts +14 -0
- package/dist/lib/plugins/openapi/SidecarExamples.js +57 -0
- package/dist/lib/plugins/openapi/SidecarExamples.js.map +1 -0
- package/dist/lib/plugins/openapi/SimpleSelect.js +1 -1
- package/dist/lib/plugins/openapi/SimpleSelect.js.map +1 -1
- package/dist/lib/plugins/openapi/StaggeredRender.d.ts +1 -1
- package/dist/lib/plugins/openapi/client/GraphQLClient.d.ts +2 -2
- package/dist/lib/plugins/openapi/client/GraphQLClient.js +23 -94
- package/dist/lib/plugins/openapi/client/GraphQLClient.js.map +1 -1
- package/dist/lib/plugins/openapi/client/GraphQLContext.d.ts +1 -1
- package/dist/lib/plugins/openapi/client/createServer.d.ts +2 -1
- package/dist/lib/plugins/openapi/client/createServer.js +6 -4
- package/dist/lib/plugins/openapi/client/createServer.js.map +1 -1
- package/dist/lib/plugins/openapi/client/useCreateQuery.d.ts +11 -2
- package/dist/lib/plugins/openapi/client/useCreateQuery.js +14 -9
- package/dist/lib/plugins/openapi/client/useCreateQuery.js.map +1 -1
- package/dist/lib/plugins/openapi/components/ConstValue.d.ts +5 -0
- package/dist/lib/plugins/openapi/components/ConstValue.js +6 -0
- package/dist/lib/plugins/openapi/components/ConstValue.js.map +1 -0
- package/dist/lib/plugins/openapi/components/EnumValues.d.ts +5 -0
- package/dist/lib/plugins/openapi/components/EnumValues.js +15 -0
- package/dist/lib/plugins/openapi/components/EnumValues.js.map +1 -0
- package/dist/lib/plugins/openapi/components/NonHighlightedCode.d.ts +4 -0
- package/dist/lib/plugins/openapi/components/NonHighlightedCode.js +5 -0
- package/dist/lib/plugins/openapi/components/NonHighlightedCode.js.map +1 -0
- package/dist/lib/plugins/openapi/components/ResponseContent.d.ts +12 -0
- package/dist/lib/plugins/openapi/components/ResponseContent.js +20 -0
- package/dist/lib/plugins/openapi/components/ResponseContent.js.map +1 -0
- package/dist/lib/plugins/openapi/components/SelectOnClick.d.ts +5 -0
- package/dist/lib/plugins/openapi/components/SelectOnClick.js +16 -0
- package/dist/lib/plugins/openapi/components/SelectOnClick.js.map +1 -0
- package/dist/lib/plugins/openapi/context.d.ts +1 -1
- package/dist/lib/plugins/openapi/graphql/fragment-masking.d.ts +1 -1
- package/dist/lib/plugins/openapi/graphql/gql.d.ts +11 -3
- package/dist/lib/plugins/openapi/graphql/gql.js +5 -14
- package/dist/lib/plugins/openapi/graphql/gql.js.map +1 -1
- package/dist/lib/plugins/openapi/graphql/graphql.d.ts +123 -23
- package/dist/lib/plugins/openapi/graphql/graphql.js +66 -11
- package/dist/lib/plugins/openapi/graphql/graphql.js.map +1 -1
- package/dist/lib/plugins/openapi/index.d.ts +11 -8
- package/dist/lib/plugins/openapi/index.js +103 -86
- package/dist/lib/plugins/openapi/index.js.map +1 -1
- package/dist/lib/plugins/openapi/interfaces.d.ts +74 -22
- package/dist/lib/plugins/openapi/playground/BodyPanel.d.ts +5 -0
- package/dist/lib/plugins/openapi/playground/BodyPanel.js +78 -0
- package/dist/lib/plugins/openapi/playground/BodyPanel.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/CollapsibleHeader.d.ts +8 -0
- package/dist/lib/plugins/openapi/playground/CollapsibleHeader.js +11 -0
- package/dist/lib/plugins/openapi/playground/CollapsibleHeader.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/ExamplesDropdown.d.ts +6 -0
- package/dist/lib/plugins/openapi/playground/ExamplesDropdown.js +9 -0
- package/dist/lib/plugins/openapi/playground/ExamplesDropdown.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/Headers.d.ts +5 -4
- package/dist/lib/plugins/openapi/playground/Headers.js +50 -9
- package/dist/lib/plugins/openapi/playground/Headers.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/IdentityDialog.d.ts +11 -0
- package/dist/lib/plugins/openapi/playground/IdentityDialog.js +15 -0
- package/dist/lib/plugins/openapi/playground/IdentityDialog.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/IdentitySelector.d.ts +7 -0
- package/dist/lib/plugins/openapi/playground/IdentitySelector.js +7 -0
- package/dist/lib/plugins/openapi/playground/IdentitySelector.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/ParamsGrid.d.ts +17 -0
- package/dist/lib/plugins/openapi/playground/ParamsGrid.js +12 -0
- package/dist/lib/plugins/openapi/playground/ParamsGrid.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/PathParams.d.ts +3 -2
- package/dist/lib/plugins/openapi/playground/PathParams.js +4 -8
- package/dist/lib/plugins/openapi/playground/PathParams.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/Playground.d.ts +39 -2
- package/dist/lib/plugins/openapi/playground/Playground.js +212 -86
- package/dist/lib/plugins/openapi/playground/Playground.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js +5 -2
- package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/QueryParams.d.ts +4 -4
- package/dist/lib/plugins/openapi/playground/QueryParams.js +22 -25
- package/dist/lib/plugins/openapi/playground/QueryParams.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/RequestLoginDialog.d.ts +8 -0
- package/dist/lib/plugins/openapi/playground/RequestLoginDialog.js +16 -0
- package/dist/lib/plugins/openapi/playground/RequestLoginDialog.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/Spinner.d.ts +2 -0
- package/dist/lib/plugins/openapi/playground/Spinner.js +63 -0
- package/dist/lib/plugins/openapi/playground/Spinner.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/fileUtils.d.ts +2 -0
- package/dist/lib/plugins/openapi/playground/fileUtils.js +22 -0
- package/dist/lib/plugins/openapi/playground/fileUtils.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/rememberedIdentity.d.ts +19 -0
- package/dist/lib/plugins/openapi/playground/rememberedIdentity.js +11 -0
- package/dist/lib/plugins/openapi/playground/rememberedIdentity.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/request-panel/MultipartField.d.ts +8 -0
- package/dist/lib/plugins/openapi/playground/request-panel/MultipartField.js +19 -0
- package/dist/lib/plugins/openapi/playground/request-panel/MultipartField.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/request-panel/fieldManager/useKeyValueFieldManager.test.d.ts +1 -0
- package/dist/lib/plugins/openapi/playground/request-panel/fieldManager/useKeyValueFieldManager.test.js +540 -0
- package/dist/lib/plugins/openapi/playground/request-panel/fieldManager/useKeyValueFieldManager.test.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/request-panel/useKeyValueFieldManager.d.ts +40 -0
- package/dist/lib/plugins/openapi/playground/request-panel/useKeyValueFieldManager.js +205 -0
- package/dist/lib/plugins/openapi/playground/request-panel/useKeyValueFieldManager.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 +14 -0
- package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.js +117 -0
- package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.d.ts +11 -0
- package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.js +15 -0
- package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.d.ts +10 -0
- package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.js +32 -0
- package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.test.d.ts +1 -0
- package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.test.js +56 -0
- package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.test.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/useRememberSkipLoginDialog.d.ts +18 -0
- package/dist/lib/plugins/openapi/playground/useRememberSkipLoginDialog.js +12 -0
- package/dist/lib/plugins/openapi/playground/useRememberSkipLoginDialog.js.map +1 -0
- package/dist/lib/plugins/openapi/processors/removeExtensions.d.ts +8 -0
- package/dist/lib/plugins/openapi/processors/removeExtensions.js +16 -0
- package/dist/lib/plugins/openapi/processors/removeExtensions.js.map +1 -0
- package/dist/lib/plugins/openapi/processors/removeExtensions.test.d.ts +1 -0
- package/dist/lib/plugins/openapi/processors/removeExtensions.test.js +195 -0
- package/dist/lib/plugins/openapi/processors/removeExtensions.test.js.map +1 -0
- package/dist/lib/plugins/openapi/processors/removeParameters.d.ts +12 -0
- package/dist/lib/plugins/openapi/processors/removeParameters.js +66 -0
- package/dist/lib/plugins/openapi/processors/removeParameters.js.map +1 -0
- package/dist/lib/plugins/openapi/processors/removeParameters.test.d.ts +1 -0
- package/dist/lib/plugins/openapi/processors/removeParameters.test.js +160 -0
- package/dist/lib/plugins/openapi/processors/removeParameters.test.js.map +1 -0
- package/dist/lib/plugins/openapi/processors/removePaths.d.ts +13 -0
- package/dist/lib/plugins/openapi/processors/removePaths.js +33 -0
- package/dist/lib/plugins/openapi/processors/removePaths.js.map +1 -0
- package/dist/lib/plugins/openapi/processors/removePaths.test.d.ts +1 -0
- package/dist/lib/plugins/openapi/processors/removePaths.test.js +144 -0
- package/dist/lib/plugins/openapi/processors/removePaths.test.js.map +1 -0
- package/dist/lib/plugins/openapi/processors/traverse.d.ts +1 -0
- package/dist/lib/plugins/openapi/processors/traverse.js.map +1 -0
- package/dist/lib/plugins/openapi/schema/SchemaExampleAndDefault.d.ts +4 -0
- package/dist/lib/plugins/openapi/schema/SchemaExampleAndDefault.js +15 -0
- package/dist/lib/plugins/openapi/schema/SchemaExampleAndDefault.js.map +1 -0
- package/dist/lib/plugins/openapi/schema/SchemaPropertyItem.d.ts +8 -0
- package/dist/lib/plugins/openapi/schema/SchemaPropertyItem.js +45 -0
- package/dist/lib/plugins/openapi/schema/SchemaPropertyItem.js.map +1 -0
- package/dist/lib/plugins/openapi/schema/SchemaView.d.ts +4 -3
- package/dist/lib/plugins/openapi/schema/SchemaView.js +59 -51
- 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 +33 -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 +71 -0
- package/dist/lib/plugins/openapi/schema/union-helpers.js.map +1 -0
- package/dist/lib/plugins/openapi/schema/utils.d.ts +8 -8
- package/dist/lib/plugins/openapi/schema/utils.js +23 -9
- package/dist/lib/plugins/openapi/schema/utils.js.map +1 -1
- package/dist/lib/plugins/openapi/state.d.ts +27 -0
- package/dist/lib/plugins/openapi/state.js +18 -0
- package/dist/lib/plugins/openapi/state.js.map +1 -0
- package/dist/lib/plugins/openapi/util/createHttpSnippet.d.ts +11 -0
- package/dist/lib/plugins/openapi/util/createHttpSnippet.js +112 -0
- package/dist/lib/plugins/openapi/util/createHttpSnippet.js.map +1 -0
- package/dist/lib/plugins/openapi/util/createNavigationCategory.d.ts +9 -0
- package/dist/lib/plugins/openapi/util/createNavigationCategory.js +25 -0
- package/dist/lib/plugins/openapi/util/createNavigationCategory.js.map +1 -0
- package/dist/lib/plugins/openapi/util/generateSchemaExample.d.ts +2 -2
- package/dist/lib/plugins/openapi/util/generateSchemaExample.js +60 -11
- package/dist/lib/plugins/openapi/util/generateSchemaExample.js.map +1 -1
- package/dist/lib/plugins/openapi/util/getRoutes.d.ts +15 -0
- package/dist/lib/plugins/openapi/util/getRoutes.js +144 -0
- package/dist/lib/plugins/openapi/util/getRoutes.js.map +1 -0
- package/dist/lib/plugins/openapi/util/methodColorMap.d.ts +2 -0
- package/dist/lib/plugins/openapi/util/methodColorMap.js +10 -0
- package/dist/lib/plugins/openapi/util/methodColorMap.js.map +1 -0
- package/dist/lib/plugins/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/IndexingDialog.d.ts +3 -0
- package/dist/lib/plugins/search-pagefind/IndexingDialog.js +64 -0
- package/dist/lib/plugins/search-pagefind/IndexingDialog.js.map +1 -0
- package/dist/lib/plugins/search-pagefind/PagefindSearch.d.ts +6 -0
- package/dist/lib/plugins/search-pagefind/PagefindSearch.js +97 -0
- package/dist/lib/plugins/search-pagefind/PagefindSearch.js.map +1 -0
- package/dist/lib/plugins/search-pagefind/ResultList.d.ts +8 -0
- package/dist/lib/plugins/search-pagefind/ResultList.js +43 -0
- package/dist/lib/plugins/search-pagefind/ResultList.js.map +1 -0
- package/dist/lib/plugins/search-pagefind/get-results.d.ts +10 -0
- package/dist/lib/plugins/search-pagefind/get-results.js +41 -0
- package/dist/lib/plugins/search-pagefind/get-results.js.map +1 -0
- package/dist/lib/plugins/search-pagefind/index.d.ts +6 -0
- package/dist/lib/plugins/search-pagefind/index.js +9 -0
- package/dist/lib/plugins/search-pagefind/index.js.map +1 -0
- package/dist/lib/plugins/search-pagefind/types.d.ts +85 -0
- package/dist/lib/plugins/search-pagefind/types.js +2 -0
- package/dist/lib/plugins/search-pagefind/types.js.map +1 -0
- package/dist/lib/shiki.d.ts +32 -0
- package/dist/lib/shiki.js +130 -0
- package/dist/lib/shiki.js.map +1 -0
- package/dist/lib/ui/ActionButton.js +1 -1
- package/dist/lib/ui/ActionButton.js.map +1 -1
- package/dist/lib/ui/Alert.d.ts +6 -5
- package/dist/lib/ui/Alert.js +12 -10
- package/dist/lib/ui/Alert.js.map +1 -1
- package/dist/lib/ui/Badge.d.ts +5 -5
- package/dist/lib/ui/Badge.js +10 -7
- 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 +3 -3
- package/dist/lib/ui/Button.js +13 -8
- package/dist/lib/ui/Button.js.map +1 -1
- package/dist/lib/ui/ButtonGroup.d.ts +11 -0
- package/dist/lib/ui/ButtonGroup.js +28 -0
- package/dist/lib/ui/ButtonGroup.js.map +1 -0
- package/dist/lib/ui/Callout.d.ts +7 -6
- package/dist/lib/ui/Callout.js +8 -7
- package/dist/lib/ui/Callout.js.map +1 -1
- package/dist/lib/ui/Card.js +1 -1
- package/dist/lib/ui/Card.js.map +1 -1
- package/dist/lib/ui/Checkbox.d.ts +2 -2
- package/dist/lib/ui/Checkbox.js +4 -4
- package/dist/lib/ui/Checkbox.js.map +1 -1
- package/dist/lib/ui/CodeBlock.d.ts +14 -0
- package/dist/lib/ui/CodeBlock.js +18 -0
- package/dist/lib/ui/CodeBlock.js.map +1 -0
- package/dist/lib/ui/Collapsible.d.ts +4 -4
- package/dist/lib/ui/Collapsible.js +11 -4
- package/dist/lib/ui/Collapsible.js.map +1 -1
- package/dist/lib/ui/Command.d.ts +19 -5
- package/dist/lib/ui/Command.js +8 -8
- package/dist/lib/ui/Command.js.map +1 -1
- package/dist/lib/ui/Dialog.d.ts +13 -17
- package/dist/lib/ui/Dialog.js +31 -18
- package/dist/lib/ui/Dialog.js.map +1 -1
- package/dist/lib/ui/DropdownMenu.d.ts +21 -23
- package/dist/lib/ui/DropdownMenu.js +47 -32
- package/dist/lib/ui/DropdownMenu.js.map +1 -1
- package/dist/lib/ui/EmbeddedCodeBlock.d.ts +16 -0
- package/dist/lib/ui/EmbeddedCodeBlock.js +19 -0
- package/dist/lib/ui/EmbeddedCodeBlock.js.map +1 -0
- package/dist/lib/ui/Form.d.ts +3 -3
- package/dist/lib/ui/Frame.d.ts +8 -0
- package/dist/lib/ui/Frame.js +22 -0
- package/dist/lib/ui/Frame.js.map +1 -0
- package/dist/lib/ui/HoverCard.js +1 -1
- package/dist/lib/ui/HoverCard.js.map +1 -1
- package/dist/lib/ui/Input.d.ts +1 -2
- package/dist/lib/ui/Input.js +1 -1
- package/dist/lib/ui/Input.js.map +1 -1
- package/dist/lib/ui/Item.d.ts +23 -0
- package/dist/lib/ui/Item.js +67 -0
- package/dist/lib/ui/Item.js.map +1 -0
- package/dist/lib/ui/Kbd.d.ts +3 -0
- package/dist/lib/ui/Kbd.js +10 -0
- package/dist/lib/ui/Kbd.js.map +1 -0
- package/dist/lib/ui/NativeSelect.d.ts +5 -0
- package/dist/lib/ui/NativeSelect.js +14 -0
- package/dist/lib/ui/NativeSelect.js.map +1 -0
- 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 +18 -0
- package/dist/lib/ui/Secret.js +26 -0
- package/dist/lib/ui/Secret.js.map +1 -0
- package/dist/lib/ui/Select.d.ts +13 -11
- package/dist/lib/ui/Select.js +34 -23
- package/dist/lib/ui/Select.js.map +1 -1
- package/dist/lib/ui/Separator.d.ts +4 -0
- package/dist/lib/ui/Separator.js +8 -0
- package/dist/lib/ui/Separator.js.map +1 -0
- package/dist/lib/ui/Slider.js +1 -1
- package/dist/lib/ui/Slider.js.map +1 -1
- package/dist/lib/ui/Stepper.d.ts +3 -0
- package/dist/lib/ui/Stepper.js +7 -0
- package/dist/lib/ui/Stepper.js.map +1 -0
- package/dist/lib/ui/Switch.js +1 -1
- package/dist/lib/ui/Switch.js.map +1 -1
- package/dist/lib/ui/SyntaxHighlight.d.ts +13 -0
- package/dist/lib/ui/SyntaxHighlight.js +15 -0
- package/dist/lib/ui/SyntaxHighlight.js.map +1 -0
- package/dist/lib/ui/Tabs.js +2 -2
- package/dist/lib/ui/Tabs.js.map +1 -1
- package/dist/lib/ui/Textarea.js +1 -1
- package/dist/lib/ui/Textarea.js.map +1 -1
- package/dist/lib/ui/Toggle.js +1 -1
- package/dist/lib/ui/Toggle.js.map +1 -1
- package/dist/lib/ui/ToggleGroup.d.ts +1 -1
- package/dist/lib/ui/Tooltip.d.ts +7 -6
- package/dist/lib/ui/Tooltip.js +16 -9
- 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/ui/util.d.ts +2 -0
- package/dist/lib/ui/util.js +3 -0
- package/dist/lib/ui/util.js.map +1 -0
- package/dist/lib/util/MdxComponents.d.ts +24 -4
- package/dist/lib/util/MdxComponents.js +26 -15
- 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 +7 -4
- package/dist/lib/util/createVariantComponent.js +5 -2
- package/dist/lib/util/createVariantComponent.js.map +1 -1
- package/dist/lib/util/detectOS.d.ts +1 -0
- package/dist/lib/util/detectOS.js +11 -0
- package/dist/lib/util/detectOS.js.map +1 -0
- package/dist/lib/util/ensureArray.d.ts +1 -0
- package/dist/lib/util/ensureArray.js +2 -0
- package/dist/lib/util/ensureArray.js.map +1 -0
- package/dist/lib/util/flattenAllOf.d.ts +4 -0
- package/dist/lib/util/flattenAllOf.js +88 -0
- package/dist/lib/util/flattenAllOf.js.map +1 -0
- package/dist/lib/util/flattenAllOf.test.d.ts +1 -0
- package/dist/lib/util/flattenAllOf.test.js +587 -0
- package/dist/lib/util/flattenAllOf.test.js.map +1 -0
- 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 +7 -6
- package/dist/lib/util/invariant.js +6 -4
- package/dist/lib/util/invariant.js.map +1 -1
- package/dist/lib/util/joinPath.d.ts +3 -0
- package/dist/lib/util/joinPath.js +3 -0
- package/dist/lib/util/joinPath.js.map +1 -1
- package/dist/lib/util/joinUrl.d.ts +1 -0
- package/dist/lib/util/joinUrl.js +40 -0
- package/dist/lib/util/joinUrl.js.map +1 -0
- package/dist/lib/util/joinUrl.test.d.ts +1 -0
- package/dist/lib/util/joinUrl.test.js +43 -0
- package/dist/lib/util/joinUrl.test.js.map +1 -0
- package/dist/lib/util/os.d.ts +2 -0
- package/dist/lib/util/os.js +21 -0
- package/dist/lib/util/os.js.map +1 -0
- package/dist/lib/util/pastellize.js +4 -4
- package/dist/lib/util/pastellize.js.map +1 -1
- package/dist/lib/util/readFrontmatter.d.ts +6 -0
- package/dist/lib/util/readFrontmatter.js +12 -0
- package/dist/lib/util/readFrontmatter.js.map +1 -0
- package/dist/lib/util/scrollIntoViewIfNeeded.d.ts +1 -0
- package/dist/lib/util/scrollIntoViewIfNeeded.js +14 -0
- package/dist/lib/util/scrollIntoViewIfNeeded.js.map +1 -0
- package/dist/lib/util/syncZustandState.d.ts +5 -0
- package/dist/lib/util/syncZustandState.js +14 -0
- package/dist/lib/util/syncZustandState.js.map +1 -0
- package/dist/lib/util/traverse.d.ts +4 -2
- package/dist/lib/util/traverse.js +38 -8
- package/dist/lib/util/traverse.js.map +1 -1
- package/dist/lib/util/types.d.ts +7 -0
- package/dist/lib/util/types.js +2 -0
- package/dist/lib/util/types.js.map +1 -0
- package/dist/lib/util/url.d.ts +4 -0
- package/dist/lib/util/url.js +13 -0
- package/dist/lib/util/url.js.map +1 -0
- package/dist/lib/util/url.test.d.ts +1 -0
- package/dist/lib/util/url.test.js +26 -0
- package/dist/lib/util/url.test.js.map +1 -0
- package/dist/lib/util/useCopyToClipboard.d.ts +1 -0
- package/dist/lib/util/useCopyToClipboard.js +11 -0
- package/dist/lib/util/useCopyToClipboard.js.map +1 -0
- package/dist/lib/util/useExposedProps.d.ts +8 -1
- package/dist/lib/util/useExposedProps.js.map +1 -1
- package/dist/lib/util/useIsomorphicLayoutEffect.js.map +1 -1
- package/dist/lib/util/useLatest.d.ts +1 -0
- package/dist/lib/util/useLatest.js +15 -0
- package/dist/lib/util/useLatest.js.map +1 -0
- package/dist/lib/util/useOnScreen.d.ts +3 -2
- package/dist/lib/util/useOnScreen.js +3 -3
- package/dist/lib/util/useOnScreen.js.map +1 -1
- package/dist/lib/util/useScrollToAnchor.d.ts +1 -0
- package/dist/lib/util/useScrollToAnchor.js +44 -37
- package/dist/lib/util/useScrollToAnchor.js.map +1 -1
- package/dist/lib/util/useScrollToTop.js +6 -4
- package/dist/lib/util/useScrollToTop.js.map +1 -1
- package/dist/ts.js +3 -3
- package/dist/ts.js.map +1 -1
- package/dist/vite/api/SchemaManager.d.ts +43 -0
- package/dist/vite/api/SchemaManager.js +176 -0
- package/dist/vite/api/SchemaManager.js.map +1 -0
- package/dist/vite/api/SchemaManager.test.d.ts +1 -0
- package/dist/vite/api/SchemaManager.test.js +173 -0
- package/dist/vite/api/SchemaManager.test.js.map +1 -0
- package/dist/vite/api/schema-codegen.d.ts +12 -0
- package/dist/vite/api/schema-codegen.js +134 -0
- package/dist/vite/api/schema-codegen.js.map +1 -0
- package/dist/vite/api/schema-codegen.test.d.ts +1 -0
- package/dist/vite/api/schema-codegen.test.js +468 -0
- package/dist/vite/api/schema-codegen.test.js.map +1 -0
- package/dist/vite/build.js +57 -29
- package/dist/vite/build.js.map +1 -1
- package/dist/vite/config.d.ts +2 -12
- package/dist/vite/config.js +117 -145
- package/dist/vite/config.js.map +1 -1
- package/dist/vite/config.test.js +6 -2
- 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 +5 -3
- package/dist/vite/dev-server.js +95 -24
- package/dist/vite/dev-server.js.map +1 -1
- package/dist/vite/error-handler.d.ts +3 -3
- package/dist/vite/error-handler.js +1 -1
- package/dist/vite/error-handler.js.map +1 -1
- package/dist/vite/html.d.ts +7 -3
- package/dist/vite/html.js +15 -9
- package/dist/vite/html.js.map +1 -1
- package/dist/vite/llms.d.ts +12 -0
- package/dist/vite/llms.js +66 -0
- package/dist/vite/llms.js.map +1 -0
- 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 +82 -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/mdx/remark-static-generation.d.ts +3 -0
- package/dist/vite/mdx/remark-static-generation.js +125 -0
- 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 +15 -3
- package/dist/vite/output.js +13 -15
- package/dist/vite/output.js.map +1 -1
- package/dist/vite/pagefind-dev-index.d.ts +16 -0
- package/dist/vite/pagefind-dev-index.js +68 -0
- package/dist/vite/pagefind-dev-index.js.map +1 -0
- package/dist/vite/plugin-api-keys.d.ts +2 -3
- package/dist/vite/plugin-api-keys.js +18 -8
- 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 +159 -79
- package/dist/vite/plugin-api.js.map +1 -1
- package/dist/vite/plugin-auth.d.ts +2 -3
- package/dist/vite/plugin-auth.js +11 -7
- package/dist/vite/plugin-auth.js.map +1 -1
- package/dist/vite/plugin-component.d.ts +2 -3
- package/dist/vite/plugin-component.js +10 -5
- package/dist/vite/plugin-component.js.map +1 -1
- package/dist/vite/plugin-config-reload.d.ts +3 -3
- package/dist/vite/plugin-config-reload.js +31 -23
- package/dist/vite/plugin-config-reload.js.map +1 -1
- package/dist/vite/plugin-config.d.ts +2 -3
- package/dist/vite/plugin-config.js +13 -7
- 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 +8 -7
- package/dist/vite/plugin-custom-pages.js.map +1 -1
- package/dist/vite/plugin-docs.d.ts +11 -3
- package/dist/vite/plugin-docs.js +97 -49
- package/dist/vite/plugin-docs.js.map +1 -1
- package/dist/vite/plugin-frontmatter.d.ts +1 -2
- package/dist/vite/plugin-frontmatter.js +16 -12
- package/dist/vite/plugin-frontmatter.js.map +1 -1
- package/dist/vite/plugin-markdown-export.d.ts +21 -0
- package/dist/vite/plugin-markdown-export.js +140 -0
- package/dist/vite/plugin-markdown-export.js.map +1 -0
- package/dist/vite/plugin-mdx.d.ts +2 -3
- package/dist/vite/plugin-mdx.js +83 -101
- 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 +67 -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 +7 -6
- package/dist/vite/plugin-redirect.js.map +1 -1
- package/dist/vite/plugin-search.d.ts +2 -3
- package/dist/vite/plugin-search.js +9 -4
- package/dist/vite/plugin-search.js.map +1 -1
- package/dist/vite/plugin-shiki-register.d.ts +2 -0
- package/dist/vite/plugin-shiki-register.js +39 -0
- package/dist/vite/plugin-shiki-register.js.map +1 -0
- package/dist/vite/plugin-theme.d.ts +8 -0
- package/dist/vite/plugin-theme.js +283 -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 +26 -23
- package/dist/vite/plugin.js.map +1 -1
- package/dist/vite/prerender/FileWritingResponse.d.ts +25 -0
- package/dist/vite/prerender/FileWritingResponse.js +53 -0
- package/dist/vite/prerender/FileWritingResponse.js.map +1 -0
- package/dist/vite/prerender/InMemoryResponse.d.ts +16 -0
- package/dist/vite/prerender/InMemoryResponse.js +34 -0
- package/dist/vite/prerender/InMemoryResponse.js.map +1 -0
- package/dist/vite/prerender/PrerenderResponse.d.ts +10 -0
- package/dist/vite/prerender/PrerenderResponse.js +2 -0
- package/dist/vite/prerender/PrerenderResponse.js.map +1 -0
- package/dist/vite/prerender/prerender.d.ts +15 -0
- package/dist/vite/prerender/prerender.js +124 -0
- package/dist/vite/prerender/prerender.js.map +1 -0
- package/dist/vite/prerender/utils.d.ts +2 -0
- package/dist/vite/prerender/utils.js +24 -0
- package/dist/vite/prerender/utils.js.map +1 -0
- package/dist/vite/prerender/worker.d.ts +13 -0
- package/dist/vite/prerender/worker.js +66 -0
- package/dist/vite/prerender/worker.js.map +1 -0
- package/dist/vite/reporter.d.ts +3 -0
- package/dist/vite/reporter.js +33 -0
- package/dist/vite/reporter.js.map +1 -0
- package/dist/vite/shadcn-registry.d.ts +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 +16 -14
- package/dist/vite/sitemap.js.map +1 -1
- package/dist/vite/zuplo.d.ts +13 -0
- package/dist/vite/zuplo.js +15 -0
- package/dist/vite/zuplo.js.map +1 -0
- 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 +6 -0
- package/dist/zuplo/enrich-with-zuplo.js +185 -0
- package/dist/zuplo/enrich-with-zuplo.js.map +1 -0
- package/dist/zuplo/policy-types.d.ts +33 -0
- package/dist/zuplo/policy-types.js +7 -0
- package/dist/zuplo/policy-types.js.map +1 -0
- package/dist/zuplo/with-zuplo-processors.d.ts +3 -0
- package/dist/zuplo/with-zuplo-processors.js +28 -0
- package/dist/zuplo/with-zuplo-processors.js.map +1 -0
- package/dist/zuplo/with-zuplo.d.ts +5 -2
- package/dist/zuplo/with-zuplo.js +7 -25
- package/dist/zuplo/with-zuplo.js.map +1 -1
- package/lib/ActionButton-B0CXL1Lq.js +25 -0
- package/lib/ActionButton-B0CXL1Lq.js.map +1 -0
- package/lib/Button-GUVe7pmt.js +54 -0
- package/lib/Button-GUVe7pmt.js.map +1 -0
- package/lib/Card-DCdq37aA.js +61 -0
- package/lib/Card-DCdq37aA.js.map +1 -0
- package/lib/CategoryHeading-DhmodDcq.js +17 -0
- package/lib/CategoryHeading-DhmodDcq.js.map +1 -0
- package/lib/ClaudeLogo-BWe0C_so.js +69 -0
- package/lib/ClaudeLogo-BWe0C_so.js.map +1 -0
- package/lib/ClientOnly-E7hGysn1.js.map +1 -1
- package/lib/Command-N6VujV30.js +134 -0
- package/lib/Command-N6VujV30.js.map +1 -0
- package/lib/Dialog-hlvmmQ_c.js +144 -0
- package/lib/Dialog-hlvmmQ_c.js.map +1 -0
- package/lib/Drawer-Ch7927PF.js +1133 -0
- package/lib/Drawer-Ch7927PF.js.map +1 -0
- package/lib/DropdownMenu-DN0jNrjj.js +104 -0
- package/lib/DropdownMenu-DN0jNrjj.js.map +1 -0
- package/lib/Frame-DKlOmSkU.js +205 -0
- package/lib/Frame-DKlOmSkU.js.map +1 -0
- package/lib/IndexingDialog-D0YdGfbn.js +100 -0
- package/lib/IndexingDialog-D0YdGfbn.js.map +1 -0
- package/lib/Input-nskrp_mj.js +136 -0
- package/lib/Input-nskrp_mj.js.map +1 -0
- package/lib/MdxPage-CePZRTMp.js +210 -0
- package/lib/MdxPage-CePZRTMp.js.map +1 -0
- package/lib/Mermaid-CGRoylZf.js +102 -0
- package/lib/Mermaid-CGRoylZf.js.map +1 -0
- package/lib/OAuthErrorPage-87ItaXvG.js +149 -0
- package/lib/OAuthErrorPage-87ItaXvG.js.map +1 -0
- package/lib/OasProvider-Bmg9-dFB.js +40 -0
- package/lib/OasProvider-Bmg9-dFB.js.map +1 -0
- package/lib/OperationList-BnHfDeIy.js +5819 -0
- package/lib/OperationList-BnHfDeIy.js.map +1 -0
- package/lib/RouteGuard-CIN9Ou-r.js +77 -0
- package/lib/RouteGuard-CIN9Ou-r.js.map +1 -0
- package/lib/SchemaList-B03683OY.js +151 -0
- package/lib/SchemaList-B03683OY.js.map +1 -0
- package/lib/SchemaView-Bo377i1k.js +438 -0
- package/lib/SchemaView-Bo377i1k.js.map +1 -0
- package/lib/Secret-BDBqq4p3.js +243 -0
- package/lib/Secret-BDBqq4p3.js.map +1 -0
- package/lib/Separator-BXt1LYnm.js +27 -0
- package/lib/Separator-BXt1LYnm.js.map +1 -0
- package/lib/SignUp-Bm5CfvIv.js +50 -0
- package/lib/SignUp-Bm5CfvIv.js.map +1 -0
- package/lib/Spinner-CI6bRyZw.js +7 -0
- package/lib/Spinner-CI6bRyZw.js.map +1 -0
- package/lib/SyntaxHighlight-9LdEQose.js +10409 -0
- package/lib/SyntaxHighlight-9LdEQose.js.map +1 -0
- package/lib/Toc-CQtuzud4.js +92 -0
- package/lib/Toc-CQtuzud4.js.map +1 -0
- package/lib/ZudokuContext-CDJYKqMY.js +1581 -0
- package/lib/ZudokuContext-CDJYKqMY.js.map +1 -0
- package/lib/___vite-browser-external_commonjs-proxy-BttVsNON.js +9 -0
- package/lib/___vite-browser-external_commonjs-proxy-BttVsNON.js.map +1 -0
- package/lib/c-B-NUhs61.js +46 -0
- package/lib/c-B-NUhs61.js.map +1 -0
- package/lib/chunk-PVWAREVJ-ClM0m2aJ.js +7965 -0
- package/lib/chunk-PVWAREVJ-ClM0m2aJ.js.map +1 -0
- package/lib/circular-C8WbUSfZ.js +15361 -0
- package/lib/circular-C8WbUSfZ.js.map +1 -0
- package/lib/clsx-OuTLNxxd.js +17 -0
- package/lib/clsx-OuTLNxxd.js.map +1 -0
- package/lib/cn-5-Gd1Dss.js +2764 -0
- package/lib/cn-5-Gd1Dss.js.map +1 -0
- package/lib/commonlisp-De080z23.js +28 -0
- package/lib/commonlisp-De080z23.js.map +1 -0
- package/lib/cpp-79Paht7T.js +53 -0
- package/lib/cpp-79Paht7T.js.map +1 -0
- package/lib/createServer-XaST7nXb.js +16693 -0
- package/lib/createServer-XaST7nXb.js.map +1 -0
- package/lib/createVariantComponent-Dc0vtOvr.js +18 -0
- package/lib/createVariantComponent-Dc0vtOvr.js.map +1 -0
- package/lib/csharp-D8MIL50B.js +53 -0
- package/lib/csharp-D8MIL50B.js.map +1 -0
- package/lib/css-Bt6hr1td.js +54 -0
- package/lib/css-Bt6hr1td.js.map +1 -0
- package/lib/dart-B0vy1jWB.js +60 -0
- package/lib/dart-B0vy1jWB.js.map +1 -0
- package/lib/elixir-Ds8r0sF8.js +25 -0
- package/lib/elixir-Ds8r0sF8.js.map +1 -0
- package/lib/errors-r14WM5cv.js +45 -0
- package/lib/errors-r14WM5cv.js.map +1 -0
- package/lib/firebase-GLWpXK71.js +7612 -0
- package/lib/firebase-GLWpXK71.js.map +1 -0
- package/lib/go-D2VsmIOS.js +25 -0
- package/lib/go-D2VsmIOS.js.map +1 -0
- package/lib/graphql-BtA6M4m5.js +25 -0
- package/lib/graphql-BtA6M4m5.js.map +1 -0
- package/lib/hook-BxWvqzB0.js +52 -0
- package/lib/hook-BxWvqzB0.js.map +1 -0
- package/lib/html-MGnI2uzP.js +33 -0
- package/lib/html-MGnI2uzP.js.map +1 -0
- package/lib/index-7s0u7qwT.js +3675 -0
- package/lib/index-7s0u7qwT.js.map +1 -0
- package/lib/index-C2Ag_bmE.js +2210 -0
- package/lib/index-C2Ag_bmE.js.map +1 -0
- package/lib/index-CJGQ3vyv.js +16515 -0
- package/lib/index-CJGQ3vyv.js.map +1 -0
- package/lib/index-CjTisMeX.js +133 -0
- package/lib/index-CjTisMeX.js.map +1 -0
- package/lib/index-CrcNWbel.js +316 -0
- package/lib/index-CrcNWbel.js.map +1 -0
- package/lib/index-DI5SPFK9.js +36 -0
- package/lib/index-DI5SPFK9.js.map +1 -0
- package/lib/index-nGbmHh_A.js +4827 -0
- package/lib/index-nGbmHh_A.js.map +1 -0
- package/lib/index.esm-BYObtETB.js +1294 -0
- package/lib/index.esm-BYObtETB.js.map +1 -0
- package/lib/index.esm-B_0dvNjB.js +683 -0
- package/lib/index.esm-B_0dvNjB.js.map +1 -0
- package/lib/index.esm-TGqXe8U1.js +34 -0
- package/lib/index.esm-TGqXe8U1.js.map +1 -0
- package/lib/invariant-BJAl77rw.js +44 -0
- package/lib/invariant-BJAl77rw.js.map +1 -0
- package/lib/java-CVLzHfb1.js +53 -0
- package/lib/java-CVLzHfb1.js.map +1 -0
- package/lib/javascript-CcmIpL4G.js +10 -0
- package/lib/javascript-CcmIpL4G.js.map +1 -0
- package/lib/json-4AyP4uiY.js +25 -0
- package/lib/json-4AyP4uiY.js.map +1 -0
- package/lib/jsx-runtime-BzflLqGi.js +283 -0
- package/lib/jsx-runtime-BzflLqGi.js.map +1 -0
- package/lib/kotlin-v2plddBQ.js +37 -0
- package/lib/kotlin-v2plddBQ.js.map +1 -0
- package/lib/markdown-DYGWCmGQ.js +25 -0
- package/lib/markdown-DYGWCmGQ.js.map +1 -0
- package/lib/mdx-CHwYvXd4.js +32 -0
- package/lib/mdx-CHwYvXd4.js.map +1 -0
- package/lib/mutation-Cq0wKBqW.js +222 -0
- package/lib/mutation-Cq0wKBqW.js.map +1 -0
- package/lib/objectivec-HZY8shkd.js +32 -0
- package/lib/objectivec-HZY8shkd.js.map +1 -0
- package/lib/ocaml-DqsdDdwb.js +52 -0
- package/lib/ocaml-DqsdDdwb.js.map +1 -0
- package/lib/php-rQXzo7K_.js +25 -0
- package/lib/php-rQXzo7K_.js.map +1 -0
- package/lib/powershell-CQje9pm1.js +39 -0
- package/lib/powershell-CQje9pm1.js.map +1 -0
- package/lib/processors/removeExtensions.js +11 -0
- package/lib/processors/removeExtensions.js.map +1 -0
- package/lib/processors/removeParameters.js +47 -0
- package/lib/processors/removeParameters.js.map +1 -0
- package/lib/processors/removePaths.js +28 -0
- package/lib/processors/removePaths.js.map +1 -0
- package/lib/processors/traverse.js +17 -0
- package/lib/processors/traverse.js.map +1 -0
- package/lib/python-QIQAE5Ei.js +32 -0
- package/lib/python-QIQAE5Ei.js.map +1 -0
- package/lib/react-DHpVpxRv.js +24 -0
- package/lib/react-DHpVpxRv.js.map +1 -0
- package/lib/ruby-B2dU8Ny5.js +25 -0
- package/lib/ruby-B2dU8Ny5.js.map +1 -0
- package/lib/rust-DYnLHAi2.js +25 -0
- package/lib/rust-DYnLHAi2.js.map +1 -0
- package/lib/scala-CeKInBR8.js +25 -0
- package/lib/scala-CeKInBR8.js.map +1 -0
- package/lib/shell-HUv9oVtp.js +25 -0
- package/lib/shell-HUv9oVtp.js.map +1 -0
- package/lib/swift-B4z6ig1Z.js +25 -0
- package/lib/swift-B4z6ig1Z.js.map +1 -0
- package/lib/toml-Co9mpdct.js +32 -0
- package/lib/toml-Co9mpdct.js.map +1 -0
- package/lib/typescript-C26xdBDC.js +32 -0
- package/lib/typescript-C26xdBDC.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 +28 -13
- package/lib/ui/Badge.js.map +1 -1
- package/lib/ui/Breadcrumb.js +26 -25
- package/lib/ui/Breadcrumb.js.map +1 -1
- package/lib/ui/Button.js +26 -20
- package/lib/ui/Button.js.map +1 -1
- package/lib/ui/ButtonGroup.js +77 -0
- package/lib/ui/ButtonGroup.js.map +1 -0
- package/lib/ui/Callout.js +47 -27
- package/lib/ui/Callout.js.map +1 -1
- package/lib/ui/Card.js +3 -3
- package/lib/ui/Card.js.map +1 -1
- package/lib/ui/Carousel.js +350 -350
- package/lib/ui/Carousel.js.map +1 -1
- package/lib/ui/Checkbox.js +29 -25
- package/lib/ui/Checkbox.js.map +1 -1
- package/lib/ui/CodeBlock.js +220 -0
- package/lib/ui/CodeBlock.js.map +1 -0
- package/lib/ui/Collapsible.js +32 -5
- package/lib/ui/Collapsible.js.map +1 -1
- package/lib/ui/Command.js +113 -516
- package/lib/ui/Command.js.map +1 -1
- package/lib/ui/Dialog.js +140 -95
- package/lib/ui/Dialog.js.map +1 -1
- package/lib/ui/Drawer.js +14 -1150
- package/lib/ui/Drawer.js.map +1 -1
- package/lib/ui/DropdownMenu.js +227 -140
- package/lib/ui/DropdownMenu.js.map +1 -1
- package/lib/ui/EmbeddedCodeBlock.js +84 -0
- package/lib/ui/EmbeddedCodeBlock.js.map +1 -0
- package/lib/ui/Form.js +6 -6
- package/lib/ui/Form.js.map +1 -1
- package/lib/ui/Frame.js +81 -0
- package/lib/ui/Frame.js.map +1 -0
- 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/Item.js +188 -0
- package/lib/ui/Item.js.map +1 -0
- package/lib/ui/Kbd.js +32 -0
- package/lib/ui/Kbd.js.map +1 -0
- package/lib/ui/Label.js +3 -3
- package/lib/ui/Label.js.map +1 -1
- package/lib/ui/NativeSelect.js +57 -0
- package/lib/ui/NativeSelect.js.map +1 -0
- package/lib/ui/Pagination.js +30 -31
- 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 +106 -0
- package/lib/ui/Secret.js.map +1 -0
- package/lib/ui/Select.js +166 -116
- package/lib/ui/Select.js.map +1 -1
- package/lib/ui/Separator.js +27 -0
- package/lib/ui/Separator.js.map +1 -0
- package/lib/ui/Skeleton.js +2 -2
- package/lib/ui/Skeleton.js.map +1 -1
- package/lib/ui/Slider.js +6 -6
- package/lib/ui/Slider.js.map +1 -1
- package/lib/ui/Stepper.js +6 -0
- package/lib/ui/Stepper.js.map +1 -0
- package/lib/ui/Switch.js +6 -6
- package/lib/ui/Switch.js.map +1 -1
- package/lib/ui/SyntaxHighlight.js +11 -0
- package/lib/ui/SyntaxHighlight.js.map +1 -0
- package/lib/ui/Tabs.js +12 -12
- 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 +55 -21
- 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 +6 -0
- package/lib/ui/util.js.map +1 -0
- package/lib/useCopyToClipboard-B_085nfO.js +14 -0
- package/lib/useCopyToClipboard-B_085nfO.js.map +1 -0
- package/lib/useLatest-hmRS46UF.js +11 -0
- package/lib/useLatest-hmRS46UF.js.map +1 -0
- package/lib/xml-BQOOC04j.js +25 -0
- package/lib/xml-BQOOC04j.js.map +1 -0
- package/lib/yaml-BGsJItKv.js +32 -0
- package/lib/yaml-BGsJItKv.js.map +1 -0
- package/lib/zig-CUV2sTct.js +35 -0
- package/lib/zig-CUV2sTct.js.map +1 -0
- package/lib/zudoku.__internal.js +3114 -0
- package/lib/zudoku.__internal.js.map +1 -0
- package/lib/zudoku.auth-auth0.js +32 -35
- package/lib/zudoku.auth-auth0.js.map +1 -1
- package/lib/zudoku.auth-azureb2c.js +136 -0
- package/lib/zudoku.auth-azureb2c.js.map +1 -0
- package/lib/zudoku.auth-clerk.js +112 -61
- package/lib/zudoku.auth-clerk.js.map +1 -1
- package/lib/zudoku.auth-firebase.js +10 -0
- package/lib/zudoku.auth-firebase.js.map +1 -0
- package/lib/zudoku.auth-openid.js +549 -570
- package/lib/zudoku.auth-openid.js.map +1 -1
- package/lib/zudoku.auth-supabase.js +154 -0
- package/lib/zudoku.auth-supabase.js.map +1 -0
- package/lib/zudoku.components.js +26 -1417
- package/lib/zudoku.components.js.map +1 -1
- package/lib/zudoku.hooks.js +14 -0
- package/lib/zudoku.hooks.js.map +1 -0
- package/lib/zudoku.icons.js +10 -0
- package/lib/zudoku.icons.js.map +1 -1
- package/lib/zudoku.mermaid.js +10 -0
- package/lib/zudoku.mermaid.js.map +1 -0
- package/lib/zudoku.plugin-api-catalog.js +113 -113
- package/lib/zudoku.plugin-api-catalog.js.map +1 -1
- package/lib/zudoku.plugin-api-keys.js +717 -214
- 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 +21 -94
- package/lib/zudoku.plugin-markdown.js.map +1 -1
- package/lib/zudoku.plugin-openapi.js +7 -6
- package/lib/zudoku.plugin-openapi.js.map +1 -1
- package/lib/zudoku.plugin-redirect.js +1 -1
- package/lib/zudoku.plugin-redirect.js.map +1 -1
- package/lib/zudoku.plugin-search-inkeep.js +55 -59
- package/lib/zudoku.plugin-search-inkeep.js.map +1 -1
- package/lib/zudoku.plugin-search-pagefind.js +282 -0
- package/lib/zudoku.plugin-search-pagefind.js.map +1 -0
- package/lib/zudoku.plugins.js +15 -0
- package/lib/zudoku.plugins.js.map +1 -0
- package/lib/zudoku.router.js +2507 -0
- package/lib/zudoku.router.js.map +1 -0
- package/package.json +195 -118
- package/src/app/ZuploBuildConfig.ts +33 -0
- package/src/app/defaultTheme.css +73 -0
- package/src/app/demo-cdn.html +31 -31
- package/src/app/demo.html +1 -1
- package/src/app/demo.tsx +25 -8
- package/src/app/entry.client.tsx +55 -5
- package/src/app/entry.server.tsx +42 -24
- package/src/app/env.ts +43 -0
- package/src/app/font.geist.css +73 -0
- package/src/app/main.css +227 -132
- package/src/app/main.tsx +83 -49
- package/src/app/sentry.ts +1 -1
- package/src/app/standalone.tsx +14 -9
- package/src/lib/MissingIcon.tsx +22 -0
- package/src/lib/assets/language-icons/c.tsx +31 -0
- package/src/lib/assets/language-icons/commonlisp.tsx +22 -0
- package/src/lib/assets/language-icons/cpp.tsx +35 -0
- 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/dart.tsx +39 -0
- package/src/lib/assets/language-icons/elixir.tsx +19 -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/ocaml.tsx +34 -0
- package/src/lib/assets/language-icons/php.tsx +19 -0
- package/src/lib/assets/language-icons/powershell.tsx +27 -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/scala.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/assets/language-icons/zig.tsx +32 -0
- package/src/lib/auth/issuer.test.ts +121 -0
- package/src/lib/auth/issuer.ts +44 -0
- package/src/lib/authentication/AuthenticationPlugin.tsx +2 -2
- package/src/lib/authentication/authentication.ts +34 -11
- package/src/lib/authentication/components/CallbackHandler.tsx +29 -12
- package/src/lib/authentication/components/OAuthErrorPage.tsx +171 -0
- package/src/lib/authentication/components/SignIn.tsx +37 -6
- package/src/lib/authentication/components/SignOut.tsx +8 -6
- package/src/lib/authentication/components/SignUp.tsx +39 -5
- package/src/lib/authentication/errors.ts +27 -13
- package/src/lib/authentication/hook.ts +44 -4
- package/src/lib/authentication/providers/auth0.tsx +28 -14
- package/src/lib/authentication/providers/azureb2c.tsx +208 -0
- package/src/lib/authentication/providers/clerk.tsx +138 -54
- package/src/lib/authentication/providers/firebase.tsx +376 -0
- package/src/lib/authentication/providers/openid.tsx +153 -56
- package/src/lib/authentication/providers/supabase/SupabaseAuthUI.tsx +75 -0
- package/src/lib/authentication/providers/supabase.tsx +162 -0
- package/src/lib/authentication/state.ts +48 -48
- package/src/lib/authentication/ui/EmailVerificationUi.tsx +129 -0
- package/src/lib/authentication/ui/ZudokuAuthUi.tsx +477 -0
- package/src/lib/authentication/ui/icons/Apple.tsx +10 -0
- package/src/lib/authentication/ui/icons/Facebook.tsx +15 -0
- package/src/lib/authentication/ui/icons/Github.tsx +16 -0
- package/src/lib/authentication/ui/icons/Google.tsx +16 -0
- package/src/lib/authentication/ui/icons/Microsoft.tsx +12 -0
- package/src/lib/authentication/ui/icons/X.tsx +10 -0
- 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/authentication/utils/relativeRedirectUrl.ts +12 -0
- package/src/lib/components/AnchorLink.tsx +13 -8
- package/src/lib/components/Autocomplete.tsx +123 -0
- package/src/lib/components/Banner.tsx +3 -3
- package/src/lib/components/Bootstrap.tsx +14 -6
- package/src/lib/components/BuildCheck.tsx +88 -0
- package/src/lib/components/CategoryHeading.tsx +4 -1
- package/src/lib/components/ErrorPage.tsx +3 -3
- package/src/lib/components/Footer.tsx +136 -0
- package/src/lib/components/Framed.tsx +51 -0
- package/src/lib/components/Header.tsx +59 -48
- package/src/lib/components/Heading.tsx +14 -11
- package/src/lib/components/InlineCode.tsx +13 -16
- package/src/lib/components/LanguageIcon.tsx +181 -0
- package/src/lib/components/Layout.tsx +22 -81
- package/src/lib/components/Main.tsx +51 -0
- package/src/lib/components/Markdown.tsx +45 -30
- package/src/lib/components/Mermaid.tsx +68 -0
- package/src/lib/components/Meta.tsx +45 -0
- package/src/lib/components/MobileTopNavigation.tsx +86 -21
- package/src/lib/components/NotFoundPage.tsx +6 -5
- package/src/lib/components/PageProgress.tsx +28 -0
- package/src/lib/components/PagefindSearchMeta.tsx +14 -0
- package/src/lib/components/Pagination.tsx +45 -0
- package/src/lib/components/PathRenderer.tsx +61 -0
- package/src/lib/components/Search.tsx +16 -5
- package/src/lib/components/Slot.test.tsx +465 -0
- package/src/lib/components/Slot.tsx +64 -0
- package/src/lib/components/StatusPage.tsx +96 -0
- package/src/lib/components/ThemeSwitch.tsx +29 -9
- package/src/lib/components/TopNavigation.tsx +89 -67
- package/src/lib/components/Typography.tsx +14 -0
- package/src/lib/components/Zudoku.tsx +29 -21
- package/src/lib/components/cache.ts +27 -0
- package/src/lib/components/context/BypassProtectedRoutesContext.ts +3 -0
- package/src/lib/components/context/ComponentsContext.tsx +2 -2
- package/src/lib/components/context/RouterEventsEmitter.tsx +19 -0
- package/src/lib/components/context/SlotProvider.tsx +149 -0
- package/src/lib/components/context/ViewportAnchorContext.tsx +35 -37
- package/src/lib/components/context/ZudokuContext.ts +81 -26
- package/src/lib/components/context/ZudokuProvider.tsx +3 -2
- package/src/lib/components/index.ts +30 -21
- package/src/lib/components/navigation/Navigation.tsx +50 -0
- package/src/lib/components/navigation/NavigationBadge.tsx +48 -0
- package/src/lib/components/navigation/NavigationCategory.tsx +153 -0
- package/src/lib/components/navigation/NavigationItem.tsx +148 -0
- package/src/lib/components/navigation/NavigationWrapper.tsx +49 -0
- package/src/lib/components/navigation/PoweredByZudoku.tsx +33 -0
- package/src/lib/components/navigation/Toc.tsx +126 -0
- package/src/lib/components/navigation/ZudokuLogo.tsx +25 -0
- package/src/lib/components/navigation/ZuploLogo.tsx +14 -0
- package/src/lib/components/navigation/utils.ts +82 -42
- package/src/lib/core/RouteGuard.tsx +122 -0
- package/src/lib/core/ZudokuContext.ts +155 -34
- package/src/lib/core/__internal.tsx +30 -0
- package/src/lib/core/plugins.ts +40 -9
- package/src/lib/core/router.ts +1 -0
- package/src/lib/errors/ErrorAlert.tsx +17 -19
- package/src/lib/errors/ErrorMessage.tsx +38 -0
- package/src/lib/errors/RouterError.tsx +7 -2
- package/src/lib/errors/TopLevelError.tsx +2 -4
- package/src/lib/hooks/index.ts +16 -0
- package/src/lib/hooks/useEvent.test.tsx +151 -0
- package/src/lib/hooks/useEvent.ts +41 -0
- package/src/lib/hooks/useHotkey.ts +70 -0
- package/src/lib/icons.ts +1 -0
- package/src/lib/oas/graphql/circular.ts +91 -0
- package/src/lib/oas/graphql/index.ts +332 -101
- package/src/lib/oas/parser/dereference/index.ts +12 -5
- package/src/lib/oas/parser/dereference/resolveRef.ts +4 -4
- package/src/lib/oas/parser/index.ts +23 -32
- package/src/lib/oas/parser/upgrade/index.ts +103 -16
- package/src/lib/plugins/api-catalog/Catalog.tsx +57 -100
- package/src/lib/plugins/api-catalog/index.tsx +72 -21
- package/src/lib/plugins/api-keys/CreateApiKey.tsx +77 -47
- package/src/lib/plugins/api-keys/CreateApiKeyDialog.tsx +49 -0
- package/src/lib/plugins/api-keys/ProtectedRoute.tsx +11 -7
- package/src/lib/plugins/api-keys/SettingsApiKeys.tsx +45 -166
- package/src/lib/plugins/api-keys/index.tsx +202 -77
- package/src/lib/plugins/api-keys/settings/ApiKeyItem.tsx +342 -0
- package/src/lib/plugins/api-keys/settings/ApiKeyList.tsx +67 -0
- package/src/lib/plugins/api-keys/settings/RevealApiKey.tsx +124 -0
- package/src/lib/plugins/custom-pages/index.tsx +24 -16
- package/src/lib/plugins/markdown/MdxPage.tsx +213 -65
- package/src/lib/plugins/markdown/assets/ChatGPTLogo.tsx +11 -0
- package/src/lib/plugins/markdown/assets/ClaudeLogo.tsx +19 -0
- package/src/lib/plugins/markdown/index.tsx +28 -43
- package/src/lib/plugins/openapi/CollapsibleCode.tsx +19 -11
- package/src/lib/plugins/openapi/ColorizedParam.tsx +32 -13
- package/src/lib/plugins/openapi/DownloadSchemaButton.tsx +115 -0
- package/src/lib/plugins/openapi/Endpoint.tsx +28 -33
- package/src/lib/plugins/openapi/GeneratedExampleSidecarBox.tsx +52 -0
- package/src/lib/plugins/openapi/MCPEndpoint.tsx +273 -0
- package/src/lib/plugins/openapi/OasProvider.tsx +65 -0
- package/src/lib/plugins/openapi/OperationList.tsx +253 -81
- package/src/lib/plugins/openapi/OperationListItem.tsx +146 -119
- package/src/lib/plugins/openapi/ParamInfos.tsx +92 -0
- package/src/lib/plugins/openapi/ParameterList.tsx +43 -27
- package/src/lib/plugins/openapi/ParameterListItem.tsx +133 -41
- package/src/lib/plugins/openapi/PlaygroundDialogWrapper.tsx +25 -5
- package/src/lib/plugins/openapi/RequestBodySidecarBox.tsx +53 -34
- package/src/lib/plugins/openapi/ResponsesSidecarBox.tsx +108 -68
- package/src/lib/plugins/openapi/SchemaList.tsx +161 -0
- package/src/lib/plugins/openapi/Sidecar.tsx +217 -153
- package/src/lib/plugins/openapi/SidecarBox.tsx +14 -4
- package/src/lib/plugins/openapi/SidecarExamples.tsx +174 -0
- package/src/lib/plugins/openapi/SimpleSelect.tsx +1 -1
- package/src/lib/plugins/openapi/StaggeredRender.tsx +1 -1
- package/src/lib/plugins/openapi/client/GraphQLClient.tsx +29 -121
- package/src/lib/plugins/openapi/client/GraphQLContext.tsx +1 -1
- package/src/lib/plugins/openapi/client/createServer.ts +7 -4
- package/src/lib/plugins/openapi/client/useCreateQuery.ts +34 -9
- package/src/lib/plugins/openapi/components/ConstValue.tsx +24 -0
- package/src/lib/plugins/openapi/components/EnumValues.tsx +58 -0
- package/src/lib/plugins/openapi/components/NonHighlightedCode.tsx +22 -0
- package/src/lib/plugins/openapi/components/ResponseContent.tsx +114 -0
- package/src/lib/plugins/openapi/components/SelectOnClick.tsx +29 -0
- package/src/lib/plugins/openapi/context.tsx +1 -1
- package/src/lib/plugins/openapi/graphql/fragment-masking.ts +1 -1
- package/src/lib/plugins/openapi/graphql/gql.ts +36 -11
- package/src/lib/plugins/openapi/graphql/graphql.ts +197 -40
- package/src/lib/plugins/openapi/index.tsx +160 -125
- package/src/lib/plugins/openapi/interfaces.ts +82 -24
- package/src/lib/plugins/openapi/playground/BodyPanel.tsx +271 -0
- package/src/lib/plugins/openapi/playground/CollapsibleHeader.tsx +51 -0
- package/src/lib/plugins/openapi/playground/ExamplesDropdown.tsx +60 -0
- package/src/lib/plugins/openapi/playground/Headers.tsx +173 -58
- package/src/lib/plugins/openapi/playground/IdentityDialog.tsx +75 -0
- package/src/lib/plugins/openapi/playground/IdentitySelector.tsx +38 -0
- package/src/lib/plugins/openapi/playground/ParamsGrid.tsx +45 -0
- package/src/lib/plugins/openapi/playground/PathParams.tsx +36 -71
- package/src/lib/plugins/openapi/playground/Playground.tsx +457 -287
- package/src/lib/plugins/openapi/playground/PlaygroundDialog.tsx +23 -29
- package/src/lib/plugins/openapi/playground/QueryParams.tsx +102 -112
- package/src/lib/plugins/openapi/playground/RequestLoginDialog.tsx +70 -0
- package/src/lib/plugins/openapi/playground/Spinner.tsx +87 -0
- package/src/lib/plugins/openapi/playground/fileUtils.ts +32 -0
- package/src/lib/plugins/openapi/playground/rememberedIdentity.ts +26 -0
- package/src/lib/plugins/openapi/playground/request-panel/MultipartField.tsx +91 -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/request-panel/fieldManager/useKeyValueFieldManager.test.tsx +872 -0
- package/src/lib/plugins/openapi/playground/request-panel/useKeyValueFieldManager.ts +349 -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 +339 -0
- package/src/lib/plugins/openapi/playground/result-panel/ResultPanel.tsx +102 -0
- package/src/lib/plugins/openapi/playground/result-panel/convertToTypes.test.ts +64 -0
- package/src/lib/plugins/openapi/playground/result-panel/convertToTypes.ts +36 -0
- package/src/lib/plugins/openapi/playground/useRememberSkipLoginDialog.tsx +23 -0
- package/src/lib/plugins/openapi/processors/removeExtensions.test.ts +223 -0
- package/src/lib/plugins/openapi/processors/removeExtensions.ts +29 -0
- package/src/lib/plugins/openapi/processors/removeParameters.test.ts +183 -0
- package/src/lib/plugins/openapi/processors/removeParameters.ts +103 -0
- package/src/lib/plugins/openapi/processors/removePaths.test.ts +167 -0
- package/src/lib/plugins/openapi/processors/removePaths.ts +57 -0
- package/src/lib/plugins/openapi/processors/traverse.ts +1 -0
- package/src/lib/plugins/openapi/schema/SchemaExampleAndDefault.tsx +39 -0
- package/src/lib/plugins/openapi/schema/SchemaPropertyItem.tsx +175 -0
- package/src/lib/plugins/openapi/schema/SchemaView.tsx +156 -145
- package/src/lib/plugins/openapi/schema/UnionView.tsx +132 -0
- package/src/lib/plugins/openapi/schema/union-helpers.ts +123 -0
- package/src/lib/plugins/openapi/schema/utils.ts +45 -14
- package/src/lib/plugins/openapi/state.ts +36 -0
- package/src/lib/plugins/openapi/util/createHttpSnippet.ts +135 -0
- package/src/lib/plugins/openapi/util/createNavigationCategory.tsx +39 -0
- package/src/lib/plugins/openapi/util/generateSchemaExample.ts +79 -15
- package/src/lib/plugins/openapi/util/getRoutes.tsx +230 -0
- package/src/lib/plugins/openapi/util/methodColorMap.tsx +11 -0
- 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/IndexingDialog.tsx +163 -0
- package/src/lib/plugins/search-pagefind/PagefindSearch.tsx +202 -0
- package/src/lib/plugins/search-pagefind/ResultList.tsx +118 -0
- package/src/lib/plugins/search-pagefind/get-results.tsx +74 -0
- package/src/lib/plugins/search-pagefind/index.tsx +21 -0
- package/src/lib/plugins/search-pagefind/types.ts +118 -0
- package/src/lib/shiki.ts +170 -0
- package/src/lib/ui/ActionButton.tsx +3 -1
- package/src/lib/ui/Alert.tsx +45 -39
- package/src/lib/ui/Badge.tsx +22 -12
- package/src/lib/ui/Breadcrumb.tsx +1 -0
- package/src/lib/ui/Button.tsx +16 -9
- package/src/lib/ui/ButtonGroup.tsx +82 -0
- package/src/lib/ui/Callout.tsx +40 -15
- package/src/lib/ui/Card.tsx +1 -1
- package/src/lib/ui/Checkbox.tsx +23 -23
- package/src/lib/ui/CodeBlock.tsx +79 -0
- package/src/lib/ui/Collapsible.tsx +26 -4
- package/src/lib/ui/Command.tsx +50 -10
- package/src/lib/ui/Dialog.tsx +114 -96
- package/src/lib/ui/DropdownMenu.tsx +226 -170
- package/src/lib/ui/EmbeddedCodeBlock.tsx +99 -0
- package/src/lib/ui/Form.tsx +4 -4
- package/src/lib/ui/Frame.tsx +81 -0
- package/src/lib/ui/HoverCard.tsx +1 -1
- package/src/lib/ui/Input.tsx +2 -3
- package/src/lib/ui/Item.tsx +192 -0
- package/src/lib/ui/Kbd.tsx +28 -0
- package/src/lib/ui/NativeSelect.tsx +47 -0
- 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 +123 -0
- package/src/lib/ui/Select.tsx +153 -126
- package/src/lib/ui/Separator.tsx +25 -0
- package/src/lib/ui/Slider.tsx +1 -1
- package/src/lib/ui/Stepper.tsx +8 -0
- package/src/lib/ui/Switch.tsx +1 -1
- package/src/lib/ui/SyntaxHighlight.tsx +40 -0
- package/src/lib/ui/Tabs.tsx +2 -2
- package/src/lib/ui/Textarea.tsx +1 -1
- package/src/lib/ui/Toggle.tsx +1 -1
- package/src/lib/ui/ToggleGroup.tsx +1 -1
- package/src/lib/ui/Tooltip.tsx +59 -22
- package/src/lib/ui/Value.tsx +42 -0
- package/src/lib/ui/util.tsx +3 -0
- package/src/lib/util/MdxComponents.tsx +59 -19
- package/src/lib/util/cn.ts +1 -1
- package/src/lib/util/createVariantComponent.tsx +33 -7
- package/src/lib/util/detectOS.ts +9 -0
- package/src/lib/util/ensureArray.ts +3 -0
- package/src/lib/util/flattenAllOf.test.ts +689 -0
- package/src/lib/util/flattenAllOf.ts +122 -0
- 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 +10 -6
- package/src/lib/util/joinPath.tsx +3 -0
- package/src/lib/util/joinUrl.test.ts +62 -0
- package/src/lib/util/joinUrl.ts +57 -0
- package/src/lib/util/os.ts +18 -0
- package/src/lib/util/pastellize.ts +4 -4
- package/src/lib/util/readFrontmatter.ts +13 -0
- package/src/lib/util/scrollIntoViewIfNeeded.ts +18 -0
- package/src/lib/util/syncZustandState.ts +22 -0
- package/src/lib/util/traverse.ts +57 -12
- package/src/lib/util/types.ts +7 -0
- package/src/lib/util/url.test.ts +51 -0
- package/src/lib/util/url.ts +18 -0
- package/src/lib/util/useCopyToClipboard.ts +17 -0
- package/src/lib/util/useExposedProps.tsx +12 -1
- package/src/lib/util/useIsomorphicLayoutEffect.ts +1 -0
- package/src/lib/util/useLatest.ts +18 -0
- package/src/lib/util/useOnScreen.ts +6 -4
- package/src/lib/util/useScrollToAnchor.ts +50 -39
- package/src/lib/util/useScrollToTop.ts +8 -3
- package/src/shiki/langs/abap.js +1 -0
- package/src/shiki/langs/actionscript-3.js +1 -0
- package/src/shiki/langs/ada.js +1 -0
- package/src/shiki/langs/angular-expression.js +1 -0
- package/src/shiki/langs/angular-html.js +1 -0
- package/src/shiki/langs/angular-inline-style.js +1 -0
- package/src/shiki/langs/angular-inline-template.js +1 -0
- package/src/shiki/langs/angular-let-declaration.js +1 -0
- package/src/shiki/langs/angular-template-blocks.js +1 -0
- package/src/shiki/langs/angular-template.js +1 -0
- package/src/shiki/langs/angular-ts.js +1 -0
- package/src/shiki/langs/apache.js +1 -0
- package/src/shiki/langs/apex.js +1 -0
- package/src/shiki/langs/apl.js +1 -0
- package/src/shiki/langs/applescript.js +1 -0
- package/src/shiki/langs/ara.js +1 -0
- package/src/shiki/langs/asciidoc.js +1 -0
- package/src/shiki/langs/asm.js +1 -0
- package/src/shiki/langs/astro.js +1 -0
- package/src/shiki/langs/awk.js +1 -0
- package/src/shiki/langs/ballerina.js +1 -0
- package/src/shiki/langs/bat.js +1 -0
- package/src/shiki/langs/beancount.js +1 -0
- package/src/shiki/langs/berry.js +1 -0
- package/src/shiki/langs/bibtex.js +1 -0
- package/src/shiki/langs/bicep.js +1 -0
- package/src/shiki/langs/blade.js +1 -0
- package/src/shiki/langs/bsl.js +1 -0
- package/src/shiki/langs/c.js +1 -0
- package/src/shiki/langs/cadence.js +1 -0
- package/src/shiki/langs/cairo.js +1 -0
- package/src/shiki/langs/clarity.js +1 -0
- package/src/shiki/langs/clojure.js +1 -0
- package/src/shiki/langs/cmake.js +1 -0
- package/src/shiki/langs/cobol.js +1 -0
- package/src/shiki/langs/codeowners.js +1 -0
- package/src/shiki/langs/codeql.js +1 -0
- package/src/shiki/langs/coffee.js +1 -0
- package/src/shiki/langs/common-lisp.js +1 -0
- package/src/shiki/langs/coq.js +1 -0
- package/src/shiki/langs/cpp-macro.js +1 -0
- package/src/shiki/langs/cpp.js +1 -0
- package/src/shiki/langs/crystal.js +1 -0
- package/src/shiki/langs/csharp.js +1 -0
- package/src/shiki/langs/css.js +1 -0
- package/src/shiki/langs/csv.js +1 -0
- package/src/shiki/langs/cue.js +1 -0
- package/src/shiki/langs/cypher.js +1 -0
- package/src/shiki/langs/d.js +1 -0
- package/src/shiki/langs/dart.js +1 -0
- package/src/shiki/langs/dax.js +1 -0
- package/src/shiki/langs/desktop.js +1 -0
- package/src/shiki/langs/diff.js +1 -0
- package/src/shiki/langs/docker.js +1 -0
- package/src/shiki/langs/dotenv.js +1 -0
- package/src/shiki/langs/dream-maker.js +1 -0
- package/src/shiki/langs/edge.js +1 -0
- package/src/shiki/langs/elixir.js +1 -0
- package/src/shiki/langs/elm.js +1 -0
- package/src/shiki/langs/emacs-lisp.js +1 -0
- package/src/shiki/langs/erb.js +1 -0
- package/src/shiki/langs/erlang.js +1 -0
- package/src/shiki/langs/es-tag-css.js +1 -0
- package/src/shiki/langs/es-tag-glsl.js +1 -0
- package/src/shiki/langs/es-tag-html.js +1 -0
- package/src/shiki/langs/es-tag-sql.js +1 -0
- package/src/shiki/langs/es-tag-xml.js +1 -0
- package/src/shiki/langs/fennel.js +1 -0
- package/src/shiki/langs/fish.js +1 -0
- package/src/shiki/langs/fluent.js +1 -0
- package/src/shiki/langs/fortran-fixed-form.js +1 -0
- package/src/shiki/langs/fortran-free-form.js +1 -0
- package/src/shiki/langs/fsharp.js +1 -0
- package/src/shiki/langs/gdresource.js +1 -0
- package/src/shiki/langs/gdscript.js +1 -0
- package/src/shiki/langs/gdshader.js +1 -0
- package/src/shiki/langs/genie.js +1 -0
- package/src/shiki/langs/gherkin.js +1 -0
- package/src/shiki/langs/git-commit.js +1 -0
- package/src/shiki/langs/git-rebase.js +1 -0
- package/src/shiki/langs/gleam.js +1 -0
- package/src/shiki/langs/glimmer-js.js +1 -0
- package/src/shiki/langs/glimmer-ts.js +1 -0
- package/src/shiki/langs/glsl.js +1 -0
- package/src/shiki/langs/gnuplot.js +1 -0
- package/src/shiki/langs/go.js +1 -0
- package/src/shiki/langs/graphql.js +1 -0
- package/src/shiki/langs/groovy.js +1 -0
- package/src/shiki/langs/hack.js +1 -0
- package/src/shiki/langs/haml.js +1 -0
- package/src/shiki/langs/handlebars.js +1 -0
- package/src/shiki/langs/haskell.js +1 -0
- package/src/shiki/langs/haxe.js +1 -0
- package/src/shiki/langs/hcl.js +1 -0
- package/src/shiki/langs/hjson.js +1 -0
- package/src/shiki/langs/hlsl.js +1 -0
- package/src/shiki/langs/html-derivative.js +1 -0
- package/src/shiki/langs/html.js +1 -0
- package/src/shiki/langs/http.js +1 -0
- package/src/shiki/langs/hurl.js +1 -0
- package/src/shiki/langs/hxml.js +1 -0
- package/src/shiki/langs/hy.js +1 -0
- package/src/shiki/langs/imba.js +1 -0
- package/src/shiki/langs/ini.js +1 -0
- package/src/shiki/langs/java.js +1 -0
- package/src/shiki/langs/javascript.js +1 -0
- package/src/shiki/langs/jinja-html.js +1 -0
- package/src/shiki/langs/jinja.js +1 -0
- package/src/shiki/langs/jison.js +1 -0
- package/src/shiki/langs/json.js +1 -0
- package/src/shiki/langs/json5.js +1 -0
- package/src/shiki/langs/jsonc.js +1 -0
- package/src/shiki/langs/jsonl.js +1 -0
- package/src/shiki/langs/jsonnet.js +1 -0
- package/src/shiki/langs/jssm.js +1 -0
- package/src/shiki/langs/jsx.js +1 -0
- package/src/shiki/langs/julia.js +1 -0
- package/src/shiki/langs/kdl.js +1 -0
- package/src/shiki/langs/kotlin.js +1 -0
- package/src/shiki/langs/kusto.js +1 -0
- package/src/shiki/langs/latex.js +1 -0
- package/src/shiki/langs/lean.js +1 -0
- package/src/shiki/langs/less.js +1 -0
- package/src/shiki/langs/liquid.js +1 -0
- package/src/shiki/langs/llvm.js +1 -0
- package/src/shiki/langs/log.js +1 -0
- package/src/shiki/langs/logo.js +1 -0
- package/src/shiki/langs/lua.js +1 -0
- package/src/shiki/langs/luau.js +1 -0
- package/src/shiki/langs/make.js +1 -0
- package/src/shiki/langs/markdown-nix.js +1 -0
- package/src/shiki/langs/markdown-vue.js +1 -0
- package/src/shiki/langs/markdown.js +1 -0
- package/src/shiki/langs/marko.js +1 -0
- package/src/shiki/langs/matlab.js +1 -0
- package/src/shiki/langs/mdc.js +1 -0
- package/src/shiki/langs/mdx.js +1 -0
- package/src/shiki/langs/mermaid.js +1 -0
- package/src/shiki/langs/mipsasm.js +1 -0
- package/src/shiki/langs/mojo.js +1 -0
- package/src/shiki/langs/move.js +1 -0
- package/src/shiki/langs/narrat.js +1 -0
- package/src/shiki/langs/nextflow.js +1 -0
- package/src/shiki/langs/nginx.js +1 -0
- package/src/shiki/langs/nim.js +1 -0
- package/src/shiki/langs/nix.js +1 -0
- package/src/shiki/langs/nushell.js +1 -0
- package/src/shiki/langs/objective-c.js +1 -0
- package/src/shiki/langs/objective-cpp.js +1 -0
- package/src/shiki/langs/ocaml.js +1 -0
- package/src/shiki/langs/openscad.js +1 -0
- package/src/shiki/langs/pascal.js +1 -0
- package/src/shiki/langs/perl.js +1 -0
- package/src/shiki/langs/php.js +1 -0
- package/src/shiki/langs/pkl.js +1 -0
- package/src/shiki/langs/plsql.js +1 -0
- package/src/shiki/langs/po.js +1 -0
- package/src/shiki/langs/polar.js +1 -0
- package/src/shiki/langs/postcss.js +1 -0
- package/src/shiki/langs/powerquery.js +1 -0
- package/src/shiki/langs/powershell.js +1 -0
- package/src/shiki/langs/prisma.js +1 -0
- package/src/shiki/langs/prolog.js +1 -0
- package/src/shiki/langs/proto.js +1 -0
- package/src/shiki/langs/pug.js +1 -0
- package/src/shiki/langs/puppet.js +1 -0
- package/src/shiki/langs/purescript.js +1 -0
- package/src/shiki/langs/python.js +1 -0
- package/src/shiki/langs/qml.js +1 -0
- package/src/shiki/langs/qmldir.js +1 -0
- package/src/shiki/langs/qss.js +1 -0
- package/src/shiki/langs/r.js +1 -0
- package/src/shiki/langs/racket.js +1 -0
- package/src/shiki/langs/raku.js +1 -0
- package/src/shiki/langs/razor.js +1 -0
- package/src/shiki/langs/reg.js +1 -0
- package/src/shiki/langs/regexp.js +1 -0
- package/src/shiki/langs/rel.js +1 -0
- package/src/shiki/langs/riscv.js +1 -0
- package/src/shiki/langs/rosmsg.js +1 -0
- package/src/shiki/langs/rst.js +1 -0
- package/src/shiki/langs/ruby.js +1 -0
- package/src/shiki/langs/rust.js +1 -0
- package/src/shiki/langs/sas.js +1 -0
- package/src/shiki/langs/sass.js +1 -0
- package/src/shiki/langs/scala.js +1 -0
- package/src/shiki/langs/scheme.js +1 -0
- package/src/shiki/langs/scss.js +1 -0
- package/src/shiki/langs/sdbl.js +1 -0
- package/src/shiki/langs/shaderlab.js +1 -0
- package/src/shiki/langs/shellscript.js +1 -0
- package/src/shiki/langs/shellsession.js +1 -0
- package/src/shiki/langs/smalltalk.js +1 -0
- package/src/shiki/langs/solidity.js +1 -0
- package/src/shiki/langs/soy.js +1 -0
- package/src/shiki/langs/sparql.js +1 -0
- package/src/shiki/langs/splunk.js +1 -0
- package/src/shiki/langs/sql.js +1 -0
- package/src/shiki/langs/ssh-config.js +1 -0
- package/src/shiki/langs/stata.js +1 -0
- package/src/shiki/langs/stylus.js +1 -0
- package/src/shiki/langs/svelte.js +1 -0
- package/src/shiki/langs/swift.js +1 -0
- package/src/shiki/langs/system-verilog.js +1 -0
- package/src/shiki/langs/systemd.js +1 -0
- package/src/shiki/langs/talonscript.js +1 -0
- package/src/shiki/langs/tasl.js +1 -0
- package/src/shiki/langs/tcl.js +1 -0
- package/src/shiki/langs/templ.js +1 -0
- package/src/shiki/langs/terraform.js +1 -0
- package/src/shiki/langs/tex.js +1 -0
- package/src/shiki/langs/toml.js +1 -0
- package/src/shiki/langs/ts-tags.js +1 -0
- package/src/shiki/langs/tsv.js +1 -0
- package/src/shiki/langs/tsx.js +1 -0
- package/src/shiki/langs/turtle.js +1 -0
- package/src/shiki/langs/twig.js +1 -0
- package/src/shiki/langs/typescript.js +1 -0
- package/src/shiki/langs/typespec.js +1 -0
- package/src/shiki/langs/typst.js +1 -0
- package/src/shiki/langs/v.js +1 -0
- package/src/shiki/langs/vala.js +1 -0
- package/src/shiki/langs/vb.js +1 -0
- package/src/shiki/langs/verilog.js +1 -0
- package/src/shiki/langs/vhdl.js +1 -0
- package/src/shiki/langs/viml.js +1 -0
- package/src/shiki/langs/vue-directives.js +1 -0
- package/src/shiki/langs/vue-html.js +1 -0
- package/src/shiki/langs/vue-interpolations.js +1 -0
- package/src/shiki/langs/vue-sfc-style-variable-injection.js +1 -0
- package/src/shiki/langs/vue-vine.js +1 -0
- package/src/shiki/langs/vue.js +1 -0
- package/src/shiki/langs/vyper.js +1 -0
- package/src/shiki/langs/wasm.js +1 -0
- package/src/shiki/langs/wenyan.js +1 -0
- package/src/shiki/langs/wgsl.js +1 -0
- package/src/shiki/langs/wikitext.js +1 -0
- package/src/shiki/langs/wit.js +1 -0
- package/src/shiki/langs/wolfram.js +1 -0
- package/src/shiki/langs/xml.js +1 -0
- package/src/shiki/langs/xsl.js +1 -0
- package/src/shiki/langs/yaml.js +1 -0
- package/src/shiki/langs/zenscript.js +1 -0
- package/src/shiki/langs/zig.js +1 -0
- package/src/shiki/themes/andromeeda.js +1 -0
- package/src/shiki/themes/aurora-x.js +1 -0
- package/src/shiki/themes/ayu-dark.js +1 -0
- package/src/shiki/themes/catppuccin-frappe.js +1 -0
- package/src/shiki/themes/catppuccin-latte.js +1 -0
- package/src/shiki/themes/catppuccin-macchiato.js +1 -0
- package/src/shiki/themes/catppuccin-mocha.js +1 -0
- package/src/shiki/themes/dark-plus.js +1 -0
- package/src/shiki/themes/dracula-soft.js +1 -0
- package/src/shiki/themes/dracula.js +1 -0
- package/src/shiki/themes/everforest-dark.js +1 -0
- package/src/shiki/themes/everforest-light.js +1 -0
- package/src/shiki/themes/github-dark-default.js +1 -0
- package/src/shiki/themes/github-dark-dimmed.js +1 -0
- package/src/shiki/themes/github-dark-high-contrast.js +1 -0
- package/src/shiki/themes/github-dark.js +1 -0
- package/src/shiki/themes/github-light-default.js +1 -0
- package/src/shiki/themes/github-light-high-contrast.js +1 -0
- package/src/shiki/themes/github-light.js +1 -0
- package/src/shiki/themes/gruvbox-dark-hard.js +1 -0
- package/src/shiki/themes/gruvbox-dark-medium.js +1 -0
- package/src/shiki/themes/gruvbox-dark-soft.js +1 -0
- package/src/shiki/themes/gruvbox-light-hard.js +1 -0
- package/src/shiki/themes/gruvbox-light-medium.js +1 -0
- package/src/shiki/themes/gruvbox-light-soft.js +1 -0
- package/src/shiki/themes/houston.js +1 -0
- package/src/shiki/themes/kanagawa-dragon.js +1 -0
- package/src/shiki/themes/kanagawa-lotus.js +1 -0
- package/src/shiki/themes/kanagawa-wave.js +1 -0
- package/src/shiki/themes/laserwave.js +1 -0
- package/src/shiki/themes/light-plus.js +1 -0
- package/src/shiki/themes/material-theme-darker.js +1 -0
- package/src/shiki/themes/material-theme-lighter.js +1 -0
- package/src/shiki/themes/material-theme-ocean.js +1 -0
- package/src/shiki/themes/material-theme-palenight.js +1 -0
- package/src/shiki/themes/material-theme.js +1 -0
- package/src/shiki/themes/min-dark.js +1 -0
- package/src/shiki/themes/min-light.js +1 -0
- package/src/shiki/themes/monokai.js +1 -0
- package/src/shiki/themes/night-owl.js +1 -0
- package/src/shiki/themes/nord.js +1 -0
- package/src/shiki/themes/one-dark-pro.js +1 -0
- package/src/shiki/themes/one-light.js +1 -0
- package/src/shiki/themes/plastic.js +1 -0
- package/src/shiki/themes/poimandres.js +1 -0
- package/src/shiki/themes/red.js +1 -0
- package/src/shiki/themes/rose-pine-dawn.js +1 -0
- package/src/shiki/themes/rose-pine-moon.js +1 -0
- package/src/shiki/themes/rose-pine.js +1 -0
- package/src/shiki/themes/slack-dark.js +1 -0
- package/src/shiki/themes/slack-ochin.js +1 -0
- package/src/shiki/themes/snazzy-light.js +1 -0
- package/src/shiki/themes/solarized-dark.js +1 -0
- package/src/shiki/themes/solarized-light.js +1 -0
- package/src/shiki/themes/synthwave-84.js +1 -0
- package/src/shiki/themes/tokyo-night.js +1 -0
- package/src/shiki/themes/vesper.js +1 -0
- package/src/shiki/themes/vitesse-black.js +1 -0
- package/src/shiki/themes/vitesse-dark.js +1 -0
- package/src/shiki/themes/vitesse-light.js +1 -0
- package/dist/app/tailwind.d.ts +0 -4
- package/dist/app/tailwind.js +0 -77
- package/dist/app/tailwind.js.map +0 -1
- package/dist/config/common.d.ts +0 -8
- package/dist/config/common.js +0 -2
- package/dist/config/common.js.map +0 -1
- package/dist/config/validators/InputSidebarSchema.d.ts +0 -202
- package/dist/config/validators/InputSidebarSchema.js +0 -52
- package/dist/config/validators/InputSidebarSchema.js.map +0 -1
- package/dist/config/validators/SidebarSchema.d.ts +0 -46
- package/dist/config/validators/SidebarSchema.js +0 -118
- package/dist/config/validators/SidebarSchema.js.map +0 -1
- package/dist/config/validators/common.d.ts +0 -4945
- package/dist/config/validators/common.js +0 -280
- 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/SyntaxHighlight.d.ts +0 -11
- package/dist/lib/components/SyntaxHighlight.js +0 -53
- package/dist/lib/components/SyntaxHighlight.js.map +0 -1
- package/dist/lib/components/context/PluginSystem.js +0 -2
- package/dist/lib/components/context/PluginSystem.js.map +0 -1
- package/dist/lib/components/navigation/Sidebar.d.ts +0 -3
- package/dist/lib/components/navigation/Sidebar.js +0 -14
- package/dist/lib/components/navigation/Sidebar.js.map +0 -1
- package/dist/lib/components/navigation/SidebarBadge.d.ts +0 -14
- package/dist/lib/components/navigation/SidebarBadge.js +0 -15
- package/dist/lib/components/navigation/SidebarBadge.js.map +0 -1
- package/dist/lib/components/navigation/SidebarCategory.d.ts +0 -5
- package/dist/lib/components/navigation/SidebarCategory.js +0 -49
- package/dist/lib/components/navigation/SidebarCategory.js.map +0 -1
- package/dist/lib/components/navigation/SidebarItem.d.ts +0 -10
- package/dist/lib/components/navigation/SidebarItem.js +0 -43
- package/dist/lib/components/navigation/SidebarItem.js.map +0 -1
- package/dist/lib/components/navigation/SidebarWrapper.d.ts +0 -6
- package/dist/lib/components/navigation/SidebarWrapper.js +0 -6
- package/dist/lib/components/navigation/SidebarWrapper.js.map +0 -1
- package/dist/lib/plugins/custom-pages/CustomPage.d.ts +0 -2
- package/dist/lib/plugins/custom-pages/CustomPage.js +0 -11
- package/dist/lib/plugins/custom-pages/CustomPage.js.map +0 -1
- package/dist/lib/plugins/markdown/Toc.js +0 -48
- package/dist/lib/plugins/markdown/Toc.js.map +0 -1
- package/dist/lib/plugins/markdown/resolver.d.ts +0 -38
- package/dist/lib/plugins/markdown/resolver.js +0 -75
- package/dist/lib/plugins/markdown/resolver.js.map +0 -1
- package/dist/lib/plugins/openapi/Route.d.ts +0 -8
- package/dist/lib/plugins/openapi/Route.js +0 -29
- package/dist/lib/plugins/openapi/Route.js.map +0 -1
- package/dist/lib/plugins/openapi/client/worker.d.ts +0 -4
- package/dist/lib/plugins/openapi/client/worker.js +0 -29
- package/dist/lib/plugins/openapi/client/worker.js.map +0 -1
- package/dist/lib/plugins/openapi/playground/InlineInput.d.ts +0 -4
- package/dist/lib/plugins/openapi/playground/InlineInput.js +0 -3
- package/dist/lib/plugins/openapi/playground/InlineInput.js.map +0 -1
- package/dist/lib/plugins/openapi/playground/ResponseTab.d.ts +0 -4
- package/dist/lib/plugins/openapi/playground/ResponseTab.js +0 -42
- package/dist/lib/plugins/openapi/playground/ResponseTab.js.map +0 -1
- package/dist/lib/plugins/openapi/playground/UrlDisplay.d.ts +0 -4
- package/dist/lib/plugins/openapi/playground/UrlDisplay.js +0 -22
- package/dist/lib/plugins/openapi/playground/UrlDisplay.js.map +0 -1
- package/dist/lib/plugins/openapi/post-processors/removeExtensions.d.ts +0 -6
- package/dist/lib/plugins/openapi/post-processors/removeExtensions.js +0 -14
- package/dist/lib/plugins/openapi/post-processors/removeExtensions.js.map +0 -1
- package/dist/lib/plugins/openapi/post-processors/removeExtensions.test.js +0 -125
- package/dist/lib/plugins/openapi/post-processors/removeExtensions.test.js.map +0 -1
- package/dist/lib/plugins/openapi/post-processors/removePaths.d.ts +0 -11
- package/dist/lib/plugins/openapi/post-processors/removePaths.js +0 -33
- package/dist/lib/plugins/openapi/post-processors/removePaths.js.map +0 -1
- package/dist/lib/plugins/openapi/post-processors/removePaths.test.js +0 -104
- package/dist/lib/plugins/openapi/post-processors/removePaths.test.js.map +0 -1
- package/dist/lib/plugins/openapi/post-processors/traverse.d.ts +0 -1
- package/dist/lib/plugins/openapi/post-processors/traverse.js.map +0 -1
- package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.d.ts +0 -9
- 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 -6
- 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.d.ts +0 -7
- 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/schema/SchemaComponents.d.ts +0 -13
- package/dist/lib/plugins/openapi/schema/SchemaComponents.js +0 -28
- package/dist/lib/plugins/openapi/schema/SchemaComponents.js.map +0 -1
- package/dist/lib/plugins/openapi-worker.d.ts +0 -1
- package/dist/lib/plugins/openapi-worker.js +0 -8
- package/dist/lib/plugins/openapi-worker.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 -3
- package/dist/vite/plugin-sidebar.js +0 -47
- 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 -62
- package/dist/vite/plugin-theme-css.js.map +0 -1
- package/dist/vite/prerender.d.ts +0 -22
- package/dist/vite/prerender.js +0 -89
- package/dist/vite/prerender.js.map +0 -1
- package/dist/vite/remarkStaticGeneration.d.ts +0 -3
- package/dist/vite/remarkStaticGeneration.js +0 -125
- package/dist/vite/remarkStaticGeneration.js.map +0 -1
- package/dist/zuplo/env.d.ts +0 -6
- package/dist/zuplo/env.js +0 -9
- package/dist/zuplo/env.js.map +0 -1
- package/lib/AnchorLink-DFZZbmvr.js +0 -34
- package/lib/AnchorLink-DFZZbmvr.js.map +0 -1
- package/lib/AuthenticationPlugin-fB7viE7A.js +0 -58
- package/lib/AuthenticationPlugin-fB7viE7A.js.map +0 -1
- package/lib/Button-DeAoTouo.js +0 -48
- package/lib/Button-DeAoTouo.js.map +0 -1
- package/lib/CategoryHeading-CBconmtI.js +0 -10
- package/lib/CategoryHeading-CBconmtI.js.map +0 -1
- package/lib/Dialog-Bxv1yEIg.js +0 -67
- package/lib/Dialog-Bxv1yEIg.js.map +0 -1
- package/lib/Markdown-CZDLNOFc.js +0 -15202
- package/lib/Markdown-CZDLNOFc.js.map +0 -1
- package/lib/MdxPage-CPBw4_lf.js +0 -188
- package/lib/MdxPage-CPBw4_lf.js.map +0 -1
- package/lib/OperationList-n4U_BHmO.js +0 -5062
- package/lib/OperationList-n4U_BHmO.js.map +0 -1
- package/lib/Route-C8nwd9A2.js +0 -37
- package/lib/Route-C8nwd9A2.js.map +0 -1
- package/lib/Select-D3XuKKuH.js +0 -223
- package/lib/Select-D3XuKKuH.js.map +0 -1
- package/lib/SlotletProvider-pfc9oejW.js +0 -221
- package/lib/SlotletProvider-pfc9oejW.js.map +0 -1
- package/lib/Spinner-DuxJLLNE.js +0 -7
- package/lib/Spinner-DuxJLLNE.js.map +0 -1
- package/lib/StaggeredRender-DgsamH_G.js +0 -17
- package/lib/StaggeredRender-DgsamH_G.js.map +0 -1
- package/lib/SyntaxHighlight-Bz-lOJtH.js +0 -2979
- package/lib/SyntaxHighlight-Bz-lOJtH.js.map +0 -1
- package/lib/__vite-browser-external-BYRIRx8p.js +0 -9
- package/lib/__vite-browser-external-BYRIRx8p.js.map +0 -1
- package/lib/_commonjsHelpers-BkfeUUK-.js +0 -29
- package/lib/_commonjsHelpers-BkfeUUK-.js.map +0 -1
- package/lib/assets/index-C7jnHK4b.js +0 -4841
- package/lib/assets/index-C7jnHK4b.js.map +0 -1
- package/lib/assets/worker-D2kRl-cG.js +0 -18578
- package/lib/assets/worker-D2kRl-cG.js.map +0 -1
- package/lib/chunk-D52XG6IA-Dl7HLe6j.js +0 -1823
- package/lib/chunk-D52XG6IA-Dl7HLe6j.js.map +0 -1
- package/lib/cn-qaFjX9_3.js +0 -2279
- package/lib/cn-qaFjX9_3.js.map +0 -1
- package/lib/context-h_UkBLvr.js +0 -22
- package/lib/context-h_UkBLvr.js.map +0 -1
- package/lib/createServer-69sLlmQA.js +0 -15679
- package/lib/createServer-69sLlmQA.js.map +0 -1
- package/lib/hook-DgGeo5iL.js +0 -227
- package/lib/hook-DgGeo5iL.js.map +0 -1
- package/lib/index-Bn6Lc9tq.js +0 -9
- package/lib/index-Bn6Lc9tq.js.map +0 -1
- package/lib/index-CBXSgjaE.js +0 -4841
- package/lib/index-CBXSgjaE.js.map +0 -1
- package/lib/index-CPNSgwSb.js +0 -36
- package/lib/index-CPNSgwSb.js.map +0 -1
- package/lib/index-DStSNvP-.js +0 -1284
- package/lib/index-DStSNvP-.js.map +0 -1
- package/lib/index-LNp6rxyU.js +0 -2094
- package/lib/index-LNp6rxyU.js.map +0 -1
- package/lib/index.esm-BSV1C092.js +0 -692
- package/lib/index.esm-BSV1C092.js.map +0 -1
- package/lib/index.esm-BnnBRKJX.js +0 -1214
- package/lib/index.esm-BnnBRKJX.js.map +0 -1
- package/lib/invariant-Caa8-XvF.js +0 -26
- package/lib/invariant-Caa8-XvF.js.map +0 -1
- package/lib/jsx-runtime-Dx-03ztt.js +0 -446
- package/lib/jsx-runtime-Dx-03ztt.js.map +0 -1
- package/lib/object_hash-BNWPnMN9.js +0 -787
- package/lib/object_hash-BNWPnMN9.js.map +0 -1
- package/lib/post-processors/removeExtensions.js +0 -11
- package/lib/post-processors/removeExtensions.js.map +0 -1
- package/lib/post-processors/removePaths.js +0 -28
- package/lib/post-processors/removePaths.js.map +0 -1
- package/lib/post-processors/traverse.js +0 -12
- package/lib/post-processors/traverse.js.map +0 -1
- package/lib/prism-bash.min-DadFsM4Z.js +0 -7
- package/lib/prism-bash.min-DadFsM4Z.js.map +0 -1
- package/lib/prism-csharp.min-DUwvItt4.js +0 -63
- package/lib/prism-csharp.min-DUwvItt4.js.map +0 -1
- package/lib/prism-java.min-BtgBR4yd.js +0 -35
- package/lib/prism-java.min-BtgBR4yd.js.map +0 -1
- package/lib/prism-javascript.min-CEqHqgbm.js +0 -9
- package/lib/prism-javascript.min-CEqHqgbm.js.map +0 -1
- package/lib/prism-json.min-B1GJqK1k.js +0 -2
- package/lib/prism-json.min-B1GJqK1k.js.map +0 -1
- package/lib/prism-markdown.min-F3U-vPBi.js +0 -61
- package/lib/prism-markdown.min-F3U-vPBi.js.map +0 -1
- package/lib/prism-markup-BNGj0Tvm.js +0 -174
- package/lib/prism-markup-BNGj0Tvm.js.map +0 -1
- package/lib/prism-objectivec.min-BXSWqpJJ.js +0 -2
- package/lib/prism-objectivec.min-BXSWqpJJ.js.map +0 -1
- package/lib/prism-ruby.min-DeDXCp1r.js +0 -38
- package/lib/prism-ruby.min-DeDXCp1r.js.map +0 -1
- package/lib/prism-typescript.min-CD7H2IYQ.js +0 -34
- package/lib/prism-typescript.min-CD7H2IYQ.js.map +0 -1
- package/lib/state-CFQsUZUP.js +0 -202
- package/lib/state-CFQsUZUP.js.map +0 -1
- package/lib/useExposedProps-DE9lR6MF.js +0 -9
- package/lib/useExposedProps-DE9lR6MF.js.map +0 -1
- package/lib/utils-B4O1uet5.js +0 -1217
- package/lib/utils-B4O1uet5.js.map +0 -1
- package/lib/zudoku.openapi-worker.js +0 -15
- package/lib/zudoku.openapi-worker.js.map +0 -1
- package/src/app/tailwind.ts +0 -83
- 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/SyntaxHighlight.tsx +0 -157
- package/src/lib/components/context/PluginSystem.ts +0 -0
- package/src/lib/components/navigation/Sidebar.tsx +0 -49
- package/src/lib/components/navigation/SidebarBadge.tsx +0 -33
- package/src/lib/components/navigation/SidebarCategory.tsx +0 -138
- package/src/lib/components/navigation/SidebarItem.tsx +0 -124
- package/src/lib/components/navigation/SidebarWrapper.tsx +0 -26
- package/src/lib/plugins/custom-pages/CustomPage.tsx +0 -18
- package/src/lib/plugins/markdown/Toc.tsx +0 -135
- package/src/lib/plugins/markdown/resolver.ts +0 -90
- package/src/lib/plugins/openapi/Route.tsx +0 -55
- package/src/lib/plugins/openapi/client/worker.ts +0 -44
- package/src/lib/plugins/openapi/playground/InlineInput.tsx +0 -6
- package/src/lib/plugins/openapi/playground/ResponseTab.tsx +0 -76
- package/src/lib/plugins/openapi/playground/UrlDisplay.tsx +0 -32
- package/src/lib/plugins/openapi/post-processors/removeExtensions.test.ts +0 -144
- package/src/lib/plugins/openapi/post-processors/removeExtensions.ts +0 -24
- package/src/lib/plugins/openapi/post-processors/removePaths.test.ts +0 -126
- package/src/lib/plugins/openapi/post-processors/removePaths.ts +0 -55
- package/src/lib/plugins/openapi/post-processors/traverse.ts +0 -1
- package/src/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.tsx +0 -47
- package/src/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupConnector.tsx +0 -54
- package/src/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupItem.tsx +0 -30
- package/src/lib/plugins/openapi/schema/SchemaComponents.tsx +0 -126
- package/src/lib/plugins/openapi-worker.ts +0 -11
- /package/dist/{lib/components/context/PluginSystem.d.ts → config/validators/InputNavigationSchema.test-d.d.ts} +0 -0
- /package/dist/{lib/plugins/openapi/post-processors/removeExtensions.test.d.ts → config/validators/validate.test.d.ts} +0 -0
- /package/dist/lib/{plugins/openapi/post-processors/removePaths.test.d.ts → auth/issuer.test.d.ts} +0 -0
- /package/dist/{vite/plugin-docs.test.d.ts → lib/components/Slot.test.d.ts} +0 -0
- /package/dist/lib/{plugins/markdown → components/navigation}/Toc.d.ts +0 -0
- /package/dist/lib/plugins/openapi/{post-processors → processors}/traverse.js +0 -0
|
@@ -1,1823 +0,0 @@
|
|
|
1
|
-
import * as o from "react";
|
|
2
|
-
var _ = {}, se;
|
|
3
|
-
function Ae() {
|
|
4
|
-
if (se) return _;
|
|
5
|
-
se = 1, Object.defineProperty(_, "__esModule", { value: !0 }), _.parse = s, _.serialize = u;
|
|
6
|
-
const e = /^[\u0021-\u003A\u003C\u003E-\u007E]+$/, t = /^[\u0021-\u003A\u003C-\u007E]*$/, r = /^([.]?[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]*$/, n = Object.prototype.toString, i = /* @__PURE__ */ (() => {
|
|
7
|
-
const f = function() {
|
|
8
|
-
};
|
|
9
|
-
return f.prototype = /* @__PURE__ */ Object.create(null), f;
|
|
10
|
-
})();
|
|
11
|
-
function s(f, p) {
|
|
12
|
-
const d = new i(), g = f.length;
|
|
13
|
-
if (g < 2)
|
|
14
|
-
return d;
|
|
15
|
-
const w = (p == null ? void 0 : p.decode) || m;
|
|
16
|
-
let h = 0;
|
|
17
|
-
do {
|
|
18
|
-
const E = f.indexOf("=", h);
|
|
19
|
-
if (E === -1)
|
|
20
|
-
break;
|
|
21
|
-
const y = f.indexOf(";", h), R = y === -1 ? g : y;
|
|
22
|
-
if (E > R) {
|
|
23
|
-
h = f.lastIndexOf(";", E - 1) + 1;
|
|
24
|
-
continue;
|
|
25
|
-
}
|
|
26
|
-
const x = c(f, h, E), C = l(f, E, x), $ = f.slice(x, C);
|
|
27
|
-
if (d[$] === void 0) {
|
|
28
|
-
let S = c(f, E + 1, R), P = l(f, R, S);
|
|
29
|
-
const D = w(f.slice(S, P));
|
|
30
|
-
d[$] = D;
|
|
31
|
-
}
|
|
32
|
-
h = R + 1;
|
|
33
|
-
} while (h < g);
|
|
34
|
-
return d;
|
|
35
|
-
}
|
|
36
|
-
function c(f, p, d) {
|
|
37
|
-
do {
|
|
38
|
-
const g = f.charCodeAt(p);
|
|
39
|
-
if (g !== 32 && g !== 9)
|
|
40
|
-
return p;
|
|
41
|
-
} while (++p < d);
|
|
42
|
-
return d;
|
|
43
|
-
}
|
|
44
|
-
function l(f, p, d) {
|
|
45
|
-
for (; p > d; ) {
|
|
46
|
-
const g = f.charCodeAt(--p);
|
|
47
|
-
if (g !== 32 && g !== 9)
|
|
48
|
-
return p + 1;
|
|
49
|
-
}
|
|
50
|
-
return d;
|
|
51
|
-
}
|
|
52
|
-
function u(f, p, d) {
|
|
53
|
-
const g = (d == null ? void 0 : d.encode) || encodeURIComponent;
|
|
54
|
-
if (!e.test(f))
|
|
55
|
-
throw new TypeError(`argument name is invalid: ${f}`);
|
|
56
|
-
const w = g(p);
|
|
57
|
-
if (!t.test(w))
|
|
58
|
-
throw new TypeError(`argument val is invalid: ${p}`);
|
|
59
|
-
let h = f + "=" + w;
|
|
60
|
-
if (!d)
|
|
61
|
-
return h;
|
|
62
|
-
if (d.maxAge !== void 0) {
|
|
63
|
-
if (!Number.isInteger(d.maxAge))
|
|
64
|
-
throw new TypeError(`option maxAge is invalid: ${d.maxAge}`);
|
|
65
|
-
h += "; Max-Age=" + d.maxAge;
|
|
66
|
-
}
|
|
67
|
-
if (d.domain) {
|
|
68
|
-
if (!r.test(d.domain))
|
|
69
|
-
throw new TypeError(`option domain is invalid: ${d.domain}`);
|
|
70
|
-
h += "; Domain=" + d.domain;
|
|
71
|
-
}
|
|
72
|
-
if (d.path) {
|
|
73
|
-
if (!a.test(d.path))
|
|
74
|
-
throw new TypeError(`option path is invalid: ${d.path}`);
|
|
75
|
-
h += "; Path=" + d.path;
|
|
76
|
-
}
|
|
77
|
-
if (d.expires) {
|
|
78
|
-
if (!v(d.expires) || !Number.isFinite(d.expires.valueOf()))
|
|
79
|
-
throw new TypeError(`option expires is invalid: ${d.expires}`);
|
|
80
|
-
h += "; Expires=" + d.expires.toUTCString();
|
|
81
|
-
}
|
|
82
|
-
if (d.httpOnly && (h += "; HttpOnly"), d.secure && (h += "; Secure"), d.partitioned && (h += "; Partitioned"), d.priority)
|
|
83
|
-
switch (typeof d.priority == "string" ? d.priority.toLowerCase() : void 0) {
|
|
84
|
-
case "low":
|
|
85
|
-
h += "; Priority=Low";
|
|
86
|
-
break;
|
|
87
|
-
case "medium":
|
|
88
|
-
h += "; Priority=Medium";
|
|
89
|
-
break;
|
|
90
|
-
case "high":
|
|
91
|
-
h += "; Priority=High";
|
|
92
|
-
break;
|
|
93
|
-
default:
|
|
94
|
-
throw new TypeError(`option priority is invalid: ${d.priority}`);
|
|
95
|
-
}
|
|
96
|
-
if (d.sameSite)
|
|
97
|
-
switch (typeof d.sameSite == "string" ? d.sameSite.toLowerCase() : d.sameSite) {
|
|
98
|
-
case !0:
|
|
99
|
-
case "strict":
|
|
100
|
-
h += "; SameSite=Strict";
|
|
101
|
-
break;
|
|
102
|
-
case "lax":
|
|
103
|
-
h += "; SameSite=Lax";
|
|
104
|
-
break;
|
|
105
|
-
case "none":
|
|
106
|
-
h += "; SameSite=None";
|
|
107
|
-
break;
|
|
108
|
-
default:
|
|
109
|
-
throw new TypeError(`option sameSite is invalid: ${d.sameSite}`);
|
|
110
|
-
}
|
|
111
|
-
return h;
|
|
112
|
-
}
|
|
113
|
-
function m(f) {
|
|
114
|
-
if (f.indexOf("%") === -1)
|
|
115
|
-
return f;
|
|
116
|
-
try {
|
|
117
|
-
return decodeURIComponent(f);
|
|
118
|
-
} catch {
|
|
119
|
-
return f;
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
function v(f) {
|
|
123
|
-
return n.call(f) === "[object Date]";
|
|
124
|
-
}
|
|
125
|
-
return _;
|
|
126
|
-
}
|
|
127
|
-
Ae();
|
|
128
|
-
/**
|
|
129
|
-
* react-router v7.0.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 b(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 B({
|
|
152
|
-
pathname: e = "/",
|
|
153
|
-
search: t = "",
|
|
154
|
-
hash: r = ""
|
|
155
|
-
}) {
|
|
156
|
-
return t && t !== "?" && (e += t.charAt(0) === "?" ? t : "?" + t), r && r !== "#" && (e += r.charAt(0) === "#" ? r : "#" + r), e;
|
|
157
|
-
}
|
|
158
|
-
function Y(e) {
|
|
159
|
-
let t = {};
|
|
160
|
-
if (e) {
|
|
161
|
-
let r = e.indexOf("#");
|
|
162
|
-
r >= 0 && (t.hash = e.substring(r), e = e.substring(0, r));
|
|
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, r = "/") {
|
|
169
|
-
return De(e, t, r, !1);
|
|
170
|
-
}
|
|
171
|
-
function De(e, t, r, a) {
|
|
172
|
-
let n = typeof t == "string" ? Y(t) : t, i = I(n.pathname || "/", r);
|
|
173
|
-
if (i == null)
|
|
174
|
-
return null;
|
|
175
|
-
let s = ve(e);
|
|
176
|
-
Ie(s);
|
|
177
|
-
let c = null;
|
|
178
|
-
for (let l = 0; c == null && l < s.length; ++l) {
|
|
179
|
-
let u = ye(i);
|
|
180
|
-
c = ze(
|
|
181
|
-
s[l],
|
|
182
|
-
u,
|
|
183
|
-
a
|
|
184
|
-
);
|
|
185
|
-
}
|
|
186
|
-
return c;
|
|
187
|
-
}
|
|
188
|
-
function ve(e, t = [], r = [], a = "") {
|
|
189
|
-
let n = (i, s, c) => {
|
|
190
|
-
let l = {
|
|
191
|
-
relativePath: c === void 0 ? i.path || "" : c,
|
|
192
|
-
caseSensitive: i.caseSensitive === !0,
|
|
193
|
-
childrenIndex: s,
|
|
194
|
-
route: i
|
|
195
|
-
};
|
|
196
|
-
l.relativePath.startsWith("/") && (b(
|
|
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 = A([a, l.relativePath]), m = r.concat(l);
|
|
201
|
-
i.children && i.children.length > 0 && (b(
|
|
202
|
-
// Our types know better, but runtime JS may not!
|
|
203
|
-
// @ts-expect-error
|
|
204
|
-
i.index !== !0,
|
|
205
|
-
`Index routes must not have child routes. Please remove all child routes from route path "${u}".`
|
|
206
|
-
), ve(i.children, t, m, u)), !(i.path == null && !i.index) && t.push({
|
|
207
|
-
path: u,
|
|
208
|
-
score: He(u, i.index),
|
|
209
|
-
routesMeta: m
|
|
210
|
-
});
|
|
211
|
-
};
|
|
212
|
-
return e.forEach((i, s) => {
|
|
213
|
-
var c;
|
|
214
|
-
if (i.path === "" || !((c = i.path) != null && c.includes("?")))
|
|
215
|
-
n(i, s);
|
|
216
|
-
else
|
|
217
|
-
for (let l of ge(i.path))
|
|
218
|
-
n(i, s, l);
|
|
219
|
-
}), t;
|
|
220
|
-
}
|
|
221
|
-
function ge(e) {
|
|
222
|
-
let t = e.split("/");
|
|
223
|
-
if (t.length === 0) return [];
|
|
224
|
-
let [r, ...a] = t, n = r.endsWith("?"), i = r.replace(/\?$/, "");
|
|
225
|
-
if (a.length === 0)
|
|
226
|
-
return n ? [i, ""] : [i];
|
|
227
|
-
let s = ge(a.join("/")), c = [];
|
|
228
|
-
return c.push(
|
|
229
|
-
...s.map(
|
|
230
|
-
(l) => l === "" ? i : [i, l].join("/")
|
|
231
|
-
)
|
|
232
|
-
), n && c.push(...s), c.map(
|
|
233
|
-
(l) => e.startsWith("/") && l === "" ? "/" : l
|
|
234
|
-
);
|
|
235
|
-
}
|
|
236
|
-
function Ie(e) {
|
|
237
|
-
e.sort(
|
|
238
|
-
(t, r) => t.score !== r.score ? r.score - t.score : We(
|
|
239
|
-
t.routesMeta.map((a) => a.childrenIndex),
|
|
240
|
-
r.routesMeta.map((a) => a.childrenIndex)
|
|
241
|
-
)
|
|
242
|
-
);
|
|
243
|
-
}
|
|
244
|
-
var Oe = /^:[\w-]+$/, Me = 3, Fe = 2, _e = 1, Ue = 10, Be = -2, ce = (e) => e === "*";
|
|
245
|
-
function He(e, t) {
|
|
246
|
-
let r = e.split("/"), a = r.length;
|
|
247
|
-
return r.some(ce) && (a += Be), t && (a += Fe), r.filter((n) => !ce(n)).reduce(
|
|
248
|
-
(n, i) => n + (Oe.test(i) ? Me : i === "" ? _e : Ue),
|
|
249
|
-
a
|
|
250
|
-
);
|
|
251
|
-
}
|
|
252
|
-
function We(e, t) {
|
|
253
|
-
return e.length === t.length && e.slice(0, -1).every((a, n) => a === t[n]) ? (
|
|
254
|
-
// If two routes are siblings, we should try to match the earlier sibling
|
|
255
|
-
// first. This allows people to have fine-grained control over the matching
|
|
256
|
-
// behavior by simply putting routes with identical paths in the order they
|
|
257
|
-
// want them tried.
|
|
258
|
-
e[e.length - 1] - t[t.length - 1]
|
|
259
|
-
) : (
|
|
260
|
-
// Otherwise, it doesn't really make sense to rank non-siblings by index,
|
|
261
|
-
// so they sort equally.
|
|
262
|
-
0
|
|
263
|
-
);
|
|
264
|
-
}
|
|
265
|
-
function ze(e, t, r = !1) {
|
|
266
|
-
let { routesMeta: a } = e, n = {}, i = "/", s = [];
|
|
267
|
-
for (let c = 0; c < a.length; ++c) {
|
|
268
|
-
let l = a[c], u = c === a.length - 1, m = i === "/" ? t : t.slice(i.length) || "/", v = H(
|
|
269
|
-
{ path: l.relativePath, caseSensitive: l.caseSensitive, end: u },
|
|
270
|
-
m
|
|
271
|
-
), f = l.route;
|
|
272
|
-
if (!v && u && r && !a[a.length - 1].route.index && (v = H(
|
|
273
|
-
{
|
|
274
|
-
path: l.relativePath,
|
|
275
|
-
caseSensitive: l.caseSensitive,
|
|
276
|
-
end: !1
|
|
277
|
-
},
|
|
278
|
-
m
|
|
279
|
-
)), !v)
|
|
280
|
-
return null;
|
|
281
|
-
Object.assign(n, v.params), s.push({
|
|
282
|
-
// TODO: Can this as be avoided?
|
|
283
|
-
params: n,
|
|
284
|
-
pathname: A([i, v.pathname]),
|
|
285
|
-
pathnameBase: Ke(
|
|
286
|
-
A([i, v.pathnameBase])
|
|
287
|
-
),
|
|
288
|
-
route: f
|
|
289
|
-
}), v.pathnameBase !== "/" && (i = A([i, v.pathnameBase]));
|
|
290
|
-
}
|
|
291
|
-
return s;
|
|
292
|
-
}
|
|
293
|
-
function H(e, t) {
|
|
294
|
-
typeof e == "string" && (e = { path: e, caseSensitive: !1, end: !0 });
|
|
295
|
-
let [r, a] = Ve(
|
|
296
|
-
e.path,
|
|
297
|
-
e.caseSensitive,
|
|
298
|
-
e.end
|
|
299
|
-
), n = t.match(r);
|
|
300
|
-
if (!n) return null;
|
|
301
|
-
let i = n[0], s = i.replace(/(.)\/+$/, "$1"), c = n.slice(1);
|
|
302
|
-
return {
|
|
303
|
-
params: a.reduce(
|
|
304
|
-
(u, { paramName: m, isOptional: v }, f) => {
|
|
305
|
-
if (m === "*") {
|
|
306
|
-
let d = c[f] || "";
|
|
307
|
-
s = i.slice(0, i.length - d.length).replace(/(.)\/+$/, "$1");
|
|
308
|
-
}
|
|
309
|
-
const p = c[f];
|
|
310
|
-
return v && !p ? u[m] = void 0 : u[m] = (p || "").replace(/%2F/g, "/"), u;
|
|
311
|
-
},
|
|
312
|
-
{}
|
|
313
|
-
),
|
|
314
|
-
pathname: i,
|
|
315
|
-
pathnameBase: s,
|
|
316
|
-
pattern: e
|
|
317
|
-
};
|
|
318
|
-
}
|
|
319
|
-
function Ve(e, t = !1, r = !0) {
|
|
320
|
-
L(
|
|
321
|
-
e === "*" || !e.endsWith("*") || e.endsWith("/*"),
|
|
322
|
-
`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(/\*$/, "/*")}".`
|
|
323
|
-
);
|
|
324
|
-
let a = [], n = "^" + e.replace(/\/*\*?$/, "").replace(/^\/*/, "/").replace(/[\\.*+^${}|()[\]]/g, "\\$&").replace(
|
|
325
|
-
/\/:([\w-]+)(\?)?/g,
|
|
326
|
-
(s, c, l) => (a.push({ paramName: c, isOptional: l != null }), l ? "/?([^\\/]+)?" : "/([^\\/]+)")
|
|
327
|
-
);
|
|
328
|
-
return e.endsWith("*") ? (a.push({ paramName: "*" }), n += e === "*" || e === "/*" ? "(.*)$" : "(?:\\/(.+)|\\/*)$") : r ? n += "\\/*$" : e !== "" && e !== "/" && (n += "(?:(?=\\/|$))"), [new RegExp(n, t ? void 0 : "i"), a];
|
|
329
|
-
}
|
|
330
|
-
function ye(e) {
|
|
331
|
-
try {
|
|
332
|
-
return e.split("/").map((t) => decodeURIComponent(t).replace(/\//g, "%2F")).join("/");
|
|
333
|
-
} catch (t) {
|
|
334
|
-
return L(
|
|
335
|
-
!1,
|
|
336
|
-
`The URL path "${e}" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`
|
|
337
|
-
), e;
|
|
338
|
-
}
|
|
339
|
-
}
|
|
340
|
-
function I(e, t) {
|
|
341
|
-
if (t === "/") return e;
|
|
342
|
-
if (!e.toLowerCase().startsWith(t.toLowerCase()))
|
|
343
|
-
return null;
|
|
344
|
-
let r = t.endsWith("/") ? t.length - 1 : t.length, a = e.charAt(r);
|
|
345
|
-
return a && a !== "/" ? null : e.slice(r) || "/";
|
|
346
|
-
}
|
|
347
|
-
function je(e, t = "/") {
|
|
348
|
-
let {
|
|
349
|
-
pathname: r,
|
|
350
|
-
search: a = "",
|
|
351
|
-
hash: n = ""
|
|
352
|
-
} = typeof e == "string" ? Y(e) : e;
|
|
353
|
-
return {
|
|
354
|
-
pathname: r ? r.startsWith("/") ? r : Ye(r, t) : t,
|
|
355
|
-
search: qe(a),
|
|
356
|
-
hash: Ge(n)
|
|
357
|
-
};
|
|
358
|
-
}
|
|
359
|
-
function Ye(e, t) {
|
|
360
|
-
let r = t.replace(/\/+$/, "").split("/");
|
|
361
|
-
return e.split("/").forEach((n) => {
|
|
362
|
-
n === ".." ? r.length > 1 && r.pop() : n !== "." && r.push(n);
|
|
363
|
-
}), r.length > 1 ? r.join("/") : "/";
|
|
364
|
-
}
|
|
365
|
-
function G(e, t, r, a) {
|
|
366
|
-
return `Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(
|
|
367
|
-
a
|
|
368
|
-
)}]. Please separate it out to the \`to.${r}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`;
|
|
369
|
-
}
|
|
370
|
-
function Je(e) {
|
|
371
|
-
return e.filter(
|
|
372
|
-
(t, r) => r === 0 || t.route.path && t.route.path.length > 0
|
|
373
|
-
);
|
|
374
|
-
}
|
|
375
|
-
function Z(e) {
|
|
376
|
-
let t = Je(e);
|
|
377
|
-
return t.map(
|
|
378
|
-
(r, a) => a === t.length - 1 ? r.pathname : r.pathnameBase
|
|
379
|
-
);
|
|
380
|
-
}
|
|
381
|
-
function ee(e, t, r, a = !1) {
|
|
382
|
-
let n;
|
|
383
|
-
typeof e == "string" ? n = Y(e) : (n = { ...e }, b(
|
|
384
|
-
!n.pathname || !n.pathname.includes("?"),
|
|
385
|
-
G("?", "pathname", "search", n)
|
|
386
|
-
), b(
|
|
387
|
-
!n.pathname || !n.pathname.includes("#"),
|
|
388
|
-
G("#", "pathname", "hash", n)
|
|
389
|
-
), b(
|
|
390
|
-
!n.search || !n.search.includes("#"),
|
|
391
|
-
G("#", "search", "hash", n)
|
|
392
|
-
));
|
|
393
|
-
let i = e === "" || n.pathname === "", s = i ? "/" : n.pathname, c;
|
|
394
|
-
if (s == null)
|
|
395
|
-
c = r;
|
|
396
|
-
else {
|
|
397
|
-
let v = t.length - 1;
|
|
398
|
-
if (!a && s.startsWith("..")) {
|
|
399
|
-
let f = s.split("/");
|
|
400
|
-
for (; f[0] === ".."; )
|
|
401
|
-
f.shift(), v -= 1;
|
|
402
|
-
n.pathname = f.join("/");
|
|
403
|
-
}
|
|
404
|
-
c = v >= 0 ? t[v] : "/";
|
|
405
|
-
}
|
|
406
|
-
let l = je(n, c), u = s && s !== "/" && s.endsWith("/"), m = (i || s === ".") && r.endsWith("/");
|
|
407
|
-
return !l.pathname.endsWith("/") && (u || m) && (l.pathname += "/"), l;
|
|
408
|
-
}
|
|
409
|
-
var A = (e) => e.join("/").replace(/\/\/+/g, "/"), Ke = (e) => e.replace(/\/+$/, "").replace(/^\/*/, "/"), qe = (e) => !e || e === "?" ? "" : e.startsWith("?") ? e : "?" + e, Ge = (e) => !e || e === "#" ? "" : e.startsWith("#") ? e : "#" + e, ar = (e, t = 302) => {
|
|
410
|
-
let r = t;
|
|
411
|
-
typeof r == "number" ? r = { status: r } : typeof r.status > "u" && (r.status = 302);
|
|
412
|
-
let a = new Headers(r.headers);
|
|
413
|
-
return a.set("Location", e), new Response(null, {
|
|
414
|
-
...r,
|
|
415
|
-
headers: a
|
|
416
|
-
});
|
|
417
|
-
};
|
|
418
|
-
function we(e) {
|
|
419
|
-
return e != null && typeof e.status == "number" && typeof e.statusText == "string" && typeof e.internal == "boolean" && "data" in e;
|
|
420
|
-
}
|
|
421
|
-
var Ee = [
|
|
422
|
-
"POST",
|
|
423
|
-
"PUT",
|
|
424
|
-
"PATCH",
|
|
425
|
-
"DELETE"
|
|
426
|
-
];
|
|
427
|
-
new Set(
|
|
428
|
-
Ee
|
|
429
|
-
);
|
|
430
|
-
var Xe = [
|
|
431
|
-
"GET",
|
|
432
|
-
...Ee
|
|
433
|
-
];
|
|
434
|
-
new Set(Xe);
|
|
435
|
-
var O = o.createContext(null);
|
|
436
|
-
O.displayName = "DataRouter";
|
|
437
|
-
var F = o.createContext(null);
|
|
438
|
-
F.displayName = "DataRouterState";
|
|
439
|
-
var J = o.createContext({
|
|
440
|
-
isTransitioning: !1
|
|
441
|
-
});
|
|
442
|
-
J.displayName = "ViewTransition";
|
|
443
|
-
var te = o.createContext(
|
|
444
|
-
/* @__PURE__ */ new Map()
|
|
445
|
-
);
|
|
446
|
-
te.displayName = "Fetchers";
|
|
447
|
-
var Qe = o.createContext(null);
|
|
448
|
-
Qe.displayName = "Await";
|
|
449
|
-
var T = o.createContext(
|
|
450
|
-
null
|
|
451
|
-
);
|
|
452
|
-
T.displayName = "Navigation";
|
|
453
|
-
var K = o.createContext(
|
|
454
|
-
null
|
|
455
|
-
);
|
|
456
|
-
K.displayName = "Location";
|
|
457
|
-
var k = o.createContext({
|
|
458
|
-
outlet: null,
|
|
459
|
-
matches: [],
|
|
460
|
-
isDataRoute: !1
|
|
461
|
-
});
|
|
462
|
-
k.displayName = "Route";
|
|
463
|
-
var re = o.createContext(null);
|
|
464
|
-
re.displayName = "RouteError";
|
|
465
|
-
function Ze(e, { relative: t } = {}) {
|
|
466
|
-
b(
|
|
467
|
-
M(),
|
|
468
|
-
// TODO: This error is probably because they somehow have 2 versions of the
|
|
469
|
-
// router loaded. We can help them understand how to avoid that.
|
|
470
|
-
"useHref() may be used only in the context of a <Router> component."
|
|
471
|
-
);
|
|
472
|
-
let { basename: r, navigator: a } = o.useContext(T), { hash: n, pathname: i, search: s } = W(e, { relative: t }), c = i;
|
|
473
|
-
return r !== "/" && (c = i === "/" ? r : A([r, i])), a.createHref({ pathname: c, search: s, hash: n });
|
|
474
|
-
}
|
|
475
|
-
function M() {
|
|
476
|
-
return o.useContext(K) != null;
|
|
477
|
-
}
|
|
478
|
-
function N() {
|
|
479
|
-
return b(
|
|
480
|
-
M(),
|
|
481
|
-
// TODO: This error is probably because they somehow have 2 versions of the
|
|
482
|
-
// router loaded. We can help them understand how to avoid that.
|
|
483
|
-
"useLocation() may be used only in the context of a <Router> component."
|
|
484
|
-
), o.useContext(K).location;
|
|
485
|
-
}
|
|
486
|
-
function ir(e) {
|
|
487
|
-
b(
|
|
488
|
-
M(),
|
|
489
|
-
// TODO: This error is probably because they somehow have 2 versions of the
|
|
490
|
-
// router loaded. We can help them understand how to avoid that.
|
|
491
|
-
"useMatch() may be used only in the context of a <Router> component."
|
|
492
|
-
);
|
|
493
|
-
let { pathname: t } = N();
|
|
494
|
-
return o.useMemo(
|
|
495
|
-
() => H(e, ye(t)),
|
|
496
|
-
[t, e]
|
|
497
|
-
);
|
|
498
|
-
}
|
|
499
|
-
var xe = "You should call navigate() in a React.useEffect(), not when your component is first rendered.";
|
|
500
|
-
function Re(e) {
|
|
501
|
-
o.useContext(T).static || o.useLayoutEffect(e);
|
|
502
|
-
}
|
|
503
|
-
function ne() {
|
|
504
|
-
let { isDataRoute: e } = o.useContext(k);
|
|
505
|
-
return e ? dt() : et();
|
|
506
|
-
}
|
|
507
|
-
function et() {
|
|
508
|
-
b(
|
|
509
|
-
M(),
|
|
510
|
-
// TODO: This error is probably because they somehow have 2 versions of the
|
|
511
|
-
// router loaded. We can help them understand how to avoid that.
|
|
512
|
-
"useNavigate() may be used only in the context of a <Router> component."
|
|
513
|
-
);
|
|
514
|
-
let e = o.useContext(O), { basename: t, navigator: r } = o.useContext(T), { matches: a } = o.useContext(k), { pathname: n } = N(), i = JSON.stringify(Z(a)), s = o.useRef(!1);
|
|
515
|
-
return Re(() => {
|
|
516
|
-
s.current = !0;
|
|
517
|
-
}), o.useCallback(
|
|
518
|
-
(l, u = {}) => {
|
|
519
|
-
if (L(s.current, xe), !s.current) return;
|
|
520
|
-
if (typeof l == "number") {
|
|
521
|
-
r.go(l);
|
|
522
|
-
return;
|
|
523
|
-
}
|
|
524
|
-
let m = ee(
|
|
525
|
-
l,
|
|
526
|
-
JSON.parse(i),
|
|
527
|
-
n,
|
|
528
|
-
u.relative === "path"
|
|
529
|
-
);
|
|
530
|
-
e == null && t !== "/" && (m.pathname = m.pathname === "/" ? t : A([t, m.pathname])), (u.replace ? r.replace : r.push)(
|
|
531
|
-
m,
|
|
532
|
-
u.state,
|
|
533
|
-
u
|
|
534
|
-
);
|
|
535
|
-
},
|
|
536
|
-
[
|
|
537
|
-
t,
|
|
538
|
-
r,
|
|
539
|
-
i,
|
|
540
|
-
n,
|
|
541
|
-
e
|
|
542
|
-
]
|
|
543
|
-
);
|
|
544
|
-
}
|
|
545
|
-
var tt = o.createContext(null);
|
|
546
|
-
function rt(e) {
|
|
547
|
-
let t = o.useContext(k).outlet;
|
|
548
|
-
return t && /* @__PURE__ */ o.createElement(tt.Provider, { value: e }, t);
|
|
549
|
-
}
|
|
550
|
-
function or() {
|
|
551
|
-
let { matches: e } = o.useContext(k), t = e[e.length - 1];
|
|
552
|
-
return t ? t.params : {};
|
|
553
|
-
}
|
|
554
|
-
function W(e, { relative: t } = {}) {
|
|
555
|
-
let { matches: r } = o.useContext(k), { pathname: a } = N(), n = JSON.stringify(Z(r));
|
|
556
|
-
return o.useMemo(
|
|
557
|
-
() => ee(
|
|
558
|
-
e,
|
|
559
|
-
JSON.parse(n),
|
|
560
|
-
a,
|
|
561
|
-
t === "path"
|
|
562
|
-
),
|
|
563
|
-
[e, n, a, t]
|
|
564
|
-
);
|
|
565
|
-
}
|
|
566
|
-
function be(e, t, r, a) {
|
|
567
|
-
b(
|
|
568
|
-
M(),
|
|
569
|
-
// TODO: This error is probably because they somehow have 2 versions of the
|
|
570
|
-
// router loaded. We can help them understand how to avoid that.
|
|
571
|
-
"useRoutes() may be used only in the context of a <Router> component."
|
|
572
|
-
);
|
|
573
|
-
let { navigator: n } = o.useContext(T), { matches: i } = o.useContext(k), s = i[i.length - 1], c = s ? s.params : {}, l = s ? s.pathname : "/", u = s ? s.pathnameBase : "/", m = s && s.route;
|
|
574
|
-
{
|
|
575
|
-
let h = m && m.path || "";
|
|
576
|
-
Se(
|
|
577
|
-
l,
|
|
578
|
-
!m || h.endsWith("*") || h.endsWith("*?"),
|
|
579
|
-
`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${l}" (under <Route path="${h}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
|
|
580
|
-
|
|
581
|
-
Please change the parent <Route path="${h}"> to <Route path="${h === "/" ? "*" : `${h}/*`}">.`
|
|
582
|
-
);
|
|
583
|
-
}
|
|
584
|
-
let v = N(), f;
|
|
585
|
-
f = v;
|
|
586
|
-
let p = f.pathname || "/", d = p;
|
|
587
|
-
if (u !== "/") {
|
|
588
|
-
let h = u.replace(/^\//, "").split("/");
|
|
589
|
-
d = "/" + p.replace(/^\//, "").split("/").slice(h.length).join("/");
|
|
590
|
-
}
|
|
591
|
-
let g = pe(e, { pathname: d });
|
|
592
|
-
return L(
|
|
593
|
-
m || g != null,
|
|
594
|
-
`No routes matched location "${f.pathname}${f.search}${f.hash}" `
|
|
595
|
-
), L(
|
|
596
|
-
g == null || g[g.length - 1].route.element !== void 0 || g[g.length - 1].route.Component !== void 0 || g[g.length - 1].route.lazy !== void 0,
|
|
597
|
-
`Matched leaf route at location "${f.pathname}${f.search}${f.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.`
|
|
598
|
-
), lt(
|
|
599
|
-
g && g.map(
|
|
600
|
-
(h) => Object.assign({}, h, {
|
|
601
|
-
params: Object.assign({}, c, h.params),
|
|
602
|
-
pathname: A([
|
|
603
|
-
u,
|
|
604
|
-
// Re-encode pathnames that were decoded inside matchRoutes
|
|
605
|
-
n.encodeLocation ? n.encodeLocation(h.pathname).pathname : h.pathname
|
|
606
|
-
]),
|
|
607
|
-
pathnameBase: h.pathnameBase === "/" ? u : A([
|
|
608
|
-
u,
|
|
609
|
-
// Re-encode pathnames that were decoded inside matchRoutes
|
|
610
|
-
n.encodeLocation ? n.encodeLocation(h.pathnameBase).pathname : h.pathnameBase
|
|
611
|
-
])
|
|
612
|
-
})
|
|
613
|
-
),
|
|
614
|
-
i,
|
|
615
|
-
r,
|
|
616
|
-
a
|
|
617
|
-
);
|
|
618
|
-
}
|
|
619
|
-
function nt() {
|
|
620
|
-
let e = ft(), t = we(e) ? `${e.status} ${e.statusText}` : e instanceof Error ? e.message : JSON.stringify(e), r = e instanceof Error ? e.stack : null, a = "rgba(200,200,200, 0.5)", n = { padding: "0.5rem", backgroundColor: a }, i = { padding: "2px 4px", backgroundColor: a }, s = null;
|
|
621
|
-
return console.error(
|
|
622
|
-
"Error handled by React Router default ErrorBoundary:",
|
|
623
|
-
e
|
|
624
|
-
), s = /* @__PURE__ */ o.createElement(o.Fragment, null, /* @__PURE__ */ o.createElement("p", null, "💿 Hey developer 👋"), /* @__PURE__ */ o.createElement("p", null, "You can provide a way better UX than this when your app throws errors by providing your own ", /* @__PURE__ */ o.createElement("code", { style: i }, "ErrorBoundary"), " or", " ", /* @__PURE__ */ o.createElement("code", { style: i }, "errorElement"), " prop on your route.")), /* @__PURE__ */ o.createElement(o.Fragment, null, /* @__PURE__ */ o.createElement("h2", null, "Unexpected Application Error!"), /* @__PURE__ */ o.createElement("h3", { style: { fontStyle: "italic" } }, t), r ? /* @__PURE__ */ o.createElement("pre", { style: n }, r) : null, s);
|
|
625
|
-
}
|
|
626
|
-
var at = /* @__PURE__ */ o.createElement(nt, null), it = class extends o.Component {
|
|
627
|
-
constructor(e) {
|
|
628
|
-
super(e), this.state = {
|
|
629
|
-
location: e.location,
|
|
630
|
-
revalidation: e.revalidation,
|
|
631
|
-
error: e.error
|
|
632
|
-
};
|
|
633
|
-
}
|
|
634
|
-
static getDerivedStateFromError(e) {
|
|
635
|
-
return { error: e };
|
|
636
|
-
}
|
|
637
|
-
static getDerivedStateFromProps(e, t) {
|
|
638
|
-
return t.location !== e.location || t.revalidation !== "idle" && e.revalidation === "idle" ? {
|
|
639
|
-
error: e.error,
|
|
640
|
-
location: e.location,
|
|
641
|
-
revalidation: e.revalidation
|
|
642
|
-
} : {
|
|
643
|
-
error: e.error !== void 0 ? e.error : t.error,
|
|
644
|
-
location: t.location,
|
|
645
|
-
revalidation: e.revalidation || t.revalidation
|
|
646
|
-
};
|
|
647
|
-
}
|
|
648
|
-
componentDidCatch(e, t) {
|
|
649
|
-
console.error(
|
|
650
|
-
"React Router caught the following error during render",
|
|
651
|
-
e,
|
|
652
|
-
t
|
|
653
|
-
);
|
|
654
|
-
}
|
|
655
|
-
render() {
|
|
656
|
-
return this.state.error !== void 0 ? /* @__PURE__ */ o.createElement(k.Provider, { value: this.props.routeContext }, /* @__PURE__ */ o.createElement(
|
|
657
|
-
re.Provider,
|
|
658
|
-
{
|
|
659
|
-
value: this.state.error,
|
|
660
|
-
children: this.props.component
|
|
661
|
-
}
|
|
662
|
-
)) : this.props.children;
|
|
663
|
-
}
|
|
664
|
-
};
|
|
665
|
-
function ot({ routeContext: e, match: t, children: r }) {
|
|
666
|
-
let a = o.useContext(O);
|
|
667
|
-
return a && a.static && a.staticContext && (t.route.errorElement || t.route.ErrorBoundary) && (a.staticContext._deepestRenderedBoundaryId = t.route.id), /* @__PURE__ */ o.createElement(k.Provider, { value: e }, r);
|
|
668
|
-
}
|
|
669
|
-
function lt(e, t = [], r = null, a = null) {
|
|
670
|
-
if (e == null) {
|
|
671
|
-
if (!r)
|
|
672
|
-
return null;
|
|
673
|
-
if (r.errors)
|
|
674
|
-
e = r.matches;
|
|
675
|
-
else if (t.length === 0 && !r.initialized && r.matches.length > 0)
|
|
676
|
-
e = r.matches;
|
|
677
|
-
else
|
|
678
|
-
return null;
|
|
679
|
-
}
|
|
680
|
-
let n = e, i = r == null ? void 0 : r.errors;
|
|
681
|
-
if (i != null) {
|
|
682
|
-
let l = n.findIndex(
|
|
683
|
-
(u) => u.route.id && (i == null ? void 0 : i[u.route.id]) !== void 0
|
|
684
|
-
);
|
|
685
|
-
b(
|
|
686
|
-
l >= 0,
|
|
687
|
-
`Could not find a matching route for errors on route IDs: ${Object.keys(
|
|
688
|
-
i
|
|
689
|
-
).join(",")}`
|
|
690
|
-
), n = n.slice(
|
|
691
|
-
0,
|
|
692
|
-
Math.min(n.length, l + 1)
|
|
693
|
-
);
|
|
694
|
-
}
|
|
695
|
-
let s = !1, c = -1;
|
|
696
|
-
if (r)
|
|
697
|
-
for (let l = 0; l < n.length; l++) {
|
|
698
|
-
let u = n[l];
|
|
699
|
-
if ((u.route.HydrateFallback || u.route.hydrateFallbackElement) && (c = l), u.route.id) {
|
|
700
|
-
let { loaderData: m, errors: v } = r, f = u.route.loader && !m.hasOwnProperty(u.route.id) && (!v || v[u.route.id] === void 0);
|
|
701
|
-
if (u.route.lazy || f) {
|
|
702
|
-
s = !0, c >= 0 ? n = n.slice(0, c + 1) : n = [n[0]];
|
|
703
|
-
break;
|
|
704
|
-
}
|
|
705
|
-
}
|
|
706
|
-
}
|
|
707
|
-
return n.reduceRight((l, u, m) => {
|
|
708
|
-
let v, f = !1, p = null, d = null;
|
|
709
|
-
r && (v = i && u.route.id ? i[u.route.id] : void 0, p = u.route.errorElement || at, s && (c < 0 && m === 0 ? (Se(
|
|
710
|
-
"route-fallback",
|
|
711
|
-
!1,
|
|
712
|
-
"No `HydrateFallback` element provided to render during initial hydration"
|
|
713
|
-
), f = !0, d = null) : c === m && (f = !0, d = u.route.hydrateFallbackElement || null)));
|
|
714
|
-
let g = t.concat(n.slice(0, m + 1)), w = () => {
|
|
715
|
-
let h;
|
|
716
|
-
return v ? h = p : f ? h = d : u.route.Component ? h = /* @__PURE__ */ o.createElement(u.route.Component, null) : u.route.element ? h = u.route.element : h = l, /* @__PURE__ */ o.createElement(
|
|
717
|
-
ot,
|
|
718
|
-
{
|
|
719
|
-
match: u,
|
|
720
|
-
routeContext: {
|
|
721
|
-
outlet: l,
|
|
722
|
-
matches: g,
|
|
723
|
-
isDataRoute: r != null
|
|
724
|
-
},
|
|
725
|
-
children: h
|
|
726
|
-
}
|
|
727
|
-
);
|
|
728
|
-
};
|
|
729
|
-
return r && (u.route.ErrorBoundary || u.route.errorElement || m === 0) ? /* @__PURE__ */ o.createElement(
|
|
730
|
-
it,
|
|
731
|
-
{
|
|
732
|
-
location: r.location,
|
|
733
|
-
revalidation: r.revalidation,
|
|
734
|
-
component: p,
|
|
735
|
-
error: v,
|
|
736
|
-
children: w(),
|
|
737
|
-
routeContext: { outlet: null, matches: g, isDataRoute: !0 }
|
|
738
|
-
}
|
|
739
|
-
) : w();
|
|
740
|
-
}, null);
|
|
741
|
-
}
|
|
742
|
-
function ae(e) {
|
|
743
|
-
return `${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`;
|
|
744
|
-
}
|
|
745
|
-
function ut(e) {
|
|
746
|
-
let t = o.useContext(O);
|
|
747
|
-
return b(t, ae(e)), t;
|
|
748
|
-
}
|
|
749
|
-
function Ce(e) {
|
|
750
|
-
let t = o.useContext(F);
|
|
751
|
-
return b(t, ae(e)), t;
|
|
752
|
-
}
|
|
753
|
-
function st(e) {
|
|
754
|
-
let t = o.useContext(k);
|
|
755
|
-
return b(t, ae(e)), t;
|
|
756
|
-
}
|
|
757
|
-
function ie(e) {
|
|
758
|
-
let t = st(e), r = t.matches[t.matches.length - 1];
|
|
759
|
-
return b(
|
|
760
|
-
r.route.id,
|
|
761
|
-
`${e} can only be used on routes that contain a unique "id"`
|
|
762
|
-
), r.route.id;
|
|
763
|
-
}
|
|
764
|
-
function ct() {
|
|
765
|
-
return ie(
|
|
766
|
-
"useRouteId"
|
|
767
|
-
/* UseRouteId */
|
|
768
|
-
);
|
|
769
|
-
}
|
|
770
|
-
function lr() {
|
|
771
|
-
return Ce(
|
|
772
|
-
"useNavigation"
|
|
773
|
-
/* UseNavigation */
|
|
774
|
-
).navigation;
|
|
775
|
-
}
|
|
776
|
-
function ft() {
|
|
777
|
-
var a;
|
|
778
|
-
let e = o.useContext(re), t = Ce(
|
|
779
|
-
"useRouteError"
|
|
780
|
-
/* UseRouteError */
|
|
781
|
-
), r = ie(
|
|
782
|
-
"useRouteError"
|
|
783
|
-
/* UseRouteError */
|
|
784
|
-
);
|
|
785
|
-
return e !== void 0 ? e : (a = t.errors) == null ? void 0 : a[r];
|
|
786
|
-
}
|
|
787
|
-
function dt() {
|
|
788
|
-
let { router: e } = ut(
|
|
789
|
-
"useNavigate"
|
|
790
|
-
/* UseNavigateStable */
|
|
791
|
-
), t = ie(
|
|
792
|
-
"useNavigate"
|
|
793
|
-
/* UseNavigateStable */
|
|
794
|
-
), r = o.useRef(!1);
|
|
795
|
-
return Re(() => {
|
|
796
|
-
r.current = !0;
|
|
797
|
-
}), o.useCallback(
|
|
798
|
-
async (n, i = {}) => {
|
|
799
|
-
L(r.current, xe), r.current && (typeof n == "number" ? e.navigate(n) : await e.navigate(n, { fromRouteId: t, ...i }));
|
|
800
|
-
},
|
|
801
|
-
[e, t]
|
|
802
|
-
);
|
|
803
|
-
}
|
|
804
|
-
var fe = {};
|
|
805
|
-
function Se(e, t, r) {
|
|
806
|
-
!t && !fe[e] && (fe[e] = !0, L(!1, r));
|
|
807
|
-
}
|
|
808
|
-
var de = {};
|
|
809
|
-
function he(e, t) {
|
|
810
|
-
!e && !de[t] && (de[t] = !0, console.warn(t));
|
|
811
|
-
}
|
|
812
|
-
var ht = class {
|
|
813
|
-
constructor() {
|
|
814
|
-
this.status = "pending", this.promise = new Promise((e, t) => {
|
|
815
|
-
this.resolve = (r) => {
|
|
816
|
-
this.status === "pending" && (this.status = "resolved", e(r));
|
|
817
|
-
}, this.reject = (r) => {
|
|
818
|
-
this.status === "pending" && (this.status = "rejected", t(r));
|
|
819
|
-
};
|
|
820
|
-
});
|
|
821
|
-
}
|
|
822
|
-
};
|
|
823
|
-
function ur({
|
|
824
|
-
router: e,
|
|
825
|
-
flushSync: t
|
|
826
|
-
}) {
|
|
827
|
-
let [r, a] = o.useState(e.state), [n, i] = o.useState(), [s, c] = o.useState({
|
|
828
|
-
isTransitioning: !1
|
|
829
|
-
}), [l, u] = o.useState(), [m, v] = o.useState(), [f, p] = o.useState(), d = o.useRef(/* @__PURE__ */ new Map()), g = o.useCallback(
|
|
830
|
-
(y, { deletedFetchers: R, flushSync: x, viewTransitionOpts: C }) => {
|
|
831
|
-
R.forEach((S) => d.current.delete(S)), y.fetchers.forEach((S, P) => {
|
|
832
|
-
S.data !== void 0 && d.current.set(P, S.data);
|
|
833
|
-
}), he(
|
|
834
|
-
x === !1 || t != null,
|
|
835
|
-
'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.'
|
|
836
|
-
);
|
|
837
|
-
let $ = e.window != null && e.window.document != null && typeof e.window.document.startViewTransition == "function";
|
|
838
|
-
if (he(
|
|
839
|
-
C == null || $,
|
|
840
|
-
"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."
|
|
841
|
-
), !C || !$) {
|
|
842
|
-
t && x ? t(() => a(y)) : o.startTransition(() => a(y));
|
|
843
|
-
return;
|
|
844
|
-
}
|
|
845
|
-
if (t && x) {
|
|
846
|
-
t(() => {
|
|
847
|
-
m && (l && l.resolve(), m.skipTransition()), c({
|
|
848
|
-
isTransitioning: !0,
|
|
849
|
-
flushSync: !0,
|
|
850
|
-
currentLocation: C.currentLocation,
|
|
851
|
-
nextLocation: C.nextLocation
|
|
852
|
-
});
|
|
853
|
-
});
|
|
854
|
-
let S = e.window.document.startViewTransition(() => {
|
|
855
|
-
t(() => a(y));
|
|
856
|
-
});
|
|
857
|
-
S.finished.finally(() => {
|
|
858
|
-
t(() => {
|
|
859
|
-
u(void 0), v(void 0), i(void 0), c({ isTransitioning: !1 });
|
|
860
|
-
});
|
|
861
|
-
}), t(() => v(S));
|
|
862
|
-
return;
|
|
863
|
-
}
|
|
864
|
-
m ? (l && l.resolve(), m.skipTransition(), p({
|
|
865
|
-
state: y,
|
|
866
|
-
currentLocation: C.currentLocation,
|
|
867
|
-
nextLocation: C.nextLocation
|
|
868
|
-
})) : (i(y), c({
|
|
869
|
-
isTransitioning: !0,
|
|
870
|
-
flushSync: !1,
|
|
871
|
-
currentLocation: C.currentLocation,
|
|
872
|
-
nextLocation: C.nextLocation
|
|
873
|
-
}));
|
|
874
|
-
},
|
|
875
|
-
[e.window, t, m, l]
|
|
876
|
-
);
|
|
877
|
-
o.useLayoutEffect(() => e.subscribe(g), [e, g]), o.useEffect(() => {
|
|
878
|
-
s.isTransitioning && !s.flushSync && u(new ht());
|
|
879
|
-
}, [s]), o.useEffect(() => {
|
|
880
|
-
if (l && n && e.window) {
|
|
881
|
-
let y = n, R = l.promise, x = e.window.document.startViewTransition(async () => {
|
|
882
|
-
o.startTransition(() => a(y)), await R;
|
|
883
|
-
});
|
|
884
|
-
x.finished.finally(() => {
|
|
885
|
-
u(void 0), v(void 0), i(void 0), c({ isTransitioning: !1 });
|
|
886
|
-
}), v(x);
|
|
887
|
-
}
|
|
888
|
-
}, [n, l, e.window]), o.useEffect(() => {
|
|
889
|
-
l && n && r.location.key === n.location.key && l.resolve();
|
|
890
|
-
}, [l, m, r.location, n]), o.useEffect(() => {
|
|
891
|
-
!s.isTransitioning && f && (i(f.state), c({
|
|
892
|
-
isTransitioning: !0,
|
|
893
|
-
flushSync: !1,
|
|
894
|
-
currentLocation: f.currentLocation,
|
|
895
|
-
nextLocation: f.nextLocation
|
|
896
|
-
}), p(void 0));
|
|
897
|
-
}, [s.isTransitioning, f]);
|
|
898
|
-
let w = o.useMemo(() => ({
|
|
899
|
-
createHref: e.createHref,
|
|
900
|
-
encodeLocation: e.encodeLocation,
|
|
901
|
-
go: (y) => e.navigate(y),
|
|
902
|
-
push: (y, R, x) => e.navigate(y, {
|
|
903
|
-
state: R,
|
|
904
|
-
preventScrollReset: x == null ? void 0 : x.preventScrollReset
|
|
905
|
-
}),
|
|
906
|
-
replace: (y, R, x) => e.navigate(y, {
|
|
907
|
-
replace: !0,
|
|
908
|
-
state: R,
|
|
909
|
-
preventScrollReset: x == null ? void 0 : x.preventScrollReset
|
|
910
|
-
})
|
|
911
|
-
}), [e]), h = e.basename || "/", E = o.useMemo(
|
|
912
|
-
() => ({
|
|
913
|
-
router: e,
|
|
914
|
-
navigator: w,
|
|
915
|
-
static: !1,
|
|
916
|
-
basename: h
|
|
917
|
-
}),
|
|
918
|
-
[e, w, h]
|
|
919
|
-
);
|
|
920
|
-
return /* @__PURE__ */ o.createElement(o.Fragment, null, /* @__PURE__ */ o.createElement(O.Provider, { value: E }, /* @__PURE__ */ o.createElement(F.Provider, { value: r }, /* @__PURE__ */ o.createElement(te.Provider, { value: d.current }, /* @__PURE__ */ o.createElement(J.Provider, { value: s }, /* @__PURE__ */ o.createElement(
|
|
921
|
-
Pe,
|
|
922
|
-
{
|
|
923
|
-
basename: h,
|
|
924
|
-
location: r.location,
|
|
925
|
-
navigationType: r.historyAction,
|
|
926
|
-
navigator: w
|
|
927
|
-
},
|
|
928
|
-
/* @__PURE__ */ o.createElement(
|
|
929
|
-
mt,
|
|
930
|
-
{
|
|
931
|
-
routes: e.routes,
|
|
932
|
-
future: e.future,
|
|
933
|
-
state: r
|
|
934
|
-
}
|
|
935
|
-
)
|
|
936
|
-
))))), null);
|
|
937
|
-
}
|
|
938
|
-
var mt = o.memo(pt);
|
|
939
|
-
function pt({
|
|
940
|
-
routes: e,
|
|
941
|
-
future: t,
|
|
942
|
-
state: r
|
|
943
|
-
}) {
|
|
944
|
-
return be(e, void 0, r, t);
|
|
945
|
-
}
|
|
946
|
-
function sr({
|
|
947
|
-
to: e,
|
|
948
|
-
replace: t,
|
|
949
|
-
state: r,
|
|
950
|
-
relative: a
|
|
951
|
-
}) {
|
|
952
|
-
b(
|
|
953
|
-
M(),
|
|
954
|
-
// TODO: This error is probably because they somehow have 2 versions of
|
|
955
|
-
// the router loaded. We can help them understand how to avoid that.
|
|
956
|
-
"<Navigate> may be used only in the context of a <Router> component."
|
|
957
|
-
);
|
|
958
|
-
let { static: n } = o.useContext(T);
|
|
959
|
-
L(
|
|
960
|
-
!n,
|
|
961
|
-
"<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."
|
|
962
|
-
);
|
|
963
|
-
let { matches: i } = o.useContext(k), { pathname: s } = N(), c = ne(), l = ee(
|
|
964
|
-
e,
|
|
965
|
-
Z(i),
|
|
966
|
-
s,
|
|
967
|
-
a === "path"
|
|
968
|
-
), u = JSON.stringify(l);
|
|
969
|
-
return o.useEffect(() => {
|
|
970
|
-
c(JSON.parse(u), { replace: t, state: r, relative: a });
|
|
971
|
-
}, [c, u, a, t, r]), null;
|
|
972
|
-
}
|
|
973
|
-
function cr(e) {
|
|
974
|
-
return rt(e.context);
|
|
975
|
-
}
|
|
976
|
-
function Pe({
|
|
977
|
-
basename: e = "/",
|
|
978
|
-
children: t = null,
|
|
979
|
-
location: r,
|
|
980
|
-
navigationType: a = "POP",
|
|
981
|
-
navigator: n,
|
|
982
|
-
static: i = !1
|
|
983
|
-
}) {
|
|
984
|
-
b(
|
|
985
|
-
!M(),
|
|
986
|
-
"You cannot render a <Router> inside another <Router>. You should never have more than one in your app."
|
|
987
|
-
);
|
|
988
|
-
let s = e.replace(/^\/*/, "/"), c = o.useMemo(
|
|
989
|
-
() => ({
|
|
990
|
-
basename: s,
|
|
991
|
-
navigator: n,
|
|
992
|
-
static: i,
|
|
993
|
-
future: {}
|
|
994
|
-
}),
|
|
995
|
-
[s, n, i]
|
|
996
|
-
);
|
|
997
|
-
typeof r == "string" && (r = Y(r));
|
|
998
|
-
let {
|
|
999
|
-
pathname: l = "/",
|
|
1000
|
-
search: u = "",
|
|
1001
|
-
hash: m = "",
|
|
1002
|
-
state: v = null,
|
|
1003
|
-
key: f = "default"
|
|
1004
|
-
} = r, p = o.useMemo(() => {
|
|
1005
|
-
let d = I(l, s);
|
|
1006
|
-
return d == null ? null : {
|
|
1007
|
-
location: {
|
|
1008
|
-
pathname: d,
|
|
1009
|
-
search: u,
|
|
1010
|
-
hash: m,
|
|
1011
|
-
state: v,
|
|
1012
|
-
key: f
|
|
1013
|
-
},
|
|
1014
|
-
navigationType: a
|
|
1015
|
-
};
|
|
1016
|
-
}, [s, l, u, m, v, f, a]);
|
|
1017
|
-
return L(
|
|
1018
|
-
p != null,
|
|
1019
|
-
`<Router basename="${s}"> is not able to match the URL "${l}${u}${m}" because it does not start with the basename, so the <Router> won't render anything.`
|
|
1020
|
-
), p == null ? null : /* @__PURE__ */ o.createElement(T.Provider, { value: c }, /* @__PURE__ */ o.createElement(K.Provider, { children: t, value: p }));
|
|
1021
|
-
}
|
|
1022
|
-
var V = "get", j = "application/x-www-form-urlencoded";
|
|
1023
|
-
function q(e) {
|
|
1024
|
-
return e != null && typeof e.tagName == "string";
|
|
1025
|
-
}
|
|
1026
|
-
function vt(e) {
|
|
1027
|
-
return q(e) && e.tagName.toLowerCase() === "button";
|
|
1028
|
-
}
|
|
1029
|
-
function gt(e) {
|
|
1030
|
-
return q(e) && e.tagName.toLowerCase() === "form";
|
|
1031
|
-
}
|
|
1032
|
-
function yt(e) {
|
|
1033
|
-
return q(e) && e.tagName.toLowerCase() === "input";
|
|
1034
|
-
}
|
|
1035
|
-
function wt(e) {
|
|
1036
|
-
return !!(e.metaKey || e.altKey || e.ctrlKey || e.shiftKey);
|
|
1037
|
-
}
|
|
1038
|
-
function Et(e, t) {
|
|
1039
|
-
return e.button === 0 && // Ignore everything but left clicks
|
|
1040
|
-
(!t || t === "_self") && // Let browser handle "target=_blank" etc.
|
|
1041
|
-
!wt(e);
|
|
1042
|
-
}
|
|
1043
|
-
function Q(e = "") {
|
|
1044
|
-
return new URLSearchParams(
|
|
1045
|
-
typeof e == "string" || Array.isArray(e) || e instanceof URLSearchParams ? e : Object.keys(e).reduce((t, r) => {
|
|
1046
|
-
let a = e[r];
|
|
1047
|
-
return t.concat(
|
|
1048
|
-
Array.isArray(a) ? a.map((n) => [r, n]) : [[r, a]]
|
|
1049
|
-
);
|
|
1050
|
-
}, [])
|
|
1051
|
-
);
|
|
1052
|
-
}
|
|
1053
|
-
function xt(e, t) {
|
|
1054
|
-
let r = Q(e);
|
|
1055
|
-
return t && t.forEach((a, n) => {
|
|
1056
|
-
r.has(n) || t.getAll(n).forEach((i) => {
|
|
1057
|
-
r.append(n, i);
|
|
1058
|
-
});
|
|
1059
|
-
}), r;
|
|
1060
|
-
}
|
|
1061
|
-
var z = null;
|
|
1062
|
-
function Rt() {
|
|
1063
|
-
if (z === null)
|
|
1064
|
-
try {
|
|
1065
|
-
new FormData(
|
|
1066
|
-
document.createElement("form"),
|
|
1067
|
-
// @ts-expect-error if FormData supports the submitter parameter, this will throw
|
|
1068
|
-
0
|
|
1069
|
-
), z = !1;
|
|
1070
|
-
} catch {
|
|
1071
|
-
z = !0;
|
|
1072
|
-
}
|
|
1073
|
-
return z;
|
|
1074
|
-
}
|
|
1075
|
-
var bt = /* @__PURE__ */ new Set([
|
|
1076
|
-
"application/x-www-form-urlencoded",
|
|
1077
|
-
"multipart/form-data",
|
|
1078
|
-
"text/plain"
|
|
1079
|
-
]);
|
|
1080
|
-
function X(e) {
|
|
1081
|
-
return e != null && !bt.has(e) ? (L(
|
|
1082
|
-
!1,
|
|
1083
|
-
`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${j}"`
|
|
1084
|
-
), null) : e;
|
|
1085
|
-
}
|
|
1086
|
-
function Ct(e, t) {
|
|
1087
|
-
let r, a, n, i, s;
|
|
1088
|
-
if (gt(e)) {
|
|
1089
|
-
let c = e.getAttribute("action");
|
|
1090
|
-
a = c ? I(c, t) : null, r = e.getAttribute("method") || V, n = X(e.getAttribute("enctype")) || j, i = new FormData(e);
|
|
1091
|
-
} else if (vt(e) || yt(e) && (e.type === "submit" || e.type === "image")) {
|
|
1092
|
-
let c = e.form;
|
|
1093
|
-
if (c == null)
|
|
1094
|
-
throw new Error(
|
|
1095
|
-
'Cannot submit a <button> or <input type="submit"> without a <form>'
|
|
1096
|
-
);
|
|
1097
|
-
let l = e.getAttribute("formaction") || c.getAttribute("action");
|
|
1098
|
-
if (a = l ? I(l, t) : null, r = e.getAttribute("formmethod") || c.getAttribute("method") || V, n = X(e.getAttribute("formenctype")) || X(c.getAttribute("enctype")) || j, i = new FormData(c, e), !Rt()) {
|
|
1099
|
-
let { name: u, type: m, value: v } = e;
|
|
1100
|
-
if (m === "image") {
|
|
1101
|
-
let f = u ? `${u}.` : "";
|
|
1102
|
-
i.append(`${f}x`, "0"), i.append(`${f}y`, "0");
|
|
1103
|
-
} else u && i.append(u, v);
|
|
1104
|
-
}
|
|
1105
|
-
} else {
|
|
1106
|
-
if (q(e))
|
|
1107
|
-
throw new Error(
|
|
1108
|
-
'Cannot submit element that is not <form>, <button>, or <input type="submit|image">'
|
|
1109
|
-
);
|
|
1110
|
-
r = V, a = null, n = j, s = e;
|
|
1111
|
-
}
|
|
1112
|
-
return i && n === "text/plain" && (s = i, i = void 0), { action: a, method: r.toLowerCase(), encType: n, formData: i, body: s };
|
|
1113
|
-
}
|
|
1114
|
-
function oe(e, t) {
|
|
1115
|
-
if (e === !1 || e === null || typeof e > "u")
|
|
1116
|
-
throw new Error(t);
|
|
1117
|
-
}
|
|
1118
|
-
async function St(e, t) {
|
|
1119
|
-
if (e.id in t)
|
|
1120
|
-
return t[e.id];
|
|
1121
|
-
try {
|
|
1122
|
-
let r = await import(
|
|
1123
|
-
/* @vite-ignore */
|
|
1124
|
-
/* webpackIgnore: true */
|
|
1125
|
-
e.module
|
|
1126
|
-
);
|
|
1127
|
-
return t[e.id] = r, r;
|
|
1128
|
-
} catch (r) {
|
|
1129
|
-
return console.error(
|
|
1130
|
-
`Error loading route module \`${e.module}\`, reloading page...`
|
|
1131
|
-
), console.error(r), window.__reactRouterContext && window.__reactRouterContext.isSpaMode, window.location.reload(), new Promise(() => {
|
|
1132
|
-
});
|
|
1133
|
-
}
|
|
1134
|
-
}
|
|
1135
|
-
function Pt(e) {
|
|
1136
|
-
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";
|
|
1137
|
-
}
|
|
1138
|
-
async function Lt(e, t, r) {
|
|
1139
|
-
let a = await Promise.all(
|
|
1140
|
-
e.map(async (n) => {
|
|
1141
|
-
let i = t.routes[n.route.id];
|
|
1142
|
-
if (i) {
|
|
1143
|
-
let s = await St(i, r);
|
|
1144
|
-
return s.links ? s.links() : [];
|
|
1145
|
-
}
|
|
1146
|
-
return [];
|
|
1147
|
-
})
|
|
1148
|
-
);
|
|
1149
|
-
return Nt(
|
|
1150
|
-
a.flat(1).filter(Pt).filter((n) => n.rel === "stylesheet" || n.rel === "preload").map(
|
|
1151
|
-
(n) => n.rel === "stylesheet" ? { ...n, rel: "prefetch", as: "style" } : { ...n, rel: "prefetch" }
|
|
1152
|
-
)
|
|
1153
|
-
);
|
|
1154
|
-
}
|
|
1155
|
-
function me(e, t, r, a, n, i) {
|
|
1156
|
-
let s = (l, u) => r[u] ? l.route.id !== r[u].route.id : !0, c = (l, u) => {
|
|
1157
|
-
var m;
|
|
1158
|
-
return (
|
|
1159
|
-
// param change, /users/123 -> /users/456
|
|
1160
|
-
r[u].pathname !== l.pathname || // splat param changed, which is not present in match.path
|
|
1161
|
-
// e.g. /files/images/avatar.jpg -> files/finances.xls
|
|
1162
|
-
((m = r[u].route.path) == null ? void 0 : m.endsWith("*")) && r[u].params["*"] !== l.params["*"]
|
|
1163
|
-
);
|
|
1164
|
-
};
|
|
1165
|
-
return i === "assets" ? t.filter(
|
|
1166
|
-
(l, u) => s(l, u) || c(l, u)
|
|
1167
|
-
) : i === "data" ? t.filter((l, u) => {
|
|
1168
|
-
var v;
|
|
1169
|
-
let m = a.routes[l.route.id];
|
|
1170
|
-
if (!m || !m.hasLoader)
|
|
1171
|
-
return !1;
|
|
1172
|
-
if (s(l, u) || c(l, u))
|
|
1173
|
-
return !0;
|
|
1174
|
-
if (l.route.shouldRevalidate) {
|
|
1175
|
-
let f = l.route.shouldRevalidate({
|
|
1176
|
-
currentUrl: new URL(
|
|
1177
|
-
n.pathname + n.search + n.hash,
|
|
1178
|
-
window.origin
|
|
1179
|
-
),
|
|
1180
|
-
currentParams: ((v = r[0]) == null ? void 0 : v.params) || {},
|
|
1181
|
-
nextUrl: new URL(e, window.origin),
|
|
1182
|
-
nextParams: l.params,
|
|
1183
|
-
defaultShouldRevalidate: !0
|
|
1184
|
-
});
|
|
1185
|
-
if (typeof f == "boolean")
|
|
1186
|
-
return f;
|
|
1187
|
-
}
|
|
1188
|
-
return !0;
|
|
1189
|
-
}) : [];
|
|
1190
|
-
}
|
|
1191
|
-
function kt(e, t) {
|
|
1192
|
-
return $t(
|
|
1193
|
-
e.map((r) => {
|
|
1194
|
-
let a = t.routes[r.route.id];
|
|
1195
|
-
if (!a) return [];
|
|
1196
|
-
let n = [a.module];
|
|
1197
|
-
return a.imports && (n = n.concat(a.imports)), n;
|
|
1198
|
-
}).flat(1)
|
|
1199
|
-
);
|
|
1200
|
-
}
|
|
1201
|
-
function $t(e) {
|
|
1202
|
-
return [...new Set(e)];
|
|
1203
|
-
}
|
|
1204
|
-
function Tt(e) {
|
|
1205
|
-
let t = {}, r = Object.keys(e).sort();
|
|
1206
|
-
for (let a of r)
|
|
1207
|
-
t[a] = e[a];
|
|
1208
|
-
return t;
|
|
1209
|
-
}
|
|
1210
|
-
function Nt(e, t) {
|
|
1211
|
-
let r = /* @__PURE__ */ new Set();
|
|
1212
|
-
return new Set(t), e.reduce((a, n) => {
|
|
1213
|
-
let i = JSON.stringify(Tt(n));
|
|
1214
|
-
return r.has(i) || (r.add(i), a.push({ key: i, link: n })), a;
|
|
1215
|
-
}, []);
|
|
1216
|
-
}
|
|
1217
|
-
function At(e) {
|
|
1218
|
-
let t = typeof e == "string" ? new URL(
|
|
1219
|
-
e,
|
|
1220
|
-
// This can be called during the SSR flow via PrefetchPageLinksImpl so
|
|
1221
|
-
// don't assume window is available
|
|
1222
|
-
typeof window > "u" ? "server://singlefetch/" : window.location.origin
|
|
1223
|
-
) : e;
|
|
1224
|
-
return t.pathname === "/" ? t.pathname = "_root.data" : t.pathname = `${t.pathname.replace(/\/$/, "")}.data`, t;
|
|
1225
|
-
}
|
|
1226
|
-
function Dt() {
|
|
1227
|
-
let e = o.useContext(O);
|
|
1228
|
-
return oe(
|
|
1229
|
-
e,
|
|
1230
|
-
"You must render this element inside a <DataRouterContext.Provider> element"
|
|
1231
|
-
), e;
|
|
1232
|
-
}
|
|
1233
|
-
function It() {
|
|
1234
|
-
let e = o.useContext(F);
|
|
1235
|
-
return oe(
|
|
1236
|
-
e,
|
|
1237
|
-
"You must render this element inside a <DataRouterStateContext.Provider> element"
|
|
1238
|
-
), e;
|
|
1239
|
-
}
|
|
1240
|
-
var le = o.createContext(void 0);
|
|
1241
|
-
le.displayName = "FrameworkContext";
|
|
1242
|
-
function Le() {
|
|
1243
|
-
let e = o.useContext(le);
|
|
1244
|
-
return oe(
|
|
1245
|
-
e,
|
|
1246
|
-
"You must render this element inside a <HydratedRouter> element"
|
|
1247
|
-
), e;
|
|
1248
|
-
}
|
|
1249
|
-
function Ot(e, t) {
|
|
1250
|
-
let r = o.useContext(le), [a, n] = o.useState(!1), [i, s] = o.useState(!1), { onFocus: c, onBlur: l, onMouseEnter: u, onMouseLeave: m, onTouchStart: v } = t, f = o.useRef(null);
|
|
1251
|
-
o.useEffect(() => {
|
|
1252
|
-
if (e === "render" && s(!0), e === "viewport") {
|
|
1253
|
-
let g = (h) => {
|
|
1254
|
-
h.forEach((E) => {
|
|
1255
|
-
s(E.isIntersecting);
|
|
1256
|
-
});
|
|
1257
|
-
}, w = new IntersectionObserver(g, { threshold: 0.5 });
|
|
1258
|
-
return f.current && w.observe(f.current), () => {
|
|
1259
|
-
w.disconnect();
|
|
1260
|
-
};
|
|
1261
|
-
}
|
|
1262
|
-
}, [e]), o.useEffect(() => {
|
|
1263
|
-
if (a) {
|
|
1264
|
-
let g = setTimeout(() => {
|
|
1265
|
-
s(!0);
|
|
1266
|
-
}, 100);
|
|
1267
|
-
return () => {
|
|
1268
|
-
clearTimeout(g);
|
|
1269
|
-
};
|
|
1270
|
-
}
|
|
1271
|
-
}, [a]);
|
|
1272
|
-
let p = () => {
|
|
1273
|
-
n(!0);
|
|
1274
|
-
}, d = () => {
|
|
1275
|
-
n(!1), s(!1);
|
|
1276
|
-
};
|
|
1277
|
-
return r ? e !== "intent" ? [i, f, {}] : [
|
|
1278
|
-
i,
|
|
1279
|
-
f,
|
|
1280
|
-
{
|
|
1281
|
-
onFocus: U(c, p),
|
|
1282
|
-
onBlur: U(l, d),
|
|
1283
|
-
onMouseEnter: U(u, p),
|
|
1284
|
-
onMouseLeave: U(m, d),
|
|
1285
|
-
onTouchStart: U(v, p)
|
|
1286
|
-
}
|
|
1287
|
-
] : [!1, f, {}];
|
|
1288
|
-
}
|
|
1289
|
-
function U(e, t) {
|
|
1290
|
-
return (r) => {
|
|
1291
|
-
e && e(r), r.defaultPrevented || t(r);
|
|
1292
|
-
};
|
|
1293
|
-
}
|
|
1294
|
-
function Mt({
|
|
1295
|
-
page: e,
|
|
1296
|
-
...t
|
|
1297
|
-
}) {
|
|
1298
|
-
let { router: r } = Dt(), a = o.useMemo(
|
|
1299
|
-
() => pe(r.routes, e, r.basename),
|
|
1300
|
-
[r.routes, e, r.basename]
|
|
1301
|
-
);
|
|
1302
|
-
return a ? /* @__PURE__ */ o.createElement(_t, { page: e, matches: a, ...t }) : (console.warn(`Tried to prefetch ${e} but no routes matched.`), null);
|
|
1303
|
-
}
|
|
1304
|
-
function Ft(e) {
|
|
1305
|
-
let { manifest: t, routeModules: r } = Le(), [a, n] = o.useState([]);
|
|
1306
|
-
return o.useEffect(() => {
|
|
1307
|
-
let i = !1;
|
|
1308
|
-
return Lt(e, t, r).then(
|
|
1309
|
-
(s) => {
|
|
1310
|
-
i || n(s);
|
|
1311
|
-
}
|
|
1312
|
-
), () => {
|
|
1313
|
-
i = !0;
|
|
1314
|
-
};
|
|
1315
|
-
}, [e, t, r]), a;
|
|
1316
|
-
}
|
|
1317
|
-
function _t({
|
|
1318
|
-
page: e,
|
|
1319
|
-
matches: t,
|
|
1320
|
-
...r
|
|
1321
|
-
}) {
|
|
1322
|
-
let a = N(), { manifest: n, routeModules: i } = Le(), { loaderData: s, matches: c } = It(), l = o.useMemo(
|
|
1323
|
-
() => me(
|
|
1324
|
-
e,
|
|
1325
|
-
t,
|
|
1326
|
-
c,
|
|
1327
|
-
n,
|
|
1328
|
-
a,
|
|
1329
|
-
"data"
|
|
1330
|
-
),
|
|
1331
|
-
[e, t, c, n, a]
|
|
1332
|
-
), u = o.useMemo(
|
|
1333
|
-
() => me(
|
|
1334
|
-
e,
|
|
1335
|
-
t,
|
|
1336
|
-
c,
|
|
1337
|
-
n,
|
|
1338
|
-
a,
|
|
1339
|
-
"assets"
|
|
1340
|
-
),
|
|
1341
|
-
[e, t, c, n, a]
|
|
1342
|
-
), m = o.useMemo(() => {
|
|
1343
|
-
if (e === a.pathname + a.search + a.hash)
|
|
1344
|
-
return [];
|
|
1345
|
-
let p = /* @__PURE__ */ new Set(), d = !1;
|
|
1346
|
-
if (t.forEach((w) => {
|
|
1347
|
-
var E;
|
|
1348
|
-
let h = n.routes[w.route.id];
|
|
1349
|
-
!h || !h.hasLoader || (!l.some((y) => y.route.id === w.route.id) && w.route.id in s && ((E = i[w.route.id]) != null && E.shouldRevalidate) || h.hasClientLoader ? d = !0 : p.add(w.route.id));
|
|
1350
|
-
}), p.size === 0)
|
|
1351
|
-
return [];
|
|
1352
|
-
let g = At(e);
|
|
1353
|
-
return d && p.size > 0 && g.searchParams.set(
|
|
1354
|
-
"_routes",
|
|
1355
|
-
t.filter((w) => p.has(w.route.id)).map((w) => w.route.id).join(",")
|
|
1356
|
-
), [g.pathname + g.search];
|
|
1357
|
-
}, [
|
|
1358
|
-
s,
|
|
1359
|
-
a,
|
|
1360
|
-
n,
|
|
1361
|
-
l,
|
|
1362
|
-
t,
|
|
1363
|
-
e,
|
|
1364
|
-
i
|
|
1365
|
-
]), v = o.useMemo(
|
|
1366
|
-
() => kt(u, n),
|
|
1367
|
-
[u, n]
|
|
1368
|
-
), f = Ft(u);
|
|
1369
|
-
return /* @__PURE__ */ o.createElement(o.Fragment, null, m.map((p) => /* @__PURE__ */ o.createElement("link", { key: p, rel: "prefetch", as: "fetch", href: p, ...r })), v.map((p) => /* @__PURE__ */ o.createElement("link", { key: p, rel: "modulepreload", href: p, ...r })), f.map(({ key: p, link: d }) => (
|
|
1370
|
-
// these don't spread `linkProps` because they are full link descriptors
|
|
1371
|
-
// already with their own props
|
|
1372
|
-
/* @__PURE__ */ o.createElement("link", { key: p, ...d })
|
|
1373
|
-
)));
|
|
1374
|
-
}
|
|
1375
|
-
function Ut(...e) {
|
|
1376
|
-
return (t) => {
|
|
1377
|
-
e.forEach((r) => {
|
|
1378
|
-
typeof r == "function" ? r(t) : r != null && (r.current = t);
|
|
1379
|
-
});
|
|
1380
|
-
};
|
|
1381
|
-
}
|
|
1382
|
-
var ke = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u";
|
|
1383
|
-
try {
|
|
1384
|
-
ke && (window.__reactRouterVersion = "7.0.2");
|
|
1385
|
-
} catch {
|
|
1386
|
-
}
|
|
1387
|
-
var $e = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, Te = o.forwardRef(
|
|
1388
|
-
function({
|
|
1389
|
-
onClick: t,
|
|
1390
|
-
discover: r = "render",
|
|
1391
|
-
prefetch: a = "none",
|
|
1392
|
-
relative: n,
|
|
1393
|
-
reloadDocument: i,
|
|
1394
|
-
replace: s,
|
|
1395
|
-
state: c,
|
|
1396
|
-
target: l,
|
|
1397
|
-
to: u,
|
|
1398
|
-
preventScrollReset: m,
|
|
1399
|
-
viewTransition: v,
|
|
1400
|
-
...f
|
|
1401
|
-
}, p) {
|
|
1402
|
-
let { basename: d } = o.useContext(T), g = typeof u == "string" && $e.test(u), w, h = !1;
|
|
1403
|
-
if (typeof u == "string" && g && (w = u, ke))
|
|
1404
|
-
try {
|
|
1405
|
-
let P = new URL(window.location.href), D = u.startsWith("//") ? new URL(P.protocol + u) : new URL(u), ue = I(D.pathname, d);
|
|
1406
|
-
D.origin === P.origin && ue != null ? u = ue + D.search + D.hash : h = !0;
|
|
1407
|
-
} catch {
|
|
1408
|
-
L(
|
|
1409
|
-
!1,
|
|
1410
|
-
`<Link to="${u}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`
|
|
1411
|
-
);
|
|
1412
|
-
}
|
|
1413
|
-
let E = Ze(u, { relative: n }), [y, R, x] = Ot(
|
|
1414
|
-
a,
|
|
1415
|
-
f
|
|
1416
|
-
), C = zt(u, {
|
|
1417
|
-
replace: s,
|
|
1418
|
-
state: c,
|
|
1419
|
-
target: l,
|
|
1420
|
-
preventScrollReset: m,
|
|
1421
|
-
relative: n,
|
|
1422
|
-
viewTransition: v
|
|
1423
|
-
});
|
|
1424
|
-
function $(P) {
|
|
1425
|
-
t && t(P), P.defaultPrevented || C(P);
|
|
1426
|
-
}
|
|
1427
|
-
let S = (
|
|
1428
|
-
// eslint-disable-next-line jsx-a11y/anchor-has-content
|
|
1429
|
-
/* @__PURE__ */ o.createElement(
|
|
1430
|
-
"a",
|
|
1431
|
-
{
|
|
1432
|
-
...f,
|
|
1433
|
-
...x,
|
|
1434
|
-
href: w || E,
|
|
1435
|
-
onClick: h || i ? t : $,
|
|
1436
|
-
ref: Ut(p, R),
|
|
1437
|
-
target: l,
|
|
1438
|
-
"data-discover": !g && r === "render" ? "true" : void 0
|
|
1439
|
-
}
|
|
1440
|
-
)
|
|
1441
|
-
);
|
|
1442
|
-
return y && !g ? /* @__PURE__ */ o.createElement(o.Fragment, null, S, /* @__PURE__ */ o.createElement(Mt, { page: E })) : S;
|
|
1443
|
-
}
|
|
1444
|
-
);
|
|
1445
|
-
Te.displayName = "Link";
|
|
1446
|
-
var Bt = o.forwardRef(
|
|
1447
|
-
function({
|
|
1448
|
-
"aria-current": t = "page",
|
|
1449
|
-
caseSensitive: r = !1,
|
|
1450
|
-
className: a = "",
|
|
1451
|
-
end: n = !1,
|
|
1452
|
-
style: i,
|
|
1453
|
-
to: s,
|
|
1454
|
-
viewTransition: c,
|
|
1455
|
-
children: l,
|
|
1456
|
-
...u
|
|
1457
|
-
}, m) {
|
|
1458
|
-
let v = W(s, { relative: u.relative }), f = N(), p = o.useContext(F), { navigator: d, basename: g } = o.useContext(T), w = p != null && // Conditional usage is OK here because the usage of a data router is static
|
|
1459
|
-
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
1460
|
-
Kt(v) && c === !0, h = d.encodeLocation ? d.encodeLocation(v).pathname : v.pathname, E = f.pathname, y = p && p.navigation && p.navigation.location ? p.navigation.location.pathname : null;
|
|
1461
|
-
r || (E = E.toLowerCase(), y = y ? y.toLowerCase() : null, h = h.toLowerCase()), y && g && (y = I(y, g) || y);
|
|
1462
|
-
const R = h !== "/" && h.endsWith("/") ? h.length - 1 : h.length;
|
|
1463
|
-
let x = E === h || !n && E.startsWith(h) && E.charAt(R) === "/", C = y != null && (y === h || !n && y.startsWith(h) && y.charAt(h.length) === "/"), $ = {
|
|
1464
|
-
isActive: x,
|
|
1465
|
-
isPending: C,
|
|
1466
|
-
isTransitioning: w
|
|
1467
|
-
}, S = x ? t : void 0, P;
|
|
1468
|
-
typeof a == "function" ? P = a($) : P = [
|
|
1469
|
-
a,
|
|
1470
|
-
x ? "active" : null,
|
|
1471
|
-
C ? "pending" : null,
|
|
1472
|
-
w ? "transitioning" : null
|
|
1473
|
-
].filter(Boolean).join(" ");
|
|
1474
|
-
let D = typeof i == "function" ? i($) : i;
|
|
1475
|
-
return /* @__PURE__ */ o.createElement(
|
|
1476
|
-
Te,
|
|
1477
|
-
{
|
|
1478
|
-
...u,
|
|
1479
|
-
"aria-current": S,
|
|
1480
|
-
className: P,
|
|
1481
|
-
ref: m,
|
|
1482
|
-
style: D,
|
|
1483
|
-
to: s,
|
|
1484
|
-
viewTransition: c
|
|
1485
|
-
},
|
|
1486
|
-
typeof l == "function" ? l($) : l
|
|
1487
|
-
);
|
|
1488
|
-
}
|
|
1489
|
-
);
|
|
1490
|
-
Bt.displayName = "NavLink";
|
|
1491
|
-
var Ht = o.forwardRef(
|
|
1492
|
-
({
|
|
1493
|
-
discover: e = "render",
|
|
1494
|
-
fetcherKey: t,
|
|
1495
|
-
navigate: r,
|
|
1496
|
-
reloadDocument: a,
|
|
1497
|
-
replace: n,
|
|
1498
|
-
state: i,
|
|
1499
|
-
method: s = V,
|
|
1500
|
-
action: c,
|
|
1501
|
-
onSubmit: l,
|
|
1502
|
-
relative: u,
|
|
1503
|
-
preventScrollReset: m,
|
|
1504
|
-
viewTransition: v,
|
|
1505
|
-
...f
|
|
1506
|
-
}, p) => {
|
|
1507
|
-
let d = Yt(), g = Jt(c, { relative: u }), w = s.toLowerCase() === "get" ? "get" : "post", h = typeof c == "string" && $e.test(c), E = (y) => {
|
|
1508
|
-
if (l && l(y), y.defaultPrevented) return;
|
|
1509
|
-
y.preventDefault();
|
|
1510
|
-
let R = y.nativeEvent.submitter, x = (R == null ? void 0 : R.getAttribute("formmethod")) || s;
|
|
1511
|
-
d(R || y.currentTarget, {
|
|
1512
|
-
fetcherKey: t,
|
|
1513
|
-
method: x,
|
|
1514
|
-
navigate: r,
|
|
1515
|
-
replace: n,
|
|
1516
|
-
state: i,
|
|
1517
|
-
relative: u,
|
|
1518
|
-
preventScrollReset: m,
|
|
1519
|
-
viewTransition: v
|
|
1520
|
-
});
|
|
1521
|
-
};
|
|
1522
|
-
return /* @__PURE__ */ o.createElement(
|
|
1523
|
-
"form",
|
|
1524
|
-
{
|
|
1525
|
-
ref: p,
|
|
1526
|
-
method: w,
|
|
1527
|
-
action: g,
|
|
1528
|
-
onSubmit: a ? l : E,
|
|
1529
|
-
...f,
|
|
1530
|
-
"data-discover": !h && e === "render" ? "true" : void 0
|
|
1531
|
-
}
|
|
1532
|
-
);
|
|
1533
|
-
}
|
|
1534
|
-
);
|
|
1535
|
-
Ht.displayName = "Form";
|
|
1536
|
-
function Wt(e) {
|
|
1537
|
-
return `${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`;
|
|
1538
|
-
}
|
|
1539
|
-
function Ne(e) {
|
|
1540
|
-
let t = o.useContext(O);
|
|
1541
|
-
return b(t, Wt(e)), t;
|
|
1542
|
-
}
|
|
1543
|
-
function zt(e, {
|
|
1544
|
-
target: t,
|
|
1545
|
-
replace: r,
|
|
1546
|
-
state: a,
|
|
1547
|
-
preventScrollReset: n,
|
|
1548
|
-
relative: i,
|
|
1549
|
-
viewTransition: s
|
|
1550
|
-
} = {}) {
|
|
1551
|
-
let c = ne(), l = N(), u = W(e, { relative: i });
|
|
1552
|
-
return o.useCallback(
|
|
1553
|
-
(m) => {
|
|
1554
|
-
if (Et(m, t)) {
|
|
1555
|
-
m.preventDefault();
|
|
1556
|
-
let v = r !== void 0 ? r : B(l) === B(u);
|
|
1557
|
-
c(e, {
|
|
1558
|
-
replace: v,
|
|
1559
|
-
state: a,
|
|
1560
|
-
preventScrollReset: n,
|
|
1561
|
-
relative: i,
|
|
1562
|
-
viewTransition: s
|
|
1563
|
-
});
|
|
1564
|
-
}
|
|
1565
|
-
},
|
|
1566
|
-
[
|
|
1567
|
-
l,
|
|
1568
|
-
c,
|
|
1569
|
-
u,
|
|
1570
|
-
r,
|
|
1571
|
-
a,
|
|
1572
|
-
t,
|
|
1573
|
-
e,
|
|
1574
|
-
n,
|
|
1575
|
-
i,
|
|
1576
|
-
s
|
|
1577
|
-
]
|
|
1578
|
-
);
|
|
1579
|
-
}
|
|
1580
|
-
function fr(e) {
|
|
1581
|
-
L(
|
|
1582
|
-
typeof URLSearchParams < "u",
|
|
1583
|
-
"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."
|
|
1584
|
-
);
|
|
1585
|
-
let t = o.useRef(Q(e)), r = o.useRef(!1), a = N(), n = o.useMemo(
|
|
1586
|
-
() => (
|
|
1587
|
-
// Only merge in the defaults if we haven't yet called setSearchParams.
|
|
1588
|
-
// Once we call that we want those to take precedence, otherwise you can't
|
|
1589
|
-
// remove a param with setSearchParams({}) if it has an initial value
|
|
1590
|
-
xt(
|
|
1591
|
-
a.search,
|
|
1592
|
-
r.current ? null : t.current
|
|
1593
|
-
)
|
|
1594
|
-
),
|
|
1595
|
-
[a.search]
|
|
1596
|
-
), i = ne(), s = o.useCallback(
|
|
1597
|
-
(c, l) => {
|
|
1598
|
-
const u = Q(
|
|
1599
|
-
typeof c == "function" ? c(n) : c
|
|
1600
|
-
);
|
|
1601
|
-
r.current = !0, i("?" + u, l);
|
|
1602
|
-
},
|
|
1603
|
-
[i, n]
|
|
1604
|
-
);
|
|
1605
|
-
return [n, s];
|
|
1606
|
-
}
|
|
1607
|
-
var Vt = 0, jt = () => `__${String(++Vt)}__`;
|
|
1608
|
-
function Yt() {
|
|
1609
|
-
let { router: e } = Ne(
|
|
1610
|
-
"useSubmit"
|
|
1611
|
-
/* UseSubmit */
|
|
1612
|
-
), { basename: t } = o.useContext(T), r = ct();
|
|
1613
|
-
return o.useCallback(
|
|
1614
|
-
async (a, n = {}) => {
|
|
1615
|
-
let { action: i, method: s, encType: c, formData: l, body: u } = Ct(
|
|
1616
|
-
a,
|
|
1617
|
-
t
|
|
1618
|
-
);
|
|
1619
|
-
if (n.navigate === !1) {
|
|
1620
|
-
let m = n.fetcherKey || jt();
|
|
1621
|
-
await e.fetch(m, r, n.action || i, {
|
|
1622
|
-
preventScrollReset: n.preventScrollReset,
|
|
1623
|
-
formData: l,
|
|
1624
|
-
body: u,
|
|
1625
|
-
formMethod: n.method || s,
|
|
1626
|
-
formEncType: n.encType || c,
|
|
1627
|
-
flushSync: n.flushSync
|
|
1628
|
-
});
|
|
1629
|
-
} else
|
|
1630
|
-
await e.navigate(n.action || i, {
|
|
1631
|
-
preventScrollReset: n.preventScrollReset,
|
|
1632
|
-
formData: l,
|
|
1633
|
-
body: u,
|
|
1634
|
-
formMethod: n.method || s,
|
|
1635
|
-
formEncType: n.encType || c,
|
|
1636
|
-
replace: n.replace,
|
|
1637
|
-
state: n.state,
|
|
1638
|
-
fromRouteId: r,
|
|
1639
|
-
flushSync: n.flushSync,
|
|
1640
|
-
viewTransition: n.viewTransition
|
|
1641
|
-
});
|
|
1642
|
-
},
|
|
1643
|
-
[e, t, r]
|
|
1644
|
-
);
|
|
1645
|
-
}
|
|
1646
|
-
function Jt(e, { relative: t } = {}) {
|
|
1647
|
-
let { basename: r } = o.useContext(T), a = o.useContext(k);
|
|
1648
|
-
b(a, "useFormAction must be used inside a RouteContext");
|
|
1649
|
-
let [n] = a.matches.slice(-1), i = { ...W(e || ".", { relative: t }) }, s = N();
|
|
1650
|
-
if (e == null) {
|
|
1651
|
-
i.search = s.search;
|
|
1652
|
-
let c = new URLSearchParams(i.search), l = c.getAll("index");
|
|
1653
|
-
if (l.some((m) => m === "")) {
|
|
1654
|
-
c.delete("index"), l.filter((v) => v).forEach((v) => c.append("index", v));
|
|
1655
|
-
let m = c.toString();
|
|
1656
|
-
i.search = m ? `?${m}` : "";
|
|
1657
|
-
}
|
|
1658
|
-
}
|
|
1659
|
-
return (!e || e === ".") && n.route.index && (i.search = i.search ? i.search.replace(/^\?/, "?index&") : "?index"), r !== "/" && (i.pathname = i.pathname === "/" ? r : A([r, i.pathname])), B(i);
|
|
1660
|
-
}
|
|
1661
|
-
function Kt(e, t = {}) {
|
|
1662
|
-
let r = o.useContext(J);
|
|
1663
|
-
b(
|
|
1664
|
-
r != null,
|
|
1665
|
-
"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?"
|
|
1666
|
-
);
|
|
1667
|
-
let { basename: a } = Ne(
|
|
1668
|
-
"useViewTransitionState"
|
|
1669
|
-
/* useViewTransitionState */
|
|
1670
|
-
), n = W(e, { relative: t.relative });
|
|
1671
|
-
if (!r.isTransitioning)
|
|
1672
|
-
return !1;
|
|
1673
|
-
let i = I(r.currentLocation.pathname, a) || r.currentLocation.pathname, s = I(r.nextLocation.pathname, a) || r.nextLocation.pathname;
|
|
1674
|
-
return H(n.pathname, s) != null || H(n.pathname, i) != null;
|
|
1675
|
-
}
|
|
1676
|
-
function dr({
|
|
1677
|
-
context: e,
|
|
1678
|
-
router: t,
|
|
1679
|
-
hydrate: r = !0,
|
|
1680
|
-
nonce: a
|
|
1681
|
-
}) {
|
|
1682
|
-
b(
|
|
1683
|
-
t && e,
|
|
1684
|
-
"You must provide `router` and `context` to <StaticRouterProvider>"
|
|
1685
|
-
);
|
|
1686
|
-
let n = {
|
|
1687
|
-
router: t,
|
|
1688
|
-
navigator: Xt(),
|
|
1689
|
-
static: !0,
|
|
1690
|
-
staticContext: e,
|
|
1691
|
-
basename: e.basename || "/"
|
|
1692
|
-
}, i = /* @__PURE__ */ new Map(), s = "";
|
|
1693
|
-
if (r !== !1) {
|
|
1694
|
-
let l = {
|
|
1695
|
-
loaderData: e.loaderData,
|
|
1696
|
-
actionData: e.actionData,
|
|
1697
|
-
errors: Gt(e.errors)
|
|
1698
|
-
};
|
|
1699
|
-
s = `window.__staticRouterHydrationData = JSON.parse(${nr(JSON.stringify(JSON.stringify(l)))});`;
|
|
1700
|
-
}
|
|
1701
|
-
let { state: c } = n.router;
|
|
1702
|
-
return /* @__PURE__ */ o.createElement(o.Fragment, null, /* @__PURE__ */ o.createElement(O.Provider, { value: n }, /* @__PURE__ */ o.createElement(F.Provider, { value: c }, /* @__PURE__ */ o.createElement(te.Provider, { value: i }, /* @__PURE__ */ o.createElement(J.Provider, { value: { isTransitioning: !1 } }, /* @__PURE__ */ o.createElement(
|
|
1703
|
-
Pe,
|
|
1704
|
-
{
|
|
1705
|
-
basename: n.basename,
|
|
1706
|
-
location: c.location,
|
|
1707
|
-
navigationType: c.historyAction,
|
|
1708
|
-
navigator: n.navigator,
|
|
1709
|
-
static: n.static
|
|
1710
|
-
},
|
|
1711
|
-
/* @__PURE__ */ o.createElement(
|
|
1712
|
-
qt,
|
|
1713
|
-
{
|
|
1714
|
-
routes: t.routes,
|
|
1715
|
-
future: t.future,
|
|
1716
|
-
state: c
|
|
1717
|
-
}
|
|
1718
|
-
)
|
|
1719
|
-
))))), s ? /* @__PURE__ */ o.createElement(
|
|
1720
|
-
"script",
|
|
1721
|
-
{
|
|
1722
|
-
suppressHydrationWarning: !0,
|
|
1723
|
-
nonce: a,
|
|
1724
|
-
dangerouslySetInnerHTML: { __html: s }
|
|
1725
|
-
}
|
|
1726
|
-
) : null);
|
|
1727
|
-
}
|
|
1728
|
-
function qt({
|
|
1729
|
-
routes: e,
|
|
1730
|
-
future: t,
|
|
1731
|
-
state: r
|
|
1732
|
-
}) {
|
|
1733
|
-
return be(e, void 0, r, t);
|
|
1734
|
-
}
|
|
1735
|
-
function Gt(e) {
|
|
1736
|
-
if (!e) return null;
|
|
1737
|
-
let t = Object.entries(e), r = {};
|
|
1738
|
-
for (let [a, n] of t)
|
|
1739
|
-
we(n) ? r[a] = { ...n, __type: "RouteErrorResponse" } : n instanceof Error ? r[a] = {
|
|
1740
|
-
message: n.message,
|
|
1741
|
-
__type: "Error",
|
|
1742
|
-
// If this is a subclass (i.e., ReferenceError), send up the type so we
|
|
1743
|
-
// can re-create the same type during hydration.
|
|
1744
|
-
...n.name !== "Error" ? {
|
|
1745
|
-
__subType: n.name
|
|
1746
|
-
} : {}
|
|
1747
|
-
} : r[a] = n;
|
|
1748
|
-
return r;
|
|
1749
|
-
}
|
|
1750
|
-
function Xt() {
|
|
1751
|
-
return {
|
|
1752
|
-
createHref: Qt,
|
|
1753
|
-
encodeLocation: Zt,
|
|
1754
|
-
push(e) {
|
|
1755
|
-
throw new Error(
|
|
1756
|
-
`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.`
|
|
1757
|
-
);
|
|
1758
|
-
},
|
|
1759
|
-
replace(e) {
|
|
1760
|
-
throw new Error(
|
|
1761
|
-
`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.`
|
|
1762
|
-
);
|
|
1763
|
-
},
|
|
1764
|
-
go(e) {
|
|
1765
|
-
throw new Error(
|
|
1766
|
-
`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.`
|
|
1767
|
-
);
|
|
1768
|
-
},
|
|
1769
|
-
back() {
|
|
1770
|
-
throw new Error(
|
|
1771
|
-
"You cannot use navigator.back() on the server because it is a stateless environment."
|
|
1772
|
-
);
|
|
1773
|
-
},
|
|
1774
|
-
forward() {
|
|
1775
|
-
throw new Error(
|
|
1776
|
-
"You cannot use navigator.forward() on the server because it is a stateless environment."
|
|
1777
|
-
);
|
|
1778
|
-
}
|
|
1779
|
-
};
|
|
1780
|
-
}
|
|
1781
|
-
function Qt(e) {
|
|
1782
|
-
return typeof e == "string" ? e : B(e);
|
|
1783
|
-
}
|
|
1784
|
-
function Zt(e) {
|
|
1785
|
-
let t = typeof e == "string" ? e : B(e);
|
|
1786
|
-
t = t.replace(/ $/, "%20");
|
|
1787
|
-
let r = er.test(t) ? new URL(t) : new URL(t, "http://localhost");
|
|
1788
|
-
return {
|
|
1789
|
-
pathname: r.pathname,
|
|
1790
|
-
search: r.search,
|
|
1791
|
-
hash: r.hash
|
|
1792
|
-
};
|
|
1793
|
-
}
|
|
1794
|
-
var er = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, tr = {
|
|
1795
|
-
"&": "\\u0026",
|
|
1796
|
-
">": "\\u003e",
|
|
1797
|
-
"<": "\\u003c",
|
|
1798
|
-
"\u2028": "\\u2028",
|
|
1799
|
-
"\u2029": "\\u2029"
|
|
1800
|
-
}, rr = /[&><\u2028\u2029]/g;
|
|
1801
|
-
function nr(e) {
|
|
1802
|
-
return e.replace(rr, (t) => tr[t]);
|
|
1803
|
-
}
|
|
1804
|
-
new TextEncoder();
|
|
1805
|
-
export {
|
|
1806
|
-
Te as L,
|
|
1807
|
-
sr as N,
|
|
1808
|
-
cr as O,
|
|
1809
|
-
ur as R,
|
|
1810
|
-
dr as S,
|
|
1811
|
-
ne as a,
|
|
1812
|
-
fr as b,
|
|
1813
|
-
or as c,
|
|
1814
|
-
ft as d,
|
|
1815
|
-
ir as e,
|
|
1816
|
-
Bt as f,
|
|
1817
|
-
lr as g,
|
|
1818
|
-
we as i,
|
|
1819
|
-
H as m,
|
|
1820
|
-
ar as r,
|
|
1821
|
-
N as u
|
|
1822
|
-
};
|
|
1823
|
-
//# sourceMappingURL=chunk-D52XG6IA-Dl7HLe6j.js.map
|