zudoku 0.0.0-feat-bundled-types.9aa135e → 0.0.0-feat-openapi-docs-redesign.dab3fc6a
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +33 -13
- package/cli.js +1 -0
- package/client.d.ts +8 -0
- package/dist/app/ZuploBuildConfig.d.ts +10 -120
- package/dist/app/ZuploBuildConfig.js +7 -7
- package/dist/app/ZuploBuildConfig.js.map +1 -1
- package/dist/app/demo.js +22 -6
- package/dist/app/demo.js.map +1 -1
- package/dist/app/entry.client.d.ts +0 -2
- package/dist/app/entry.client.js +6 -7
- package/dist/app/entry.client.js.map +1 -1
- package/dist/app/entry.server.d.ts +0 -2
- package/dist/app/entry.server.js +17 -6
- package/dist/app/entry.server.js.map +1 -1
- package/dist/app/env.d.ts +7 -7
- package/dist/app/env.js +10 -2
- package/dist/app/env.js.map +1 -1
- package/dist/app/main.d.ts +93 -2
- package/dist/app/main.js +31 -26
- package/dist/app/main.js.map +1 -1
- package/dist/app/standalone.js +11 -7
- package/dist/app/standalone.js.map +1 -1
- package/dist/cli/build/handler.js +9 -1
- package/dist/cli/build/handler.js.map +1 -1
- package/dist/cli/cli.d.ts +9 -0
- package/dist/cli/cli.js +5 -10
- package/dist/cli/cli.js.map +1 -1
- package/dist/cli/cmds/build.d.ts +1 -1
- package/dist/cli/cmds/dev.d.ts +1 -1
- package/dist/cli/cmds/preview.d.ts +1 -1
- package/dist/cli/common/analytics/lib.js +1 -1
- package/dist/cli/common/analytics/lib.js.map +1 -1
- package/dist/cli/common/logger.js +0 -1
- package/dist/cli/common/logger.js.map +1 -1
- package/dist/cli/common/machine-id/lib.js +3 -2
- package/dist/cli/common/machine-id/lib.js.map +1 -1
- package/dist/cli/common/outdated.js +2 -1
- package/dist/cli/common/outdated.js.map +1 -1
- package/dist/cli/common/output.js +2 -3
- package/dist/cli/common/output.js.map +1 -1
- package/dist/cli/common/utils/box.js +2 -2
- package/dist/cli/common/utils/box.js.map +1 -1
- package/dist/cli/common/validators/lib.js +1 -1
- package/dist/cli/common/validators/lib.js.map +1 -1
- package/dist/cli/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.js +0 -4
- package/dist/cli/dev/handler.js.map +1 -1
- package/dist/codegen.js +2 -2
- package/dist/codegen.js.map +1 -1
- package/dist/config/config.d.ts +16 -30
- package/dist/config/loader.js +4 -8
- package/dist/config/loader.js.map +1 -1
- package/dist/config/validators/BuildSchema.d.ts +30 -46
- package/dist/config/validators/BuildSchema.js +29 -18
- package/dist/config/validators/BuildSchema.js.map +1 -1
- 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.d.ts +1 -0
- package/dist/config/validators/InputNavigationSchema.test-d.js +146 -0
- package/dist/config/validators/InputNavigationSchema.test-d.js.map +1 -0
- package/dist/config/validators/NavigationSchema.d.ts +44 -0
- package/dist/config/validators/NavigationSchema.js +98 -0
- package/dist/config/validators/NavigationSchema.js.map +1 -0
- package/dist/config/validators/ProtectedRoutesSchema.d.ts +13 -0
- package/dist/config/validators/ProtectedRoutesSchema.js +10 -0
- package/dist/config/validators/ProtectedRoutesSchema.js.map +1 -0
- package/dist/config/validators/auth.d.ts +2 -2
- package/dist/config/validators/auth.js +1 -1
- package/dist/config/validators/auth.js.map +1 -1
- package/dist/config/validators/icon-types.d.ts +2 -1
- package/dist/config/validators/icon-types.js +1872 -1
- package/dist/config/validators/icon-types.js.map +1 -1
- package/dist/config/validators/validate.d.ts +672 -5561
- package/dist/config/validators/validate.js +182 -85
- package/dist/config/validators/validate.js.map +1 -1
- package/dist/config/validators/validate.test.d.ts +1 -0
- package/dist/config/validators/validate.test.js +140 -0
- package/dist/config/validators/validate.test.js.map +1 -0
- package/dist/flat-config.d.ts +378 -0
- package/dist/index.d.ts +12 -6264
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/dist/lib/MissingIcon.d.ts +1 -1
- package/dist/lib/MissingIcon.js.map +1 -1
- package/dist/lib/assets/language-icons/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.d.ts +1 -0
- package/dist/lib/auth/issuer.test.js +95 -0
- package/dist/lib/auth/issuer.test.js.map +1 -0
- package/dist/lib/authentication/AuthenticationPlugin.d.ts +1 -1
- package/dist/lib/authentication/authentication.d.ts +19 -11
- package/dist/lib/authentication/components/CallbackHandler.js +12 -10
- package/dist/lib/authentication/components/CallbackHandler.js.map +1 -1
- package/dist/lib/authentication/components/OAuthErrorPage.d.ts +3 -0
- package/dist/lib/authentication/components/OAuthErrorPage.js +99 -0
- package/dist/lib/authentication/components/OAuthErrorPage.js.map +1 -0
- package/dist/lib/authentication/components/SignIn.js +10 -8
- 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.js +5 -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 +10 -2
- package/dist/lib/authentication/hook.js +12 -8
- 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 +10 -6
- 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 +9 -16
- 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 +215 -0
- package/dist/lib/authentication/providers/firebase.js.map +1 -0
- package/dist/lib/authentication/providers/openid.d.ts +10 -7
- package/dist/lib/authentication/providers/openid.js +55 -7
- 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 +2 -2
- package/dist/lib/authentication/providers/supabase.js +32 -39
- package/dist/lib/authentication/providers/supabase.js.map +1 -1
- package/dist/lib/authentication/state.d.ts +11 -12
- package/dist/lib/authentication/state.js +21 -20
- package/dist/lib/authentication/state.js.map +1 -1
- package/dist/lib/authentication/ui/ZudokuAuthUi.d.ts +24 -0
- package/dist/lib/authentication/ui/ZudokuAuthUi.js +124 -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/components/Autocomplete.d.ts +3 -1
- package/dist/lib/components/Autocomplete.js +7 -3
- package/dist/lib/components/Autocomplete.js.map +1 -1
- package/dist/lib/components/Banner.js +2 -2
- package/dist/lib/components/Banner.js.map +1 -1
- package/dist/lib/components/Bootstrap.d.ts +2 -2
- package/dist/lib/components/Bootstrap.js +0 -2
- package/dist/lib/components/Bootstrap.js.map +1 -1
- package/dist/lib/components/BuildCheck.d.ts +2 -1
- package/dist/lib/components/BuildCheck.js +12 -5
- package/dist/lib/components/BuildCheck.js.map +1 -1
- package/dist/lib/components/CategoryHeading.js +1 -1
- package/dist/lib/components/CategoryHeading.js.map +1 -1
- package/dist/lib/components/ErrorPage.js +2 -2
- package/dist/lib/components/ErrorPage.js.map +1 -1
- package/dist/lib/components/Footer.js +1 -1
- package/dist/lib/components/Footer.js.map +1 -1
- package/dist/lib/components/Framed.d.ts +7 -0
- package/dist/lib/components/Framed.js +26 -0
- package/dist/lib/components/Framed.js.map +1 -0
- package/dist/lib/components/Header.js +20 -21
- package/dist/lib/components/Header.js.map +1 -1
- package/dist/lib/components/Heading.d.ts +8 -4
- package/dist/lib/components/Heading.js +3 -7
- package/dist/lib/components/Heading.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 +5 -7
- package/dist/lib/components/Layout.js.map +1 -1
- package/dist/lib/components/Main.js +4 -4
- package/dist/lib/components/Main.js.map +1 -1
- package/dist/lib/components/Markdown.d.ts +0 -1
- package/dist/lib/components/Markdown.js +5 -6
- package/dist/lib/components/Markdown.js.map +1 -1
- package/dist/lib/components/Meta.d.ts +2 -0
- package/dist/lib/components/Meta.js +11 -0
- package/dist/lib/components/Meta.js.map +1 -0
- package/dist/lib/components/MobileTopNavigation.js +13 -7
- package/dist/lib/components/MobileTopNavigation.js.map +1 -1
- package/dist/lib/components/NotFoundPage.js +2 -2
- package/dist/lib/components/NotFoundPage.js.map +1 -1
- package/dist/lib/components/PageProgress.d.ts +1 -0
- package/dist/lib/components/PageProgress.js +20 -0
- package/dist/lib/components/PageProgress.js.map +1 -0
- package/dist/lib/components/Pagination.js +1 -1
- package/dist/lib/components/Pagination.js.map +1 -1
- package/dist/lib/components/PathRenderer.js +1 -1
- package/dist/lib/components/PathRenderer.js.map +1 -1
- package/dist/lib/components/Search.js +1 -1
- package/dist/lib/components/Search.js.map +1 -1
- package/dist/lib/components/Slot.js.map +1 -1
- package/dist/lib/components/Slot.test.js +7 -3
- package/dist/lib/components/Slot.test.js.map +1 -1
- package/dist/lib/components/StatusPage.js +4 -0
- package/dist/lib/components/StatusPage.js.map +1 -1
- package/dist/lib/components/TopNavigation.d.ts +7 -3
- package/dist/lib/components/TopNavigation.js +51 -45
- package/dist/lib/components/TopNavigation.js.map +1 -1
- package/dist/lib/components/Typography.d.ts +5 -0
- package/dist/lib/components/Typography.js +8 -0
- package/dist/lib/components/Typography.js.map +1 -0
- package/dist/lib/components/Zudoku.js +5 -5
- package/dist/lib/components/Zudoku.js.map +1 -1
- package/dist/lib/components/cache.d.ts +3 -1
- package/dist/lib/components/cache.js +3 -5
- package/dist/lib/components/cache.js.map +1 -1
- package/dist/lib/components/context/ComponentsContext.js.map +1 -1
- package/dist/lib/components/context/RouterEventsEmitter.js.map +1 -1
- package/dist/lib/components/context/SlotProvider.js.map +1 -1
- package/dist/lib/components/context/ViewportAnchorContext.js +1 -1
- package/dist/lib/components/context/ViewportAnchorContext.js.map +1 -1
- package/dist/lib/components/context/ZudokuContext.d.ts +3 -7
- package/dist/lib/components/context/ZudokuContext.js +66 -32
- package/dist/lib/components/context/ZudokuContext.js.map +1 -1
- package/dist/lib/components/context/ZudokuProvider.d.ts +1 -1
- package/dist/lib/components/index.d.ts +74 -726
- package/dist/lib/components/index.js +5 -16
- package/dist/lib/components/index.js.map +1 -1
- package/dist/lib/components/navigation/Navigation.d.ts +5 -0
- package/dist/lib/components/navigation/Navigation.js +12 -0
- package/dist/lib/components/navigation/Navigation.js.map +1 -0
- package/dist/lib/components/navigation/{SidebarBadge.d.ts → NavigationBadge.d.ts} +1 -1
- package/dist/lib/components/navigation/{SidebarBadge.js → NavigationBadge.js} +2 -2
- package/dist/lib/components/navigation/NavigationBadge.js.map +1 -0
- package/dist/lib/components/navigation/NavigationCategory.d.ts +5 -0
- package/dist/lib/components/navigation/{SidebarCategory.js → NavigationCategory.js} +21 -14
- package/dist/lib/components/navigation/NavigationCategory.js.map +1 -0
- package/dist/lib/components/navigation/NavigationItem.d.ts +6 -0
- package/dist/lib/components/navigation/NavigationItem.js +55 -0
- package/dist/lib/components/navigation/NavigationItem.js.map +1 -0
- package/dist/lib/components/navigation/{SidebarWrapper.d.ts → NavigationWrapper.d.ts} +1 -1
- package/dist/lib/components/navigation/{SidebarWrapper.js → NavigationWrapper.js} +5 -5
- package/dist/lib/components/navigation/NavigationWrapper.js.map +1 -0
- package/dist/lib/components/navigation/Toc.js +1 -1
- package/dist/lib/components/navigation/Toc.js.map +1 -1
- package/dist/lib/components/navigation/ZudokuLogo.d.ts +1 -1
- package/dist/lib/components/navigation/utils.d.ts +11 -11
- package/dist/lib/components/navigation/utils.js +32 -29
- package/dist/lib/components/navigation/utils.js.map +1 -1
- package/dist/lib/core/RouteGuard.d.ts +1 -1
- package/dist/lib/core/RouteGuard.js +19 -27
- package/dist/lib/core/RouteGuard.js.map +1 -1
- package/dist/lib/core/ZudokuContext.d.ts +17 -13
- package/dist/lib/core/ZudokuContext.js +47 -11
- 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 +4 -3
- package/dist/lib/core/plugins.js.map +1 -1
- package/dist/lib/core/router.d.ts +1 -0
- package/dist/lib/core/router.js +2 -0
- package/dist/lib/core/router.js.map +1 -0
- package/dist/lib/errors/ErrorAlert.js +2 -4
- package/dist/lib/errors/ErrorAlert.js.map +1 -1
- package/dist/lib/errors/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 +28 -637
- package/dist/lib/hooks/useEvent.test.js +5 -3
- package/dist/lib/hooks/useEvent.test.js.map +1 -1
- package/dist/lib/hooks/useHotkey.d.ts +4 -0
- package/dist/lib/hooks/useHotkey.js +58 -0
- package/dist/lib/hooks/useHotkey.js.map +1 -0
- package/dist/lib/oas/graphql/circular.js +2 -2
- package/dist/lib/oas/graphql/circular.js.map +1 -1
- package/dist/lib/oas/graphql/index.js +39 -3
- package/dist/lib/oas/graphql/index.js.map +1 -1
- package/dist/lib/oas/parser/dereference/index.js +2 -1
- package/dist/lib/oas/parser/dereference/index.js.map +1 -1
- package/dist/lib/oas/parser/dereference/resolveRef.js +3 -3
- package/dist/lib/oas/parser/dereference/resolveRef.js.map +1 -1
- package/dist/lib/oas/parser/index.js +8 -4
- package/dist/lib/oas/parser/index.js.map +1 -1
- package/dist/lib/oas/parser/upgrade/index.js +2 -1
- package/dist/lib/oas/parser/upgrade/index.js.map +1 -1
- package/dist/lib/plugins/api-catalog/Catalog.d.ts +1 -1
- package/dist/lib/plugins/api-catalog/Catalog.js +7 -1
- package/dist/lib/plugins/api-catalog/Catalog.js.map +1 -1
- package/dist/lib/plugins/api-catalog/index.d.ts +6 -6
- package/dist/lib/plugins/api-catalog/index.js +10 -10
- package/dist/lib/plugins/api-catalog/index.js.map +1 -1
- package/dist/lib/plugins/api-keys/CreateApiKey.d.ts +1 -1
- package/dist/lib/plugins/api-keys/CreateApiKey.js +13 -3
- 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 +17 -24
- package/dist/lib/plugins/api-keys/SettingsApiKeys.js.map +1 -1
- package/dist/lib/plugins/api-keys/index.d.ts +11 -6
- package/dist/lib/plugins/api-keys/index.js +28 -13
- package/dist/lib/plugins/api-keys/index.js.map +1 -1
- package/dist/lib/plugins/custom-pages/index.d.ts +4 -6
- package/dist/lib/plugins/custom-pages/index.js +18 -10
- package/dist/lib/plugins/custom-pages/index.js.map +1 -1
- package/dist/lib/plugins/markdown/MdxPage.d.ts +3 -3
- package/dist/lib/plugins/markdown/MdxPage.js +56 -12
- 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 +13 -3
- package/dist/lib/plugins/markdown/index.js +9 -26
- package/dist/lib/plugins/markdown/index.js.map +1 -1
- package/dist/lib/plugins/openapi/CollapsibleCode.d.ts +1 -0
- package/dist/lib/plugins/openapi/CollapsibleCode.js +2 -1
- package/dist/lib/plugins/openapi/CollapsibleCode.js.map +1 -1
- package/dist/lib/plugins/openapi/ColorizedParam.js +4 -1
- package/dist/lib/plugins/openapi/ColorizedParam.js.map +1 -1
- package/dist/lib/plugins/openapi/Endpoint.js +2 -2
- package/dist/lib/plugins/openapi/Endpoint.js.map +1 -1
- package/dist/lib/plugins/openapi/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 +1 -1
- package/dist/lib/plugins/openapi/OasProvider.js +1 -0
- package/dist/lib/plugins/openapi/OasProvider.js.map +1 -1
- package/dist/lib/plugins/openapi/OperationList.d.ts +0 -2
- package/dist/lib/plugins/openapi/OperationList.js +33 -9
- package/dist/lib/plugins/openapi/OperationList.js.map +1 -1
- package/dist/lib/plugins/openapi/OperationListItem.d.ts +4 -3
- package/dist/lib/plugins/openapi/OperationListItem.js +14 -6
- package/dist/lib/plugins/openapi/OperationListItem.js.map +1 -1
- package/dist/lib/plugins/openapi/ParamInfos.d.ts +1 -1
- package/dist/lib/plugins/openapi/ParamInfos.js +11 -9
- package/dist/lib/plugins/openapi/ParamInfos.js.map +1 -1
- package/dist/lib/plugins/openapi/ParameterList.d.ts +2 -2
- package/dist/lib/plugins/openapi/ParameterList.js +8 -5
- 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 +18 -7
- package/dist/lib/plugins/openapi/ParameterListItem.js.map +1 -1
- package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.d.ts +3 -4
- package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.js +3 -5
- package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.js.map +1 -1
- package/dist/lib/plugins/openapi/RequestBodySidecarBox.d.ts +11 -4
- package/dist/lib/plugins/openapi/RequestBodySidecarBox.js +5 -2
- package/dist/lib/plugins/openapi/RequestBodySidecarBox.js.map +1 -1
- package/dist/lib/plugins/openapi/ResponsesSidecarBox.d.ts +3 -2
- package/dist/lib/plugins/openapi/ResponsesSidecarBox.js +25 -4
- package/dist/lib/plugins/openapi/ResponsesSidecarBox.js.map +1 -1
- package/dist/lib/plugins/openapi/SchemaList.js +2 -3
- package/dist/lib/plugins/openapi/SchemaList.js.map +1 -1
- package/dist/lib/plugins/openapi/Sidecar.d.ts +5 -4
- package/dist/lib/plugins/openapi/Sidecar.js +57 -31
- 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 +11 -6
- package/dist/lib/plugins/openapi/SidecarExamples.js +24 -43
- package/dist/lib/plugins/openapi/SidecarExamples.js.map +1 -1
- package/dist/lib/plugins/openapi/StaggeredRender.d.ts +1 -1
- package/dist/lib/plugins/openapi/client/GraphQLContext.d.ts +1 -1
- package/dist/lib/plugins/openapi/client/createServer.js +1 -2
- package/dist/lib/plugins/openapi/client/createServer.js.map +1 -1
- package/dist/lib/plugins/openapi/client/useCreateQuery.js.map +1 -1
- package/dist/lib/plugins/openapi/components/ConstValue.js +1 -1
- package/dist/lib/plugins/openapi/components/ConstValue.js.map +1 -1
- package/dist/lib/plugins/openapi/components/EnumValues.js +1 -1
- package/dist/lib/plugins/openapi/components/EnumValues.js.map +1 -1
- package/dist/lib/plugins/openapi/components/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.js +5 -6
- package/dist/lib/plugins/openapi/components/ResponseContent.js.map +1 -1
- 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 +3 -3
- package/dist/lib/plugins/openapi/graphql/gql.js +3 -3
- package/dist/lib/plugins/openapi/graphql/gql.js.map +1 -1
- package/dist/lib/plugins/openapi/graphql/graphql.d.ts +15 -5
- package/dist/lib/plugins/openapi/graphql/graphql.js +14 -2
- package/dist/lib/plugins/openapi/graphql/graphql.js.map +1 -1
- package/dist/lib/plugins/openapi/index.d.ts +5 -5
- package/dist/lib/plugins/openapi/index.js +57 -29
- package/dist/lib/plugins/openapi/index.js.map +1 -1
- package/dist/lib/plugins/openapi/interfaces.d.ts +21 -7
- package/dist/lib/plugins/openapi/playground/BodyPanel.d.ts +3 -3
- package/dist/lib/plugins/openapi/playground/BodyPanel.js +71 -15
- package/dist/lib/plugins/openapi/playground/BodyPanel.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/CollapsibleHeader.d.ts +8 -0
- package/dist/lib/plugins/openapi/playground/CollapsibleHeader.js +11 -0
- package/dist/lib/plugins/openapi/playground/CollapsibleHeader.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/ExamplesDropdown.d.ts +3 -3
- package/dist/lib/plugins/openapi/playground/ExamplesDropdown.js +2 -2
- package/dist/lib/plugins/openapi/playground/ExamplesDropdown.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/Headers.d.ts +5 -4
- package/dist/lib/plugins/openapi/playground/Headers.js +42 -80
- package/dist/lib/plugins/openapi/playground/Headers.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/IdentityDialog.d.ts +1 -1
- package/dist/lib/plugins/openapi/playground/IdentityDialog.js +2 -1
- package/dist/lib/plugins/openapi/playground/IdentityDialog.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/IdentitySelector.d.ts +1 -1
- package/dist/lib/plugins/openapi/playground/IdentitySelector.js +1 -2
- package/dist/lib/plugins/openapi/playground/IdentitySelector.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/ParamsGrid.d.ts +10 -2
- package/dist/lib/plugins/openapi/playground/ParamsGrid.js +9 -2
- package/dist/lib/plugins/openapi/playground/ParamsGrid.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/PathParams.js +2 -4
- package/dist/lib/plugins/openapi/playground/PathParams.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/Playground.d.ts +9 -2
- package/dist/lib/plugins/openapi/playground/Playground.js +117 -64
- 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 +3 -3
- package/dist/lib/plugins/openapi/playground/QueryParams.js +20 -29
- package/dist/lib/plugins/openapi/playground/QueryParams.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/RequestLoginDialog.d.ts +2 -1
- package/dist/lib/plugins/openapi/playground/RequestLoginDialog.js +10 -2
- package/dist/lib/plugins/openapi/playground/RequestLoginDialog.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/Spinner.d.ts +2 -0
- package/dist/lib/plugins/openapi/playground/Spinner.js +63 -0
- package/dist/lib/plugins/openapi/playground/Spinner.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/fileUtils.js +1 -1
- package/dist/lib/plugins/openapi/playground/fileUtils.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/rememberedIdentity.d.ts +5 -3
- 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 +7 -4
- package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.js +40 -33
- package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.d.ts +6 -4
- package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.js +8 -10
- package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.d.ts +1 -1
- package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.js +1 -1
- package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/useRememberSkipLoginDialog.d.ts +5 -3
- package/dist/lib/plugins/openapi/playground/useRememberSkipLoginDialog.js +2 -0
- package/dist/lib/plugins/openapi/playground/useRememberSkipLoginDialog.js.map +1 -1
- package/dist/lib/plugins/openapi/processors/removeExtensions.test.js +1 -0
- package/dist/lib/plugins/openapi/processors/removeExtensions.test.js.map +1 -1
- package/dist/lib/plugins/openapi/processors/removeParameters.test.js +1 -0
- package/dist/lib/plugins/openapi/processors/removeParameters.test.js.map +1 -1
- package/dist/lib/plugins/openapi/processors/traverse.d.ts +1 -1
- package/dist/lib/plugins/openapi/processors/traverse.js.map +1 -1
- package/dist/lib/plugins/openapi/schema/SchemaExampleAndDefault.js +3 -3
- package/dist/lib/plugins/openapi/schema/SchemaExampleAndDefault.js.map +1 -1
- package/dist/lib/plugins/openapi/schema/SchemaPropertyItem.d.ts +0 -3
- package/dist/lib/plugins/openapi/schema/SchemaPropertyItem.js +22 -22
- package/dist/lib/plugins/openapi/schema/SchemaPropertyItem.js.map +1 -1
- package/dist/lib/plugins/openapi/schema/SchemaView.d.ts +3 -2
- package/dist/lib/plugins/openapi/schema/SchemaView.js +28 -17
- 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 +0 -7
- package/dist/lib/plugins/openapi/schema/utils.js +3 -8
- package/dist/lib/plugins/openapi/schema/utils.js.map +1 -1
- package/dist/lib/plugins/openapi/state.d.ts +5 -3
- package/dist/lib/plugins/openapi/util/createHttpSnippet.d.ts +1 -1
- package/dist/lib/plugins/openapi/util/createHttpSnippet.js +1 -1
- package/dist/lib/plugins/openapi/util/createHttpSnippet.js.map +1 -1
- package/dist/lib/plugins/openapi/util/createNavigationCategory.d.ts +9 -0
- package/dist/lib/plugins/openapi/util/{createSidebarCategory.js → createNavigationCategory.js} +6 -4
- package/dist/lib/plugins/openapi/util/createNavigationCategory.js.map +1 -0
- package/dist/lib/plugins/openapi/util/generateSchemaExample.d.ts +1 -1
- package/dist/lib/plugins/openapi/util/generateSchemaExample.js +10 -13
- package/dist/lib/plugins/openapi/util/generateSchemaExample.js.map +1 -1
- package/dist/lib/plugins/openapi/util/getRoutes.js +3 -3
- package/dist/lib/plugins/openapi/util/getRoutes.js.map +1 -1
- package/dist/lib/plugins/openapi/util/methodColorMap.d.ts +1 -1
- package/dist/lib/plugins/search-inkeep/index.d.ts +5 -22
- package/dist/lib/plugins/search-inkeep/index.js +35 -29
- package/dist/lib/plugins/search-inkeep/index.js.map +1 -1
- package/dist/lib/plugins/search-inkeep/inkeep.d.ts +5 -21
- package/dist/lib/plugins/search-inkeep/inkeep.js +10 -19
- package/dist/lib/plugins/search-inkeep/inkeep.js.map +1 -1
- package/dist/lib/plugins/search-pagefind/PagefindSearch.js +2 -2
- package/dist/lib/plugins/search-pagefind/PagefindSearch.js.map +1 -1
- package/dist/lib/plugins/search-pagefind/ResultList.d.ts +2 -2
- package/dist/lib/plugins/search-pagefind/ResultList.js +15 -5
- package/dist/lib/plugins/search-pagefind/ResultList.js.map +1 -1
- package/dist/lib/plugins/search-pagefind/get-results.js +0 -1
- package/dist/lib/plugins/search-pagefind/get-results.js.map +1 -1
- package/dist/lib/shiki.d.ts +7 -6
- package/dist/lib/shiki.js +31 -8
- package/dist/lib/shiki.js.map +1 -1
- package/dist/lib/ui/ActionButton.js +1 -1
- package/dist/lib/ui/ActionButton.js.map +1 -1
- package/dist/lib/ui/Alert.d.ts +6 -5
- package/dist/lib/ui/Alert.js +12 -10
- package/dist/lib/ui/Alert.js.map +1 -1
- package/dist/lib/ui/Badge.d.ts +4 -4
- package/dist/lib/ui/Badge.js +9 -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 +2 -2
- package/dist/lib/ui/Button.js +1 -0
- package/dist/lib/ui/Button.js.map +1 -1
- package/dist/lib/ui/Callout.d.ts +5 -5
- package/dist/lib/ui/Callout.js +5 -5
- package/dist/lib/ui/Callout.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 +2 -4
- package/dist/lib/ui/CodeBlock.js +10 -10
- package/dist/lib/ui/CodeBlock.js.map +1 -1
- 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 +5 -5
- package/dist/lib/ui/Command.js +2 -6
- package/dist/lib/ui/Command.js.map +1 -1
- package/dist/lib/ui/Dialog.d.ts +12 -18
- package/dist/lib/ui/Dialog.js +31 -18
- package/dist/lib/ui/Dialog.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 +2 -2
- 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/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/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/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/SyntaxHighlight.d.ts +4 -1
- package/dist/lib/ui/SyntaxHighlight.js +3 -2
- package/dist/lib/ui/SyntaxHighlight.js.map +1 -1
- package/dist/lib/ui/ToggleGroup.d.ts +1 -1
- package/dist/lib/ui/Tooltip.d.ts +7 -7
- package/dist/lib/ui/Tooltip.js +16 -10
- package/dist/lib/ui/Tooltip.js.map +1 -1
- package/dist/lib/ui/Value.d.ts +5 -0
- package/dist/lib/ui/Value.js +13 -0
- package/dist/lib/ui/Value.js.map +1 -0
- package/dist/lib/util/MdxComponents.d.ts +11 -2
- package/dist/lib/util/MdxComponents.js +9 -4
- 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/flattenAllOf.d.ts +4 -0
- package/dist/lib/util/flattenAllOf.js +65 -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 +532 -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.js +1 -1
- package/dist/lib/util/humanFileSize.js.map +1 -1
- package/dist/lib/util/invariant.d.ts +6 -5
- package/dist/lib/util/invariant.js +4 -2
- package/dist/lib/util/invariant.js.map +1 -1
- package/dist/lib/util/os.d.ts +2 -0
- package/dist/lib/util/os.js +21 -0
- package/dist/lib/util/os.js.map +1 -0
- package/dist/lib/util/pastellize.js +4 -4
- package/dist/lib/util/pastellize.js.map +1 -1
- 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 +1 -0
- package/dist/lib/util/traverse.js +25 -0
- package/dist/lib/util/traverse.js.map +1 -1
- package/dist/lib/util/useCopyToClipboard.d.ts +1 -0
- package/dist/lib/util/useCopyToClipboard.js +11 -0
- package/dist/lib/util/useCopyToClipboard.js.map +1 -0
- package/dist/lib/util/useIsomorphicLayoutEffect.js.map +1 -1
- package/dist/lib/util/useScrollToAnchor.js +5 -3
- package/dist/lib/util/useScrollToAnchor.js.map +1 -1
- package/dist/ts.d.ts +6 -0
- package/dist/ts.js +61 -0
- package/dist/ts.js.map +1 -0
- package/dist/vite/api/SchemaManager.d.ts +7 -5
- package/dist/vite/api/SchemaManager.js +62 -47
- package/dist/vite/api/SchemaManager.js.map +1 -1
- package/dist/vite/api/SchemaManager.test.js +6 -6
- package/dist/vite/api/SchemaManager.test.js.map +1 -1
- package/dist/vite/api/schema-codegen.js +71 -22
- package/dist/vite/api/schema-codegen.js.map +1 -1
- package/dist/vite/api/schema-codegen.test.js +156 -1
- package/dist/vite/api/schema-codegen.test.js.map +1 -1
- package/dist/vite/build.js +11 -35
- package/dist/vite/build.js.map +1 -1
- package/dist/vite/config.js +18 -3
- package/dist/vite/config.js.map +1 -1
- package/dist/vite/css/plugin.js +11 -0
- package/dist/vite/css/plugin.js.map +1 -1
- package/dist/vite/dev-server.js +12 -4
- package/dist/vite/dev-server.js.map +1 -1
- package/dist/vite/error-handler.d.ts +2 -2
- package/dist/vite/error-handler.js.map +1 -1
- package/dist/vite/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 +28 -0
- package/dist/vite/mdx/remark-last-modified.js.map +1 -0
- package/dist/vite/mdx/remark-link-rewrite.d.ts +2 -0
- package/dist/vite/mdx/remark-link-rewrite.js +20 -0
- package/dist/vite/mdx/remark-link-rewrite.js.map +1 -0
- package/dist/vite/mdx/remark-normalize-image-url.d.ts +2 -0
- package/dist/vite/mdx/remark-normalize-image-url.js +12 -0
- package/dist/vite/mdx/remark-normalize-image-url.js.map +1 -0
- package/dist/vite/{remarkStaticGeneration.d.ts → mdx/remark-static-generation.d.ts} +2 -2
- package/dist/vite/{remarkStaticGeneration.js → mdx/remark-static-generation.js} +2 -2
- package/dist/vite/mdx/remark-static-generation.js.map +1 -0
- package/dist/vite/mdx/utils.d.ts +2 -0
- package/dist/vite/mdx/utils.js +31 -0
- package/dist/vite/mdx/utils.js.map +1 -0
- package/dist/vite/output.d.ts +1 -1
- package/dist/vite/output.js +1 -1
- package/dist/vite/output.js.map +1 -1
- package/dist/vite/plugin-api-keys.d.ts +1 -1
- package/dist/vite/plugin-api-keys.js +1 -1
- package/dist/vite/plugin-api-keys.js.map +1 -1
- package/dist/vite/plugin-api.js +29 -28
- package/dist/vite/plugin-api.js.map +1 -1
- package/dist/vite/plugin-auth.d.ts +1 -1
- package/dist/vite/plugin-auth.js +1 -1
- package/dist/vite/plugin-auth.js.map +1 -1
- package/dist/vite/plugin-component.d.ts +1 -1
- package/dist/vite/plugin-config-reload.d.ts +1 -1
- package/dist/vite/plugin-config-reload.js +2 -0
- package/dist/vite/plugin-config-reload.js.map +1 -1
- package/dist/vite/plugin-config.d.ts +1 -1
- package/dist/vite/plugin-config.js +2 -1
- package/dist/vite/plugin-config.js.map +1 -1
- package/dist/vite/plugin-custom-pages.d.ts +1 -1
- package/dist/vite/plugin-custom-pages.js +3 -3
- package/dist/vite/plugin-custom-pages.js.map +1 -1
- package/dist/vite/plugin-docs.d.ts +9 -0
- package/dist/vite/plugin-docs.js +92 -62
- package/dist/vite/plugin-docs.js.map +1 -1
- package/dist/vite/plugin-frontmatter.js +7 -3
- 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 +141 -0
- package/dist/vite/plugin-markdown-export.js.map +1 -0
- package/dist/vite/plugin-mdx.d.ts +2 -2
- package/dist/vite/plugin-mdx.js +57 -85
- 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 +1 -1
- package/dist/vite/plugin-redirect.js +1 -1
- package/dist/vite/plugin-redirect.js.map +1 -1
- package/dist/vite/plugin-search.d.ts +1 -1
- package/dist/vite/plugin-search.js +1 -1
- package/dist/vite/plugin-search.js.map +1 -1
- package/dist/vite/plugin-shiki-register.js +1 -1
- package/dist/vite/plugin-shiki-register.js.map +1 -1
- package/dist/vite/plugin-theme.d.ts +8 -0
- package/dist/vite/plugin-theme.js +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 +1 -1
- package/dist/vite/plugin.js +8 -8
- package/dist/vite/plugin.js.map +1 -1
- package/dist/vite/prerender/FileWritingResponse.js +5 -3
- package/dist/vite/prerender/FileWritingResponse.js.map +1 -1
- package/dist/vite/prerender/InMemoryResponse.js +3 -1
- package/dist/vite/prerender/InMemoryResponse.js.map +1 -1
- package/dist/vite/prerender/prerender.js +38 -5
- package/dist/vite/prerender/prerender.js.map +1 -1
- package/dist/vite/prerender/worker.d.ts +1 -1
- package/dist/vite/prerender/worker.js +5 -1
- package/dist/vite/prerender/worker.js.map +1 -1
- package/dist/vite/reporter.js +2 -2
- package/dist/vite/reporter.js.map +1 -1
- package/dist/vite/shadcn-registry.d.ts +20 -0
- package/dist/vite/shadcn-registry.js +29 -0
- package/dist/vite/shadcn-registry.js.map +1 -0
- package/dist/vite/sitemap.js +14 -13
- package/dist/vite/sitemap.js.map +1 -1
- package/dist/zuplo/enrich-with-zuplo-mcp.d.ts +4 -0
- package/dist/zuplo/enrich-with-zuplo-mcp.js +117 -0
- package/dist/zuplo/enrich-with-zuplo-mcp.js.map +1 -0
- package/dist/zuplo/enrich-with-zuplo.d.ts +1 -0
- package/dist/zuplo/enrich-with-zuplo.js +4 -4
- package/dist/zuplo/enrich-with-zuplo.js.map +1 -1
- package/dist/zuplo/policy-types.js +0 -1
- package/dist/zuplo/policy-types.js.map +1 -1
- package/dist/zuplo/with-zuplo-processors.js +2 -0
- package/dist/zuplo/with-zuplo-processors.js.map +1 -1
- package/dist/zuplo/with-zuplo.js +1 -1
- package/dist/zuplo/with-zuplo.js.map +1 -1
- package/lib/{Button-BE9IVkWV.js → Button-B3ucvvQw.js} +8 -7
- package/lib/Button-B3ucvvQw.js.map +1 -0
- package/lib/{Card-DPhGbYUM.js → Card-KFniaZn5.js} +3 -3
- package/lib/{Card-DPhGbYUM.js.map → Card-KFniaZn5.js.map} +1 -1
- package/lib/CategoryHeading-DhmodDcq.js +17 -0
- package/lib/CategoryHeading-DhmodDcq.js.map +1 -0
- package/lib/ClientOnly-E7hGysn1.js.map +1 -1
- package/lib/Command-CUcrW3qs.js +134 -0
- package/lib/Command-CUcrW3qs.js.map +1 -0
- package/lib/Dialog-BQciPiHN.js +144 -0
- package/lib/Dialog-BQciPiHN.js.map +1 -0
- package/lib/{Drawer-BzkOKwgC.js → Drawer-Ci7XwhqT.js} +87 -87
- package/lib/{Drawer-BzkOKwgC.js.map → Drawer-Ci7XwhqT.js.map} +1 -1
- package/lib/DropdownMenu-BZ2NKQ3K.js +126 -0
- package/lib/DropdownMenu-BZ2NKQ3K.js.map +1 -0
- package/lib/{Markdown-Cm4kj26S.js → ErrorAlert-_1Zmhr68.js} +3145 -3019
- package/lib/ErrorAlert-_1Zmhr68.js.map +1 -0
- package/lib/MdxPage-B2t1EShN.js +240 -0
- package/lib/MdxPage-B2t1EShN.js.map +1 -0
- package/lib/OAuthErrorPage-DnKnq4xK.js +150 -0
- package/lib/OAuthErrorPage-DnKnq4xK.js.map +1 -0
- package/lib/OasProvider-BhuIkD4Z.js +36 -0
- package/lib/OasProvider-BhuIkD4Z.js.map +1 -0
- package/lib/OperationList-D8EDc9v7.js +5688 -0
- package/lib/OperationList-D8EDc9v7.js.map +1 -0
- package/lib/Pagination-hk-llhpw.js +37 -0
- package/lib/Pagination-hk-llhpw.js.map +1 -0
- package/lib/RouteGuard-Brz95MSt.js +77 -0
- package/lib/RouteGuard-Brz95MSt.js.map +1 -0
- package/lib/RouterError-CMaIfdjb.js +42 -0
- package/lib/RouterError-CMaIfdjb.js.map +1 -0
- package/lib/{SchemaList-BWaNlmUJ.js → SchemaList-E6lF7dID.js} +31 -41
- package/lib/SchemaList-E6lF7dID.js.map +1 -0
- package/lib/SchemaView-CIv-OXgv.js +572 -0
- package/lib/SchemaView-CIv-OXgv.js.map +1 -0
- package/lib/Select-DFRCS31-.js +399 -0
- package/lib/Select-DFRCS31-.js.map +1 -0
- package/lib/SignUp-sGYAsj2K.js +50 -0
- package/lib/SignUp-sGYAsj2K.js.map +1 -0
- package/lib/{Spinner-mNLZ6awP.js → Spinner-CI6bRyZw.js} +2 -2
- package/lib/{Spinner-mNLZ6awP.js.map → Spinner-CI6bRyZw.js.map} +1 -1
- package/lib/{SyntaxHighlight-Cz6Me7-F.js → SyntaxHighlight-C19vH0V_.js} +1838 -1765
- package/lib/SyntaxHighlight-C19vH0V_.js.map +1 -0
- package/lib/{Toc-Qe7A4uj_.js → Toc-DbWS75JZ.js} +7 -7
- package/lib/Toc-DbWS75JZ.js.map +1 -0
- package/lib/ZudokuContext-BUZ5hkWB.js +1508 -0
- package/lib/ZudokuContext-BUZ5hkWB.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-BMhpCH5D.js +7965 -0
- package/lib/chunk-PVWAREVJ-BMhpCH5D.js.map +1 -0
- package/lib/{circular-w5eL5J8a.js → circular-BoYo7au5.js} +30 -30
- package/lib/{circular-w5eL5J8a.js.map → circular-BoYo7au5.js.map} +1 -1
- package/lib/{cn-wvCW-ho6.js → cn-dYga0KKN.js} +2 -2
- package/lib/cn-dYga0KKN.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-p3yUA8Bu.js → createServer-B_BZ7xX8.js} +5108 -4774
- package/lib/createServer-B_BZ7xX8.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-CD873hrG.js +45 -0
- package/lib/errors-CD873hrG.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-CMeoxziF.js +40 -0
- package/lib/hook-CMeoxziF.js.map +1 -0
- package/lib/html-MGnI2uzP.js +33 -0
- package/lib/html-MGnI2uzP.js.map +1 -0
- package/lib/{index-BvvmIczU.js → index-BK0jKRrX.js} +166 -50
- package/lib/index-BK0jKRrX.js.map +1 -0
- package/lib/index-CrcNWbel.js.map +1 -1
- package/lib/index-DI5SPFK9.js.map +1 -1
- package/lib/index-HNVs5cgX.js +3667 -0
- package/lib/index-HNVs5cgX.js.map +1 -0
- package/lib/{index-zddirpDj.js → index-nGbmHh_A.js} +227 -222
- package/lib/index-nGbmHh_A.js.map +1 -0
- package/lib/index-pMMX55GH.js +1059 -0
- package/lib/index-pMMX55GH.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-BFcSKCe-.js → index.esm-BnYHxCYC.js} +2 -2
- package/lib/{index.esm-BFcSKCe-.js.map → index.esm-BnYHxCYC.js.map} +1 -1
- package/lib/{invariant-DAFpPywt.js → invariant-Bm-FVUQE.js} +2 -6
- package/lib/invariant-Bm-FVUQE.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-C5mzlN2N.js → jsx-runtime-BzflLqGi.js} +110 -112
- 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-BSeQ8pEK.js → mutation-BSU0xu4m.js} +2 -2
- package/lib/{mutation-BSeQ8pEK.js.map → mutation-BSU0xu4m.js.map} +1 -1
- 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.map +1 -1
- package/lib/processors/removeParameters.js.map +1 -1
- package/lib/processors/removePaths.js.map +1 -1
- package/lib/processors/traverse.js.map +1 -1
- package/lib/python-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 -14
- package/lib/ui/Badge.js.map +1 -1
- package/lib/ui/Breadcrumb.js +24 -23
- package/lib/ui/Breadcrumb.js.map +1 -1
- package/lib/ui/Button.js +7 -6
- package/lib/ui/Button.js.map +1 -1
- package/lib/ui/Callout.js +20 -20
- package/lib/ui/Callout.js.map +1 -1
- package/lib/ui/Card.js +2 -2
- package/lib/ui/Card.js.map +1 -1
- package/lib/ui/Carousel.js +2 -2
- package/lib/ui/Carousel.js.map +1 -1
- package/lib/ui/Checkbox.js +29 -26
- package/lib/ui/Checkbox.js.map +1 -1
- package/lib/ui/CodeBlock.js +203 -67
- package/lib/ui/CodeBlock.js.map +1 -1
- package/lib/ui/Collapsible.js +32 -5
- package/lib/ui/Collapsible.js.map +1 -1
- package/lib/ui/Command.js +22 -28
- 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 +3 -3
- package/lib/ui/DropdownMenu.js +2 -2
- 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 +3 -3
- 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 +2 -2
- package/lib/ui/HoverCard.js.map +1 -1
- package/lib/ui/Input.js +2 -2
- package/lib/ui/Input.js.map +1 -1
- package/lib/ui/Item.js +188 -0
- package/lib/ui/Item.js.map +1 -0
- package/lib/ui/Label.js +2 -2
- 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 +29 -30
- package/lib/ui/Pagination.js.map +1 -1
- package/lib/ui/Popover.js +2 -2
- package/lib/ui/Popover.js.map +1 -1
- package/lib/ui/Progress.js +2 -2
- package/lib/ui/Progress.js.map +1 -1
- package/lib/ui/RadioGroup.js +2 -2
- 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 +2 -2
- package/lib/ui/Slider.js.map +1 -1
- package/lib/ui/Stepper.js +1 -1
- package/lib/ui/Stepper.js.map +1 -1
- package/lib/ui/Switch.js +2 -2
- package/lib/ui/Switch.js.map +1 -1
- package/lib/ui/SyntaxHighlight.js +6 -5
- package/lib/ui/SyntaxHighlight.js.map +1 -1
- package/lib/ui/Tabs.js +12 -12
- package/lib/ui/Tabs.js.map +1 -1
- package/lib/ui/Textarea.js +2 -2
- package/lib/ui/Textarea.js.map +1 -1
- package/lib/ui/Toggle.js +2 -2
- 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 -28
- package/lib/ui/Tooltip.js.map +1 -1
- package/lib/ui/Value.js +39 -0
- package/lib/ui/Value.js.map +1 -0
- package/lib/ui/util.js +1 -1
- package/lib/useCopyToClipboard-B_085nfO.js +14 -0
- package/lib/useCopyToClipboard-B_085nfO.js.map +1 -0
- package/lib/useExposedProps-U3pmsHaG.js +113 -0
- package/lib/useExposedProps-U3pmsHaG.js.map +1 -0
- package/lib/useLatest-hmRS46UF.js.map +1 -1
- 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 +3084 -0
- package/lib/zudoku.__internal.js.map +1 -0
- package/lib/zudoku.auth-auth0.js +23 -22
- 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 +59 -65
- package/lib/zudoku.auth-clerk.js.map +1 -1
- package/lib/zudoku.auth-openid.js +372 -383
- 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 +27 -4573
- package/lib/zudoku.components.js.map +1 -1
- package/lib/zudoku.hooks.js +13 -14
- package/lib/zudoku.hooks.js.map +1 -1
- package/lib/zudoku.icons.js +1 -1
- package/lib/zudoku.icons.js.map +1 -1
- package/lib/zudoku.plugin-api-catalog.js +62 -55
- package/lib/zudoku.plugin-api-catalog.js.map +1 -1
- package/lib/zudoku.plugin-api-keys.js +456 -328
- 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 -70
- package/lib/zudoku.plugin-markdown.js.map +1 -1
- package/lib/zudoku.plugin-openapi.js +7 -7
- package/lib/zudoku.plugin-redirect.js +1 -1
- package/lib/zudoku.plugin-redirect.js.map +1 -1
- package/lib/zudoku.plugin-search-inkeep.js +54 -57
- package/lib/zudoku.plugin-search-inkeep.js.map +1 -1
- package/lib/zudoku.plugin-search-pagefind.js +213 -119
- package/lib/zudoku.plugin-search-pagefind.js.map +1 -1
- package/lib/zudoku.plugins.js.map +1 -1
- package/lib/zudoku.router.js +2507 -0
- package/lib/zudoku.router.js.map +1 -0
- package/package.json +140 -110
- package/src/app/ZuploBuildConfig.ts +7 -7
- package/src/app/defaultTheme.css +68 -49
- package/src/app/demo.tsx +25 -7
- package/src/app/entry.client.tsx +7 -8
- package/src/app/entry.server.tsx +20 -12
- package/src/app/env.ts +10 -2
- package/src/app/main.css +59 -33
- package/src/app/main.tsx +46 -36
- package/src/app/standalone.tsx +14 -8
- package/src/lib/MissingIcon.tsx +1 -1
- 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 +4 -4
- package/src/lib/authentication/authentication.ts +26 -8
- package/src/lib/authentication/components/CallbackHandler.tsx +23 -16
- package/src/lib/authentication/components/OAuthErrorPage.tsx +171 -0
- package/src/lib/authentication/components/SignIn.tsx +12 -17
- package/src/lib/authentication/components/SignOut.tsx +7 -6
- package/src/lib/authentication/components/SignUp.tsx +5 -8
- package/src/lib/authentication/errors.ts +27 -13
- package/src/lib/authentication/hook.ts +23 -10
- package/src/lib/authentication/providers/auth0.tsx +15 -10
- package/src/lib/authentication/providers/azureb2c.tsx +208 -0
- package/src/lib/authentication/providers/clerk.tsx +21 -20
- package/src/lib/authentication/providers/firebase.tsx +284 -0
- package/src/lib/authentication/providers/openid.tsx +95 -12
- package/src/lib/authentication/providers/supabase/SupabaseAuthUI.tsx +75 -0
- package/src/lib/authentication/providers/supabase.tsx +63 -58
- package/src/lib/authentication/state.ts +40 -30
- package/src/lib/authentication/ui/ZudokuAuthUi.tsx +335 -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/components/AnchorLink.tsx +1 -1
- package/src/lib/components/Autocomplete.tsx +14 -4
- package/src/lib/components/Banner.tsx +1 -2
- package/src/lib/components/Bootstrap.tsx +3 -4
- package/src/lib/components/BuildCheck.tsx +26 -13
- package/src/lib/components/CategoryHeading.tsx +4 -1
- package/src/lib/components/ErrorPage.tsx +3 -3
- package/src/lib/components/Footer.tsx +1 -1
- package/src/lib/components/Framed.tsx +51 -0
- package/src/lib/components/Header.tsx +28 -25
- package/src/lib/components/Heading.tsx +11 -12
- package/src/lib/components/LanguageIcon.tsx +181 -0
- package/src/lib/components/Layout.tsx +6 -24
- package/src/lib/components/Main.tsx +10 -10
- package/src/lib/components/Markdown.tsx +11 -10
- package/src/lib/components/Meta.tsx +45 -0
- package/src/lib/components/MobileTopNavigation.tsx +70 -15
- package/src/lib/components/NotFoundPage.tsx +6 -5
- package/src/lib/components/PageProgress.tsx +28 -0
- package/src/lib/components/Pagination.tsx +5 -4
- package/src/lib/components/PathRenderer.tsx +2 -2
- package/src/lib/components/Search.tsx +1 -1
- package/src/lib/components/Slot.test.tsx +8 -8
- package/src/lib/components/Slot.tsx +2 -2
- package/src/lib/components/StatusPage.tsx +5 -0
- package/src/lib/components/TopNavigation.tsx +77 -70
- package/src/lib/components/Typography.tsx +14 -0
- package/src/lib/components/Zudoku.tsx +5 -5
- package/src/lib/components/cache.ts +9 -5
- package/src/lib/components/context/ComponentsContext.tsx +2 -2
- package/src/lib/components/context/RouterEventsEmitter.tsx +1 -1
- package/src/lib/components/context/SlotProvider.tsx +4 -4
- package/src/lib/components/context/ViewportAnchorContext.tsx +2 -2
- package/src/lib/components/context/ZudokuContext.ts +77 -43
- package/src/lib/components/context/ZudokuProvider.tsx +1 -1
- package/src/lib/components/index.ts +5 -19
- package/src/lib/components/navigation/{Sidebar.tsx → Navigation.tsx} +18 -16
- package/src/lib/components/navigation/{SidebarBadge.tsx → NavigationBadge.tsx} +1 -1
- package/src/lib/components/navigation/{SidebarCategory.tsx → NavigationCategory.tsx} +25 -16
- package/src/lib/components/navigation/{SidebarItem.tsx → NavigationItem.tsx} +44 -40
- package/src/lib/components/navigation/{SidebarWrapper.tsx → NavigationWrapper.tsx} +8 -5
- package/src/lib/components/navigation/Toc.tsx +5 -5
- package/src/lib/components/navigation/ZudokuLogo.tsx +1 -1
- package/src/lib/components/navigation/utils.ts +50 -46
- package/src/lib/core/RouteGuard.tsx +52 -32
- package/src/lib/core/ZudokuContext.ts +74 -23
- package/src/lib/core/__internal.tsx +30 -0
- package/src/lib/core/plugins.ts +4 -3
- package/src/lib/core/router.ts +1 -0
- package/src/lib/errors/ErrorAlert.tsx +8 -17
- package/src/lib/errors/RouterError.tsx +7 -2
- package/src/lib/errors/TopLevelError.tsx +2 -4
- package/src/lib/hooks/useEvent.test.tsx +9 -7
- package/src/lib/hooks/useHotkey.ts +70 -0
- package/src/lib/oas/graphql/circular.ts +3 -3
- package/src/lib/oas/graphql/index.ts +39 -3
- package/src/lib/oas/parser/dereference/index.ts +2 -1
- package/src/lib/oas/parser/dereference/resolveRef.ts +4 -4
- package/src/lib/oas/parser/index.ts +10 -5
- package/src/lib/oas/parser/upgrade/index.ts +2 -1
- package/src/lib/plugins/api-catalog/Catalog.tsx +8 -1
- package/src/lib/plugins/api-catalog/index.tsx +19 -19
- package/src/lib/plugins/api-keys/CreateApiKey.tsx +18 -4
- 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 +65 -71
- package/src/lib/plugins/api-keys/index.tsx +50 -25
- package/src/lib/plugins/custom-pages/index.tsx +24 -16
- package/src/lib/plugins/markdown/MdxPage.tsx +204 -32
- 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 +27 -42
- package/src/lib/plugins/openapi/CollapsibleCode.tsx +5 -3
- package/src/lib/plugins/openapi/ColorizedParam.tsx +3 -1
- package/src/lib/plugins/openapi/Endpoint.tsx +2 -2
- 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 +2 -1
- package/src/lib/plugins/openapi/OperationList.tsx +51 -31
- package/src/lib/plugins/openapi/OperationListItem.tsx +106 -79
- package/src/lib/plugins/openapi/ParamInfos.tsx +10 -9
- package/src/lib/plugins/openapi/ParameterList.tsx +40 -28
- package/src/lib/plugins/openapi/ParameterListItem.tsx +110 -59
- package/src/lib/plugins/openapi/PlaygroundDialogWrapper.tsx +8 -13
- package/src/lib/plugins/openapi/RequestBodySidecarBox.tsx +51 -9
- package/src/lib/plugins/openapi/ResponsesSidecarBox.tsx +75 -29
- package/src/lib/plugins/openapi/SchemaList.tsx +5 -11
- package/src/lib/plugins/openapi/Sidecar.tsx +138 -72
- package/src/lib/plugins/openapi/SidecarBox.tsx +26 -4
- package/src/lib/plugins/openapi/SidecarExamples.tsx +93 -87
- package/src/lib/plugins/openapi/StaggeredRender.tsx +1 -1
- package/src/lib/plugins/openapi/client/GraphQLContext.tsx +1 -1
- package/src/lib/plugins/openapi/client/createServer.ts +1 -2
- package/src/lib/plugins/openapi/client/useCreateQuery.ts +3 -2
- package/src/lib/plugins/openapi/components/ConstValue.tsx +1 -1
- package/src/lib/plugins/openapi/components/EnumValues.tsx +2 -2
- package/src/lib/plugins/openapi/components/NonHighlightedCode.tsx +22 -0
- package/src/lib/plugins/openapi/components/ResponseContent.tsx +63 -53
- 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 +11 -11
- package/src/lib/plugins/openapi/graphql/graphql.ts +33 -9
- package/src/lib/plugins/openapi/index.tsx +90 -59
- package/src/lib/plugins/openapi/interfaces.ts +22 -7
- package/src/lib/plugins/openapi/playground/BodyPanel.tsx +257 -32
- package/src/lib/plugins/openapi/playground/CollapsibleHeader.tsx +51 -0
- package/src/lib/plugins/openapi/playground/ExamplesDropdown.tsx +11 -6
- package/src/lib/plugins/openapi/playground/Headers.tsx +158 -176
- package/src/lib/plugins/openapi/playground/IdentityDialog.tsx +4 -3
- package/src/lib/plugins/openapi/playground/IdentitySelector.tsx +8 -13
- package/src/lib/plugins/openapi/playground/ParamsGrid.tsx +34 -2
- package/src/lib/plugins/openapi/playground/PathParams.tsx +26 -35
- package/src/lib/plugins/openapi/playground/Playground.tsx +263 -159
- package/src/lib/plugins/openapi/playground/PlaygroundDialog.tsx +23 -33
- package/src/lib/plugins/openapi/playground/QueryParams.tsx +92 -100
- package/src/lib/plugins/openapi/playground/RequestLoginDialog.tsx +20 -1
- package/src/lib/plugins/openapi/playground/Spinner.tsx +87 -0
- package/src/lib/plugins/openapi/playground/fileUtils.ts +1 -1
- 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 +189 -115
- package/src/lib/plugins/openapi/playground/result-panel/ResultPanel.tsx +70 -94
- package/src/lib/plugins/openapi/playground/result-panel/convertToTypes.ts +1 -1
- package/src/lib/plugins/openapi/playground/useRememberSkipLoginDialog.tsx +3 -0
- package/src/lib/plugins/openapi/processors/removeExtensions.test.ts +1 -0
- package/src/lib/plugins/openapi/processors/removeParameters.test.ts +1 -0
- package/src/lib/plugins/openapi/processors/traverse.ts +1 -1
- package/src/lib/plugins/openapi/schema/SchemaExampleAndDefault.tsx +4 -4
- package/src/lib/plugins/openapi/schema/SchemaPropertyItem.tsx +94 -79
- package/src/lib/plugins/openapi/schema/SchemaView.tsx +89 -55
- 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 +3 -13
- package/src/lib/plugins/openapi/util/createHttpSnippet.ts +2 -2
- package/src/lib/plugins/openapi/util/{createSidebarCategory.tsx → createNavigationCategory.tsx} +7 -5
- package/src/lib/plugins/openapi/util/generateSchemaExample.ts +14 -15
- package/src/lib/plugins/openapi/util/getRoutes.tsx +4 -4
- package/src/lib/plugins/openapi/util/methodColorMap.tsx +1 -1
- package/src/lib/plugins/search-inkeep/index.tsx +54 -58
- package/src/lib/plugins/search-inkeep/inkeep.ts +19 -21
- package/src/lib/plugins/search-pagefind/PagefindSearch.tsx +3 -4
- package/src/lib/plugins/search-pagefind/ResultList.tsx +16 -8
- package/src/lib/plugins/search-pagefind/get-results.tsx +0 -1
- package/src/lib/shiki.ts +37 -8
- package/src/lib/ui/ActionButton.tsx +3 -1
- package/src/lib/ui/Alert.tsx +45 -39
- package/src/lib/ui/Badge.tsx +21 -12
- package/src/lib/ui/Breadcrumb.tsx +1 -0
- package/src/lib/ui/Button.tsx +1 -0
- package/src/lib/ui/Callout.tsx +10 -5
- package/src/lib/ui/Checkbox.tsx +23 -24
- package/src/lib/ui/CodeBlock.tsx +37 -61
- package/src/lib/ui/Collapsible.tsx +26 -4
- package/src/lib/ui/Command.tsx +2 -4
- package/src/lib/ui/Dialog.tsx +113 -99
- 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/Item.tsx +192 -0
- package/src/lib/ui/NativeSelect.tsx +47 -0
- package/src/lib/ui/Pagination.tsx +1 -2
- 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/SyntaxHighlight.tsx +16 -3
- package/src/lib/ui/ToggleGroup.tsx +1 -1
- package/src/lib/ui/Tooltip.tsx +54 -32
- package/src/lib/ui/Value.tsx +42 -0
- package/src/lib/util/MdxComponents.tsx +24 -5
- package/src/lib/util/cn.ts +1 -1
- package/src/lib/util/createVariantComponent.tsx +33 -7
- package/src/lib/util/flattenAllOf.test.ts +637 -0
- package/src/lib/util/flattenAllOf.ts +101 -0
- package/src/lib/util/groupBy.ts +1 -0
- package/src/lib/util/humanFileSize.ts +2 -3
- package/src/lib/util/invariant.ts +8 -5
- package/src/lib/util/os.ts +18 -0
- package/src/lib/util/pastellize.ts +4 -4
- package/src/lib/util/syncZustandState.ts +22 -0
- package/src/lib/util/traverse.ts +36 -0
- package/src/lib/util/types.ts +1 -1
- package/src/lib/util/useCopyToClipboard.ts +17 -0
- package/src/lib/util/useIsomorphicLayoutEffect.ts +1 -0
- package/src/lib/util/useScrollToAnchor.ts +6 -4
- package/src/shiki/langs/hurl.js +1 -0
- package/src/shiki/langs/kdl.js +1 -0
- package/src/shiki/langs/pkl.js +1 -0
- package/src/shiki/langs/rosmsg.js +1 -0
- package/src/shiki/langs/vue-vine.js +1 -0
- package/dist/config/validators/InputSidebarSchema.d.ts +0 -217
- package/dist/config/validators/InputSidebarSchema.js +0 -62
- package/dist/config/validators/InputSidebarSchema.js.map +0 -1
- package/dist/config/validators/SidebarSchema.d.ts +0 -46
- package/dist/config/validators/SidebarSchema.js +0 -118
- package/dist/config/validators/SidebarSchema.js.map +0 -1
- package/dist/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/navigation/Sidebar.d.ts +0 -5
- package/dist/lib/components/navigation/Sidebar.js +0 -10
- package/dist/lib/components/navigation/Sidebar.js.map +0 -1
- package/dist/lib/components/navigation/SidebarBadge.js.map +0 -1
- package/dist/lib/components/navigation/SidebarCategory.d.ts +0 -5
- package/dist/lib/components/navigation/SidebarCategory.js.map +0 -1
- package/dist/lib/components/navigation/SidebarItem.d.ts +0 -6
- package/dist/lib/components/navigation/SidebarItem.js +0 -45
- package/dist/lib/components/navigation/SidebarItem.js.map +0 -1
- package/dist/lib/components/navigation/SidebarWrapper.js.map +0 -1
- package/dist/lib/plugins/custom-pages/CustomPage.d.ts +0 -2
- package/dist/lib/plugins/custom-pages/CustomPage.js +0 -11
- package/dist/lib/plugins/custom-pages/CustomPage.js.map +0 -1
- package/dist/lib/plugins/markdown/resolver.d.ts +0 -32
- package/dist/lib/plugins/markdown/resolver.js +0 -46
- package/dist/lib/plugins/markdown/resolver.js.map +0 -1
- package/dist/lib/plugins/openapi/playground/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/UrlDisplay.d.ts +0 -4
- package/dist/lib/plugins/openapi/playground/UrlDisplay.js +0 -22
- package/dist/lib/plugins/openapi/playground/UrlDisplay.js.map +0 -1
- package/dist/lib/plugins/openapi/playground/result-panel/RequestTab.d.ts +0 -7
- package/dist/lib/plugins/openapi/playground/result-panel/RequestTab.js +0 -11
- package/dist/lib/plugins/openapi/playground/result-panel/RequestTab.js.map +0 -1
- package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.d.ts +0 -8
- package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.js +0 -14
- package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.js.map +0 -1
- package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupConnector.d.ts +0 -7
- package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupConnector.js +0 -17
- package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupConnector.js.map +0 -1
- package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupItem.d.ts +0 -6
- package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupItem.js +0 -10
- package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupItem.js.map +0 -1
- package/dist/lib/plugins/openapi/util/createSidebarCategory.d.ts +0 -9
- package/dist/lib/plugins/openapi/util/createSidebarCategory.js.map +0 -1
- package/dist/vite/plugin-configure-tailwind.d.ts +0 -2
- package/dist/vite/plugin-configure-tailwind.js +0 -38
- package/dist/vite/plugin-configure-tailwind.js.map +0 -1
- package/dist/vite/plugin-sidebar.d.ts +0 -4
- package/dist/vite/plugin-sidebar.js +0 -63
- package/dist/vite/plugin-sidebar.js.map +0 -1
- package/dist/vite/plugin-theme-css.d.ts +0 -5
- package/dist/vite/plugin-theme-css.js +0 -77
- package/dist/vite/plugin-theme-css.js.map +0 -1
- package/dist/vite/remarkStaticGeneration.js.map +0 -1
- package/lib/Button-BE9IVkWV.js.map +0 -1
- package/lib/Callout-CoVxYafP.js +0 -231
- package/lib/Callout-CoVxYafP.js.map +0 -1
- package/lib/CategoryHeading-Cu2RwgjC.js +0 -10
- package/lib/CategoryHeading-Cu2RwgjC.js.map +0 -1
- package/lib/Dialog-BxpuVLh9.js +0 -99
- package/lib/Dialog-BxpuVLh9.js.map +0 -1
- package/lib/Markdown-Cm4kj26S.js.map +0 -1
- package/lib/MdxPage-fDGQtB5w.js +0 -84
- package/lib/MdxPage-fDGQtB5w.js.map +0 -1
- package/lib/OasProvider-CFBvfR3r.js +0 -33
- package/lib/OasProvider-CFBvfR3r.js.map +0 -1
- package/lib/OperationList-Xs4KWmsh.js +0 -5153
- package/lib/OperationList-Xs4KWmsh.js.map +0 -1
- package/lib/Pagination-CCxhL836.js +0 -36
- package/lib/Pagination-CCxhL836.js.map +0 -1
- package/lib/RouteGuard-CZ_uLv3g.js +0 -55
- package/lib/RouteGuard-CZ_uLv3g.js.map +0 -1
- package/lib/SchemaList-BWaNlmUJ.js.map +0 -1
- package/lib/SchemaView-DdKJt2ln.js +0 -375
- package/lib/SchemaView-DdKJt2ln.js.map +0 -1
- package/lib/SignUp-B-1Pvc-8.js +0 -63
- package/lib/SignUp-B-1Pvc-8.js.map +0 -1
- package/lib/Slot-B99cbD-q.js +0 -160
- package/lib/Slot-B99cbD-q.js.map +0 -1
- package/lib/SyntaxHighlight-Cz6Me7-F.js.map +0 -1
- package/lib/Toc-Qe7A4uj_.js.map +0 -1
- package/lib/chunk-DQRVZFIR-BblmKnHy.js +0 -1839
- package/lib/chunk-DQRVZFIR-BblmKnHy.js.map +0 -1
- package/lib/cn-wvCW-ho6.js.map +0 -1
- package/lib/createServer-p3yUA8Bu.js.map +0 -1
- package/lib/hook-k7PfUIsj.js +0 -1465
- package/lib/hook-k7PfUIsj.js.map +0 -1
- package/lib/index--oeBayMa.js +0 -86
- package/lib/index--oeBayMa.js.map +0 -1
- package/lib/index-Bn6Lc9tq.js +0 -9
- package/lib/index-Bn6Lc9tq.js.map +0 -1
- package/lib/index-BvvmIczU.js.map +0 -1
- package/lib/index-QzXzw_ra.js +0 -24
- package/lib/index-QzXzw_ra.js.map +0 -1
- package/lib/index-yqBxBqxF.js +0 -3226
- package/lib/index-yqBxBqxF.js.map +0 -1
- package/lib/index-zddirpDj.js.map +0 -1
- package/lib/index.esm-Cp4wkyud.js +0 -1236
- package/lib/index.esm-Cp4wkyud.js.map +0 -1
- package/lib/invariant-DAFpPywt.js.map +0 -1
- package/lib/joinPath-B7kNnUX4.js +0 -8
- package/lib/joinPath-B7kNnUX4.js.map +0 -1
- package/lib/jsx-runtime-C5mzlN2N.js.map +0 -1
- package/lib/objectEntries-yMIkr2mI.js +0 -5
- package/lib/objectEntries-yMIkr2mI.js.map +0 -1
- package/lib/react-nprogress.esm-C2MPXjiJ.js +0 -389
- package/lib/react-nprogress.esm-C2MPXjiJ.js.map +0 -1
- package/lib/useExposedProps-BZQkZneR.js +0 -9
- package/lib/useExposedProps-BZQkZneR.js.map +0 -1
- package/lib/useMutation-CZSmsIGW.js +0 -97
- package/lib/useMutation-CZSmsIGW.js.map +0 -1
- package/src/lib/components/ReactMarkdown.license.txt +0 -21
- package/src/lib/components/ReactMarkdown.tsx +0 -264
- package/src/lib/plugins/custom-pages/CustomPage.tsx +0 -18
- package/src/lib/plugins/markdown/resolver.ts +0 -59
- package/src/lib/plugins/openapi/playground/InlineInput.tsx +0 -6
- package/src/lib/plugins/openapi/playground/UrlDisplay.tsx +0 -32
- package/src/lib/plugins/openapi/playground/result-panel/RequestTab.tsx +0 -73
- package/src/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.tsx +0 -40
- package/src/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupConnector.tsx +0 -57
- package/src/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupItem.tsx +0 -33
|
@@ -1,14 +1,13 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import { g as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
return re || (re = 1, function(t) {
|
|
1
|
+
import { j as D } from "./jsx-runtime-BzflLqGi.js";
|
|
2
|
+
import { g as Le } from "./invariant-Bm-FVUQE.js";
|
|
3
|
+
import { E as Ue } from "./index-pMMX55GH.js";
|
|
4
|
+
import { C as xe } from "./ClientOnly-E7hGysn1.js";
|
|
5
|
+
import { j as Ce, u as S } from "./ZudokuContext-BUZ5hkWB.js";
|
|
6
|
+
import { C as Ie, O as re, A as R } from "./errors-CD873hrG.js";
|
|
7
|
+
import { C as je, O as Oe } from "./OAuthErrorPage-DnKnq4xK.js";
|
|
8
|
+
var J = { exports: {} }, De = J.exports, oe;
|
|
9
|
+
function Je() {
|
|
10
|
+
return oe || (oe = 1, (function(t) {
|
|
12
11
|
(function(e, n) {
|
|
13
12
|
t.exports ? t.exports = n() : e.log = n();
|
|
14
13
|
})(De, function() {
|
|
@@ -20,142 +19,142 @@ function Ne() {
|
|
|
20
19
|
"warn",
|
|
21
20
|
"error"
|
|
22
21
|
], r = {}, i = null;
|
|
23
|
-
function
|
|
24
|
-
var
|
|
25
|
-
if (typeof
|
|
26
|
-
return
|
|
22
|
+
function u(l, m) {
|
|
23
|
+
var c = l[m];
|
|
24
|
+
if (typeof c.bind == "function")
|
|
25
|
+
return c.bind(l);
|
|
27
26
|
try {
|
|
28
|
-
return Function.prototype.bind.call(
|
|
27
|
+
return Function.prototype.bind.call(c, l);
|
|
29
28
|
} catch {
|
|
30
29
|
return function() {
|
|
31
|
-
return Function.prototype.apply.apply(
|
|
30
|
+
return Function.prototype.apply.apply(c, [l, arguments]);
|
|
32
31
|
};
|
|
33
32
|
}
|
|
34
33
|
}
|
|
35
|
-
function
|
|
34
|
+
function d() {
|
|
36
35
|
console.log && (console.log.apply ? console.log.apply(console, arguments) : Function.prototype.apply.apply(console.log, [console, arguments])), console.trace && console.trace();
|
|
37
36
|
}
|
|
38
37
|
function y(l) {
|
|
39
|
-
return l === "debug" && (l = "log"), typeof console === n ? !1 : l === "trace" && o ?
|
|
38
|
+
return l === "debug" && (l = "log"), typeof console === n ? !1 : l === "trace" && o ? d : console[l] !== void 0 ? u(console, l) : console.log !== void 0 ? u(console, "log") : e;
|
|
40
39
|
}
|
|
41
40
|
function p() {
|
|
42
41
|
for (var l = this.getLevel(), m = 0; m < s.length; m++) {
|
|
43
|
-
var
|
|
44
|
-
this[
|
|
42
|
+
var c = s[m];
|
|
43
|
+
this[c] = m < l ? e : this.methodFactory(c, l, this.name);
|
|
45
44
|
}
|
|
46
45
|
if (this.log = this.debug, typeof console === n && l < this.levels.SILENT)
|
|
47
46
|
return "No console available for logging";
|
|
48
47
|
}
|
|
49
|
-
function
|
|
48
|
+
function k(l) {
|
|
50
49
|
return function() {
|
|
51
50
|
typeof console !== n && (p.call(this), this[l].apply(this, arguments));
|
|
52
51
|
};
|
|
53
52
|
}
|
|
54
|
-
function
|
|
55
|
-
return y(l) ||
|
|
53
|
+
function _(l, m, c) {
|
|
54
|
+
return y(l) || k.apply(this, arguments);
|
|
56
55
|
}
|
|
57
|
-
function
|
|
58
|
-
var
|
|
59
|
-
typeof l == "string" ?
|
|
60
|
-
function Ee(
|
|
61
|
-
var g = (s[
|
|
62
|
-
if (!(typeof window === n || !
|
|
56
|
+
function f(l, m) {
|
|
57
|
+
var c = this, j, H, L, b = "loglevel";
|
|
58
|
+
typeof l == "string" ? b += ":" + l : typeof l == "symbol" && (b = void 0);
|
|
59
|
+
function Ee(h) {
|
|
60
|
+
var g = (s[h] || "silent").toUpperCase();
|
|
61
|
+
if (!(typeof window === n || !b)) {
|
|
63
62
|
try {
|
|
64
|
-
window.localStorage[
|
|
63
|
+
window.localStorage[b] = g;
|
|
65
64
|
return;
|
|
66
65
|
} catch {
|
|
67
66
|
}
|
|
68
67
|
try {
|
|
69
|
-
window.document.cookie = encodeURIComponent(
|
|
68
|
+
window.document.cookie = encodeURIComponent(b) + "=" + g + ";";
|
|
70
69
|
} catch {
|
|
71
70
|
}
|
|
72
71
|
}
|
|
73
72
|
}
|
|
74
73
|
function ee() {
|
|
75
|
-
var
|
|
76
|
-
if (!(typeof window === n || !
|
|
74
|
+
var h;
|
|
75
|
+
if (!(typeof window === n || !b)) {
|
|
77
76
|
try {
|
|
78
|
-
|
|
77
|
+
h = window.localStorage[b];
|
|
79
78
|
} catch {
|
|
80
79
|
}
|
|
81
|
-
if (typeof
|
|
80
|
+
if (typeof h === n)
|
|
82
81
|
try {
|
|
83
|
-
var g = window.document.cookie,
|
|
84
|
-
ne !== -1 && (
|
|
85
|
-
g.slice(ne +
|
|
82
|
+
var g = window.document.cookie, O = encodeURIComponent(b), ne = g.indexOf(O + "=");
|
|
83
|
+
ne !== -1 && (h = /^([^;]+)/.exec(
|
|
84
|
+
g.slice(ne + O.length + 1)
|
|
86
85
|
)[1]);
|
|
87
86
|
} catch {
|
|
88
87
|
}
|
|
89
|
-
return
|
|
88
|
+
return c.levels[h] === void 0 && (h = void 0), h;
|
|
90
89
|
}
|
|
91
90
|
}
|
|
92
|
-
function
|
|
93
|
-
if (!(typeof window === n || !
|
|
91
|
+
function Re() {
|
|
92
|
+
if (!(typeof window === n || !b)) {
|
|
94
93
|
try {
|
|
95
|
-
window.localStorage.removeItem(
|
|
94
|
+
window.localStorage.removeItem(b);
|
|
96
95
|
} catch {
|
|
97
96
|
}
|
|
98
97
|
try {
|
|
99
|
-
window.document.cookie = encodeURIComponent(
|
|
98
|
+
window.document.cookie = encodeURIComponent(b) + "=; expires=Thu, 01 Jan 1970 00:00:00 UTC";
|
|
100
99
|
} catch {
|
|
101
100
|
}
|
|
102
101
|
}
|
|
103
102
|
}
|
|
104
|
-
function U(
|
|
105
|
-
var g =
|
|
106
|
-
if (typeof g == "string" &&
|
|
103
|
+
function U(h) {
|
|
104
|
+
var g = h;
|
|
105
|
+
if (typeof g == "string" && c.levels[g.toUpperCase()] !== void 0 && (g = c.levels[g.toUpperCase()]), typeof g == "number" && g >= 0 && g <= c.levels.SILENT)
|
|
107
106
|
return g;
|
|
108
|
-
throw new TypeError("log.setLevel() called with invalid level: " +
|
|
107
|
+
throw new TypeError("log.setLevel() called with invalid level: " + h);
|
|
109
108
|
}
|
|
110
|
-
|
|
109
|
+
c.name = l, c.levels = {
|
|
111
110
|
TRACE: 0,
|
|
112
111
|
DEBUG: 1,
|
|
113
112
|
INFO: 2,
|
|
114
113
|
WARN: 3,
|
|
115
114
|
ERROR: 4,
|
|
116
115
|
SILENT: 5
|
|
117
|
-
},
|
|
118
|
-
return
|
|
119
|
-
},
|
|
120
|
-
return
|
|
121
|
-
},
|
|
122
|
-
H = U(
|
|
123
|
-
},
|
|
124
|
-
|
|
125
|
-
},
|
|
126
|
-
|
|
127
|
-
},
|
|
128
|
-
|
|
129
|
-
},
|
|
130
|
-
if (i !==
|
|
131
|
-
for (var
|
|
132
|
-
r[
|
|
133
|
-
},
|
|
116
|
+
}, c.methodFactory = m || _, c.getLevel = function() {
|
|
117
|
+
return L ?? H ?? j;
|
|
118
|
+
}, c.setLevel = function(h, g) {
|
|
119
|
+
return L = U(h), g !== !1 && Ee(L), p.call(c);
|
|
120
|
+
}, c.setDefaultLevel = function(h) {
|
|
121
|
+
H = U(h), ee() || c.setLevel(h, !1);
|
|
122
|
+
}, c.resetLevel = function() {
|
|
123
|
+
L = null, Re(), p.call(c);
|
|
124
|
+
}, c.enableAll = function(h) {
|
|
125
|
+
c.setLevel(c.levels.TRACE, h);
|
|
126
|
+
}, c.disableAll = function(h) {
|
|
127
|
+
c.setLevel(c.levels.SILENT, h);
|
|
128
|
+
}, c.rebuild = function() {
|
|
129
|
+
if (i !== c && (j = U(i.getLevel())), p.call(c), i === c)
|
|
130
|
+
for (var h in r)
|
|
131
|
+
r[h].rebuild();
|
|
132
|
+
}, j = U(
|
|
134
133
|
i ? i.getLevel() : "WARN"
|
|
135
134
|
);
|
|
136
135
|
var te = ee();
|
|
137
|
-
te != null && (
|
|
136
|
+
te != null && (L = U(te)), p.call(c);
|
|
138
137
|
}
|
|
139
|
-
i = new
|
|
138
|
+
i = new f(), i.getLogger = function(m) {
|
|
140
139
|
if (typeof m != "symbol" && typeof m != "string" || m === "")
|
|
141
140
|
throw new TypeError("You must supply a name when creating a logger.");
|
|
142
|
-
var
|
|
143
|
-
return
|
|
141
|
+
var c = r[m];
|
|
142
|
+
return c || (c = r[m] = new f(
|
|
144
143
|
m,
|
|
145
144
|
i.methodFactory
|
|
146
|
-
)),
|
|
145
|
+
)), c;
|
|
147
146
|
};
|
|
148
|
-
var
|
|
147
|
+
var P = typeof window !== n ? window.log : void 0;
|
|
149
148
|
return i.noConflict = function() {
|
|
150
|
-
return typeof window !== n && window.log === i && (window.log =
|
|
149
|
+
return typeof window !== n && window.log === i && (window.log = P), i;
|
|
151
150
|
}, i.getLoggers = function() {
|
|
152
151
|
return r;
|
|
153
152
|
}, i.default = i, i;
|
|
154
153
|
});
|
|
155
|
-
}(J)), J.exports;
|
|
154
|
+
})(J)), J.exports;
|
|
156
155
|
}
|
|
157
|
-
var
|
|
158
|
-
const
|
|
156
|
+
var ze = Je();
|
|
157
|
+
const ie = /* @__PURE__ */ Le(ze);
|
|
159
158
|
let B;
|
|
160
159
|
(typeof navigator > "u" || !navigator.userAgent?.startsWith?.("Mozilla/5.0 ")) && (B = "oauth4webapi/v2.17.0");
|
|
161
160
|
function V(t, e) {
|
|
@@ -167,19 +166,19 @@ function V(t, e) {
|
|
|
167
166
|
return !1;
|
|
168
167
|
}
|
|
169
168
|
}
|
|
170
|
-
const N = Symbol(),
|
|
169
|
+
const N = Symbol(), Ne = Symbol(), G = Symbol(), We = Symbol(), Ke = Symbol(), He = Symbol(), $e = new TextEncoder(), Fe = new TextDecoder();
|
|
171
170
|
function E(t) {
|
|
172
|
-
return typeof t == "string" ?
|
|
171
|
+
return typeof t == "string" ? $e.encode(t) : Fe.decode(t);
|
|
173
172
|
}
|
|
174
|
-
const
|
|
175
|
-
function
|
|
173
|
+
const se = 32768;
|
|
174
|
+
function Me(t) {
|
|
176
175
|
t instanceof ArrayBuffer && (t = new Uint8Array(t));
|
|
177
176
|
const e = [];
|
|
178
|
-
for (let n = 0; n < t.byteLength; n +=
|
|
179
|
-
e.push(String.fromCharCode.apply(null, t.subarray(n, n +
|
|
177
|
+
for (let n = 0; n < t.byteLength; n += se)
|
|
178
|
+
e.push(String.fromCharCode.apply(null, t.subarray(n, n + se)));
|
|
180
179
|
return btoa(e.join("")).replace(/=/g, "").replace(/\+/g, "-").replace(/\//g, "_");
|
|
181
180
|
}
|
|
182
|
-
function
|
|
181
|
+
function Be(t) {
|
|
183
182
|
try {
|
|
184
183
|
const e = atob(t.replace(/-/g, "+").replace(/_/g, "/").replace(/\s/g, "")), n = new Uint8Array(e.length);
|
|
185
184
|
for (let o = 0; o < e.length; o++)
|
|
@@ -189,10 +188,10 @@ function Ve(t) {
|
|
|
189
188
|
throw new a("The input to be decoded is not correctly encoded.", { cause: e });
|
|
190
189
|
}
|
|
191
190
|
}
|
|
192
|
-
function
|
|
193
|
-
return typeof t == "string" ?
|
|
191
|
+
function A(t) {
|
|
192
|
+
return typeof t == "string" ? Be(t) : Me(t);
|
|
194
193
|
}
|
|
195
|
-
class
|
|
194
|
+
class qe {
|
|
196
195
|
constructor(e) {
|
|
197
196
|
this.cache = /* @__PURE__ */ new Map(), this._cache = /* @__PURE__ */ new Map(), this.maxSize = e;
|
|
198
197
|
}
|
|
@@ -221,30 +220,30 @@ class v extends Error {
|
|
|
221
220
|
super(e ?? "operation not supported"), this.name = this.constructor.name, Error.captureStackTrace?.(this, this.constructor);
|
|
222
221
|
}
|
|
223
222
|
}
|
|
224
|
-
class
|
|
223
|
+
class Ve extends Error {
|
|
225
224
|
constructor(e, n) {
|
|
226
225
|
super(e, n), this.name = this.constructor.name, Error.captureStackTrace?.(this, this.constructor);
|
|
227
226
|
}
|
|
228
227
|
}
|
|
229
|
-
const a =
|
|
230
|
-
function
|
|
228
|
+
const a = Ve, we = new qe(100);
|
|
229
|
+
function me(t) {
|
|
231
230
|
return t instanceof CryptoKey;
|
|
232
231
|
}
|
|
233
|
-
function
|
|
234
|
-
return
|
|
232
|
+
function Ge(t) {
|
|
233
|
+
return me(t) && t.type === "private";
|
|
235
234
|
}
|
|
236
|
-
function
|
|
237
|
-
return
|
|
235
|
+
function Ye(t) {
|
|
236
|
+
return me(t) && t.type === "public";
|
|
238
237
|
}
|
|
239
|
-
function
|
|
238
|
+
function Y(t) {
|
|
240
239
|
try {
|
|
241
240
|
const e = t.headers.get("dpop-nonce");
|
|
242
|
-
e &&
|
|
241
|
+
e && we.set(new URL(t.url).origin, e);
|
|
243
242
|
} catch {
|
|
244
243
|
}
|
|
245
244
|
return t;
|
|
246
245
|
}
|
|
247
|
-
function
|
|
246
|
+
function x(t) {
|
|
248
247
|
return !(t === null || typeof t != "object" || Array.isArray(t));
|
|
249
248
|
}
|
|
250
249
|
function W(t) {
|
|
@@ -256,12 +255,12 @@ function W(t) {
|
|
|
256
255
|
throw new TypeError('"options.headers" must not include the "dpop" header name');
|
|
257
256
|
return e;
|
|
258
257
|
}
|
|
259
|
-
function
|
|
258
|
+
function Ze(t) {
|
|
260
259
|
if (typeof t == "function" && (t = t()), !(t instanceof AbortSignal))
|
|
261
260
|
throw new TypeError('"options.signal" must return or be an instance of AbortSignal');
|
|
262
261
|
return t;
|
|
263
262
|
}
|
|
264
|
-
async function
|
|
263
|
+
async function Qe(t, e) {
|
|
265
264
|
if (!(t instanceof URL))
|
|
266
265
|
throw new TypeError('"issuerIdentifier" must be an instance of URL');
|
|
267
266
|
if (t.protocol !== "https:" && t.protocol !== "http:")
|
|
@@ -284,12 +283,12 @@ async function et(t, e) {
|
|
|
284
283
|
method: "GET",
|
|
285
284
|
redirect: "manual",
|
|
286
285
|
signal: null
|
|
287
|
-
}).then(
|
|
286
|
+
}).then(Y);
|
|
288
287
|
}
|
|
289
288
|
function w(t) {
|
|
290
289
|
return typeof t == "string" && t.length !== 0;
|
|
291
290
|
}
|
|
292
|
-
async function
|
|
291
|
+
async function Xe(t, e) {
|
|
293
292
|
if (!(t instanceof URL))
|
|
294
293
|
throw new TypeError('"expectedIssuer" must be an instance of URL');
|
|
295
294
|
if (!V(e, Response))
|
|
@@ -303,7 +302,7 @@ async function tt(t, e) {
|
|
|
303
302
|
} catch (o) {
|
|
304
303
|
throw new a('failed to parse "response" body as JSON', { cause: o });
|
|
305
304
|
}
|
|
306
|
-
if (!
|
|
305
|
+
if (!x(n))
|
|
307
306
|
throw new a('"response" body must be a top level object');
|
|
308
307
|
if (!w(n.issuer))
|
|
309
308
|
throw new a('"response" body "issuer" property must be a non-empty string');
|
|
@@ -311,28 +310,28 @@ async function tt(t, e) {
|
|
|
311
310
|
throw new a('"response" body "issuer" does not match "expectedIssuer"');
|
|
312
311
|
return n;
|
|
313
312
|
}
|
|
314
|
-
function
|
|
315
|
-
return
|
|
313
|
+
function Z() {
|
|
314
|
+
return A(crypto.getRandomValues(new Uint8Array(32)));
|
|
316
315
|
}
|
|
317
|
-
function
|
|
318
|
-
return
|
|
316
|
+
function et() {
|
|
317
|
+
return Z();
|
|
319
318
|
}
|
|
320
|
-
function
|
|
321
|
-
return
|
|
319
|
+
function tt() {
|
|
320
|
+
return Z();
|
|
322
321
|
}
|
|
323
|
-
async function
|
|
322
|
+
async function nt(t) {
|
|
324
323
|
if (!w(t))
|
|
325
324
|
throw new TypeError('"codeVerifier" must be a non-empty string');
|
|
326
|
-
return
|
|
325
|
+
return A(await crypto.subtle.digest("SHA-256", E(t)));
|
|
327
326
|
}
|
|
328
|
-
function
|
|
327
|
+
function ae(t) {
|
|
329
328
|
return encodeURIComponent(t).replace(/%20/g, "+");
|
|
330
329
|
}
|
|
331
|
-
function
|
|
332
|
-
const n =
|
|
330
|
+
function rt(t, e) {
|
|
331
|
+
const n = ae(t), o = ae(e);
|
|
333
332
|
return `Basic ${btoa(`${n}:${o}`)}`;
|
|
334
333
|
}
|
|
335
|
-
function
|
|
334
|
+
function ot(t) {
|
|
336
335
|
switch (t.algorithm.hash.name) {
|
|
337
336
|
case "SHA-256":
|
|
338
337
|
return "PS256";
|
|
@@ -344,7 +343,7 @@ function st(t) {
|
|
|
344
343
|
throw new v("unsupported RsaHashedKeyAlgorithm hash name");
|
|
345
344
|
}
|
|
346
345
|
}
|
|
347
|
-
function
|
|
346
|
+
function it(t) {
|
|
348
347
|
switch (t.algorithm.hash.name) {
|
|
349
348
|
case "SHA-256":
|
|
350
349
|
return "RS256";
|
|
@@ -356,7 +355,7 @@ function at(t) {
|
|
|
356
355
|
throw new v("unsupported RsaHashedKeyAlgorithm hash name");
|
|
357
356
|
}
|
|
358
357
|
}
|
|
359
|
-
function
|
|
358
|
+
function st(t) {
|
|
360
359
|
switch (t.algorithm.namedCurve) {
|
|
361
360
|
case "P-256":
|
|
362
361
|
return "ES256";
|
|
@@ -368,14 +367,14 @@ function ct(t) {
|
|
|
368
367
|
throw new v("unsupported EcKeyAlgorithm namedCurve");
|
|
369
368
|
}
|
|
370
369
|
}
|
|
371
|
-
function
|
|
370
|
+
function at(t) {
|
|
372
371
|
switch (t.algorithm.name) {
|
|
373
372
|
case "RSA-PSS":
|
|
374
|
-
return
|
|
373
|
+
return ot(t);
|
|
375
374
|
case "RSASSA-PKCS1-v1_5":
|
|
376
|
-
return
|
|
375
|
+
return it(t);
|
|
377
376
|
case "ECDSA":
|
|
378
|
-
return
|
|
377
|
+
return st(t);
|
|
379
378
|
case "Ed25519":
|
|
380
379
|
case "Ed448":
|
|
381
380
|
return "EdDSA";
|
|
@@ -387,169 +386,169 @@ function K(t) {
|
|
|
387
386
|
const e = t?.[N];
|
|
388
387
|
return typeof e == "number" && Number.isFinite(e) ? e : 0;
|
|
389
388
|
}
|
|
390
|
-
function
|
|
391
|
-
const e = t?.[
|
|
389
|
+
function ge(t) {
|
|
390
|
+
const e = t?.[Ne];
|
|
392
391
|
return typeof e == "number" && Number.isFinite(e) && Math.sign(e) !== -1 ? e : 30;
|
|
393
392
|
}
|
|
394
393
|
function Q() {
|
|
395
394
|
return Math.floor(Date.now() / 1e3);
|
|
396
395
|
}
|
|
397
|
-
function
|
|
396
|
+
function C(t) {
|
|
398
397
|
if (typeof t != "object" || t === null)
|
|
399
398
|
throw new TypeError('"as" must be an object');
|
|
400
399
|
if (!w(t.issuer))
|
|
401
400
|
throw new TypeError('"as.issuer" property must be a non-empty string');
|
|
402
401
|
return !0;
|
|
403
402
|
}
|
|
404
|
-
function
|
|
403
|
+
function I(t) {
|
|
405
404
|
if (typeof t != "object" || t === null)
|
|
406
405
|
throw new TypeError('"client" must be an object');
|
|
407
406
|
if (!w(t.client_id))
|
|
408
407
|
throw new TypeError('"client.client_id" property must be a non-empty string');
|
|
409
408
|
return !0;
|
|
410
409
|
}
|
|
411
|
-
function
|
|
410
|
+
function ce(t) {
|
|
412
411
|
if (!w(t))
|
|
413
412
|
throw new TypeError('"client.client_secret" property must be a non-empty string');
|
|
414
413
|
return t;
|
|
415
414
|
}
|
|
416
|
-
function
|
|
415
|
+
function ue(t, e) {
|
|
417
416
|
if (e !== void 0)
|
|
418
417
|
throw new TypeError(`"client.client_secret" property must not be provided when ${t} client authentication method is used.`);
|
|
419
418
|
}
|
|
420
|
-
async function
|
|
419
|
+
async function ct(t, e, n, o, s) {
|
|
421
420
|
switch (n.delete("client_secret"), n.delete("client_assertion_type"), n.delete("client_assertion"), e.token_endpoint_auth_method) {
|
|
422
421
|
case void 0:
|
|
423
422
|
case "client_secret_basic": {
|
|
424
|
-
o.set("authorization",
|
|
423
|
+
o.set("authorization", rt(e.client_id, ce(e.client_secret)));
|
|
425
424
|
break;
|
|
426
425
|
}
|
|
427
426
|
case "client_secret_post": {
|
|
428
|
-
n.set("client_id", e.client_id), n.set("client_secret",
|
|
427
|
+
n.set("client_id", e.client_id), n.set("client_secret", ce(e.client_secret));
|
|
429
428
|
break;
|
|
430
429
|
}
|
|
431
430
|
case "private_key_jwt":
|
|
432
|
-
throw
|
|
431
|
+
throw ue("private_key_jwt", e.client_secret), new TypeError('"options.clientPrivateKey" must be provided when "client.token_endpoint_auth_method" is "private_key_jwt"');
|
|
433
432
|
case "tls_client_auth":
|
|
434
433
|
case "self_signed_tls_client_auth":
|
|
435
434
|
case "none": {
|
|
436
|
-
|
|
435
|
+
ue(e.token_endpoint_auth_method, e.client_secret), e.token_endpoint_auth_method, n.set("client_id", e.client_id);
|
|
437
436
|
break;
|
|
438
437
|
}
|
|
439
438
|
default:
|
|
440
439
|
throw new v("unsupported client token_endpoint_auth_method");
|
|
441
440
|
}
|
|
442
441
|
}
|
|
443
|
-
async function
|
|
442
|
+
async function ut(t, e, n) {
|
|
444
443
|
if (!n.usages.includes("sign"))
|
|
445
444
|
throw new TypeError('CryptoKey instances used for signing assertions must include "sign" in their "usages"');
|
|
446
|
-
const o = `${
|
|
445
|
+
const o = `${A(E(JSON.stringify(t)))}.${A(E(JSON.stringify(e)))}`, s = A(await crypto.subtle.sign(Ae(n), n, E(o)));
|
|
447
446
|
return `${o}.${s}`;
|
|
448
447
|
}
|
|
449
|
-
async function
|
|
450
|
-
const { privateKey: i, publicKey:
|
|
451
|
-
if (!
|
|
448
|
+
async function lt(t, e, n, o, s, r) {
|
|
449
|
+
const { privateKey: i, publicKey: u, nonce: d = we.get(n.origin) } = e;
|
|
450
|
+
if (!Ge(i))
|
|
452
451
|
throw new TypeError('"DPoP.privateKey" must be a private CryptoKey');
|
|
453
|
-
if (!
|
|
452
|
+
if (!Ye(u))
|
|
454
453
|
throw new TypeError('"DPoP.publicKey" must be a public CryptoKey');
|
|
455
|
-
if (
|
|
454
|
+
if (d !== void 0 && !w(d))
|
|
456
455
|
throw new TypeError('"DPoP.nonce" must be a non-empty string or undefined');
|
|
457
|
-
if (!
|
|
456
|
+
if (!u.extractable)
|
|
458
457
|
throw new TypeError('"DPoP.publicKey.extractable" must be true');
|
|
459
458
|
const y = Q() + s, p = {
|
|
460
|
-
alg:
|
|
459
|
+
alg: at(i),
|
|
461
460
|
typ: "dpop+jwt",
|
|
462
|
-
jwk: await
|
|
463
|
-
},
|
|
461
|
+
jwk: await ht(u)
|
|
462
|
+
}, k = {
|
|
464
463
|
iat: y,
|
|
465
|
-
jti:
|
|
464
|
+
jti: Z(),
|
|
466
465
|
htm: o,
|
|
467
|
-
nonce:
|
|
466
|
+
nonce: d,
|
|
468
467
|
htu: `${n.origin}${n.pathname}`,
|
|
469
|
-
ath: r ?
|
|
468
|
+
ath: r ? A(await crypto.subtle.digest("SHA-256", E(r))) : void 0
|
|
470
469
|
};
|
|
471
|
-
e[
|
|
470
|
+
e[We]?.(p, k), t.set("dpop", await ut(p, k, i));
|
|
472
471
|
}
|
|
473
|
-
let
|
|
474
|
-
async function
|
|
475
|
-
const { kty: e, e: n, n: o, x: s, y: r, crv: i } = await crypto.subtle.exportKey("jwk", t),
|
|
476
|
-
return
|
|
472
|
+
let z;
|
|
473
|
+
async function dt(t) {
|
|
474
|
+
const { kty: e, e: n, n: o, x: s, y: r, crv: i } = await crypto.subtle.exportKey("jwk", t), u = { kty: e, e: n, n: o, x: s, y: r, crv: i };
|
|
475
|
+
return z.set(t, u), u;
|
|
477
476
|
}
|
|
478
|
-
async function
|
|
479
|
-
return
|
|
477
|
+
async function ht(t) {
|
|
478
|
+
return z || (z = /* @__PURE__ */ new WeakMap()), z.get(t) || dt(t);
|
|
480
479
|
}
|
|
481
|
-
function
|
|
480
|
+
function le(t, e, n) {
|
|
482
481
|
if (typeof t != "string")
|
|
483
482
|
throw n ? new TypeError(`"as.mtls_endpoint_aliases.${e}" must be a string`) : new TypeError(`"as.${e}" must be a string`);
|
|
484
483
|
return new URL(t);
|
|
485
484
|
}
|
|
486
|
-
function
|
|
487
|
-
return n && t.mtls_endpoint_aliases && e in t.mtls_endpoint_aliases ?
|
|
485
|
+
function ye(t, e, n = !1) {
|
|
486
|
+
return n && t.mtls_endpoint_aliases && e in t.mtls_endpoint_aliases ? le(t.mtls_endpoint_aliases[e], e, n) : le(t[e], e, n);
|
|
488
487
|
}
|
|
489
|
-
function
|
|
490
|
-
return !!(t.use_mtls_endpoint_aliases || e?.[
|
|
488
|
+
function _e(t, e) {
|
|
489
|
+
return !!(t.use_mtls_endpoint_aliases || e?.[He]);
|
|
491
490
|
}
|
|
492
491
|
function q(t) {
|
|
493
492
|
const e = t;
|
|
494
493
|
return typeof e != "object" || Array.isArray(e) || e === null ? !1 : e.error !== void 0;
|
|
495
494
|
}
|
|
496
|
-
async function
|
|
495
|
+
async function ft(t, e, n, o, s, r) {
|
|
497
496
|
if (!w(t))
|
|
498
497
|
throw new TypeError('"accessToken" must be a non-empty string');
|
|
499
498
|
if (!(n instanceof URL))
|
|
500
499
|
throw new TypeError('"url" must be an instance of URL');
|
|
501
|
-
return o = W(o), r?.DPoP === void 0 ? o.set("authorization", `Bearer ${t}`) : (await
|
|
500
|
+
return o = W(o), r?.DPoP === void 0 ? o.set("authorization", `Bearer ${t}`) : (await lt(o, r.DPoP, n, e.toUpperCase(), K({ [N]: r?.[N] }), t), o.set("authorization", `DPoP ${t}`)), (r?.[G] || fetch)(n.href, {
|
|
502
501
|
body: s,
|
|
503
502
|
headers: Object.fromEntries(o.entries()),
|
|
504
503
|
method: e,
|
|
505
504
|
redirect: "manual",
|
|
506
|
-
signal: r?.signal ?
|
|
507
|
-
}).then(
|
|
505
|
+
signal: r?.signal ? Ze(r.signal) : null
|
|
506
|
+
}).then(Y);
|
|
508
507
|
}
|
|
509
|
-
async function
|
|
510
|
-
|
|
511
|
-
const s =
|
|
512
|
-
return e.userinfo_signed_response_alg ? r.set("accept", "application/jwt") : (r.set("accept", "application/json"), r.append("accept", "application/jwt")),
|
|
508
|
+
async function pt(t, e, n, o) {
|
|
509
|
+
C(t), I(e);
|
|
510
|
+
const s = ye(t, "userinfo_endpoint", _e(e, o)), r = W(o?.headers);
|
|
511
|
+
return e.userinfo_signed_response_alg ? r.set("accept", "application/jwt") : (r.set("accept", "application/json"), r.append("accept", "application/jwt")), ft(n, "GET", s, r, null, {
|
|
513
512
|
...o,
|
|
514
513
|
[N]: K(e)
|
|
515
514
|
});
|
|
516
515
|
}
|
|
517
|
-
async function
|
|
518
|
-
return await
|
|
516
|
+
async function wt(t, e, n, o, s, r, i) {
|
|
517
|
+
return await ct(t, e, s, r), r.set("content-type", "application/x-www-form-urlencoded;charset=UTF-8"), (i?.[G] || fetch)(o.href, {
|
|
519
518
|
body: s,
|
|
520
519
|
headers: Object.fromEntries(r.entries()),
|
|
521
520
|
method: n,
|
|
522
521
|
redirect: "manual",
|
|
523
522
|
signal: null
|
|
524
|
-
}).then(
|
|
523
|
+
}).then(Y);
|
|
525
524
|
}
|
|
526
525
|
async function be(t, e, n, o, s) {
|
|
527
|
-
const r =
|
|
526
|
+
const r = ye(t, "token_endpoint", _e(e, s));
|
|
528
527
|
o.set("grant_type", n);
|
|
529
528
|
const i = W(s?.headers);
|
|
530
|
-
return i.set("accept", "application/json"),
|
|
529
|
+
return i.set("accept", "application/json"), wt(t, e, "POST", r, o, i, s);
|
|
531
530
|
}
|
|
532
|
-
async function
|
|
533
|
-
if (
|
|
531
|
+
async function de(t, e, n, o) {
|
|
532
|
+
if (C(t), I(e), !w(n))
|
|
534
533
|
throw new TypeError('"refreshToken" must be a non-empty string');
|
|
535
534
|
const s = new URLSearchParams(o?.additionalParameters);
|
|
536
535
|
return s.set("refresh_token", n), be(t, e, "refresh_token", s, o);
|
|
537
536
|
}
|
|
538
|
-
const
|
|
539
|
-
function
|
|
537
|
+
const ve = /* @__PURE__ */ new WeakMap();
|
|
538
|
+
function mt(t) {
|
|
540
539
|
if (!t.id_token)
|
|
541
540
|
return;
|
|
542
|
-
const e =
|
|
541
|
+
const e = ve.get(t);
|
|
543
542
|
if (!e)
|
|
544
543
|
throw new TypeError('"ref" was already garbage collected or did not resolve from the proper sources');
|
|
545
544
|
return e[0];
|
|
546
545
|
}
|
|
547
|
-
async function
|
|
548
|
-
if (
|
|
546
|
+
async function Se(t, e, n, o = !1, s = !1) {
|
|
547
|
+
if (C(t), I(e), !V(n, Response))
|
|
549
548
|
throw new TypeError('"response" must be an instance of Response');
|
|
550
549
|
if (n.status !== 200) {
|
|
551
550
|
let i;
|
|
552
|
-
if (i = await
|
|
551
|
+
if (i = await kt(n))
|
|
553
552
|
return i;
|
|
554
553
|
throw new a('"response" is not a conform Token Endpoint response');
|
|
555
554
|
}
|
|
@@ -560,7 +559,7 @@ async function ve(t, e, n, o = !1, s = !1) {
|
|
|
560
559
|
} catch (i) {
|
|
561
560
|
throw new a('failed to parse "response" body as JSON', { cause: i });
|
|
562
561
|
}
|
|
563
|
-
if (!
|
|
562
|
+
if (!x(r))
|
|
564
563
|
throw new a('"response" body must be a top level object');
|
|
565
564
|
if (!w(r.access_token))
|
|
566
565
|
throw new a('"response" body "access_token" property must be a non-empty string');
|
|
@@ -578,7 +577,7 @@ async function ve(t, e, n, o = !1, s = !1) {
|
|
|
578
577
|
if (r.id_token !== void 0 && !w(r.id_token))
|
|
579
578
|
throw new a('"response" body "id_token" property must be a non-empty string');
|
|
580
579
|
if (r.id_token) {
|
|
581
|
-
const { claims: i, jwt:
|
|
580
|
+
const { claims: i, jwt: u } = await Pt(r.id_token, Lt.bind(void 0, e.id_token_signed_response_alg, t.id_token_signing_alg_values_supported), ke, K(e), ge(e), e[Ke]).then(St.bind(void 0, ["aud", "exp", "iat", "iss", "sub"])).then(yt.bind(void 0, t.issuer)).then(gt.bind(void 0, e.client_id));
|
|
582
581
|
if (Array.isArray(i.aud) && i.aud.length !== 1) {
|
|
583
582
|
if (i.azp === void 0)
|
|
584
583
|
throw new a('ID Token "aud" (audience) claim includes additional untrusted audiences');
|
|
@@ -587,15 +586,15 @@ async function ve(t, e, n, o = !1, s = !1) {
|
|
|
587
586
|
}
|
|
588
587
|
if (i.auth_time !== void 0 && (!Number.isFinite(i.auth_time) || Math.sign(i.auth_time) !== 1))
|
|
589
588
|
throw new a('ID Token "auth_time" (authentication time) must be a positive number');
|
|
590
|
-
|
|
589
|
+
ve.set(r, [i, u]);
|
|
591
590
|
}
|
|
592
591
|
}
|
|
593
592
|
return r;
|
|
594
593
|
}
|
|
595
|
-
async function
|
|
596
|
-
return
|
|
594
|
+
async function he(t, e, n) {
|
|
595
|
+
return Se(t, e, n);
|
|
597
596
|
}
|
|
598
|
-
function
|
|
597
|
+
function gt(t, e) {
|
|
599
598
|
if (Array.isArray(e.claims.aud)) {
|
|
600
599
|
if (!e.claims.aud.includes(t))
|
|
601
600
|
throw new a('unexpected JWT "aud" (audience) claim value');
|
|
@@ -603,29 +602,29 @@ function vt(t, e) {
|
|
|
603
602
|
throw new a('unexpected JWT "aud" (audience) claim value');
|
|
604
603
|
return e;
|
|
605
604
|
}
|
|
606
|
-
function
|
|
605
|
+
function yt(t, e) {
|
|
607
606
|
if (e.claims.iss !== t)
|
|
608
607
|
throw new a('unexpected JWT "iss" (issuer) claim value');
|
|
609
608
|
return e;
|
|
610
609
|
}
|
|
611
|
-
const
|
|
612
|
-
function
|
|
613
|
-
return
|
|
610
|
+
const Te = /* @__PURE__ */ new WeakSet();
|
|
611
|
+
function _t(t) {
|
|
612
|
+
return Te.add(t), t;
|
|
614
613
|
}
|
|
615
|
-
async function
|
|
616
|
-
if (
|
|
614
|
+
async function bt(t, e, n, o, s, r) {
|
|
615
|
+
if (C(t), I(e), !Te.has(n))
|
|
617
616
|
throw new TypeError('"callbackParameters" must be an instance of URLSearchParams obtained from "validateAuthResponse()", or "validateJwtAuthResponse()');
|
|
618
617
|
if (!w(o))
|
|
619
618
|
throw new TypeError('"redirectUri" must be a non-empty string');
|
|
620
619
|
if (!w(s))
|
|
621
620
|
throw new TypeError('"codeVerifier" must be a non-empty string');
|
|
622
|
-
const i =
|
|
621
|
+
const i = T(n, "code");
|
|
623
622
|
if (!i)
|
|
624
623
|
throw new a('no authorization code in "callbackParameters"');
|
|
625
|
-
const
|
|
626
|
-
return
|
|
624
|
+
const u = new URLSearchParams(r?.additionalParameters);
|
|
625
|
+
return u.set("redirect_uri", o), u.set("code_verifier", s), u.set("code", i), be(t, e, "authorization_code", u, r);
|
|
627
626
|
}
|
|
628
|
-
const
|
|
627
|
+
const vt = {
|
|
629
628
|
aud: "audience",
|
|
630
629
|
c_hash: "code hash",
|
|
631
630
|
client_id: "client id",
|
|
@@ -641,33 +640,33 @@ const Et = {
|
|
|
641
640
|
htu: "http uri",
|
|
642
641
|
cnf: "confirmation"
|
|
643
642
|
};
|
|
644
|
-
function
|
|
643
|
+
function St(t, e) {
|
|
645
644
|
for (const n of t)
|
|
646
645
|
if (e.claims[n] === void 0)
|
|
647
|
-
throw new a(`JWT "${n}" (${
|
|
646
|
+
throw new a(`JWT "${n}" (${vt[n]}) claim missing`);
|
|
648
647
|
return e;
|
|
649
648
|
}
|
|
650
|
-
const
|
|
651
|
-
async function
|
|
652
|
-
const r = await
|
|
649
|
+
const Tt = Symbol(), $ = Symbol();
|
|
650
|
+
async function At(t, e, n, o, s) {
|
|
651
|
+
const r = await Se(t, e, n);
|
|
653
652
|
if (q(r))
|
|
654
653
|
return r;
|
|
655
654
|
if (!w(r.id_token))
|
|
656
655
|
throw new a('"response" body "id_token" property must be a non-empty string');
|
|
657
656
|
s ?? (s = e.default_max_age ?? $);
|
|
658
|
-
const i =
|
|
657
|
+
const i = mt(r);
|
|
659
658
|
if ((e.require_auth_time || s !== $) && i.auth_time === void 0)
|
|
660
659
|
throw new a('ID Token "auth_time" (authentication time) claim missing');
|
|
661
660
|
if (s !== $) {
|
|
662
661
|
if (typeof s != "number" || s < 0)
|
|
663
662
|
throw new TypeError('"maxAge" must be a non-negative number');
|
|
664
|
-
const
|
|
665
|
-
if (i.auth_time + s <
|
|
663
|
+
const u = Q() + K(e), d = ge(e);
|
|
664
|
+
if (i.auth_time + s < u - d)
|
|
666
665
|
throw new a("too much time has elapsed since the last End-User authentication");
|
|
667
666
|
}
|
|
668
667
|
switch (o) {
|
|
669
668
|
case void 0:
|
|
670
|
-
case
|
|
669
|
+
case Tt:
|
|
671
670
|
if (i.nonce !== void 0)
|
|
672
671
|
throw new a('unexpected ID Token "nonce" claim value');
|
|
673
672
|
break;
|
|
@@ -685,22 +684,22 @@ function X(t) {
|
|
|
685
684
|
if (t.bodyUsed)
|
|
686
685
|
throw new TypeError('"response" body has been used already');
|
|
687
686
|
}
|
|
688
|
-
async function
|
|
687
|
+
async function kt(t) {
|
|
689
688
|
if (t.status > 399 && t.status < 500) {
|
|
690
689
|
X(t);
|
|
691
690
|
try {
|
|
692
691
|
const e = await t.json();
|
|
693
|
-
if (
|
|
692
|
+
if (x(e) && typeof e.error == "string" && e.error.length)
|
|
694
693
|
return e.error_description !== void 0 && typeof e.error_description != "string" && delete e.error_description, e.error_uri !== void 0 && typeof e.error_uri != "string" && delete e.error_uri, e.algs !== void 0 && typeof e.algs != "string" && delete e.algs, e.scope !== void 0 && typeof e.scope != "string" && delete e.scope, e;
|
|
695
694
|
} catch {
|
|
696
695
|
}
|
|
697
696
|
}
|
|
698
697
|
}
|
|
699
|
-
function
|
|
698
|
+
function fe(t) {
|
|
700
699
|
if (typeof t.modulusLength != "number" || t.modulusLength < 2048)
|
|
701
700
|
throw new a(`${t.name} modulusLength must be at least 2048 bits`);
|
|
702
701
|
}
|
|
703
|
-
function
|
|
702
|
+
function Et(t) {
|
|
704
703
|
switch (t) {
|
|
705
704
|
case "P-256":
|
|
706
705
|
return "SHA-256";
|
|
@@ -712,15 +711,15 @@ function Ut(t) {
|
|
|
712
711
|
throw new v();
|
|
713
712
|
}
|
|
714
713
|
}
|
|
715
|
-
function
|
|
714
|
+
function Ae(t) {
|
|
716
715
|
switch (t.algorithm.name) {
|
|
717
716
|
case "ECDSA":
|
|
718
717
|
return {
|
|
719
718
|
name: t.algorithm.name,
|
|
720
|
-
hash:
|
|
719
|
+
hash: Et(t.algorithm.namedCurve)
|
|
721
720
|
};
|
|
722
721
|
case "RSA-PSS":
|
|
723
|
-
switch (
|
|
722
|
+
switch (fe(t.algorithm), t.algorithm.hash.name) {
|
|
724
723
|
case "SHA-256":
|
|
725
724
|
case "SHA-384":
|
|
726
725
|
case "SHA-512":
|
|
@@ -732,71 +731,71 @@ function Te(t) {
|
|
|
732
731
|
throw new v();
|
|
733
732
|
}
|
|
734
733
|
case "RSASSA-PKCS1-v1_5":
|
|
735
|
-
return
|
|
734
|
+
return fe(t.algorithm), t.algorithm.name;
|
|
736
735
|
case "Ed448":
|
|
737
736
|
case "Ed25519":
|
|
738
737
|
return t.algorithm.name;
|
|
739
738
|
}
|
|
740
739
|
throw new v();
|
|
741
740
|
}
|
|
742
|
-
const
|
|
743
|
-
async function
|
|
741
|
+
const ke = Symbol();
|
|
742
|
+
async function Rt(t, e, n, o) {
|
|
744
743
|
const s = `${t}.${e}`;
|
|
745
|
-
if (!await crypto.subtle.verify(
|
|
744
|
+
if (!await crypto.subtle.verify(Ae(n), n, o, E(s)))
|
|
746
745
|
throw new a("JWT signature verification failed");
|
|
747
746
|
}
|
|
748
|
-
async function
|
|
749
|
-
let { 0: i, 1:
|
|
747
|
+
async function Pt(t, e, n, o, s, r) {
|
|
748
|
+
let { 0: i, 1: u, 2: d, length: y } = t.split(".");
|
|
750
749
|
if (y === 5)
|
|
751
750
|
if (r !== void 0)
|
|
752
|
-
t = await r(t), { 0: i, 1:
|
|
751
|
+
t = await r(t), { 0: i, 1: u, 2: d, length: y } = t.split(".");
|
|
753
752
|
else
|
|
754
753
|
throw new v("JWE structure JWTs are not supported");
|
|
755
754
|
if (y !== 3)
|
|
756
755
|
throw new a("Invalid JWT");
|
|
757
756
|
let p;
|
|
758
757
|
try {
|
|
759
|
-
p = JSON.parse(E(
|
|
758
|
+
p = JSON.parse(E(A(i)));
|
|
760
759
|
} catch (l) {
|
|
761
760
|
throw new a("failed to parse JWT Header body as base64url encoded JSON", { cause: l });
|
|
762
761
|
}
|
|
763
|
-
if (!
|
|
762
|
+
if (!x(p))
|
|
764
763
|
throw new a("JWT Header must be a top level object");
|
|
765
764
|
if (e(p), p.crit !== void 0)
|
|
766
765
|
throw new a('unexpected JWT "crit" header parameter');
|
|
767
|
-
const
|
|
768
|
-
let
|
|
769
|
-
n !==
|
|
770
|
-
let
|
|
766
|
+
const k = A(d);
|
|
767
|
+
let _;
|
|
768
|
+
n !== ke && (_ = await n(p), await Rt(i, u, _, k));
|
|
769
|
+
let f;
|
|
771
770
|
try {
|
|
772
|
-
|
|
771
|
+
f = JSON.parse(E(A(u)));
|
|
773
772
|
} catch (l) {
|
|
774
773
|
throw new a("failed to parse JWT Payload body as base64url encoded JSON", { cause: l });
|
|
775
774
|
}
|
|
776
|
-
if (!
|
|
775
|
+
if (!x(f))
|
|
777
776
|
throw new a("JWT Payload must be a top level object");
|
|
778
|
-
const
|
|
779
|
-
if (
|
|
780
|
-
if (typeof
|
|
777
|
+
const P = Q() + o;
|
|
778
|
+
if (f.exp !== void 0) {
|
|
779
|
+
if (typeof f.exp != "number")
|
|
781
780
|
throw new a('unexpected JWT "exp" (expiration time) claim type');
|
|
782
|
-
if (
|
|
781
|
+
if (f.exp <= P - s)
|
|
783
782
|
throw new a('unexpected JWT "exp" (expiration time) claim value, timestamp is <= now()');
|
|
784
783
|
}
|
|
785
|
-
if (
|
|
784
|
+
if (f.iat !== void 0 && typeof f.iat != "number")
|
|
786
785
|
throw new a('unexpected JWT "iat" (issued at) claim type');
|
|
787
|
-
if (
|
|
786
|
+
if (f.iss !== void 0 && typeof f.iss != "string")
|
|
788
787
|
throw new a('unexpected JWT "iss" (issuer) claim type');
|
|
789
|
-
if (
|
|
790
|
-
if (typeof
|
|
788
|
+
if (f.nbf !== void 0) {
|
|
789
|
+
if (typeof f.nbf != "number")
|
|
791
790
|
throw new a('unexpected JWT "nbf" (not before) claim type');
|
|
792
|
-
if (
|
|
791
|
+
if (f.nbf > P + s)
|
|
793
792
|
throw new a('unexpected JWT "nbf" (not before) claim value, timestamp is > now()');
|
|
794
793
|
}
|
|
795
|
-
if (
|
|
794
|
+
if (f.aud !== void 0 && typeof f.aud != "string" && !Array.isArray(f.aud))
|
|
796
795
|
throw new a('unexpected JWT "aud" (audience) claim type');
|
|
797
|
-
return { header: p, claims:
|
|
796
|
+
return { header: p, claims: f, signature: k, key: _, jwt: t };
|
|
798
797
|
}
|
|
799
|
-
function
|
|
798
|
+
function Lt(t, e, n) {
|
|
800
799
|
if (t !== void 0) {
|
|
801
800
|
if (n.alg !== t)
|
|
802
801
|
throw new a('unexpected JWT "alg" header parameter');
|
|
@@ -810,30 +809,30 @@ function It(t, e, n) {
|
|
|
810
809
|
if (n.alg !== "RS256")
|
|
811
810
|
throw new a('unexpected JWT "alg" header parameter');
|
|
812
811
|
}
|
|
813
|
-
function
|
|
812
|
+
function T(t, e) {
|
|
814
813
|
const { 0: n, length: o } = t.getAll(e);
|
|
815
814
|
if (o > 1)
|
|
816
815
|
throw new a(`"${e}" parameter must be provided only once`);
|
|
817
816
|
return n;
|
|
818
817
|
}
|
|
819
|
-
const
|
|
820
|
-
function
|
|
821
|
-
if (
|
|
818
|
+
const Ut = Symbol(), xt = Symbol();
|
|
819
|
+
function Ct(t, e, n, o) {
|
|
820
|
+
if (C(t), I(e), n instanceof URL && (n = n.searchParams), !(n instanceof URLSearchParams))
|
|
822
821
|
throw new TypeError('"parameters" must be an instance of URLSearchParams, or URL');
|
|
823
|
-
if (
|
|
822
|
+
if (T(n, "response"))
|
|
824
823
|
throw new a('"parameters" contains a JARM response, use validateJwtAuthResponse() instead of validateAuthResponse()');
|
|
825
|
-
const s =
|
|
824
|
+
const s = T(n, "iss"), r = T(n, "state");
|
|
826
825
|
if (!s && t.authorization_response_iss_parameter_supported)
|
|
827
826
|
throw new a('response parameter "iss" (issuer) missing');
|
|
828
827
|
if (s && s !== t.issuer)
|
|
829
828
|
throw new a('unexpected "iss" (issuer) response parameter value');
|
|
830
829
|
switch (o) {
|
|
831
830
|
case void 0:
|
|
832
|
-
case
|
|
831
|
+
case xt:
|
|
833
832
|
if (r !== void 0)
|
|
834
833
|
throw new a('unexpected "state" response parameter encountered');
|
|
835
834
|
break;
|
|
836
|
-
case
|
|
835
|
+
case Ut:
|
|
837
836
|
break;
|
|
838
837
|
default:
|
|
839
838
|
if (!w(o))
|
|
@@ -843,84 +842,20 @@ function zt(t, e, n, o) {
|
|
|
843
842
|
if (r !== o)
|
|
844
843
|
throw new a('unexpected "state" response parameter value');
|
|
845
844
|
}
|
|
846
|
-
const i =
|
|
845
|
+
const i = T(n, "error");
|
|
847
846
|
if (i)
|
|
848
847
|
return {
|
|
849
848
|
error: i,
|
|
850
|
-
error_description:
|
|
851
|
-
error_uri:
|
|
849
|
+
error_description: T(n, "error_description"),
|
|
850
|
+
error_uri: T(n, "error_uri")
|
|
852
851
|
};
|
|
853
|
-
const
|
|
854
|
-
if (
|
|
852
|
+
const u = T(n, "id_token"), d = T(n, "token");
|
|
853
|
+
if (u !== void 0 || d !== void 0)
|
|
855
854
|
throw new v("implicit and hybrid flows are not supported");
|
|
856
|
-
return
|
|
857
|
-
}
|
|
858
|
-
class Jt {
|
|
859
|
-
getRoutes() {
|
|
860
|
-
return [
|
|
861
|
-
{
|
|
862
|
-
path: "/signout",
|
|
863
|
-
element: /* @__PURE__ */ L.jsx(Ie, {})
|
|
864
|
-
},
|
|
865
|
-
{
|
|
866
|
-
path: "/signin",
|
|
867
|
-
element: /* @__PURE__ */ L.jsx(je, {})
|
|
868
|
-
},
|
|
869
|
-
{
|
|
870
|
-
path: "/signup",
|
|
871
|
-
element: /* @__PURE__ */ L.jsx(Oe, {})
|
|
872
|
-
}
|
|
873
|
-
];
|
|
874
|
-
}
|
|
875
|
-
getProfileMenuItems() {
|
|
876
|
-
return [
|
|
877
|
-
{
|
|
878
|
-
label: "Logout",
|
|
879
|
-
path: "/signout",
|
|
880
|
-
category: "bottom",
|
|
881
|
-
icon: Ce
|
|
882
|
-
}
|
|
883
|
-
];
|
|
884
|
-
}
|
|
885
|
-
}
|
|
886
|
-
function Dt(t, e, n = "/") {
|
|
887
|
-
return t.startsWith(e) ? n !== "/" && t.startsWith(e + n) ? t.slice(e.length + n.length) : t.slice(e.length) : t;
|
|
888
|
-
}
|
|
889
|
-
function Nt({
|
|
890
|
-
handleCallback: t
|
|
891
|
-
}) {
|
|
892
|
-
const { options: e } = Je(), n = xe({
|
|
893
|
-
retry: !1,
|
|
894
|
-
queryKey: ["oauth-callback"],
|
|
895
|
-
queryFn: async () => {
|
|
896
|
-
try {
|
|
897
|
-
return fe(
|
|
898
|
-
Dt(
|
|
899
|
-
await t(),
|
|
900
|
-
window.location.origin,
|
|
901
|
-
e.basePath
|
|
902
|
-
)
|
|
903
|
-
);
|
|
904
|
-
} catch (o) {
|
|
905
|
-
throw new Le("Could not validate user", {
|
|
906
|
-
cause: o,
|
|
907
|
-
title: "Authentication Error",
|
|
908
|
-
developerHint: "Check the configuration of your authorization provider and ensure all settings such as the callback URL are configured correctly."
|
|
909
|
-
});
|
|
910
|
-
}
|
|
911
|
-
}
|
|
912
|
-
});
|
|
913
|
-
return /* @__PURE__ */ L.jsx(ze, { to: n.data });
|
|
914
|
-
}
|
|
915
|
-
class k extends Error {
|
|
916
|
-
}
|
|
917
|
-
class de extends k {
|
|
918
|
-
constructor(e, n, o) {
|
|
919
|
-
super(e, o), this.error = n;
|
|
920
|
-
}
|
|
855
|
+
return _t(new URLSearchParams(n));
|
|
921
856
|
}
|
|
922
|
-
const F = "code-verifier", M = "oauth-state",
|
|
923
|
-
class
|
|
857
|
+
const F = "code-verifier", M = "oauth-state", pe = "/oauth/callback";
|
|
858
|
+
class It extends Ie {
|
|
924
859
|
client;
|
|
925
860
|
issuer;
|
|
926
861
|
authorizationServer;
|
|
@@ -938,18 +873,18 @@ class Wt extends Jt {
|
|
|
938
873
|
redirectToAfterSignUp: s,
|
|
939
874
|
redirectToAfterSignIn: r,
|
|
940
875
|
redirectToAfterSignOut: i = "/",
|
|
941
|
-
basePath:
|
|
942
|
-
scopes:
|
|
876
|
+
basePath: u,
|
|
877
|
+
scopes: d
|
|
943
878
|
}) {
|
|
944
879
|
super(), this.client = {
|
|
945
880
|
client_id: o,
|
|
946
881
|
token_endpoint_auth_method: "none"
|
|
947
|
-
}, this.audience = n, this.issuer = e, this.callbackUrlPath =
|
|
882
|
+
}, this.audience = n, this.issuer = e, this.callbackUrlPath = Ce(u, pe), this.scopes = d ?? ["openid", "profile", "email"], this.redirectToAfterSignUp = s, this.redirectToAfterSignIn = r, this.redirectToAfterSignOut = i;
|
|
948
883
|
}
|
|
949
884
|
async getAuthServer() {
|
|
950
885
|
if (!this.authorizationServer) {
|
|
951
|
-
const e = new URL(this.issuer), n = await
|
|
952
|
-
this.authorizationServer = await
|
|
886
|
+
const e = new URL(this.issuer), n = await Qe(e);
|
|
887
|
+
this.authorizationServer = await Xe(
|
|
953
888
|
e,
|
|
954
889
|
n
|
|
955
890
|
);
|
|
@@ -962,9 +897,9 @@ class Wt extends Jt {
|
|
|
962
897
|
*/
|
|
963
898
|
setTokensFromResponse(e) {
|
|
964
899
|
if (q(e))
|
|
965
|
-
throw
|
|
900
|
+
throw ie.error("Bad Token Response", e), new re("Bad Token Response", e);
|
|
966
901
|
if (!e.expires_in)
|
|
967
|
-
throw new
|
|
902
|
+
throw new R("No expires_in in response");
|
|
968
903
|
const n = {
|
|
969
904
|
accessToken: e.access_token,
|
|
970
905
|
refreshToken: e.refresh_token,
|
|
@@ -972,69 +907,75 @@ class Wt extends Jt {
|
|
|
972
907
|
expiresOn: new Date(Date.now() + e.expires_in * 1e3),
|
|
973
908
|
tokenType: e.token_type
|
|
974
909
|
};
|
|
975
|
-
|
|
910
|
+
S.setState({
|
|
976
911
|
providerData: n
|
|
977
912
|
});
|
|
978
913
|
}
|
|
979
|
-
async signUp(
|
|
914
|
+
async signUp(e, {
|
|
915
|
+
redirectTo: n,
|
|
916
|
+
replace: o = !1
|
|
917
|
+
} = {}) {
|
|
980
918
|
return this.authorize({
|
|
981
|
-
redirectTo: this.redirectToAfterSignUp ??
|
|
919
|
+
redirectTo: this.redirectToAfterSignUp ?? n ?? "/",
|
|
920
|
+
replace: o,
|
|
982
921
|
isSignUp: !0
|
|
983
922
|
});
|
|
984
923
|
}
|
|
985
|
-
async signIn({ redirectTo:
|
|
924
|
+
async signIn(e, { redirectTo: n, replace: o = !1 }) {
|
|
986
925
|
return this.authorize({
|
|
987
|
-
redirectTo: this.redirectToAfterSignIn ??
|
|
926
|
+
redirectTo: this.redirectToAfterSignIn ?? n ?? "/",
|
|
927
|
+
replace: o
|
|
988
928
|
});
|
|
989
929
|
}
|
|
990
930
|
async authorize({
|
|
991
931
|
redirectTo: e,
|
|
992
|
-
isSignUp: n = !1
|
|
932
|
+
isSignUp: n = !1,
|
|
933
|
+
replace: o = !1
|
|
993
934
|
}) {
|
|
994
|
-
const
|
|
995
|
-
if (!
|
|
996
|
-
throw new
|
|
997
|
-
const
|
|
998
|
-
sessionStorage.setItem(F,
|
|
999
|
-
const
|
|
1000
|
-
|
|
935
|
+
const s = "S256", r = await this.getAuthServer();
|
|
936
|
+
if (!r.authorization_endpoint)
|
|
937
|
+
throw new R("No authorization endpoint");
|
|
938
|
+
const i = et(), u = await nt(i);
|
|
939
|
+
sessionStorage.setItem(F, i);
|
|
940
|
+
const d = new URL(
|
|
941
|
+
r.authorization_endpoint
|
|
1001
942
|
);
|
|
1002
943
|
sessionStorage.setItem("redirect-to", e);
|
|
1003
|
-
const
|
|
1004
|
-
|
|
944
|
+
const y = new URL(window.location.origin);
|
|
945
|
+
y.pathname = this.callbackUrlPath, y.search = "", y.hash = "", d.searchParams.set("client_id", this.client.client_id), d.searchParams.set("redirect_uri", y.toString()), d.searchParams.set("response_type", "code"), d.searchParams.set("scope", this.scopes.join(" ")), d.searchParams.set("code_challenge", u), d.searchParams.set(
|
|
1005
946
|
"code_challenge_method",
|
|
1006
|
-
|
|
1007
|
-
), this.audience &&
|
|
947
|
+
s
|
|
948
|
+
), this.audience && d.searchParams.set("audience", this.audience), this.onAuthorizationUrl?.(d, {
|
|
1008
949
|
isSignIn: !n,
|
|
1009
950
|
isSignUp: n
|
|
1010
951
|
});
|
|
1011
|
-
const
|
|
1012
|
-
sessionStorage.setItem(M,
|
|
952
|
+
const p = tt();
|
|
953
|
+
sessionStorage.setItem(M, p), d.searchParams.set("state", p), o ? location.replace(d.href) : location.href = d.href;
|
|
1013
954
|
}
|
|
1014
955
|
async getAccessToken() {
|
|
1015
|
-
const e = await this.getAuthServer(), { providerData: n } =
|
|
956
|
+
const e = await this.getAuthServer(), { providerData: n } = S.getState();
|
|
1016
957
|
if (!n)
|
|
1017
|
-
throw new
|
|
958
|
+
throw new R("User is not authenticated");
|
|
1018
959
|
const o = n;
|
|
1019
960
|
if (new Date(o.expiresOn) < /* @__PURE__ */ new Date()) {
|
|
1020
961
|
if (!o.refreshToken)
|
|
1021
|
-
return
|
|
962
|
+
return S.setState({
|
|
1022
963
|
isAuthenticated: !1,
|
|
1023
964
|
isPending: !1,
|
|
1024
965
|
profile: null,
|
|
1025
966
|
providerData: null
|
|
1026
967
|
}), "";
|
|
1027
|
-
const s = await
|
|
968
|
+
const s = await de(
|
|
1028
969
|
e,
|
|
1029
970
|
this.client,
|
|
1030
971
|
o.refreshToken
|
|
1031
|
-
), r = await
|
|
972
|
+
), r = await he(
|
|
1032
973
|
e,
|
|
1033
974
|
this.client,
|
|
1034
975
|
s
|
|
1035
976
|
);
|
|
1036
977
|
if (!r.access_token)
|
|
1037
|
-
throw new
|
|
978
|
+
throw new R("No access token in response");
|
|
1038
979
|
return this.setTokensFromResponse(r), r.access_token.toString();
|
|
1039
980
|
} else
|
|
1040
981
|
return o.accessToken;
|
|
@@ -1043,88 +984,136 @@ class Wt extends Jt {
|
|
|
1043
984
|
const n = await this.getAccessToken();
|
|
1044
985
|
return e.headers.set("Authorization", `Bearer ${n}`), e;
|
|
1045
986
|
};
|
|
1046
|
-
signOut = async () => {
|
|
1047
|
-
|
|
987
|
+
signOut = async (e) => {
|
|
988
|
+
S.setState({
|
|
1048
989
|
isAuthenticated: !1,
|
|
1049
990
|
isPending: !1,
|
|
1050
991
|
profile: void 0,
|
|
1051
992
|
providerData: void 0
|
|
1052
993
|
});
|
|
1053
|
-
const
|
|
994
|
+
const n = await this.getAuthServer(), o = new URL(
|
|
1054
995
|
window.location.origin + this.redirectToAfterSignOut
|
|
1055
996
|
);
|
|
1056
|
-
|
|
1057
|
-
let
|
|
1058
|
-
|
|
997
|
+
o.pathname = this.callbackUrlPath;
|
|
998
|
+
let s;
|
|
999
|
+
n.end_session_endpoint ? (s = new URL(n.end_session_endpoint), s.searchParams.set(
|
|
1059
1000
|
"post_logout_redirect_uri",
|
|
1060
|
-
|
|
1061
|
-
)) :
|
|
1001
|
+
o.toString()
|
|
1002
|
+
)) : s = o;
|
|
1003
|
+
};
|
|
1004
|
+
onPageLoad = async () => {
|
|
1005
|
+
const { providerData: e } = S.getState();
|
|
1006
|
+
if (!e) {
|
|
1007
|
+
S.setState({ isPending: !1 });
|
|
1008
|
+
return;
|
|
1009
|
+
}
|
|
1010
|
+
const n = e;
|
|
1011
|
+
if (new Date(n.expiresOn) < /* @__PURE__ */ new Date()) {
|
|
1012
|
+
if (!n.refreshToken) {
|
|
1013
|
+
S.setState({
|
|
1014
|
+
isAuthenticated: !1,
|
|
1015
|
+
isPending: !1,
|
|
1016
|
+
profile: null,
|
|
1017
|
+
providerData: null
|
|
1018
|
+
});
|
|
1019
|
+
return;
|
|
1020
|
+
}
|
|
1021
|
+
try {
|
|
1022
|
+
const o = await this.getAuthServer(), s = await de(
|
|
1023
|
+
o,
|
|
1024
|
+
this.client,
|
|
1025
|
+
n.refreshToken
|
|
1026
|
+
), r = await he(
|
|
1027
|
+
o,
|
|
1028
|
+
this.client,
|
|
1029
|
+
s
|
|
1030
|
+
);
|
|
1031
|
+
if (!r.access_token)
|
|
1032
|
+
throw new R("No access token in response");
|
|
1033
|
+
this.setTokensFromResponse(r);
|
|
1034
|
+
} catch {
|
|
1035
|
+
S.setState({
|
|
1036
|
+
isAuthenticated: !1,
|
|
1037
|
+
isPending: !1,
|
|
1038
|
+
profile: null,
|
|
1039
|
+
providerData: null
|
|
1040
|
+
});
|
|
1041
|
+
return;
|
|
1042
|
+
}
|
|
1043
|
+
}
|
|
1044
|
+
S.setState({ isPending: !1 });
|
|
1062
1045
|
};
|
|
1063
1046
|
handleCallback = async () => {
|
|
1064
1047
|
const e = new URL(window.location.href), n = e.searchParams.get("state"), o = sessionStorage.getItem(M);
|
|
1065
1048
|
if (sessionStorage.removeItem(M), n !== o)
|
|
1066
|
-
throw new
|
|
1049
|
+
throw new R("Invalid state parameter");
|
|
1067
1050
|
const s = sessionStorage.getItem(F);
|
|
1068
1051
|
if (sessionStorage.removeItem(F), !s)
|
|
1069
|
-
throw new
|
|
1070
|
-
const r = await this.getAuthServer(), i =
|
|
1052
|
+
throw new R("No code verifier found in state.");
|
|
1053
|
+
const r = await this.getAuthServer(), i = Ct(
|
|
1071
1054
|
r,
|
|
1072
1055
|
this.client,
|
|
1073
1056
|
e.searchParams,
|
|
1074
1057
|
n ?? void 0
|
|
1075
1058
|
);
|
|
1076
1059
|
if (q(i))
|
|
1077
|
-
throw
|
|
1060
|
+
throw ie.error("Error validating OAuth response", i), new re(
|
|
1078
1061
|
"Error validating OAuth response",
|
|
1079
1062
|
i
|
|
1080
1063
|
);
|
|
1081
|
-
const
|
|
1082
|
-
|
|
1083
|
-
const
|
|
1064
|
+
const u = new URL(e);
|
|
1065
|
+
u.pathname = this.callbackUrlPath, u.search = "", u.hash = "";
|
|
1066
|
+
const d = await bt(
|
|
1084
1067
|
r,
|
|
1085
1068
|
this.client,
|
|
1086
1069
|
i,
|
|
1087
|
-
|
|
1070
|
+
u.toString(),
|
|
1088
1071
|
s
|
|
1089
|
-
), y = await
|
|
1072
|
+
), y = await At(
|
|
1090
1073
|
r,
|
|
1091
1074
|
this.client,
|
|
1092
|
-
|
|
1075
|
+
d
|
|
1093
1076
|
);
|
|
1094
1077
|
this.setTokensFromResponse(y);
|
|
1095
|
-
const p = await this.getAccessToken(),
|
|
1078
|
+
const p = await this.getAccessToken(), _ = await (await pt(
|
|
1096
1079
|
r,
|
|
1097
1080
|
this.client,
|
|
1098
1081
|
p
|
|
1099
|
-
)).json(),
|
|
1100
|
-
sub:
|
|
1101
|
-
email:
|
|
1102
|
-
name:
|
|
1103
|
-
emailVerified:
|
|
1104
|
-
pictureUrl:
|
|
1082
|
+
)).json(), f = {
|
|
1083
|
+
sub: _.sub,
|
|
1084
|
+
email: _.email,
|
|
1085
|
+
name: _.name,
|
|
1086
|
+
emailVerified: _.email_verified ?? !1,
|
|
1087
|
+
pictureUrl: _.picture
|
|
1105
1088
|
};
|
|
1106
|
-
|
|
1089
|
+
S.setState({
|
|
1107
1090
|
isAuthenticated: !0,
|
|
1108
1091
|
isPending: !1,
|
|
1109
|
-
profile:
|
|
1092
|
+
profile: f
|
|
1110
1093
|
});
|
|
1111
|
-
const
|
|
1112
|
-
return sessionStorage.removeItem("redirect-to"),
|
|
1094
|
+
const P = sessionStorage.getItem("redirect-to") ?? "/";
|
|
1095
|
+
return sessionStorage.removeItem("redirect-to"), P;
|
|
1113
1096
|
};
|
|
1114
1097
|
getRoutes() {
|
|
1115
1098
|
return [
|
|
1116
1099
|
...super.getRoutes(),
|
|
1117
1100
|
{
|
|
1118
|
-
path:
|
|
1119
|
-
element: /* @__PURE__ */
|
|
1101
|
+
path: pe,
|
|
1102
|
+
element: /* @__PURE__ */ D.jsx(xe, { children: /* @__PURE__ */ D.jsx(
|
|
1103
|
+
Ue,
|
|
1104
|
+
{
|
|
1105
|
+
fallbackRender: ({ error: e }) => /* @__PURE__ */ D.jsx(Oe, { error: e }),
|
|
1106
|
+
children: /* @__PURE__ */ D.jsx(je, { handleCallback: this.handleCallback })
|
|
1107
|
+
}
|
|
1108
|
+
) })
|
|
1120
1109
|
}
|
|
1121
1110
|
];
|
|
1122
1111
|
}
|
|
1123
1112
|
}
|
|
1124
|
-
const
|
|
1113
|
+
const Kt = (t) => new It(t);
|
|
1125
1114
|
export {
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1115
|
+
pe as OPENID_CALLBACK_PATH,
|
|
1116
|
+
It as OpenIDAuthenticationProvider,
|
|
1117
|
+
Kt as default
|
|
1129
1118
|
};
|
|
1130
1119
|
//# sourceMappingURL=zudoku.auth-openid.js.map
|