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