zudoku 0.0.0-e09234c → 0.0.0-e097cbb
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 +121 -0
- package/cli.js +3 -0
- package/dist/app/ZuploBuildConfig.d.ts +155 -0
- package/dist/app/ZuploBuildConfig.js +29 -0
- package/dist/app/ZuploBuildConfig.js.map +1 -0
- package/dist/app/demo.js +1 -4
- package/dist/app/demo.js.map +1 -1
- package/dist/app/entry.client.d.ts +6 -0
- package/dist/app/entry.client.js +17 -1
- package/dist/app/entry.client.js.map +1 -1
- package/dist/app/entry.server.d.ts +9 -6
- package/dist/app/entry.server.js +18 -14
- package/dist/app/entry.server.js.map +1 -1
- package/dist/app/env.d.ts +33 -0
- package/dist/app/env.js +29 -0
- package/dist/app/env.js.map +1 -0
- package/dist/app/main.d.ts +3 -3
- package/dist/app/main.js +33 -17
- package/dist/app/main.js.map +1 -1
- package/dist/app/sentry.d.ts +3 -0
- package/dist/app/sentry.js +19 -0
- package/dist/app/sentry.js.map +1 -0
- package/dist/app/standalone.js +1 -4
- package/dist/app/standalone.js.map +1 -1
- package/dist/app/tailwind.d.ts +2 -1
- package/dist/app/tailwind.js +80 -48
- package/dist/app/tailwind.js.map +1 -1
- package/dist/cli/build/handler.d.ts +1 -3
- package/dist/cli/build/handler.js +9 -1
- package/dist/cli/build/handler.js.map +1 -1
- package/dist/cli/cli.js +18 -5
- package/dist/cli/cli.js.map +1 -1
- package/dist/cli/cmds/build.d.ts +11 -3
- package/dist/cli/cmds/build.js +21 -13
- package/dist/cli/cmds/build.js.map +1 -1
- package/dist/cli/cmds/dev.d.ts +1 -1
- package/dist/cli/cmds/dev.js +5 -0
- package/dist/cli/cmds/dev.js.map +1 -1
- package/dist/cli/cmds/preview.d.ts +16 -0
- package/dist/cli/cmds/preview.js +25 -0
- package/dist/cli/cmds/preview.js.map +1 -0
- package/dist/cli/common/logger.js +9 -0
- package/dist/cli/common/logger.js.map +1 -1
- package/dist/cli/common/machine-id/lib.js +1 -0
- 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.map +1 -1
- package/dist/cli/common/utils/ports.d.ts +1 -1
- package/dist/cli/common/utils/ports.js +16 -15
- package/dist/cli/common/utils/ports.js.map +1 -1
- package/dist/cli/dev/handler.d.ts +1 -0
- package/dist/cli/dev/handler.js +15 -12
- package/dist/cli/dev/handler.js.map +1 -1
- package/dist/cli/preview/handler.d.ts +3 -0
- package/dist/cli/preview/handler.js +35 -0
- package/dist/cli/preview/handler.js.map +1 -0
- package/dist/codegen.d.ts +3 -0
- package/dist/codegen.js +45 -0
- package/dist/codegen.js.map +1 -0
- package/dist/config/common.d.ts +10 -0
- package/dist/config/common.js +2 -0
- package/dist/config/common.js.map +1 -0
- package/dist/config/config.d.ts +20 -16
- package/dist/config/loader.d.ts +6 -0
- package/dist/config/loader.js +65 -0
- package/dist/config/loader.js.map +1 -0
- package/dist/config/validators/BuildSchema.d.ts +60 -0
- package/dist/config/validators/BuildSchema.js +31 -0
- package/dist/config/validators/BuildSchema.js.map +1 -0
- package/dist/config/validators/InputSidebarSchema.d.ts +50 -34
- package/dist/config/validators/InputSidebarSchema.js +11 -1
- package/dist/config/validators/InputSidebarSchema.js.map +1 -1
- package/dist/config/validators/SidebarSchema.d.ts +24 -1
- package/dist/config/validators/SidebarSchema.js +73 -32
- package/dist/config/validators/SidebarSchema.js.map +1 -1
- package/dist/config/validators/common.d.ts +7676 -0
- package/dist/config/validators/common.js +402 -0
- package/dist/config/validators/common.js.map +1 -0
- package/dist/config/validators/icon-types.d.ts +1 -0
- package/dist/config/validators/icon-types.js +2 -0
- package/dist/config/validators/icon-types.js.map +1 -0
- package/dist/config/validators/validate.d.ts +1869 -540
- package/dist/config/validators/validate.js +9 -213
- package/dist/config/validators/validate.js.map +1 -1
- package/dist/index.d.ts +4 -3
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/dist/lib/MissingIcon.d.ts +2 -0
- package/dist/lib/MissingIcon.js +7 -0
- package/dist/lib/MissingIcon.js.map +1 -0
- package/dist/lib/authentication/AuthenticationPlugin.d.ts +4 -2
- package/dist/lib/authentication/AuthenticationPlugin.js +3 -0
- package/dist/lib/authentication/AuthenticationPlugin.js.map +1 -1
- package/dist/lib/authentication/authentication.d.ts +4 -3
- package/dist/lib/authentication/components/CallbackHandler.js +21 -31
- package/dist/lib/authentication/components/CallbackHandler.js.map +1 -1
- package/dist/lib/authentication/components/SignIn.d.ts +1 -1
- package/dist/lib/authentication/components/SignIn.js +5 -2
- package/dist/lib/authentication/components/SignIn.js.map +1 -1
- package/dist/lib/authentication/components/SignOut.js +2 -2
- package/dist/lib/authentication/components/SignOut.js.map +1 -1
- package/dist/lib/authentication/components/SignUp.d.ts +1 -1
- package/dist/lib/authentication/components/SignUp.js +4 -1
- package/dist/lib/authentication/components/SignUp.js.map +1 -1
- package/dist/lib/authentication/hook.d.ts +6 -4
- package/dist/lib/authentication/hook.js +12 -4
- package/dist/lib/authentication/hook.js.map +1 -1
- package/dist/lib/authentication/providers/auth0.d.ts +2 -2
- package/dist/lib/authentication/providers/auth0.js +14 -12
- package/dist/lib/authentication/providers/auth0.js.map +1 -1
- package/dist/lib/authentication/providers/clerk.d.ts +2 -2
- package/dist/lib/authentication/providers/clerk.js +54 -12
- package/dist/lib/authentication/providers/clerk.js.map +1 -1
- package/dist/lib/authentication/providers/openid.d.ts +15 -5
- package/dist/lib/authentication/providers/openid.js +62 -46
- package/dist/lib/authentication/providers/openid.js.map +1 -1
- package/dist/lib/authentication/providers/supabase.d.ts +4 -0
- package/dist/lib/authentication/providers/supabase.js +117 -0
- package/dist/lib/authentication/providers/supabase.js.map +1 -0
- package/dist/lib/authentication/state.d.ts +23 -19
- package/dist/lib/authentication/state.js +34 -7
- package/dist/lib/authentication/state.js.map +1 -1
- package/dist/lib/authentication/use-broadcast/shared.d.ts +48 -0
- package/dist/lib/authentication/use-broadcast/shared.js +243 -0
- package/dist/lib/authentication/use-broadcast/shared.js.map +1 -0
- package/dist/lib/authentication/use-broadcast/useBroadcast.d.ts +24 -0
- package/dist/lib/authentication/use-broadcast/useBroadcast.js +106 -0
- package/dist/lib/authentication/use-broadcast/useBroadcast.js.map +1 -0
- package/dist/lib/components/AnchorLink.d.ts +2 -2
- package/dist/lib/components/AnchorLink.js +9 -5
- package/dist/lib/components/AnchorLink.js.map +1 -1
- package/dist/lib/components/Autocomplete.d.ts +13 -0
- package/dist/lib/components/Autocomplete.js +47 -0
- package/dist/lib/components/Autocomplete.js.map +1 -0
- package/dist/lib/components/Banner.js +1 -1
- package/dist/lib/components/Banner.js.map +1 -1
- package/dist/lib/components/Bootstrap.d.ts +5 -3
- package/dist/lib/components/Bootstrap.js +13 -6
- package/dist/lib/components/Bootstrap.js.map +1 -1
- package/dist/lib/components/BuildCheck.d.ts +4 -0
- package/dist/lib/components/BuildCheck.js +38 -0
- package/dist/lib/components/BuildCheck.js.map +1 -0
- package/dist/lib/components/ClientOnly.d.ts +4 -2
- package/dist/lib/components/ClientOnly.js +1 -1
- package/dist/lib/components/ClientOnly.js.map +1 -1
- package/dist/lib/components/DeveloperHint.js +2 -1
- package/dist/lib/components/DeveloperHint.js.map +1 -1
- package/dist/lib/components/Footer.d.ts +1 -0
- package/dist/lib/components/Footer.js +32 -0
- package/dist/lib/components/Footer.js.map +1 -0
- package/dist/lib/components/Header.js +22 -15
- package/dist/lib/components/Header.js.map +1 -1
- package/dist/lib/components/Heading.d.ts +4 -4
- package/dist/lib/components/Heading.js +1 -1
- package/dist/lib/components/Heading.js.map +1 -1
- package/dist/lib/components/InlineCode.d.ts +2 -1
- package/dist/lib/components/InlineCode.js +2 -9
- package/dist/lib/components/InlineCode.js.map +1 -1
- package/dist/lib/components/Layout.js +9 -20
- package/dist/lib/components/Layout.js.map +1 -1
- package/dist/lib/components/Main.d.ts +2 -0
- package/dist/lib/components/Main.js +17 -0
- package/dist/lib/components/Main.js.map +1 -0
- package/dist/lib/components/Markdown.d.ts +2 -2
- package/dist/lib/components/Markdown.js +4 -2
- package/dist/lib/components/Markdown.js.map +1 -1
- package/dist/lib/components/MobileTopNavigation.js +12 -7
- package/dist/lib/components/MobileTopNavigation.js.map +1 -1
- package/dist/lib/components/NotFoundPage.js +1 -1
- package/dist/lib/components/NotFoundPage.js.map +1 -1
- package/dist/lib/components/Pagination.d.ts +11 -0
- package/dist/lib/components/Pagination.js +10 -0
- package/dist/lib/components/Pagination.js.map +1 -0
- package/dist/lib/components/PathRenderer.d.ts +11 -0
- package/dist/lib/components/PathRenderer.js +28 -0
- package/dist/lib/components/PathRenderer.js.map +1 -0
- package/dist/lib/components/ReactMarkdown.d.ts +29 -0
- package/dist/lib/components/ReactMarkdown.js +182 -0
- package/dist/lib/components/ReactMarkdown.js.map +1 -0
- package/dist/lib/components/Search.d.ts +3 -1
- package/dist/lib/components/Search.js +9 -3
- package/dist/lib/components/Search.js.map +1 -1
- package/dist/lib/components/SlotletProvider.d.ts +3 -2
- package/dist/lib/components/SlotletProvider.js.map +1 -1
- package/dist/lib/components/StatusPage.d.ts +7 -0
- package/dist/lib/components/StatusPage.js +71 -0
- package/dist/lib/components/StatusPage.js.map +1 -0
- package/dist/lib/components/ThemeSwitch.d.ts +1 -0
- package/dist/lib/components/ThemeSwitch.js +16 -0
- package/dist/lib/components/ThemeSwitch.js.map +1 -0
- package/dist/lib/components/TopNavigation.d.ts +6 -0
- package/dist/lib/components/TopNavigation.js +45 -17
- package/dist/lib/components/TopNavigation.js.map +1 -1
- package/dist/lib/components/{DevPortal.d.ts → Zudoku.d.ts} +3 -3
- package/dist/lib/components/{DevPortal.js → Zudoku.js} +22 -18
- package/dist/lib/components/Zudoku.js.map +1 -0
- package/dist/lib/components/cache.d.ts +13 -0
- package/dist/lib/components/cache.js +20 -0
- package/dist/lib/components/cache.js.map +1 -0
- package/dist/lib/components/context/BypassProtectedRoutesContext.d.ts +1 -0
- package/dist/lib/components/context/BypassProtectedRoutesContext.js +3 -0
- package/dist/lib/components/context/BypassProtectedRoutesContext.js.map +1 -0
- package/dist/lib/components/context/RouterEventsEmitter.d.ts +1 -0
- package/dist/lib/components/context/RouterEventsEmitter.js +17 -0
- package/dist/lib/components/context/RouterEventsEmitter.js.map +1 -0
- package/dist/lib/components/context/ViewportAnchorContext.d.ts +2 -4
- package/dist/lib/components/context/ViewportAnchorContext.js +29 -23
- package/dist/lib/components/context/ViewportAnchorContext.js.map +1 -1
- package/dist/lib/components/context/ZudokuContext.d.ts +8 -7
- package/dist/lib/components/context/ZudokuContext.js +28 -20
- package/dist/lib/components/context/ZudokuContext.js.map +1 -1
- package/dist/lib/components/context/ZudokuProvider.d.ts +2 -2
- package/dist/lib/components/context/ZudokuProvider.js.map +1 -1
- package/dist/lib/components/index.d.ts +58 -17
- package/dist/lib/components/index.js +27 -6
- package/dist/lib/components/index.js.map +1 -1
- package/dist/lib/components/navigation/PoweredByZudoku.d.ts +3 -0
- package/dist/lib/components/navigation/PoweredByZudoku.js +7 -0
- package/dist/lib/components/navigation/PoweredByZudoku.js.map +1 -0
- package/dist/lib/components/navigation/Sidebar.d.ts +5 -1
- package/dist/lib/components/navigation/Sidebar.js +3 -7
- package/dist/lib/components/navigation/Sidebar.js.map +1 -1
- package/dist/lib/components/navigation/SidebarBadge.d.ts +6 -3
- package/dist/lib/components/navigation/SidebarBadge.js +13 -11
- package/dist/lib/components/navigation/SidebarBadge.js.map +1 -1
- package/dist/lib/components/navigation/SidebarCategory.d.ts +3 -3
- package/dist/lib/components/navigation/SidebarCategory.js +26 -21
- package/dist/lib/components/navigation/SidebarCategory.js.map +1 -1
- package/dist/lib/components/navigation/SidebarItem.d.ts +3 -4
- package/dist/lib/components/navigation/SidebarItem.js +19 -17
- package/dist/lib/components/navigation/SidebarItem.js.map +1 -1
- package/dist/lib/components/navigation/SidebarWrapper.d.ts +7 -6
- package/dist/lib/components/navigation/SidebarWrapper.js +18 -3
- package/dist/lib/components/navigation/SidebarWrapper.js.map +1 -1
- package/dist/lib/{plugins/markdown → components/navigation}/Toc.js +5 -7
- package/dist/lib/components/navigation/Toc.js.map +1 -0
- package/dist/lib/components/navigation/ZudokuLogo.d.ts +6 -0
- package/dist/lib/components/navigation/ZudokuLogo.js +5 -0
- package/dist/lib/components/navigation/ZudokuLogo.js.map +1 -0
- package/dist/lib/components/navigation/ZuploLogo.d.ts +3 -0
- package/dist/lib/components/navigation/ZuploLogo.js +4 -0
- package/dist/lib/components/navigation/ZuploLogo.js.map +1 -0
- package/dist/lib/components/navigation/utils.js +3 -3
- package/dist/lib/components/navigation/utils.js.map +1 -1
- package/dist/lib/core/RouteGuard.d.ts +2 -0
- package/dist/lib/core/RouteGuard.js +52 -0
- package/dist/lib/core/RouteGuard.js.map +1 -0
- package/dist/lib/core/{DevPortalContext.d.ts → ZudokuContext.d.ts} +39 -15
- package/dist/lib/core/ZudokuContext.js +69 -0
- package/dist/lib/core/ZudokuContext.js.map +1 -0
- package/dist/lib/core/plugins.d.ts +31 -17
- package/dist/lib/core/plugins.js +3 -0
- package/dist/lib/core/plugins.js.map +1 -1
- package/dist/lib/errors/ErrorAlert.d.ts +1 -1
- package/dist/lib/errors/ErrorAlert.js +13 -3
- package/dist/lib/errors/ErrorAlert.js.map +1 -1
- package/dist/lib/errors/RouterError.js +1 -1
- package/dist/lib/errors/RouterError.js.map +1 -1
- package/dist/lib/hooks/index.d.ts +3 -0
- package/dist/lib/hooks/index.js +5 -0
- package/dist/lib/hooks/index.js.map +1 -0
- package/dist/lib/hooks/useEvent.d.ts +11 -0
- package/dist/lib/hooks/useEvent.js +19 -0
- package/dist/lib/hooks/useEvent.js.map +1 -0
- package/dist/lib/hooks/useEvent.test.js +100 -0
- package/dist/lib/hooks/useEvent.test.js.map +1 -0
- package/dist/lib/icons.d.ts +1 -0
- package/dist/lib/icons.js +1 -0
- package/dist/lib/icons.js.map +1 -1
- package/dist/lib/oas/graphql/circular.d.ts +3 -0
- package/dist/lib/oas/graphql/circular.js +38 -0
- package/dist/lib/oas/graphql/circular.js.map +1 -0
- package/dist/lib/oas/graphql/index.d.ts +25 -1
- package/dist/lib/oas/graphql/index.js +216 -69
- package/dist/lib/oas/graphql/index.js.map +1 -1
- package/dist/lib/oas/parser/dereference/index.js +8 -3
- package/dist/lib/oas/parser/dereference/index.js.map +1 -1
- package/dist/lib/oas/parser/index.d.ts +5 -3
- package/dist/lib/oas/parser/index.js +2 -23
- package/dist/lib/oas/parser/index.js.map +1 -1
- package/dist/lib/oas/parser/upgrade/index.d.ts +2 -2
- package/dist/lib/oas/parser/upgrade/index.js +22 -22
- package/dist/lib/oas/parser/upgrade/index.js.map +1 -1
- package/dist/lib/plugins/api-catalog/Catalog.d.ts +4 -0
- package/dist/lib/plugins/api-catalog/Catalog.js +26 -0
- package/dist/lib/plugins/api-catalog/Catalog.js.map +1 -0
- package/dist/lib/plugins/api-catalog/index.d.ts +31 -0
- package/dist/lib/plugins/api-catalog/index.js +46 -0
- package/dist/lib/plugins/api-catalog/index.js.map +1 -0
- package/dist/lib/plugins/api-keys/CreateApiKey.js +9 -5
- package/dist/lib/plugins/api-keys/CreateApiKey.js.map +1 -1
- package/dist/lib/plugins/api-keys/ProtectedRoute.js +1 -1
- package/dist/lib/plugins/api-keys/ProtectedRoute.js.map +1 -1
- package/dist/lib/plugins/api-keys/SettingsApiKeys.js +1 -1
- package/dist/lib/plugins/api-keys/SettingsApiKeys.js.map +1 -1
- package/dist/lib/plugins/api-keys/index.d.ts +10 -9
- package/dist/lib/plugins/api-keys/index.js +4 -0
- package/dist/lib/plugins/api-keys/index.js.map +1 -1
- package/dist/lib/plugins/custom-pages/CustomPage.js +2 -2
- package/dist/lib/plugins/custom-pages/index.d.ts +2 -2
- package/dist/lib/plugins/custom-pages/index.js.map +1 -1
- package/dist/lib/plugins/markdown/MdxPage.d.ts +10 -2
- package/dist/lib/plugins/markdown/MdxPage.js +17 -4
- package/dist/lib/plugins/markdown/MdxPage.js.map +1 -1
- package/dist/lib/plugins/markdown/index.d.ts +5 -3
- package/dist/lib/plugins/markdown/index.js +1 -1
- package/dist/lib/plugins/markdown/index.js.map +1 -1
- package/dist/lib/plugins/markdown/resolver.d.ts +0 -6
- package/dist/lib/plugins/markdown/resolver.js +0 -29
- package/dist/lib/plugins/markdown/resolver.js.map +1 -1
- package/dist/lib/plugins/openapi/CollapsibleCode.d.ts +5 -0
- package/dist/lib/plugins/openapi/CollapsibleCode.js +25 -0
- package/dist/lib/plugins/openapi/CollapsibleCode.js.map +1 -0
- package/dist/lib/plugins/openapi/ColorizedParam.d.ts +10 -2
- package/dist/lib/plugins/openapi/ColorizedParam.js +29 -14
- package/dist/lib/plugins/openapi/ColorizedParam.js.map +1 -1
- package/dist/lib/plugins/openapi/Endpoint.js +13 -16
- package/dist/lib/plugins/openapi/Endpoint.js.map +1 -1
- package/dist/lib/plugins/openapi/OasProvider.d.ts +8 -0
- package/dist/lib/plugins/openapi/OasProvider.js +29 -0
- package/dist/lib/plugins/openapi/OasProvider.js.map +1 -0
- package/dist/lib/plugins/openapi/OperationList.d.ts +6 -3
- package/dist/lib/plugins/openapi/OperationList.js +107 -27
- package/dist/lib/plugins/openapi/OperationList.js.map +1 -1
- package/dist/lib/plugins/openapi/OperationListItem.d.ts +5 -3
- package/dist/lib/plugins/openapi/OperationListItem.js +10 -5
- package/dist/lib/plugins/openapi/OperationListItem.js.map +1 -1
- package/dist/lib/plugins/openapi/ParamInfos.d.ts +6 -0
- package/dist/lib/plugins/openapi/ParamInfos.js +43 -0
- package/dist/lib/plugins/openapi/ParamInfos.js.map +1 -0
- package/dist/lib/plugins/openapi/ParameterList.d.ts +2 -1
- package/dist/lib/plugins/openapi/ParameterList.js +3 -2
- package/dist/lib/plugins/openapi/ParameterList.js.map +1 -1
- package/dist/lib/plugins/openapi/ParameterListItem.js +19 -1
- package/dist/lib/plugins/openapi/ParameterListItem.js.map +1 -1
- package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.d.ts +4 -2
- package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.js +12 -3
- package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.js.map +1 -1
- package/dist/lib/plugins/openapi/RequestBodySidecarBox.d.ts +3 -4
- package/dist/lib/plugins/openapi/RequestBodySidecarBox.js +5 -9
- package/dist/lib/plugins/openapi/RequestBodySidecarBox.js.map +1 -1
- package/dist/lib/plugins/openapi/ResponsesSidecarBox.js +7 -6
- package/dist/lib/plugins/openapi/ResponsesSidecarBox.js.map +1 -1
- package/dist/lib/plugins/openapi/SchemaList.d.ts +1 -0
- package/dist/lib/plugins/openapi/SchemaList.js +52 -0
- package/dist/lib/plugins/openapi/SchemaList.js.map +1 -0
- package/dist/lib/plugins/openapi/Sidecar.d.ts +1 -1
- package/dist/lib/plugins/openapi/Sidecar.js +83 -64
- package/dist/lib/plugins/openapi/Sidecar.js.map +1 -1
- package/dist/lib/plugins/openapi/SidecarBox.js +4 -4
- package/dist/lib/plugins/openapi/SidecarBox.js.map +1 -1
- package/dist/lib/plugins/openapi/SidecarExamples.d.ts +9 -0
- package/dist/lib/plugins/openapi/SidecarExamples.js +68 -0
- package/dist/lib/plugins/openapi/SidecarExamples.js.map +1 -0
- package/dist/lib/plugins/openapi/SimpleSelect.js +1 -1
- package/dist/lib/plugins/openapi/SimpleSelect.js.map +1 -1
- package/dist/lib/plugins/openapi/client/GraphQLClient.d.ts +8 -0
- package/dist/lib/plugins/openapi/client/GraphQLClient.js +43 -0
- package/dist/lib/plugins/openapi/client/GraphQLClient.js.map +1 -0
- package/dist/lib/plugins/openapi/client/GraphQLContext.d.ts +7 -0
- package/dist/lib/plugins/openapi/client/GraphQLContext.js +5 -0
- package/dist/lib/plugins/openapi/client/GraphQLContext.js.map +1 -0
- package/dist/lib/plugins/openapi/client/createServer.d.ts +3 -1
- package/dist/lib/plugins/openapi/client/createServer.js +5 -2
- package/dist/lib/plugins/openapi/client/createServer.js.map +1 -1
- package/dist/lib/plugins/openapi/client/useCreateQuery.d.ts +9 -0
- package/dist/lib/plugins/openapi/client/useCreateQuery.js +14 -0
- package/dist/lib/plugins/openapi/client/useCreateQuery.js.map +1 -0
- package/dist/lib/plugins/openapi/components/ConstValue.d.ts +5 -0
- package/dist/lib/plugins/openapi/components/ConstValue.js +6 -0
- package/dist/lib/plugins/openapi/components/ConstValue.js.map +1 -0
- package/dist/lib/plugins/openapi/components/EnumValues.d.ts +5 -0
- package/dist/lib/plugins/openapi/components/EnumValues.js +15 -0
- package/dist/lib/plugins/openapi/components/EnumValues.js.map +1 -0
- package/dist/lib/plugins/openapi/components/SelectOnClick.d.ts +5 -0
- package/dist/lib/plugins/openapi/components/SelectOnClick.js +16 -0
- package/dist/lib/plugins/openapi/components/SelectOnClick.js.map +1 -0
- package/dist/lib/plugins/openapi/context.d.ts +3 -3
- package/dist/lib/plugins/openapi/graphql/fragment-masking.d.ts +3 -3
- package/dist/lib/plugins/openapi/graphql/fragment-masking.js +3 -4
- package/dist/lib/plugins/openapi/graphql/fragment-masking.js.map +1 -1
- package/dist/lib/plugins/openapi/graphql/gql.d.ts +8 -46
- package/dist/lib/plugins/openapi/graphql/gql.js +6 -13
- package/dist/lib/plugins/openapi/graphql/gql.js.map +1 -1
- package/dist/lib/plugins/openapi/graphql/graphql.d.ts +141 -25
- package/dist/lib/plugins/openapi/graphql/graphql.js +238 -662
- package/dist/lib/plugins/openapi/graphql/graphql.js.map +1 -1
- package/dist/lib/plugins/openapi/index.d.ts +11 -7
- package/dist/lib/plugins/openapi/index.js +72 -104
- package/dist/lib/plugins/openapi/index.js.map +1 -1
- package/dist/lib/plugins/openapi/interfaces.d.ts +56 -3
- package/dist/lib/plugins/openapi/playground/ExamplesDropdown.d.ts +6 -0
- package/dist/lib/plugins/openapi/playground/ExamplesDropdown.js +8 -0
- package/dist/lib/plugins/openapi/playground/ExamplesDropdown.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/Headers.d.ts +4 -4
- package/dist/lib/plugins/openapi/playground/Headers.js +84 -5
- package/dist/lib/plugins/openapi/playground/Headers.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/IdentityDialog.d.ts +11 -0
- package/dist/lib/plugins/openapi/playground/IdentityDialog.js +14 -0
- package/dist/lib/plugins/openapi/playground/IdentityDialog.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/IdentitySelector.d.ts +7 -0
- package/dist/lib/plugins/openapi/playground/IdentitySelector.js +10 -0
- package/dist/lib/plugins/openapi/playground/IdentitySelector.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/ParamsGrid.d.ts +9 -0
- package/dist/lib/plugins/openapi/playground/ParamsGrid.js +5 -0
- package/dist/lib/plugins/openapi/playground/ParamsGrid.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/PathParams.d.ts +3 -2
- package/dist/lib/plugins/openapi/playground/PathParams.js +5 -7
- package/dist/lib/plugins/openapi/playground/PathParams.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/Playground.d.ts +37 -2
- package/dist/lib/plugins/openapi/playground/Playground.js +133 -70
- package/dist/lib/plugins/openapi/playground/Playground.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js +2 -2
- package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/QueryParams.js +24 -18
- package/dist/lib/plugins/openapi/playground/QueryParams.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/RequestLoginDialog.d.ts +7 -0
- package/dist/lib/plugins/openapi/playground/RequestLoginDialog.js +8 -0
- package/dist/lib/plugins/openapi/playground/RequestLoginDialog.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/SubmitButton.d.ts +7 -0
- package/dist/lib/plugins/openapi/playground/SubmitButton.js +22 -0
- package/dist/lib/plugins/openapi/playground/SubmitButton.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/rememberedIdentity.d.ts +17 -0
- package/dist/lib/plugins/openapi/playground/rememberedIdentity.js +11 -0
- package/dist/lib/plugins/openapi/playground/rememberedIdentity.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/result-panel/RequestTab.d.ts +7 -0
- package/dist/lib/plugins/openapi/playground/result-panel/RequestTab.js +11 -0
- package/dist/lib/plugins/openapi/playground/result-panel/RequestTab.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.d.ts +8 -0
- package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.js +101 -0
- package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.d.ts +9 -0
- package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.js +17 -0
- package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.d.ts +10 -0
- package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.js +32 -0
- package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.test.js +56 -0
- package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.test.js.map +1 -0
- package/dist/lib/plugins/openapi/processors/removeExtensions.d.ts +8 -0
- package/dist/lib/plugins/openapi/processors/removeExtensions.js +16 -0
- package/dist/lib/plugins/openapi/processors/removeExtensions.js.map +1 -0
- package/dist/lib/plugins/openapi/processors/removeExtensions.test.d.ts +1 -0
- package/dist/lib/plugins/openapi/processors/removeExtensions.test.js +194 -0
- package/dist/lib/plugins/openapi/processors/removeExtensions.test.js.map +1 -0
- package/dist/lib/plugins/openapi/processors/removeParameters.d.ts +12 -0
- package/dist/lib/plugins/openapi/processors/removeParameters.js +66 -0
- package/dist/lib/plugins/openapi/processors/removeParameters.js.map +1 -0
- package/dist/lib/plugins/openapi/processors/removeParameters.test.d.ts +1 -0
- package/dist/lib/plugins/openapi/processors/removeParameters.test.js +159 -0
- package/dist/lib/plugins/openapi/processors/removeParameters.test.js.map +1 -0
- package/dist/lib/plugins/openapi/processors/removePaths.d.ts +13 -0
- package/dist/lib/plugins/openapi/processors/removePaths.js +33 -0
- package/dist/lib/plugins/openapi/processors/removePaths.js.map +1 -0
- package/dist/lib/plugins/openapi/processors/removePaths.test.d.ts +1 -0
- package/dist/lib/plugins/openapi/processors/removePaths.test.js +144 -0
- package/dist/lib/plugins/openapi/processors/removePaths.test.js.map +1 -0
- package/dist/lib/plugins/openapi/processors/traverse.d.ts +1 -0
- package/dist/lib/plugins/openapi/processors/traverse.js +2 -0
- package/dist/lib/plugins/openapi/processors/traverse.js.map +1 -0
- package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.d.ts +1 -2
- package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.js +2 -2
- package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.js.map +1 -1
- package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupConnector.d.ts +2 -1
- package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupConnector.js +2 -2
- package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupConnector.js.map +1 -1
- package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupItem.d.ts +0 -1
- package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupItem.js +1 -1
- package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupItem.js.map +1 -1
- package/dist/lib/plugins/openapi/schema/SchemaExampleAndDefault.d.ts +4 -0
- package/dist/lib/plugins/openapi/schema/SchemaExampleAndDefault.js +12 -0
- package/dist/lib/plugins/openapi/schema/SchemaExampleAndDefault.js.map +1 -0
- package/dist/lib/plugins/openapi/schema/{SchemaComponents.d.ts → SchemaPropertyItem.d.ts} +2 -4
- package/dist/lib/plugins/openapi/schema/SchemaPropertyItem.js +45 -0
- package/dist/lib/plugins/openapi/schema/SchemaPropertyItem.js.map +1 -0
- package/dist/lib/plugins/openapi/schema/SchemaView.d.ts +1 -2
- package/dist/lib/plugins/openapi/schema/SchemaView.js +38 -48
- package/dist/lib/plugins/openapi/schema/SchemaView.js.map +1 -1
- package/dist/lib/plugins/openapi/schema/utils.d.ts +3 -0
- package/dist/lib/plugins/openapi/schema/utils.js +8 -1
- package/dist/lib/plugins/openapi/schema/utils.js.map +1 -1
- package/dist/lib/plugins/openapi/state.d.ts +25 -0
- package/dist/lib/plugins/openapi/state.js +18 -0
- package/dist/lib/plugins/openapi/state.js.map +1 -0
- package/dist/lib/plugins/openapi/util/createSidebarCategory.d.ts +9 -0
- package/dist/lib/plugins/openapi/util/createSidebarCategory.js +23 -0
- package/dist/lib/plugins/openapi/util/createSidebarCategory.js.map +1 -0
- package/dist/lib/plugins/openapi/util/generateSchemaExample.d.ts +0 -1
- package/dist/lib/plugins/openapi/util/generateSchemaExample.js +73 -39
- package/dist/lib/plugins/openapi/util/generateSchemaExample.js.map +1 -1
- package/dist/lib/plugins/openapi/util/getRoutes.d.ts +10 -0
- package/dist/lib/plugins/openapi/util/getRoutes.js +87 -0
- package/dist/lib/plugins/openapi/util/getRoutes.js.map +1 -0
- package/dist/lib/plugins/openapi/util/methodColorMap.d.ts +2 -0
- package/dist/lib/plugins/openapi/util/methodColorMap.js +10 -0
- package/dist/lib/plugins/openapi/util/methodColorMap.js.map +1 -0
- package/dist/lib/plugins/openapi/util/methodToColor.d.ts +20 -0
- package/dist/lib/plugins/openapi/util/methodToColor.js +24 -0
- package/dist/lib/plugins/openapi/util/methodToColor.js.map +1 -0
- package/dist/lib/plugins/openapi/util/sanitizeMarkdownForMetatag.d.ts +1 -0
- package/dist/lib/plugins/openapi/util/sanitizeMarkdownForMetatag.js +27 -0
- package/dist/lib/plugins/openapi/util/sanitizeMarkdownForMetatag.js.map +1 -0
- package/dist/lib/plugins/redirect/index.d.ts +4 -7
- package/dist/lib/plugins/redirect/index.js +2 -2
- package/dist/lib/plugins/redirect/index.js.map +1 -1
- package/dist/lib/plugins/search-inkeep/index.d.ts +24 -5
- package/dist/lib/plugins/search-inkeep/index.js +41 -5
- package/dist/lib/plugins/search-inkeep/index.js.map +1 -1
- package/dist/lib/plugins/search-inkeep/inkeep.d.ts +3 -4
- package/dist/lib/plugins/search-inkeep/inkeep.js.map +1 -1
- package/dist/lib/plugins/search-pagefind/PagefindSearch.d.ts +6 -0
- package/dist/lib/plugins/search-pagefind/PagefindSearch.js +80 -0
- package/dist/lib/plugins/search-pagefind/PagefindSearch.js.map +1 -0
- package/dist/lib/plugins/search-pagefind/ResultList.d.ts +8 -0
- package/dist/lib/plugins/search-pagefind/ResultList.js +32 -0
- package/dist/lib/plugins/search-pagefind/ResultList.js.map +1 -0
- package/dist/lib/plugins/search-pagefind/get-results.d.ts +10 -0
- package/dist/lib/plugins/search-pagefind/get-results.js +42 -0
- package/dist/lib/plugins/search-pagefind/get-results.js.map +1 -0
- package/dist/lib/plugins/search-pagefind/index.d.ts +6 -0
- package/dist/lib/plugins/search-pagefind/index.js +9 -0
- package/dist/lib/plugins/search-pagefind/index.js.map +1 -0
- package/dist/lib/plugins/search-pagefind/types.d.ts +85 -0
- package/dist/lib/plugins/search-pagefind/types.js +2 -0
- package/dist/lib/plugins/search-pagefind/types.js.map +1 -0
- package/dist/lib/ui/Accordion.d.ts +7 -0
- package/dist/lib/ui/Accordion.js +14 -0
- package/dist/lib/ui/Accordion.js.map +1 -0
- package/dist/lib/ui/ActionButton.d.ts +4 -0
- package/dist/lib/ui/ActionButton.js +10 -0
- package/dist/lib/ui/ActionButton.js.map +1 -0
- package/dist/lib/ui/Alert.d.ts +8 -0
- package/dist/lib/ui/Alert.js +23 -0
- package/dist/lib/ui/Alert.js.map +1 -0
- package/dist/lib/ui/AlertDialog.d.ts +20 -0
- package/dist/lib/ui/AlertDialog.js +27 -0
- package/dist/lib/ui/AlertDialog.js.map +1 -0
- package/dist/lib/ui/AspectRatio.d.ts +3 -0
- package/dist/lib/ui/AspectRatio.js +4 -0
- package/dist/lib/ui/AspectRatio.js.map +1 -0
- package/dist/lib/ui/Badge.d.ts +9 -0
- package/dist/lib/ui/Badge.js +22 -0
- package/dist/lib/ui/Badge.js.map +1 -0
- package/dist/lib/ui/Breadcrumb.d.ts +19 -0
- package/dist/lib/ui/Breadcrumb.js +24 -0
- package/dist/lib/ui/Breadcrumb.js.map +1 -0
- package/dist/lib/ui/Button.d.ts +3 -4
- package/dist/lib/ui/Button.js +2 -1
- package/dist/lib/ui/Button.js.map +1 -1
- package/dist/lib/ui/Callout.d.ts +2 -1
- package/dist/lib/ui/Callout.js +3 -2
- package/dist/lib/ui/Callout.js.map +1 -1
- package/dist/lib/ui/Card.js +1 -1
- package/dist/lib/ui/Card.js.map +1 -1
- package/dist/lib/ui/Carousel.d.ts +18 -0
- package/dist/lib/ui/Carousel.js +99 -0
- package/dist/lib/ui/Carousel.js.map +1 -0
- package/dist/lib/ui/Checkbox.d.ts +4 -0
- package/dist/lib/ui/Checkbox.js +9 -0
- package/dist/lib/ui/Checkbox.js.map +1 -0
- package/dist/lib/ui/Collapsible.d.ts +5 -0
- package/dist/lib/ui/Collapsible.js +6 -0
- package/dist/lib/ui/Collapsible.js.map +1 -0
- package/dist/lib/ui/Command.d.ts +94 -0
- package/dist/lib/ui/Command.js +35 -0
- package/dist/lib/ui/Command.js.map +1 -0
- package/dist/lib/{components → ui}/Dialog.js +2 -2
- package/dist/lib/ui/Dialog.js.map +1 -0
- package/dist/lib/ui/Form.d.ts +23 -0
- package/dist/lib/ui/Form.js +63 -0
- package/dist/lib/ui/Form.js.map +1 -0
- package/dist/lib/ui/HoverCard.d.ts +6 -0
- package/dist/lib/ui/HoverCard.js +10 -0
- package/dist/lib/ui/HoverCard.js.map +1 -0
- package/dist/lib/ui/Input.d.ts +1 -2
- package/dist/lib/ui/Input.js.map +1 -1
- package/dist/lib/ui/Label.d.ts +5 -0
- package/dist/lib/ui/Label.js +10 -0
- package/dist/lib/ui/Label.js.map +1 -0
- package/dist/lib/ui/Pagination.d.ts +28 -0
- package/dist/lib/ui/Pagination.js +24 -0
- package/dist/lib/ui/Pagination.js.map +1 -0
- package/dist/lib/ui/Popover.d.ts +6 -0
- package/dist/lib/ui/Popover.js +10 -0
- package/dist/lib/ui/Popover.js.map +1 -0
- package/dist/lib/ui/Progress.d.ts +4 -0
- package/dist/lib/ui/Progress.js +8 -0
- package/dist/lib/ui/Progress.js.map +1 -0
- package/dist/lib/ui/RadioGroup.d.ts +5 -0
- package/dist/lib/ui/RadioGroup.js +15 -0
- package/dist/lib/ui/RadioGroup.js.map +1 -0
- package/dist/lib/ui/ScrollArea.d.ts +5 -0
- package/dist/lib/ui/ScrollArea.js +12 -0
- package/dist/lib/ui/ScrollArea.js.map +1 -0
- package/dist/lib/{components → ui}/Select.js +3 -3
- package/dist/lib/ui/Select.js.map +1 -0
- package/dist/lib/ui/Skeleton.d.ts +2 -0
- package/dist/lib/ui/Skeleton.js +7 -0
- package/dist/lib/ui/Skeleton.js.map +1 -0
- package/dist/lib/ui/Slider.d.ts +4 -0
- package/dist/lib/ui/Slider.js +8 -0
- package/dist/lib/ui/Slider.js.map +1 -0
- package/dist/lib/ui/Stepper.d.ts +3 -0
- package/dist/lib/ui/Stepper.js +7 -0
- package/dist/lib/ui/Stepper.js.map +1 -0
- package/dist/lib/ui/Switch.d.ts +4 -0
- package/dist/lib/ui/Switch.js +8 -0
- package/dist/lib/ui/Switch.js.map +1 -0
- package/dist/lib/ui/SyntaxHighlight.d.ts +15 -0
- package/dist/lib/ui/SyntaxHighlight.js +62 -0
- package/dist/lib/ui/SyntaxHighlight.js.map +1 -0
- package/dist/lib/ui/Textarea.d.ts +4 -0
- package/dist/lib/ui/Textarea.js +9 -0
- package/dist/lib/ui/Textarea.js.map +1 -0
- package/dist/lib/ui/Toggle.d.ts +12 -0
- package/dist/lib/ui/Toggle.js +26 -0
- package/dist/lib/ui/Toggle.js.map +1 -0
- package/dist/lib/ui/ToggleGroup.d.ts +12 -0
- package/dist/lib/ui/ToggleGroup.js +21 -0
- package/dist/lib/ui/ToggleGroup.js.map +1 -0
- package/dist/lib/ui/Tooltip.d.ts +7 -0
- package/dist/lib/ui/Tooltip.js +11 -0
- package/dist/lib/ui/Tooltip.js.map +1 -0
- package/dist/lib/ui/util.d.ts +2 -0
- package/dist/lib/ui/util.js +3 -0
- package/dist/lib/ui/util.js.map +1 -0
- package/dist/lib/util/MdxComponents.d.ts +24 -21
- package/dist/lib/util/MdxComponents.js +10 -7
- package/dist/lib/util/MdxComponents.js.map +1 -1
- package/dist/lib/util/createVariantComponent.d.ts +2 -2
- package/dist/lib/util/detectOS.d.ts +1 -0
- package/dist/lib/util/detectOS.js +11 -0
- package/dist/lib/util/detectOS.js.map +1 -0
- package/dist/lib/util/ensureArray.d.ts +1 -0
- package/dist/lib/util/ensureArray.js +2 -0
- package/dist/lib/util/ensureArray.js.map +1 -0
- package/dist/lib/util/invariant.d.ts +9 -0
- package/dist/lib/util/invariant.js +7 -3
- package/dist/lib/util/invariant.js.map +1 -1
- package/dist/lib/util/joinPath.d.ts +3 -0
- package/dist/lib/util/joinPath.js +3 -0
- package/dist/lib/util/joinPath.js.map +1 -1
- package/dist/lib/util/joinUrl.d.ts +1 -0
- package/dist/lib/util/joinUrl.js +40 -0
- package/dist/lib/util/joinUrl.js.map +1 -0
- package/dist/lib/util/joinUrl.test.d.ts +1 -0
- package/dist/lib/util/joinUrl.test.js +43 -0
- package/dist/lib/util/joinUrl.test.js.map +1 -0
- package/dist/lib/util/scrollIntoViewIfNeeded.d.ts +1 -0
- package/dist/lib/util/scrollIntoViewIfNeeded.js +14 -0
- package/dist/lib/util/scrollIntoViewIfNeeded.js.map +1 -0
- package/dist/lib/util/traverse.d.ts +3 -0
- package/dist/lib/util/traverse.js +22 -0
- package/dist/lib/util/traverse.js.map +1 -0
- package/dist/lib/util/types.d.ts +7 -0
- package/dist/lib/util/types.js +2 -0
- package/dist/lib/util/types.js.map +1 -0
- package/dist/lib/util/useExposedProps.js +3 -2
- package/dist/lib/util/useExposedProps.js.map +1 -1
- package/dist/lib/util/useIsomorphicLayoutEffect.d.ts +3 -0
- package/dist/lib/util/useIsomorphicLayoutEffect.js +4 -0
- package/dist/lib/util/useIsomorphicLayoutEffect.js.map +1 -0
- package/dist/lib/util/useLatest.d.ts +1 -0
- package/dist/lib/util/useLatest.js +15 -0
- package/dist/lib/util/useLatest.js.map +1 -0
- package/dist/lib/util/useOnScreen.d.ts +5 -0
- package/dist/lib/util/useOnScreen.js +19 -0
- package/dist/lib/util/useOnScreen.js.map +1 -0
- package/dist/lib/util/useScrollToAnchor.d.ts +1 -0
- package/dist/lib/util/useScrollToAnchor.js +42 -37
- package/dist/lib/util/useScrollToAnchor.js.map +1 -1
- package/dist/lib/util/useScrollToTop.js +7 -5
- package/dist/lib/util/useScrollToTop.js.map +1 -1
- package/dist/vite/api/SchemaManager.d.ts +36 -0
- package/dist/vite/api/SchemaManager.js +120 -0
- package/dist/vite/api/SchemaManager.js.map +1 -0
- package/dist/vite/api/SchemaManager.test.d.ts +1 -0
- package/dist/vite/api/SchemaManager.test.js +106 -0
- package/dist/vite/api/SchemaManager.test.js.map +1 -0
- package/dist/vite/api/schema-codegen.d.ts +12 -0
- package/dist/vite/api/schema-codegen.js +85 -0
- package/dist/vite/api/schema-codegen.js.map +1 -0
- package/dist/vite/api/schema-codegen.test.d.ts +1 -0
- package/dist/vite/api/schema-codegen.test.js +313 -0
- package/dist/vite/api/schema-codegen.test.js.map +1 -0
- package/dist/vite/build.js +43 -14
- package/dist/vite/build.js.map +1 -1
- package/dist/vite/config.d.ts +7 -14
- package/dist/vite/config.js +125 -112
- package/dist/vite/config.js.map +1 -1
- package/dist/vite/config.test.js +11 -5
- package/dist/vite/config.test.js.map +1 -1
- package/dist/vite/create-pagefind-index.d.ts +4 -0
- package/dist/vite/create-pagefind-index.js +12 -0
- package/dist/vite/create-pagefind-index.js.map +1 -0
- package/dist/vite/css/collect.d.ts +2 -0
- package/dist/vite/css/collect.js +27 -0
- package/dist/vite/css/collect.js.map +1 -0
- package/dist/vite/css/plugin.d.ts +5 -0
- package/dist/vite/css/plugin.js +79 -0
- package/dist/vite/css/plugin.js.map +1 -0
- package/dist/vite/dev-server.d.ts +5 -2
- package/dist/vite/dev-server.js +66 -16
- package/dist/vite/dev-server.js.map +1 -1
- package/dist/vite/error-handler.d.ts +1 -1
- package/dist/vite/error-handler.js +1 -1
- package/dist/vite/error-handler.js.map +1 -1
- package/dist/vite/html.js +0 -2
- package/dist/vite/html.js.map +1 -1
- package/dist/vite/output.d.ts +113 -0
- package/dist/vite/output.js +60 -0
- package/dist/vite/output.js.map +1 -0
- package/dist/vite/plugin-api-keys.d.ts +2 -2
- package/dist/vite/plugin-api-keys.js +5 -5
- package/dist/vite/plugin-api-keys.js.map +1 -1
- package/dist/vite/plugin-api.d.ts +2 -2
- package/dist/vite/plugin-api.js +145 -32
- package/dist/vite/plugin-api.js.map +1 -1
- package/dist/vite/plugin-auth.d.ts +2 -2
- package/dist/vite/plugin-auth.js +7 -4
- package/dist/vite/plugin-auth.js.map +1 -1
- package/dist/vite/plugin-component.d.ts +2 -2
- package/dist/vite/plugin-component.js +22 -12
- package/dist/vite/plugin-component.js.map +1 -1
- package/dist/vite/plugin-config-reload.d.ts +4 -4
- package/dist/vite/plugin-config-reload.js +13 -8
- 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 +26 -3
- package/dist/vite/plugin-config.js.map +1 -1
- package/dist/vite/plugin-custom-pages.d.ts +2 -2
- package/dist/vite/plugin-custom-pages.js +3 -3
- package/dist/vite/plugin-custom-pages.js.map +1 -1
- package/dist/vite/plugin-docs.d.ts +3 -3
- package/dist/vite/plugin-docs.js +23 -6
- package/dist/vite/plugin-docs.js.map +1 -1
- package/dist/vite/plugin-docs.test.js +15 -23
- package/dist/vite/plugin-docs.test.js.map +1 -1
- package/dist/vite/plugin-frontmatter.d.ts +2 -1
- package/dist/vite/plugin-frontmatter.js +28 -24
- package/dist/vite/plugin-frontmatter.js.map +1 -1
- package/dist/vite/plugin-mdx.d.ts +2 -8
- package/dist/vite/plugin-mdx.js +89 -16
- package/dist/vite/plugin-mdx.js.map +1 -1
- package/dist/vite/plugin-redirect.d.ts +2 -2
- package/dist/vite/plugin-redirect.js +3 -3
- package/dist/vite/plugin-redirect.js.map +1 -1
- package/dist/vite/plugin-search.d.ts +3 -0
- package/dist/vite/plugin-search.js +30 -0
- package/dist/vite/plugin-search.js.map +1 -0
- package/dist/vite/plugin-sidebar.d.ts +5 -3
- package/dist/vite/plugin-sidebar.js +24 -11
- package/dist/vite/plugin-sidebar.js.map +1 -1
- package/dist/vite/{plugin-custom-css.d.ts → plugin-theme-css.d.ts} +3 -3
- package/dist/vite/plugin-theme-css.js +117 -0
- package/dist/vite/plugin-theme-css.js.map +1 -0
- package/dist/vite/plugin.d.ts +2 -3
- package/dist/vite/plugin.js +10 -6
- package/dist/vite/plugin.js.map +1 -1
- package/dist/vite/prerender/FileWritingResponse.d.ts +25 -0
- package/dist/vite/prerender/FileWritingResponse.js +51 -0
- package/dist/vite/prerender/FileWritingResponse.js.map +1 -0
- package/dist/vite/prerender/InMemoryResponse.d.ts +16 -0
- package/dist/vite/prerender/InMemoryResponse.js +32 -0
- package/dist/vite/prerender/InMemoryResponse.js.map +1 -0
- package/dist/vite/prerender/PrerenderResponse.d.ts +10 -0
- package/dist/vite/prerender/PrerenderResponse.js +2 -0
- package/dist/vite/prerender/PrerenderResponse.js.map +1 -0
- package/dist/vite/prerender/prerender.d.ts +15 -0
- package/dist/vite/prerender/prerender.js +109 -0
- package/dist/vite/prerender/prerender.js.map +1 -0
- package/dist/vite/prerender/worker.d.ts +13 -0
- package/dist/vite/prerender/worker.js +59 -0
- package/dist/vite/prerender/worker.js.map +1 -0
- package/dist/vite/remarkStaticGeneration.d.ts +3 -0
- package/dist/vite/remarkStaticGeneration.js +125 -0
- package/dist/vite/remarkStaticGeneration.js.map +1 -0
- package/dist/vite/reporter.d.ts +3 -0
- package/dist/vite/reporter.js +33 -0
- package/dist/vite/reporter.js.map +1 -0
- package/dist/vite/sitemap.d.ts +1 -1
- package/dist/vite/sitemap.js +2 -1
- package/dist/vite/sitemap.js.map +1 -1
- package/dist/zuplo/enrich-with-zuplo.d.ts +5 -0
- package/dist/zuplo/enrich-with-zuplo.js +185 -0
- package/dist/zuplo/enrich-with-zuplo.js.map +1 -0
- package/dist/zuplo/policy-types.d.ts +33 -0
- package/dist/zuplo/policy-types.js +8 -0
- package/dist/zuplo/policy-types.js.map +1 -0
- package/dist/zuplo/with-zuplo-processors.d.ts +3 -0
- package/dist/zuplo/with-zuplo-processors.js +26 -0
- package/dist/zuplo/with-zuplo-processors.js.map +1 -0
- package/dist/zuplo/with-zuplo.d.ts +6 -0
- package/dist/zuplo/with-zuplo.js +10 -0
- package/dist/zuplo/with-zuplo.js.map +1 -0
- package/lib/AuthenticationPlugin-ByDF051g.js +99 -0
- package/lib/AuthenticationPlugin-ByDF051g.js.map +1 -0
- package/lib/Button-BBNrKpQd.js +49 -0
- package/lib/Button-BBNrKpQd.js.map +1 -0
- package/lib/Callout-D3Ja4OPX.js +230 -0
- package/lib/Callout-D3Ja4OPX.js.map +1 -0
- package/lib/Card-BtheiD7j.js +61 -0
- package/lib/Card-BtheiD7j.js.map +1 -0
- package/lib/CategoryHeading-D06WK_Wo.js +10 -0
- package/lib/{CategoryHeading-B7TlPvuN.js.map → CategoryHeading-D06WK_Wo.js.map} +1 -1
- package/lib/ClientOnly-E7hGysn1.js +11 -0
- package/lib/ClientOnly-E7hGysn1.js.map +1 -0
- package/lib/Dialog-ByYz4ABw.js +98 -0
- package/lib/Dialog-ByYz4ABw.js.map +1 -0
- package/lib/Drawer-CEwbkLDb.js +1133 -0
- package/lib/Drawer-CEwbkLDb.js.map +1 -0
- package/lib/Markdown-mFpg_n9p.js +17125 -0
- package/lib/Markdown-mFpg_n9p.js.map +1 -0
- package/lib/MdxPage-Cm7atiW3.js +85 -0
- package/lib/MdxPage-Cm7atiW3.js.map +1 -0
- package/lib/OasProvider-DBJ3ZUTp.js +34 -0
- package/lib/OasProvider-DBJ3ZUTp.js.map +1 -0
- package/lib/OperationList-zUAJl5qO.js +5125 -0
- package/lib/OperationList-zUAJl5qO.js.map +1 -0
- package/lib/Pagination-DLPL5z77.js +48 -0
- package/lib/Pagination-DLPL5z77.js.map +1 -0
- package/lib/RouteGuard-DRtEu9nh.js +744 -0
- package/lib/RouteGuard-DRtEu9nh.js.map +1 -0
- package/lib/SchemaList-YsfrEmpL.js +148 -0
- package/lib/SchemaList-YsfrEmpL.js.map +1 -0
- package/lib/SchemaView-C3JbhWHn.js +367 -0
- package/lib/SchemaView-C3JbhWHn.js.map +1 -0
- package/lib/Select-CT64Ou40.js +223 -0
- package/lib/Select-CT64Ou40.js.map +1 -0
- package/lib/SlotletProvider-CS_nO-XT.js +340 -0
- package/lib/SlotletProvider-CS_nO-XT.js.map +1 -0
- package/lib/{Spinner-3cQDBVGr.js → Spinner-mNLZ6awP.js} +2 -2
- package/lib/{Spinner-3cQDBVGr.js.map → Spinner-mNLZ6awP.js.map} +1 -1
- package/lib/SyntaxHighlight-CxhyyMkF.js +2890 -0
- package/lib/SyntaxHighlight-CxhyyMkF.js.map +1 -0
- package/lib/Toc-D_tV8_Ri.js +92 -0
- package/lib/Toc-D_tV8_Ri.js.map +1 -0
- package/lib/_commonjsHelpers-B4e78b8K.js +29 -0
- package/lib/_commonjsHelpers-B4e78b8K.js.map +1 -0
- package/lib/chunk-BAXFHI7N-BVBOl9s0.js +1826 -0
- package/lib/chunk-BAXFHI7N-BVBOl9s0.js.map +1 -0
- package/lib/circular-ByJI6Mci.js +15877 -0
- package/lib/circular-ByJI6Mci.js.map +1 -0
- package/lib/cn-qaFjX9_3.js +2279 -0
- package/lib/cn-qaFjX9_3.js.map +1 -0
- package/lib/context-Lrf2Y9bR.js +22 -0
- package/lib/context-Lrf2Y9bR.js.map +1 -0
- package/lib/createServer-IW7v5hWm.js +12318 -0
- package/lib/createServer-IW7v5hWm.js.map +1 -0
- package/lib/hook-CldJlP5c.js +1478 -0
- package/lib/hook-CldJlP5c.js.map +1 -0
- package/lib/index-BBgdF7h4.js +2184 -0
- package/lib/index-BBgdF7h4.js.map +1 -0
- package/lib/index-Bn6Lc9tq.js +9 -0
- package/lib/{index-DJqnphbT.js.map → index-Bn6Lc9tq.js.map} +1 -1
- package/lib/index-CPNSgwSb.js +36 -0
- package/lib/index-CPNSgwSb.js.map +1 -0
- package/lib/index-CuBIgTKC.js +316 -0
- package/lib/index-CuBIgTKC.js.map +1 -0
- package/lib/{index-CkwDvuPt.js → index-DcHeSvkE.js} +348 -318
- package/lib/index-DcHeSvkE.js.map +1 -0
- package/lib/index-DnQftvP4.js +5031 -0
- package/lib/index-DnQftvP4.js.map +1 -0
- package/lib/index-DwT-v3zK.js +86 -0
- package/lib/index-DwT-v3zK.js.map +1 -0
- package/lib/{index-D06ATMgg.js → index-LNp6rxyU.js} +2 -2
- package/lib/{index-D06ATMgg.js.map → index-LNp6rxyU.js.map} +1 -1
- package/lib/index.esm-D2ZUREQN.js +1216 -0
- package/lib/index.esm-D2ZUREQN.js.map +1 -0
- package/lib/invariant-Caa8-XvF.js +26 -0
- package/lib/invariant-Caa8-XvF.js.map +1 -0
- package/lib/jsx-runtime-C5mzlN2N.js +285 -0
- package/lib/jsx-runtime-C5mzlN2N.js.map +1 -0
- package/lib/mutation-DBQh7AOZ.js +211 -0
- package/lib/mutation-DBQh7AOZ.js.map +1 -0
- package/lib/objectEntries-yMIkr2mI.js +5 -0
- package/lib/objectEntries-yMIkr2mI.js.map +1 -0
- package/lib/{prism-bash.min-DadFsM4Z.js → prism-bash.min-HHIMdNJ_.js} +4 -4
- package/lib/{prism-bash.min-DadFsM4Z.js.map → prism-bash.min-HHIMdNJ_.js.map} +1 -1
- package/lib/prism-csharp.min-C43x1RY2.js +63 -0
- package/lib/{prism-csharp.min-Yizuc34Y.js.map → prism-csharp.min-C43x1RY2.js.map} +1 -1
- package/lib/prism-java.min-CQzr40NQ.js +35 -0
- package/lib/{prism-java.min-d5iT_mOd.js.map → prism-java.min-CQzr40NQ.js.map} +1 -1
- package/lib/prism-javascript.min-CEqHqgbm.js.map +1 -1
- package/lib/prism-json.min-B1GJqK1k.js.map +1 -1
- package/lib/prism-jsstacktrace.min-BfobCF2F.js +2 -0
- package/lib/prism-jsstacktrace.min-BfobCF2F.js.map +1 -0
- package/lib/{prism-markdown.min-F3U-vPBi.js → prism-markdown.min-C0Qn0m-5.js} +30 -30
- package/lib/{prism-markdown.min-F3U-vPBi.js.map → prism-markdown.min-C0Qn0m-5.js.map} +1 -1
- package/lib/prism-markup-BNGj0Tvm.js.map +1 -1
- package/lib/prism-objectivec.min-BXSWqpJJ.js.map +1 -1
- package/lib/prism-ruby.min-L9OdQ6tU.js +38 -0
- package/lib/{prism-ruby.min-C7LwcKyz.js.map → prism-ruby.min-L9OdQ6tU.js.map} +1 -1
- package/lib/prism-typescript.min-qTySPvCh.js +34 -0
- package/lib/{prism-typescript.min-oSVeWCAd.js.map → prism-typescript.min-qTySPvCh.js.map} +1 -1
- package/lib/processors/removeExtensions.js +11 -0
- package/lib/processors/removeExtensions.js.map +1 -0
- package/lib/processors/removeParameters.js +48 -0
- package/lib/processors/removeParameters.js.map +1 -0
- package/lib/processors/removePaths.js +28 -0
- package/lib/processors/removePaths.js.map +1 -0
- package/lib/processors/traverse.js +15 -0
- package/lib/processors/traverse.js.map +1 -0
- package/lib/ui/Accordion.js +47 -0
- package/lib/ui/Accordion.js.map +1 -0
- package/lib/ui/ActionButton.js +25 -0
- package/lib/ui/ActionButton.js.map +1 -0
- package/lib/ui/Alert.js +51 -0
- package/lib/ui/Alert.js.map +1 -0
- package/lib/ui/AlertDialog.js +114 -0
- package/lib/ui/AlertDialog.js.map +1 -0
- package/lib/ui/AspectRatio.js +6 -0
- package/lib/ui/AspectRatio.js.map +1 -0
- package/lib/ui/Badge.js +28 -0
- package/lib/ui/Badge.js.map +1 -0
- package/lib/ui/Breadcrumb.js +94 -0
- package/lib/ui/Breadcrumb.js.map +1 -0
- package/lib/ui/Button.js +50 -0
- package/lib/ui/Button.js.map +1 -0
- package/lib/ui/Callout.js +96 -0
- package/lib/ui/Callout.js.map +1 -0
- package/lib/ui/Card.js +62 -0
- package/lib/ui/Card.js.map +1 -0
- package/lib/ui/Carousel.js +1416 -0
- package/lib/ui/Carousel.js.map +1 -0
- package/lib/ui/Checkbox.js +29 -0
- package/lib/ui/Checkbox.js.map +1 -0
- package/lib/ui/Collapsible.js +8 -0
- package/lib/ui/Collapsible.js.map +1 -0
- package/lib/ui/Command.js +156 -0
- package/lib/ui/Command.js.map +1 -0
- package/lib/ui/Dialog.js +101 -0
- package/lib/ui/Dialog.js.map +1 -0
- package/lib/ui/Drawer.js +17 -0
- package/lib/ui/Drawer.js.map +1 -0
- package/lib/ui/DropdownMenu.js +145 -0
- package/lib/ui/DropdownMenu.js.map +1 -0
- package/lib/ui/Form.js +95 -0
- package/lib/ui/Form.js.map +1 -0
- package/lib/ui/HoverCard.js +24 -0
- package/lib/ui/HoverCard.js.map +1 -0
- package/lib/ui/Input.js +22 -0
- package/lib/ui/Input.js.map +1 -0
- package/lib/ui/Label.js +20 -0
- package/lib/ui/Label.js.map +1 -0
- package/lib/ui/Pagination.js +106 -0
- package/lib/ui/Pagination.js.map +1 -0
- package/lib/ui/Popover.js +24 -0
- package/lib/ui/Popover.js.map +1 -0
- package/lib/ui/Progress.js +27 -0
- package/lib/ui/Progress.js.map +1 -0
- package/lib/ui/RadioGroup.js +32 -0
- package/lib/ui/RadioGroup.js.map +1 -0
- package/lib/ui/ScrollArea.js +39 -0
- package/lib/ui/ScrollArea.js.map +1 -0
- package/lib/ui/Select.js +122 -0
- package/lib/ui/Select.js.map +1 -0
- package/lib/ui/Skeleton.js +18 -0
- package/lib/ui/Skeleton.js.map +1 -0
- package/lib/ui/Slider.js +24 -0
- package/lib/ui/Slider.js.map +1 -0
- package/lib/ui/Stepper.js +6 -0
- package/lib/ui/Stepper.js.map +1 -0
- package/lib/ui/Switch.js +28 -0
- package/lib/ui/Switch.js.map +1 -0
- package/lib/ui/SyntaxHighlight.js +11 -0
- package/lib/ui/SyntaxHighlight.js.map +1 -0
- package/lib/ui/Tabs.js +47 -0
- package/lib/ui/Tabs.js.map +1 -0
- package/lib/ui/Textarea.js +21 -0
- package/lib/ui/Textarea.js.map +1 -0
- package/lib/ui/Toggle.js +38 -0
- package/lib/ui/Toggle.js.map +1 -0
- package/lib/ui/ToggleGroup.js +42 -0
- package/lib/ui/ToggleGroup.js.map +1 -0
- package/lib/ui/Tooltip.js +24 -0
- package/lib/ui/Tooltip.js.map +1 -0
- package/lib/ui/util.js +6 -0
- package/lib/ui/util.js.map +1 -0
- package/lib/useExposedProps-DbIZXspi.js +9 -0
- package/lib/useExposedProps-DbIZXspi.js.map +1 -0
- package/lib/useLatest-hmRS46UF.js +11 -0
- package/lib/useLatest-hmRS46UF.js.map +1 -0
- package/lib/zudoku.auth-auth0.js +30 -25
- package/lib/zudoku.auth-auth0.js.map +1 -1
- package/lib/zudoku.auth-clerk.js +101 -55
- package/lib/zudoku.auth-clerk.js.map +1 -1
- package/lib/zudoku.auth-openid.js +643 -679
- package/lib/zudoku.auth-openid.js.map +1 -1
- package/lib/zudoku.components.js +33 -3450
- package/lib/zudoku.components.js.map +1 -1
- package/lib/zudoku.hooks.js +19 -0
- package/lib/zudoku.hooks.js.map +1 -0
- package/lib/zudoku.icons.js +10 -0
- package/lib/zudoku.icons.js.map +1 -1
- package/lib/zudoku.plugin-api-catalog.js +117 -0
- package/lib/zudoku.plugin-api-catalog.js.map +1 -0
- package/lib/zudoku.plugin-api-keys.js +104 -108
- package/lib/zudoku.plugin-api-keys.js.map +1 -1
- package/lib/zudoku.plugin-custom-pages.js +10 -9
- package/lib/zudoku.plugin-custom-pages.js.map +1 -1
- package/lib/zudoku.plugin-markdown.js +27 -47
- package/lib/zudoku.plugin-markdown.js.map +1 -1
- package/lib/zudoku.plugin-openapi.js +7 -11
- package/lib/zudoku.plugin-openapi.js.map +1 -1
- package/lib/zudoku.plugin-redirect.js +2 -2
- package/lib/zudoku.plugin-redirect.js.map +1 -1
- package/lib/zudoku.plugin-search-inkeep.js +53 -28
- package/lib/zudoku.plugin-search-inkeep.js.map +1 -1
- package/lib/zudoku.plugin-search-pagefind.js +233 -0
- package/lib/zudoku.plugin-search-pagefind.js.map +1 -0
- package/lib/zudoku.plugins.js +14 -0
- package/lib/zudoku.plugins.js.map +1 -0
- package/package.json +157 -80
- package/src/app/ZuploBuildConfig.ts +33 -0
- package/src/app/demo-cdn.html +31 -31
- package/src/app/demo.tsx +1 -5
- package/src/app/entry.client.tsx +26 -1
- package/src/app/entry.server.tsx +80 -63
- package/src/app/env.ts +35 -0
- package/src/app/main.css +101 -40
- package/src/app/main.tsx +61 -19
- package/src/app/sentry.ts +24 -0
- package/src/app/standalone.tsx +1 -5
- package/src/app/tailwind.ts +83 -48
- package/src/lib/MissingIcon.tsx +22 -0
- package/src/lib/authentication/AuthenticationPlugin.tsx +4 -1
- package/src/lib/authentication/authentication.ts +5 -3
- package/src/lib/authentication/components/CallbackHandler.tsx +20 -51
- package/src/lib/authentication/components/SignIn.tsx +35 -2
- package/src/lib/authentication/components/SignOut.tsx +3 -2
- package/src/lib/authentication/components/SignUp.tsx +35 -1
- package/src/lib/authentication/hook.ts +13 -4
- package/src/lib/authentication/providers/auth0.tsx +20 -16
- package/src/lib/authentication/providers/clerk.tsx +70 -15
- package/src/lib/authentication/providers/openid.tsx +86 -58
- package/src/lib/authentication/providers/supabase.tsx +157 -0
- package/src/lib/authentication/state.ts +56 -25
- package/{LICENSE.md → src/lib/authentication/use-broadcast/LICENSE.md} +2 -2
- package/src/lib/authentication/use-broadcast/shared.ts +372 -0
- package/src/lib/authentication/use-broadcast/useBroadcast.ts +146 -0
- package/src/lib/components/AnchorLink.tsx +13 -8
- package/src/lib/components/Autocomplete.tsx +113 -0
- package/src/lib/components/Banner.tsx +1 -0
- package/src/lib/components/Bootstrap.tsx +43 -16
- package/src/lib/components/BuildCheck.tsx +75 -0
- package/src/lib/components/ClientOnly.tsx +6 -3
- package/src/lib/components/DeveloperHint.tsx +6 -1
- package/src/lib/components/Footer.tsx +139 -0
- package/src/lib/components/Header.tsx +96 -53
- package/src/lib/components/Heading.tsx +13 -13
- package/src/lib/components/InlineCode.tsx +13 -16
- package/src/lib/components/Layout.tsx +33 -54
- package/src/lib/components/Main.tsx +50 -0
- package/src/lib/components/Markdown.tsx +15 -16
- package/src/lib/components/MobileTopNavigation.tsx +40 -30
- package/src/lib/components/NotFoundPage.tsx +1 -1
- package/src/lib/components/Pagination.tsx +50 -0
- package/src/lib/components/PathRenderer.tsx +61 -0
- package/src/lib/components/ReactMarkdown.license.txt +21 -0
- package/src/lib/components/ReactMarkdown.tsx +264 -0
- package/src/lib/components/Search.tsx +17 -6
- package/src/lib/components/SlotletProvider.tsx +3 -1
- package/src/lib/components/StatusPage.tsx +91 -0
- package/src/lib/components/ThemeSwitch.tsx +46 -0
- package/src/lib/components/TopNavigation.tsx +84 -36
- package/src/lib/components/Zudoku.tsx +119 -0
- package/src/lib/components/cache.ts +23 -0
- package/src/lib/components/context/BypassProtectedRoutesContext.ts +3 -0
- package/src/lib/components/context/RouterEventsEmitter.tsx +19 -0
- package/src/lib/components/context/ViewportAnchorContext.tsx +34 -36
- package/src/lib/components/context/ZudokuContext.ts +39 -22
- package/src/lib/components/context/ZudokuProvider.tsx +2 -2
- package/src/lib/components/index.ts +33 -6
- package/src/lib/components/navigation/PoweredByZudoku.tsx +28 -0
- package/src/lib/components/navigation/Sidebar.tsx +38 -29
- package/src/lib/components/navigation/SidebarBadge.tsx +17 -12
- package/src/lib/components/navigation/SidebarCategory.tsx +59 -56
- package/src/lib/components/navigation/SidebarItem.tsx +30 -39
- package/src/lib/components/navigation/SidebarWrapper.tsx +42 -22
- package/src/lib/{plugins/markdown → components/navigation}/Toc.tsx +5 -14
- package/src/lib/components/navigation/ZudokuLogo.tsx +25 -0
- package/src/lib/components/navigation/ZuploLogo.tsx +14 -0
- package/src/lib/components/navigation/utils.ts +3 -3
- package/src/lib/core/RouteGuard.tsx +96 -0
- package/src/lib/core/{DevPortalContext.ts → ZudokuContext.ts} +76 -32
- package/src/lib/core/plugins.ts +44 -22
- package/src/lib/errors/ErrorAlert.tsx +36 -15
- package/src/lib/errors/RouterError.tsx +1 -1
- package/src/lib/hooks/index.ts +5 -0
- package/src/lib/hooks/useEvent.test.tsx +149 -0
- package/src/lib/hooks/useEvent.ts +41 -0
- package/src/lib/icons.ts +1 -0
- package/src/lib/oas/graphql/circular.ts +50 -0
- package/src/lib/oas/graphql/index.ts +298 -104
- package/src/lib/oas/parser/dereference/index.ts +10 -4
- package/src/lib/oas/parser/index.ts +9 -30
- package/src/lib/oas/parser/upgrade/index.ts +25 -30
- package/src/lib/plugins/api-catalog/Catalog.tsx +73 -0
- package/src/lib/plugins/api-catalog/index.tsx +115 -0
- package/src/lib/plugins/api-keys/CreateApiKey.tsx +10 -6
- package/src/lib/plugins/api-keys/ProtectedRoute.tsx +1 -1
- package/src/lib/plugins/api-keys/SettingsApiKeys.tsx +1 -1
- package/src/lib/plugins/api-keys/index.tsx +16 -10
- package/src/lib/plugins/custom-pages/CustomPage.tsx +2 -2
- package/src/lib/plugins/custom-pages/index.tsx +3 -3
- package/src/lib/plugins/markdown/MdxPage.tsx +43 -41
- package/src/lib/plugins/markdown/index.tsx +7 -4
- package/src/lib/plugins/markdown/resolver.ts +2 -37
- package/src/lib/plugins/openapi/CollapsibleCode.tsx +83 -0
- package/src/lib/plugins/openapi/ColorizedParam.tsx +49 -23
- package/src/lib/plugins/openapi/Endpoint.tsx +19 -22
- package/src/lib/plugins/openapi/OasProvider.tsx +51 -0
- package/src/lib/plugins/openapi/OperationList.tsx +240 -70
- package/src/lib/plugins/openapi/OperationListItem.tsx +136 -88
- package/src/lib/plugins/openapi/ParamInfos.tsx +88 -0
- package/src/lib/plugins/openapi/ParameterList.tsx +4 -0
- package/src/lib/plugins/openapi/ParameterListItem.tsx +78 -31
- package/src/lib/plugins/openapi/PlaygroundDialogWrapper.tsx +21 -2
- package/src/lib/plugins/openapi/RequestBodySidecarBox.tsx +15 -33
- package/src/lib/plugins/openapi/ResponsesSidecarBox.tsx +46 -58
- package/src/lib/plugins/openapi/SchemaList.tsx +151 -0
- package/src/lib/plugins/openapi/Sidecar.tsx +147 -113
- package/src/lib/plugins/openapi/SidecarBox.tsx +4 -16
- package/src/lib/plugins/openapi/SidecarExamples.tsx +162 -0
- package/src/lib/plugins/openapi/SimpleSelect.tsx +1 -1
- package/src/lib/plugins/openapi/client/GraphQLClient.tsx +65 -0
- package/src/lib/plugins/openapi/client/GraphQLContext.tsx +16 -0
- package/src/lib/plugins/openapi/client/createServer.ts +8 -2
- package/src/lib/plugins/openapi/client/useCreateQuery.ts +26 -0
- package/src/lib/plugins/openapi/components/ConstValue.tsx +24 -0
- package/src/lib/plugins/openapi/components/EnumValues.tsx +58 -0
- package/src/lib/plugins/openapi/components/SelectOnClick.tsx +29 -0
- package/src/lib/plugins/openapi/context.tsx +2 -2
- package/src/lib/plugins/openapi/graphql/fragment-masking.ts +11 -18
- package/src/lib/plugins/openapi/graphql/gql.ts +38 -30
- package/src/lib/plugins/openapi/graphql/graphql.ts +386 -682
- package/src/lib/plugins/openapi/index.tsx +110 -134
- package/src/lib/plugins/openapi/interfaces.ts +57 -3
- package/src/lib/plugins/openapi/playground/ExamplesDropdown.tsx +52 -0
- package/src/lib/plugins/openapi/playground/Headers.tsx +165 -36
- package/src/lib/plugins/openapi/playground/IdentityDialog.tsx +74 -0
- package/src/lib/plugins/openapi/playground/IdentitySelector.tsx +54 -0
- package/src/lib/plugins/openapi/playground/ParamsGrid.tsx +13 -0
- package/src/lib/plugins/openapi/playground/PathParams.tsx +39 -64
- package/src/lib/plugins/openapi/playground/Playground.tsx +386 -245
- package/src/lib/plugins/openapi/playground/PlaygroundDialog.tsx +7 -4
- package/src/lib/plugins/openapi/playground/QueryParams.tsx +86 -88
- package/src/lib/plugins/openapi/playground/RequestLoginDialog.tsx +51 -0
- package/src/lib/plugins/openapi/playground/SubmitButton.tsx +75 -0
- package/src/lib/plugins/openapi/playground/rememberedIdentity.ts +26 -0
- package/src/lib/plugins/openapi/playground/result-panel/RequestTab.tsx +73 -0
- package/src/lib/plugins/openapi/playground/result-panel/ResponseTab.tsx +230 -0
- package/src/lib/plugins/openapi/playground/result-panel/ResultPanel.tsx +123 -0
- package/src/lib/plugins/openapi/playground/result-panel/convertToTypes.test.ts +64 -0
- package/src/lib/plugins/openapi/playground/result-panel/convertToTypes.ts +36 -0
- package/src/lib/plugins/openapi/processors/removeExtensions.test.ts +222 -0
- package/src/lib/plugins/openapi/processors/removeExtensions.ts +29 -0
- package/src/lib/plugins/openapi/processors/removeParameters.test.ts +182 -0
- package/src/lib/plugins/openapi/processors/removeParameters.ts +103 -0
- package/src/lib/plugins/openapi/processors/removePaths.test.ts +167 -0
- package/src/lib/plugins/openapi/processors/removePaths.ts +57 -0
- package/src/lib/plugins/openapi/processors/traverse.ts +1 -0
- package/src/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.tsx +1 -8
- package/src/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupConnector.tsx +3 -0
- package/src/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupItem.tsx +6 -3
- package/src/lib/plugins/openapi/schema/SchemaExampleAndDefault.tsx +36 -0
- package/src/lib/plugins/openapi/schema/SchemaPropertyItem.tsx +153 -0
- package/src/lib/plugins/openapi/schema/SchemaView.tsx +87 -135
- package/src/lib/plugins/openapi/schema/utils.ts +16 -1
- package/src/lib/plugins/openapi/state.ts +36 -0
- package/src/lib/plugins/openapi/util/createSidebarCategory.tsx +37 -0
- package/src/lib/plugins/openapi/util/generateSchemaExample.ts +88 -43
- package/src/lib/plugins/openapi/util/getRoutes.tsx +134 -0
- package/src/lib/plugins/openapi/util/methodColorMap.tsx +11 -0
- package/src/lib/plugins/openapi/util/methodToColor.ts +27 -0
- package/src/lib/plugins/openapi/util/sanitizeMarkdownForMetatag.tsx +32 -0
- package/src/lib/plugins/redirect/index.tsx +6 -10
- package/src/lib/plugins/search-inkeep/index.tsx +80 -25
- package/src/lib/plugins/search-inkeep/inkeep.ts +3 -9
- package/src/lib/plugins/search-pagefind/PagefindSearch.tsx +164 -0
- package/src/lib/plugins/search-pagefind/ResultList.tsx +105 -0
- package/src/lib/plugins/search-pagefind/get-results.tsx +75 -0
- package/src/lib/plugins/search-pagefind/index.tsx +21 -0
- package/src/lib/plugins/search-pagefind/types.ts +118 -0
- package/src/lib/ui/Accordion.tsx +56 -0
- package/src/lib/ui/ActionButton.tsx +28 -0
- package/src/lib/ui/{Note.tsx → Alert.tsx} +11 -10
- package/src/lib/ui/AlertDialog.tsx +139 -0
- package/src/lib/ui/AspectRatio.tsx +5 -0
- package/src/lib/ui/Badge.tsx +37 -0
- package/src/lib/ui/Breadcrumb.tsx +115 -0
- package/src/lib/ui/Button.tsx +5 -3
- package/src/lib/ui/Callout.tsx +29 -10
- package/src/lib/ui/Card.tsx +1 -1
- package/src/lib/ui/Carousel.tsx +260 -0
- package/src/lib/ui/Checkbox.tsx +29 -0
- package/src/lib/ui/Collapsible.tsx +9 -0
- package/src/lib/ui/Command.tsx +193 -0
- package/src/lib/{components → ui}/Dialog.tsx +4 -3
- package/src/lib/ui/Form.tsx +177 -0
- package/src/lib/ui/HoverCard.tsx +27 -0
- package/src/lib/ui/Input.tsx +1 -2
- package/src/lib/ui/Label.tsx +24 -0
- package/src/lib/ui/Pagination.tsx +117 -0
- package/src/lib/ui/Popover.tsx +29 -0
- package/src/lib/ui/Progress.tsx +26 -0
- package/src/lib/ui/RadioGroup.tsx +42 -0
- package/src/lib/ui/ScrollArea.tsx +46 -0
- package/src/lib/{components → ui}/Select.tsx +2 -2
- package/src/lib/ui/Skeleton.tsx +15 -0
- package/src/lib/ui/Slider.tsx +26 -0
- package/src/lib/ui/Stepper.tsx +8 -0
- package/src/lib/ui/Switch.tsx +27 -0
- package/src/lib/ui/SyntaxHighlight.tsx +186 -0
- package/src/lib/ui/Textarea.tsx +23 -0
- package/src/lib/ui/Toggle.tsx +43 -0
- package/src/lib/ui/ToggleGroup.tsx +59 -0
- package/src/lib/ui/Tooltip.tsx +28 -0
- package/src/lib/ui/util.tsx +3 -0
- package/src/lib/util/MdxComponents.tsx +12 -12
- package/src/lib/util/createVariantComponent.tsx +2 -2
- package/src/lib/util/detectOS.ts +9 -0
- package/src/lib/util/ensureArray.ts +3 -0
- package/src/lib/util/invariant.ts +15 -3
- package/src/lib/util/joinPath.tsx +3 -0
- package/src/lib/util/joinUrl.test.ts +62 -0
- package/src/lib/util/joinUrl.ts +57 -0
- package/src/lib/util/scrollIntoViewIfNeeded.ts +18 -0
- package/src/lib/util/traverse.ts +31 -0
- package/src/lib/util/types.ts +7 -0
- package/src/lib/util/useExposedProps.tsx +8 -2
- package/src/lib/util/useIsomorphicLayoutEffect.ts +5 -0
- package/src/lib/util/useLatest.ts +18 -0
- package/src/lib/util/useOnScreen.ts +34 -0
- package/src/lib/util/useScrollToAnchor.ts +48 -39
- package/src/lib/util/useScrollToTop.ts +9 -4
- package/client.d.ts +0 -1
- package/dist/internal.d.ts +0 -1
- package/dist/internal.js +0 -2
- package/dist/internal.js.map +0 -1
- package/dist/lib/components/DevPortal.js.map +0 -1
- package/dist/lib/components/Dialog.js.map +0 -1
- package/dist/lib/components/Select.js.map +0 -1
- package/dist/lib/components/SyntaxHighlight.d.ts +0 -11
- package/dist/lib/components/SyntaxHighlight.js +0 -50
- package/dist/lib/components/SyntaxHighlight.js.map +0 -1
- package/dist/lib/components/context/PluginSystem.js +0 -2
- package/dist/lib/components/context/PluginSystem.js.map +0 -1
- package/dist/lib/components/context/ThemeContext.d.ts +0 -2
- package/dist/lib/components/context/ThemeContext.js +0 -7
- package/dist/lib/components/context/ThemeContext.js.map +0 -1
- package/dist/lib/components/context/ThemeProvider.d.ts +0 -4
- package/dist/lib/components/context/ThemeProvider.js +0 -23
- package/dist/lib/components/context/ThemeProvider.js.map +0 -1
- package/dist/lib/core/DevPortalContext.js +0 -49
- package/dist/lib/core/DevPortalContext.js.map +0 -1
- package/dist/lib/plugins/markdown/Toc.js.map +0 -1
- package/dist/lib/plugins/openapi/Route.d.ts +0 -6
- package/dist/lib/plugins/openapi/Route.js +0 -8
- package/dist/lib/plugins/openapi/Route.js.map +0 -1
- package/dist/lib/plugins/openapi/client/createMemoryClient.d.ts +0 -12
- package/dist/lib/plugins/openapi/client/createMemoryClient.js +0 -46
- package/dist/lib/plugins/openapi/client/createMemoryClient.js.map +0 -1
- package/dist/lib/plugins/openapi/client/createWorkerClient.d.ts +0 -10
- package/dist/lib/plugins/openapi/client/createWorkerClient.js +0 -61
- package/dist/lib/plugins/openapi/client/createWorkerClient.js.map +0 -1
- package/dist/lib/plugins/openapi/client/interfaces.d.ts +0 -4
- package/dist/lib/plugins/openapi/client/interfaces.js +0 -2
- package/dist/lib/plugins/openapi/client/interfaces.js.map +0 -1
- package/dist/lib/plugins/openapi/client/worker.js +0 -20
- package/dist/lib/plugins/openapi/client/worker.js.map +0 -1
- package/dist/lib/plugins/openapi/playground/ResponseTab.d.ts +0 -4
- package/dist/lib/plugins/openapi/playground/ResponseTab.js +0 -42
- package/dist/lib/plugins/openapi/playground/ResponseTab.js.map +0 -1
- package/dist/lib/plugins/openapi/schema/SchemaComponents.js +0 -28
- package/dist/lib/plugins/openapi/schema/SchemaComponents.js.map +0 -1
- package/dist/lib/plugins/openapi-worker.d.ts +0 -1
- package/dist/lib/plugins/openapi-worker.js +0 -2
- package/dist/lib/plugins/openapi-worker.js.map +0 -1
- package/dist/lib/plugins/search-inkeep/InkeepCustomTrigger.d.ts +0 -2
- package/dist/lib/plugins/search-inkeep/InkeepCustomTrigger.js +0 -3
- package/dist/lib/plugins/search-inkeep/InkeepCustomTrigger.js.map +0 -1
- package/dist/lib/themeToggle.d.ts +0 -1
- package/dist/lib/themeToggle.js +0 -7
- package/dist/lib/themeToggle.js.map +0 -1
- package/dist/lib/ui/Note.d.ts +0 -8
- package/dist/lib/ui/Note.js +0 -23
- package/dist/lib/ui/Note.js.map +0 -1
- package/dist/lib/util/createWaitForNotify.d.ts +0 -1
- package/dist/lib/util/createWaitForNotify.js +0 -15
- package/dist/lib/util/createWaitForNotify.js.map +0 -1
- package/dist/vite/plugin-custom-css.js +0 -55
- package/dist/vite/plugin-custom-css.js.map +0 -1
- package/dist/vite/plugin-html-transform.d.ts +0 -2
- package/dist/vite/plugin-html-transform.js +0 -15
- package/dist/vite/plugin-html-transform.js.map +0 -1
- package/dist/vite/prerender.d.ts +0 -21
- package/dist/vite/prerender.js +0 -88
- package/dist/vite/prerender.js.map +0 -1
- package/lib/AnchorLink-DNsmBTRp.js +0 -705
- package/lib/AnchorLink-DNsmBTRp.js.map +0 -1
- package/lib/AuthenticationPlugin-CKyNe953.js +0 -55
- package/lib/AuthenticationPlugin-CKyNe953.js.map +0 -1
- package/lib/CategoryHeading-B7TlPvuN.js +0 -10
- package/lib/DeveloperHint-B_QCCafl.js +0 -16
- package/lib/DeveloperHint-B_QCCafl.js.map +0 -1
- package/lib/ErrorPage-DqqAV1dr.js +0 -16
- package/lib/ErrorPage-DqqAV1dr.js.map +0 -1
- package/lib/InkeepCustomTrigger-CE5-K5ex.js +0 -6
- package/lib/InkeepCustomTrigger-CE5-K5ex.js.map +0 -1
- package/lib/Input-RKErK8rC.js +0 -2229
- package/lib/Input-RKErK8rC.js.map +0 -1
- package/lib/Markdown-Y__eLG0x.js +0 -20441
- package/lib/Markdown-Y__eLG0x.js.map +0 -1
- package/lib/MdxPage-Df0B_t9t.js +0 -173
- package/lib/MdxPage-Df0B_t9t.js.map +0 -1
- package/lib/OperationList-yuVHI6ul.js +0 -601
- package/lib/OperationList-yuVHI6ul.js.map +0 -1
- package/lib/Route-BaAjY0N-.js +0 -13
- package/lib/Route-BaAjY0N-.js.map +0 -1
- package/lib/SidebarBadge-DGTOim55.js +0 -503
- package/lib/SidebarBadge-DGTOim55.js.map +0 -1
- package/lib/SlotletProvider-DmqWiVFt.js +0 -239
- package/lib/SlotletProvider-DmqWiVFt.js.map +0 -1
- package/lib/ZudokuContext-D-TANjzJ.js +0 -1222
- package/lib/ZudokuContext-D-TANjzJ.js.map +0 -1
- package/lib/__vite-browser-external-BYRIRx8p.js +0 -9
- package/lib/__vite-browser-external-BYRIRx8p.js.map +0 -1
- package/lib/assets/index-B_Jk_Yzp.js +0 -4820
- package/lib/assets/index-B_Jk_Yzp.js.map +0 -1
- package/lib/assets/worker-DaFlmuyf.js +0 -18111
- package/lib/assets/worker-DaFlmuyf.js.map +0 -1
- package/lib/index-CkwDvuPt.js.map +0 -1
- package/lib/index-D7tBXCIO.js +0 -124
- package/lib/index-D7tBXCIO.js.map +0 -1
- package/lib/index-DFN92YJN.js +0 -1782
- package/lib/index-DFN92YJN.js.map +0 -1
- package/lib/index-DG-VRw9t.js +0 -2867
- package/lib/index-DG-VRw9t.js.map +0 -1
- package/lib/index-DJqnphbT.js +0 -35
- package/lib/index-vPSN3k3e.js +0 -5952
- package/lib/index-vPSN3k3e.js.map +0 -1
- package/lib/jsx-runtime-B6kdoens.js +0 -635
- package/lib/jsx-runtime-B6kdoens.js.map +0 -1
- package/lib/prism-csharp.min-Yizuc34Y.js +0 -35
- package/lib/prism-java.min-d5iT_mOd.js +0 -7
- package/lib/prism-markup-templating-DZrrEs0A.js +0 -62
- package/lib/prism-markup-templating-DZrrEs0A.js.map +0 -1
- package/lib/prism-php.min-o7FpoMP_.js +0 -11
- package/lib/prism-php.min-o7FpoMP_.js.map +0 -1
- package/lib/prism-ruby.min-C7LwcKyz.js +0 -10
- package/lib/prism-typescript.min-oSVeWCAd.js +0 -6
- package/lib/router-BsfSoK2j.js +0 -3024
- package/lib/router-BsfSoK2j.js.map +0 -1
- package/lib/state-CsuHT8ZO.js +0 -183
- package/lib/state-CsuHT8ZO.js.map +0 -1
- package/lib/urql-core-KJnLL26g.js +0 -1455
- package/lib/urql-core-KJnLL26g.js.map +0 -1
- package/lib/useExposedProps-BWwxa-Hg.js +0 -9
- package/lib/useExposedProps-BWwxa-Hg.js.map +0 -1
- package/lib/zudoku.openapi-worker.js +0 -16255
- package/lib/zudoku.openapi-worker.js.map +0 -1
- package/src/lib/components/DevPortal.tsx +0 -111
- package/src/lib/components/SyntaxHighlight.tsx +0 -122
- package/src/lib/components/context/PluginSystem.ts +0 -0
- package/src/lib/components/context/ThemeContext.tsx +0 -8
- package/src/lib/components/context/ThemeProvider.tsx +0 -27
- package/src/lib/plugins/openapi/Route.tsx +0 -20
- package/src/lib/plugins/openapi/client/createMemoryClient.ts +0 -51
- package/src/lib/plugins/openapi/client/createWorkerClient.ts +0 -75
- package/src/lib/plugins/openapi/client/interfaces.ts +0 -5
- package/src/lib/plugins/openapi/client/worker.ts +0 -30
- package/src/lib/plugins/openapi/playground/ResponseTab.tsx +0 -76
- package/src/lib/plugins/openapi/schema/SchemaComponents.tsx +0 -126
- package/src/lib/plugins/openapi-worker.ts +0 -1
- package/src/lib/plugins/search-inkeep/InkeepCustomTrigger.tsx +0 -3
- package/src/lib/themeToggle.ts +0 -7
- package/src/lib/util/createWaitForNotify.ts +0 -18
- /package/dist/lib/{plugins/markdown → components/navigation}/Toc.d.ts +0 -0
- /package/dist/lib/{components/context/PluginSystem.d.ts → hooks/useEvent.test.d.ts} +0 -0
- /package/dist/lib/plugins/openapi/{client/worker.d.ts → playground/result-panel/convertToTypes.test.d.ts} +0 -0
- /package/dist/lib/{components → ui}/Dialog.d.ts +0 -0
- /package/dist/lib/{components → ui}/Select.d.ts +0 -0
|
@@ -1,168 +1,167 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
import { j as
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
(
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
1
|
+
var Ce = Object.defineProperty;
|
|
2
|
+
var Le = (t, e, n) => e in t ? Ce(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
|
|
3
|
+
var w = (t, e, n) => Le(t, typeof e != "symbol" ? e + "" : e, n);
|
|
4
|
+
import { j as B } from "./jsx-runtime-C5mzlN2N.js";
|
|
5
|
+
import { g as xe } from "./_commonjsHelpers-B4e78b8K.js";
|
|
6
|
+
import { C as Ie } from "./ClientOnly-E7hGysn1.js";
|
|
7
|
+
import { d as je, f as ie, u as L } from "./hook-CldJlP5c.js";
|
|
8
|
+
import { A as Je } from "./AuthenticationPlugin-ByDF051g.js";
|
|
9
|
+
import { N as Oe } from "./chunk-BAXFHI7N-BVBOl9s0.js";
|
|
10
|
+
import { Z as ze } from "./invariant-Caa8-XvF.js";
|
|
11
|
+
var D = { exports: {} }, De = D.exports, ae;
|
|
12
|
+
function Ne() {
|
|
13
|
+
return ae || (ae = 1, function(t) {
|
|
14
|
+
(function(e, n) {
|
|
15
|
+
t.exports ? t.exports = n() : e.log = n();
|
|
16
|
+
})(De, function() {
|
|
17
|
+
var e = function() {
|
|
18
|
+
}, n = "undefined", o = typeof window !== n && typeof window.navigator !== n && /Trident\/|MSIE /.test(window.navigator.userAgent), a = [
|
|
19
|
+
"trace",
|
|
20
|
+
"debug",
|
|
21
|
+
"info",
|
|
22
|
+
"warn",
|
|
23
|
+
"error"
|
|
24
|
+
], r = {}, i = null;
|
|
25
|
+
function c(l, m) {
|
|
26
|
+
var u = l[m];
|
|
27
|
+
if (typeof u.bind == "function")
|
|
28
|
+
return u.bind(l);
|
|
29
|
+
try {
|
|
30
|
+
return Function.prototype.bind.call(u, l);
|
|
31
|
+
} catch {
|
|
32
|
+
return function() {
|
|
33
|
+
return Function.prototype.apply.apply(u, [l, arguments]);
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
function p() {
|
|
38
|
+
console.log && (console.log.apply ? console.log.apply(console, arguments) : Function.prototype.apply.apply(console.log, [console, arguments])), console.trace && console.trace();
|
|
39
|
+
}
|
|
40
|
+
function _(l) {
|
|
41
|
+
return l === "debug" && (l = "log"), typeof console === n ? !1 : l === "trace" && o ? p : console[l] !== void 0 ? c(console, l) : console.log !== void 0 ? c(console, "log") : e;
|
|
42
|
+
}
|
|
43
|
+
function f() {
|
|
44
|
+
for (var l = this.getLevel(), m = 0; m < a.length; m++) {
|
|
45
|
+
var u = a[m];
|
|
46
|
+
this[u] = m < l ? e : this.methodFactory(u, l, this.name);
|
|
47
|
+
}
|
|
48
|
+
if (this.log = this.debug, typeof console === n && l < this.levels.SILENT)
|
|
49
|
+
return "No console available for logging";
|
|
50
|
+
}
|
|
51
|
+
function v(l) {
|
|
34
52
|
return function() {
|
|
35
|
-
|
|
53
|
+
typeof console !== n && (f.call(this), this[l].apply(this, arguments));
|
|
36
54
|
};
|
|
37
55
|
}
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
console.log && (console.log.apply ? console.log.apply(console, arguments) : Function.prototype.apply.apply(console.log, [console, arguments])), console.trace && console.trace();
|
|
41
|
-
}
|
|
42
|
-
function b(l) {
|
|
43
|
-
return l === "debug" && (l = "log"), typeof console === r ? !1 : l === "trace" && o ? p : console[l] !== void 0 ? c(console, l) : console.log !== void 0 ? c(console, "log") : e;
|
|
44
|
-
}
|
|
45
|
-
function f() {
|
|
46
|
-
for (var l = this.getLevel(), g = 0; g < s.length; g++) {
|
|
47
|
-
var u = s[g];
|
|
48
|
-
this[u] = g < l ? e : this.methodFactory(u, l, this.name);
|
|
56
|
+
function b(l, m, u) {
|
|
57
|
+
return _(l) || v.apply(this, arguments);
|
|
49
58
|
}
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
var m = (s[d] || "silent").toUpperCase();
|
|
66
|
-
if (!(typeof window === r || !S)) {
|
|
67
|
-
try {
|
|
68
|
-
window.localStorage[S] = m;
|
|
69
|
-
return;
|
|
70
|
-
} catch {
|
|
71
|
-
}
|
|
72
|
-
try {
|
|
73
|
-
window.document.cookie = encodeURIComponent(S) + "=" + m + ";";
|
|
74
|
-
} catch {
|
|
59
|
+
function d(l, m) {
|
|
60
|
+
var u = this, J, $, U, S = "loglevel";
|
|
61
|
+
typeof l == "string" ? S += ":" + l : typeof l == "symbol" && (S = void 0);
|
|
62
|
+
function Re(h) {
|
|
63
|
+
var y = (a[h] || "silent").toUpperCase();
|
|
64
|
+
if (!(typeof window === n || !S)) {
|
|
65
|
+
try {
|
|
66
|
+
window.localStorage[S] = y;
|
|
67
|
+
return;
|
|
68
|
+
} catch {
|
|
69
|
+
}
|
|
70
|
+
try {
|
|
71
|
+
window.document.cookie = encodeURIComponent(S) + "=" + y + ";";
|
|
72
|
+
} catch {
|
|
73
|
+
}
|
|
75
74
|
}
|
|
76
75
|
}
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
if (!(typeof window === r || !S)) {
|
|
81
|
-
try {
|
|
82
|
-
d = window.localStorage[S];
|
|
83
|
-
} catch {
|
|
84
|
-
}
|
|
85
|
-
if (typeof d === r)
|
|
76
|
+
function ne() {
|
|
77
|
+
var h;
|
|
78
|
+
if (!(typeof window === n || !S)) {
|
|
86
79
|
try {
|
|
87
|
-
|
|
88
|
-
ie !== -1 && (d = /^([^;]+)/.exec(
|
|
89
|
-
m.slice(ie + z.length + 1)
|
|
90
|
-
)[1]);
|
|
80
|
+
h = window.localStorage[S];
|
|
91
81
|
} catch {
|
|
92
82
|
}
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
83
|
+
if (typeof h === n)
|
|
84
|
+
try {
|
|
85
|
+
var y = window.document.cookie, O = encodeURIComponent(S), oe = y.indexOf(O + "=");
|
|
86
|
+
oe !== -1 && (h = /^([^;]+)/.exec(
|
|
87
|
+
y.slice(oe + O.length + 1)
|
|
88
|
+
)[1]);
|
|
89
|
+
} catch {
|
|
90
|
+
}
|
|
91
|
+
return u.levels[h] === void 0 && (h = void 0), h;
|
|
101
92
|
}
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
93
|
+
}
|
|
94
|
+
function Pe() {
|
|
95
|
+
if (!(typeof window === n || !S)) {
|
|
96
|
+
try {
|
|
97
|
+
window.localStorage.removeItem(S);
|
|
98
|
+
} catch {
|
|
99
|
+
}
|
|
100
|
+
try {
|
|
101
|
+
window.document.cookie = encodeURIComponent(S) + "=; expires=Thu, 01 Jan 1970 00:00:00 UTC";
|
|
102
|
+
} catch {
|
|
103
|
+
}
|
|
105
104
|
}
|
|
106
105
|
}
|
|
106
|
+
function C(h) {
|
|
107
|
+
var y = h;
|
|
108
|
+
if (typeof y == "string" && u.levels[y.toUpperCase()] !== void 0 && (y = u.levels[y.toUpperCase()]), typeof y == "number" && y >= 0 && y <= u.levels.SILENT)
|
|
109
|
+
return y;
|
|
110
|
+
throw new TypeError("log.setLevel() called with invalid level: " + h);
|
|
111
|
+
}
|
|
112
|
+
u.name = l, u.levels = {
|
|
113
|
+
TRACE: 0,
|
|
114
|
+
DEBUG: 1,
|
|
115
|
+
INFO: 2,
|
|
116
|
+
WARN: 3,
|
|
117
|
+
ERROR: 4,
|
|
118
|
+
SILENT: 5
|
|
119
|
+
}, u.methodFactory = m || b, u.getLevel = function() {
|
|
120
|
+
return U ?? $ ?? J;
|
|
121
|
+
}, u.setLevel = function(h, y) {
|
|
122
|
+
return U = C(h), y !== !1 && Re(U), f.call(u);
|
|
123
|
+
}, u.setDefaultLevel = function(h) {
|
|
124
|
+
$ = C(h), ne() || u.setLevel(h, !1);
|
|
125
|
+
}, u.resetLevel = function() {
|
|
126
|
+
U = null, Pe(), f.call(u);
|
|
127
|
+
}, u.enableAll = function(h) {
|
|
128
|
+
u.setLevel(u.levels.TRACE, h);
|
|
129
|
+
}, u.disableAll = function(h) {
|
|
130
|
+
u.setLevel(u.levels.SILENT, h);
|
|
131
|
+
}, u.rebuild = function() {
|
|
132
|
+
if (i !== u && (J = C(i.getLevel())), f.call(u), i === u)
|
|
133
|
+
for (var h in r)
|
|
134
|
+
r[h].rebuild();
|
|
135
|
+
}, J = C(
|
|
136
|
+
i ? i.getLevel() : "WARN"
|
|
137
|
+
);
|
|
138
|
+
var re = ne();
|
|
139
|
+
re != null && (U = C(re)), f.call(u);
|
|
107
140
|
}
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
u.setLevel(u.levels.SILENT, d);
|
|
133
|
-
}, u.rebuild = function() {
|
|
134
|
-
if (i !== u && (O = x(i.getLevel())), f.call(u), i === u)
|
|
135
|
-
for (var d in n)
|
|
136
|
-
n[d].rebuild();
|
|
137
|
-
}, O = x(
|
|
138
|
-
i ? i.getLevel() : "WARN"
|
|
139
|
-
);
|
|
140
|
-
var oe = ne();
|
|
141
|
-
oe != null && (P = x(oe)), f.call(u);
|
|
142
|
-
}
|
|
143
|
-
i = new h(), i.getLogger = function(g) {
|
|
144
|
-
if (typeof g != "symbol" && typeof g != "string" || g === "")
|
|
145
|
-
throw new TypeError("You must supply a name when creating a logger.");
|
|
146
|
-
var u = n[g];
|
|
147
|
-
return u || (u = n[g] = new h(
|
|
148
|
-
g,
|
|
149
|
-
i.methodFactory
|
|
150
|
-
)), u;
|
|
151
|
-
};
|
|
152
|
-
var J = typeof window !== r ? window.log : void 0;
|
|
153
|
-
return i.noConflict = function() {
|
|
154
|
-
return typeof window !== r && window.log === i && (window.log = J), i;
|
|
155
|
-
}, i.getLoggers = function() {
|
|
156
|
-
return n;
|
|
157
|
-
}, i.default = i, i;
|
|
158
|
-
});
|
|
159
|
-
})(pe);
|
|
160
|
-
var Be = pe.exports;
|
|
161
|
-
const K = /* @__PURE__ */ Oe(Be);
|
|
162
|
-
let Y;
|
|
163
|
-
var D, fe;
|
|
164
|
-
(typeof navigator > "u" || !((fe = (D = navigator.userAgent) == null ? void 0 : D.startsWith) != null && fe.call(D, "Mozilla/5.0 "))) && (Y = "oauth4webapi/v2.17.0");
|
|
165
|
-
function Q(t, e) {
|
|
141
|
+
i = new d(), i.getLogger = function(m) {
|
|
142
|
+
if (typeof m != "symbol" && typeof m != "string" || m === "")
|
|
143
|
+
throw new TypeError("You must supply a name when creating a logger.");
|
|
144
|
+
var u = r[m];
|
|
145
|
+
return u || (u = r[m] = new d(
|
|
146
|
+
m,
|
|
147
|
+
i.methodFactory
|
|
148
|
+
)), u;
|
|
149
|
+
};
|
|
150
|
+
var P = typeof window !== n ? window.log : void 0;
|
|
151
|
+
return i.noConflict = function() {
|
|
152
|
+
return typeof window !== n && window.log === i && (window.log = P), i;
|
|
153
|
+
}, i.getLoggers = function() {
|
|
154
|
+
return r;
|
|
155
|
+
}, i.default = i, i;
|
|
156
|
+
});
|
|
157
|
+
}(D)), D.exports;
|
|
158
|
+
}
|
|
159
|
+
var We = Ne();
|
|
160
|
+
const se = /* @__PURE__ */ xe(We);
|
|
161
|
+
let V;
|
|
162
|
+
var z, we;
|
|
163
|
+
(typeof navigator > "u" || !((we = (z = navigator.userAgent) == null ? void 0 : z.startsWith) != null && we.call(z, "Mozilla/5.0 "))) && (V = "oauth4webapi/v2.17.0");
|
|
164
|
+
function Y(t, e) {
|
|
166
165
|
if (t == null)
|
|
167
166
|
return !1;
|
|
168
167
|
try {
|
|
@@ -171,78 +170,78 @@ function Q(t, e) {
|
|
|
171
170
|
return !1;
|
|
172
171
|
}
|
|
173
172
|
}
|
|
174
|
-
const
|
|
175
|
-
function
|
|
176
|
-
return typeof t == "string" ?
|
|
173
|
+
const W = Symbol(), Ke = Symbol(), Z = Symbol(), He = Symbol(), $e = Symbol(), Fe = Symbol(), Me = new TextEncoder(), qe = new TextDecoder();
|
|
174
|
+
function E(t) {
|
|
175
|
+
return typeof t == "string" ? Me.encode(t) : qe.decode(t);
|
|
177
176
|
}
|
|
178
|
-
const
|
|
179
|
-
function
|
|
177
|
+
const ce = 32768;
|
|
178
|
+
function Be(t) {
|
|
180
179
|
t instanceof ArrayBuffer && (t = new Uint8Array(t));
|
|
181
180
|
const e = [];
|
|
182
|
-
for (let
|
|
183
|
-
e.push(String.fromCharCode.apply(null, t.subarray(
|
|
181
|
+
for (let n = 0; n < t.byteLength; n += ce)
|
|
182
|
+
e.push(String.fromCharCode.apply(null, t.subarray(n, n + ce)));
|
|
184
183
|
return btoa(e.join("")).replace(/=/g, "").replace(/\+/g, "-").replace(/\//g, "_");
|
|
185
184
|
}
|
|
186
|
-
function
|
|
185
|
+
function Ve(t) {
|
|
187
186
|
try {
|
|
188
|
-
const e = atob(t.replace(/-/g, "+").replace(/_/g, "/").replace(/\s/g, "")),
|
|
187
|
+
const e = atob(t.replace(/-/g, "+").replace(/_/g, "/").replace(/\s/g, "")), n = new Uint8Array(e.length);
|
|
189
188
|
for (let o = 0; o < e.length; o++)
|
|
190
|
-
|
|
191
|
-
return
|
|
189
|
+
n[o] = e.charCodeAt(o);
|
|
190
|
+
return n;
|
|
192
191
|
} catch (e) {
|
|
193
|
-
throw new
|
|
192
|
+
throw new s("The input to be decoded is not correctly encoded.", { cause: e });
|
|
194
193
|
}
|
|
195
194
|
}
|
|
196
|
-
function
|
|
197
|
-
return typeof t == "string" ?
|
|
195
|
+
function A(t) {
|
|
196
|
+
return typeof t == "string" ? Ve(t) : Be(t);
|
|
198
197
|
}
|
|
199
|
-
class
|
|
198
|
+
class Ge {
|
|
200
199
|
constructor(e) {
|
|
201
200
|
this.cache = /* @__PURE__ */ new Map(), this._cache = /* @__PURE__ */ new Map(), this.maxSize = e;
|
|
202
201
|
}
|
|
203
202
|
get(e) {
|
|
204
|
-
let
|
|
205
|
-
if (
|
|
206
|
-
return
|
|
207
|
-
if (
|
|
208
|
-
return this.update(e,
|
|
203
|
+
let n = this.cache.get(e);
|
|
204
|
+
if (n)
|
|
205
|
+
return n;
|
|
206
|
+
if (n = this._cache.get(e))
|
|
207
|
+
return this.update(e, n), n;
|
|
209
208
|
}
|
|
210
209
|
has(e) {
|
|
211
210
|
return this.cache.has(e) || this._cache.has(e);
|
|
212
211
|
}
|
|
213
|
-
set(e,
|
|
214
|
-
return this.cache.has(e) ? this.cache.set(e,
|
|
212
|
+
set(e, n) {
|
|
213
|
+
return this.cache.has(e) ? this.cache.set(e, n) : this.update(e, n), this;
|
|
215
214
|
}
|
|
216
215
|
delete(e) {
|
|
217
216
|
return this.cache.has(e) ? this.cache.delete(e) : this._cache.has(e) ? this._cache.delete(e) : !1;
|
|
218
217
|
}
|
|
219
|
-
update(e,
|
|
220
|
-
this.cache.set(e,
|
|
218
|
+
update(e, n) {
|
|
219
|
+
this.cache.set(e, n), this.cache.size >= this.maxSize && (this._cache = this.cache, this.cache = /* @__PURE__ */ new Map());
|
|
221
220
|
}
|
|
222
221
|
}
|
|
223
|
-
class
|
|
222
|
+
class T extends Error {
|
|
224
223
|
constructor(e) {
|
|
225
|
-
var
|
|
226
|
-
super(e ?? "operation not supported"), this.name = this.constructor.name, (
|
|
224
|
+
var n;
|
|
225
|
+
super(e ?? "operation not supported"), this.name = this.constructor.name, (n = Error.captureStackTrace) == null || n.call(Error, this, this.constructor);
|
|
227
226
|
}
|
|
228
227
|
}
|
|
229
|
-
class
|
|
230
|
-
constructor(e,
|
|
228
|
+
class Ye extends Error {
|
|
229
|
+
constructor(e, n) {
|
|
231
230
|
var o;
|
|
232
|
-
super(e,
|
|
231
|
+
super(e, n), this.name = this.constructor.name, (o = Error.captureStackTrace) == null || o.call(Error, this, this.constructor);
|
|
233
232
|
}
|
|
234
233
|
}
|
|
235
|
-
const
|
|
234
|
+
const s = Ye, ge = new Ge(100);
|
|
236
235
|
function me(t) {
|
|
237
236
|
return t instanceof CryptoKey;
|
|
238
237
|
}
|
|
239
|
-
function
|
|
238
|
+
function Ze(t) {
|
|
240
239
|
return me(t) && t.type === "private";
|
|
241
240
|
}
|
|
242
|
-
function
|
|
241
|
+
function Qe(t) {
|
|
243
242
|
return me(t) && t.type === "public";
|
|
244
243
|
}
|
|
245
|
-
function
|
|
244
|
+
function Q(t) {
|
|
246
245
|
try {
|
|
247
246
|
const e = t.headers.get("dpop-nonce");
|
|
248
247
|
e && ge.set(new URL(t.url).origin, e);
|
|
@@ -250,108 +249,95 @@ function ee(t) {
|
|
|
250
249
|
}
|
|
251
250
|
return t;
|
|
252
251
|
}
|
|
253
|
-
function
|
|
252
|
+
function x(t) {
|
|
254
253
|
return !(t === null || typeof t != "object" || Array.isArray(t));
|
|
255
254
|
}
|
|
256
|
-
function
|
|
257
|
-
|
|
255
|
+
function K(t) {
|
|
256
|
+
Y(t, Headers) && (t = Object.fromEntries(t.entries()));
|
|
258
257
|
const e = new Headers(t);
|
|
259
|
-
if (
|
|
258
|
+
if (V && !e.has("user-agent") && e.set("user-agent", V), e.has("authorization"))
|
|
260
259
|
throw new TypeError('"options.headers" must not include the "authorization" header name');
|
|
261
260
|
if (e.has("dpop"))
|
|
262
261
|
throw new TypeError('"options.headers" must not include the "dpop" header name');
|
|
263
262
|
return e;
|
|
264
263
|
}
|
|
265
|
-
function
|
|
264
|
+
function Xe(t) {
|
|
266
265
|
if (typeof t == "function" && (t = t()), !(t instanceof AbortSignal))
|
|
267
266
|
throw new TypeError('"options.signal" must return or be an instance of AbortSignal');
|
|
268
267
|
return t;
|
|
269
268
|
}
|
|
270
|
-
async function
|
|
269
|
+
async function et(t, e) {
|
|
271
270
|
if (!(t instanceof URL))
|
|
272
271
|
throw new TypeError('"issuerIdentifier" must be an instance of URL');
|
|
273
272
|
if (t.protocol !== "https:" && t.protocol !== "http:")
|
|
274
273
|
throw new TypeError('"issuer.protocol" must be "https:" or "http:"');
|
|
275
|
-
const
|
|
274
|
+
const n = new URL(t.href);
|
|
276
275
|
switch (e == null ? void 0 : e.algorithm) {
|
|
277
276
|
case void 0:
|
|
278
277
|
case "oidc":
|
|
279
|
-
|
|
278
|
+
n.pathname = `${n.pathname}/.well-known/openid-configuration`.replace("//", "/");
|
|
280
279
|
break;
|
|
281
280
|
case "oauth2":
|
|
282
|
-
|
|
281
|
+
n.pathname === "/" ? n.pathname = ".well-known/oauth-authorization-server" : n.pathname = `.well-known/oauth-authorization-server/${n.pathname}`.replace("//", "/");
|
|
283
282
|
break;
|
|
284
283
|
default:
|
|
285
284
|
throw new TypeError('"options.algorithm" must be "oidc" (default), or "oauth2"');
|
|
286
285
|
}
|
|
287
|
-
const o =
|
|
288
|
-
return o.set("accept", "application/json"), ((e == null ? void 0 : e[
|
|
286
|
+
const o = K(e == null ? void 0 : e.headers);
|
|
287
|
+
return o.set("accept", "application/json"), ((e == null ? void 0 : e[Z]) || fetch)(n.href, {
|
|
289
288
|
headers: Object.fromEntries(o.entries()),
|
|
290
289
|
method: "GET",
|
|
291
290
|
redirect: "manual",
|
|
292
|
-
signal:
|
|
293
|
-
}).then(
|
|
291
|
+
signal: null
|
|
292
|
+
}).then(Q);
|
|
294
293
|
}
|
|
295
|
-
function
|
|
294
|
+
function g(t) {
|
|
296
295
|
return typeof t == "string" && t.length !== 0;
|
|
297
296
|
}
|
|
298
|
-
async function
|
|
297
|
+
async function tt(t, e) {
|
|
299
298
|
if (!(t instanceof URL))
|
|
300
299
|
throw new TypeError('"expectedIssuer" must be an instance of URL');
|
|
301
|
-
if (!
|
|
300
|
+
if (!Y(e, Response))
|
|
302
301
|
throw new TypeError('"response" must be an instance of Response');
|
|
303
302
|
if (e.status !== 200)
|
|
304
|
-
throw new
|
|
305
|
-
|
|
306
|
-
let
|
|
303
|
+
throw new s('"response" is not a conform Authorization Server Metadata response');
|
|
304
|
+
te(e);
|
|
305
|
+
let n;
|
|
307
306
|
try {
|
|
308
|
-
|
|
307
|
+
n = await e.json();
|
|
309
308
|
} catch (o) {
|
|
310
|
-
throw new
|
|
309
|
+
throw new s('failed to parse "response" body as JSON', { cause: o });
|
|
311
310
|
}
|
|
312
|
-
if (!
|
|
313
|
-
throw new
|
|
314
|
-
if (!
|
|
315
|
-
throw new
|
|
316
|
-
if (new URL(
|
|
317
|
-
throw new
|
|
318
|
-
return
|
|
311
|
+
if (!x(n))
|
|
312
|
+
throw new s('"response" body must be a top level object');
|
|
313
|
+
if (!g(n.issuer))
|
|
314
|
+
throw new s('"response" body "issuer" property must be a non-empty string');
|
|
315
|
+
if (new URL(n.issuer).href !== t.href)
|
|
316
|
+
throw new s('"response" body "issuer" does not match "expectedIssuer"');
|
|
317
|
+
return n;
|
|
319
318
|
}
|
|
320
|
-
function
|
|
321
|
-
return
|
|
319
|
+
function X() {
|
|
320
|
+
return A(crypto.getRandomValues(new Uint8Array(32)));
|
|
322
321
|
}
|
|
323
|
-
function
|
|
324
|
-
return
|
|
322
|
+
function nt() {
|
|
323
|
+
return X();
|
|
325
324
|
}
|
|
326
|
-
function
|
|
327
|
-
return
|
|
325
|
+
function rt() {
|
|
326
|
+
return X();
|
|
328
327
|
}
|
|
329
|
-
async function
|
|
330
|
-
if (!
|
|
328
|
+
async function ot(t) {
|
|
329
|
+
if (!g(t))
|
|
331
330
|
throw new TypeError('"codeVerifier" must be a non-empty string');
|
|
332
|
-
return
|
|
331
|
+
return A(await crypto.subtle.digest("SHA-256", E(t)));
|
|
333
332
|
}
|
|
334
|
-
function
|
|
335
|
-
if (t instanceof CryptoKey)
|
|
336
|
-
return { key: t };
|
|
337
|
-
if (!((t == null ? void 0 : t.key) instanceof CryptoKey))
|
|
338
|
-
return {};
|
|
339
|
-
if (t.kid !== void 0 && !w(t.kid))
|
|
340
|
-
throw new TypeError('"kid" must be a non-empty string');
|
|
341
|
-
return {
|
|
342
|
-
key: t.key,
|
|
343
|
-
kid: t.kid,
|
|
344
|
-
modifyAssertion: t[we]
|
|
345
|
-
};
|
|
346
|
-
}
|
|
347
|
-
function ae(t) {
|
|
333
|
+
function ue(t) {
|
|
348
334
|
return encodeURIComponent(t).replace(/%20/g, "+");
|
|
349
335
|
}
|
|
350
|
-
function
|
|
351
|
-
const
|
|
352
|
-
return `Basic ${btoa(`${
|
|
336
|
+
function it(t, e) {
|
|
337
|
+
const n = ue(t), o = ue(e);
|
|
338
|
+
return `Basic ${btoa(`${n}:${o}`)}`;
|
|
353
339
|
}
|
|
354
|
-
function
|
|
340
|
+
function at(t) {
|
|
355
341
|
switch (t.algorithm.hash.name) {
|
|
356
342
|
case "SHA-256":
|
|
357
343
|
return "PS256";
|
|
@@ -360,10 +346,10 @@ function lt(t) {
|
|
|
360
346
|
case "SHA-512":
|
|
361
347
|
return "PS512";
|
|
362
348
|
default:
|
|
363
|
-
throw new
|
|
349
|
+
throw new T("unsupported RsaHashedKeyAlgorithm hash name");
|
|
364
350
|
}
|
|
365
351
|
}
|
|
366
|
-
function
|
|
352
|
+
function st(t) {
|
|
367
353
|
switch (t.algorithm.hash.name) {
|
|
368
354
|
case "SHA-256":
|
|
369
355
|
return "RS256";
|
|
@@ -372,10 +358,10 @@ function dt(t) {
|
|
|
372
358
|
case "SHA-512":
|
|
373
359
|
return "RS512";
|
|
374
360
|
default:
|
|
375
|
-
throw new
|
|
361
|
+
throw new T("unsupported RsaHashedKeyAlgorithm hash name");
|
|
376
362
|
}
|
|
377
363
|
}
|
|
378
|
-
function
|
|
364
|
+
function ct(t) {
|
|
379
365
|
switch (t.algorithm.namedCurve) {
|
|
380
366
|
case "P-256":
|
|
381
367
|
return "ES256";
|
|
@@ -384,295 +370,268 @@ function ht(t) {
|
|
|
384
370
|
case "P-521":
|
|
385
371
|
return "ES512";
|
|
386
372
|
default:
|
|
387
|
-
throw new
|
|
373
|
+
throw new T("unsupported EcKeyAlgorithm namedCurve");
|
|
388
374
|
}
|
|
389
375
|
}
|
|
390
|
-
function
|
|
376
|
+
function ut(t) {
|
|
391
377
|
switch (t.algorithm.name) {
|
|
392
378
|
case "RSA-PSS":
|
|
393
|
-
return
|
|
379
|
+
return at(t);
|
|
394
380
|
case "RSASSA-PKCS1-v1_5":
|
|
395
|
-
return
|
|
381
|
+
return st(t);
|
|
396
382
|
case "ECDSA":
|
|
397
|
-
return
|
|
383
|
+
return ct(t);
|
|
398
384
|
case "Ed25519":
|
|
399
385
|
case "Ed448":
|
|
400
386
|
return "EdDSA";
|
|
401
387
|
default:
|
|
402
|
-
throw new
|
|
388
|
+
throw new T("unsupported CryptoKey algorithm name");
|
|
403
389
|
}
|
|
404
390
|
}
|
|
405
|
-
function
|
|
406
|
-
const e = t == null ? void 0 : t[
|
|
391
|
+
function H(t) {
|
|
392
|
+
const e = t == null ? void 0 : t[W];
|
|
407
393
|
return typeof e == "number" && Number.isFinite(e) ? e : 0;
|
|
408
394
|
}
|
|
409
|
-
function
|
|
410
|
-
const e = t == null ? void 0 : t[
|
|
395
|
+
function ye(t) {
|
|
396
|
+
const e = t == null ? void 0 : t[Ke];
|
|
411
397
|
return typeof e == "number" && Number.isFinite(e) && Math.sign(e) !== -1 ? e : 30;
|
|
412
398
|
}
|
|
413
|
-
function
|
|
399
|
+
function ee() {
|
|
414
400
|
return Math.floor(Date.now() / 1e3);
|
|
415
401
|
}
|
|
416
|
-
function ft(t, e) {
|
|
417
|
-
const r = M() + C(e);
|
|
418
|
-
return {
|
|
419
|
-
jti: F(),
|
|
420
|
-
aud: [t.issuer, t.token_endpoint],
|
|
421
|
-
exp: r + 60,
|
|
422
|
-
iat: r,
|
|
423
|
-
nbf: r,
|
|
424
|
-
iss: e.client_id,
|
|
425
|
-
sub: e.client_id
|
|
426
|
-
};
|
|
427
|
-
}
|
|
428
|
-
async function pt(t, e, r, o, s) {
|
|
429
|
-
const n = { alg: _e(r), kid: o }, i = ft(t, e);
|
|
430
|
-
return s == null || s(n, i), Se(n, i, r);
|
|
431
|
-
}
|
|
432
402
|
function I(t) {
|
|
433
403
|
if (typeof t != "object" || t === null)
|
|
434
404
|
throw new TypeError('"as" must be an object');
|
|
435
|
-
if (!
|
|
405
|
+
if (!g(t.issuer))
|
|
436
406
|
throw new TypeError('"as.issuer" property must be a non-empty string');
|
|
437
407
|
return !0;
|
|
438
408
|
}
|
|
439
409
|
function j(t) {
|
|
440
410
|
if (typeof t != "object" || t === null)
|
|
441
411
|
throw new TypeError('"client" must be an object');
|
|
442
|
-
if (!
|
|
412
|
+
if (!g(t.client_id))
|
|
443
413
|
throw new TypeError('"client.client_id" property must be a non-empty string');
|
|
444
414
|
return !0;
|
|
445
415
|
}
|
|
446
|
-
function
|
|
447
|
-
if (!
|
|
416
|
+
function le(t) {
|
|
417
|
+
if (!g(t))
|
|
448
418
|
throw new TypeError('"client.client_secret" property must be a non-empty string');
|
|
449
419
|
return t;
|
|
450
420
|
}
|
|
451
|
-
function
|
|
452
|
-
if (e !== void 0)
|
|
453
|
-
throw new TypeError(`"options.clientPrivateKey" property must not be provided when ${t} client authentication method is used.`);
|
|
454
|
-
}
|
|
455
|
-
function ue(t, e) {
|
|
421
|
+
function he(t, e) {
|
|
456
422
|
if (e !== void 0)
|
|
457
423
|
throw new TypeError(`"client.client_secret" property must not be provided when ${t} client authentication method is used.`);
|
|
458
424
|
}
|
|
459
|
-
async function
|
|
460
|
-
switch (
|
|
425
|
+
async function lt(t, e, n, o, a) {
|
|
426
|
+
switch (n.delete("client_secret"), n.delete("client_assertion_type"), n.delete("client_assertion"), e.token_endpoint_auth_method) {
|
|
461
427
|
case void 0:
|
|
462
428
|
case "client_secret_basic": {
|
|
463
|
-
|
|
429
|
+
o.set("authorization", it(e.client_id, le(e.client_secret)));
|
|
464
430
|
break;
|
|
465
431
|
}
|
|
466
432
|
case "client_secret_post": {
|
|
467
|
-
|
|
468
|
-
break;
|
|
469
|
-
}
|
|
470
|
-
case "private_key_jwt": {
|
|
471
|
-
if (ue("private_key_jwt", e.client_secret), s === void 0)
|
|
472
|
-
throw new TypeError('"options.clientPrivateKey" must be provided when "client.token_endpoint_auth_method" is "private_key_jwt"');
|
|
473
|
-
const { key: n, kid: i, modifyAssertion: c } = ct(s);
|
|
474
|
-
if (!ye(n))
|
|
475
|
-
throw new TypeError('"options.clientPrivateKey.key" must be a private CryptoKey');
|
|
476
|
-
r.set("client_id", e.client_id), r.set("client_assertion_type", "urn:ietf:params:oauth:client-assertion-type:jwt-bearer"), r.set("client_assertion", await pt(t, e, n, i, c));
|
|
433
|
+
n.set("client_id", e.client_id), n.set("client_secret", le(e.client_secret));
|
|
477
434
|
break;
|
|
478
435
|
}
|
|
436
|
+
case "private_key_jwt":
|
|
437
|
+
throw he("private_key_jwt", e.client_secret), new TypeError('"options.clientPrivateKey" must be provided when "client.token_endpoint_auth_method" is "private_key_jwt"');
|
|
479
438
|
case "tls_client_auth":
|
|
480
439
|
case "self_signed_tls_client_auth":
|
|
481
440
|
case "none": {
|
|
482
|
-
|
|
441
|
+
he(e.token_endpoint_auth_method, e.client_secret), e.token_endpoint_auth_method, n.set("client_id", e.client_id);
|
|
483
442
|
break;
|
|
484
443
|
}
|
|
485
444
|
default:
|
|
486
|
-
throw new
|
|
445
|
+
throw new T("unsupported client token_endpoint_auth_method");
|
|
487
446
|
}
|
|
488
447
|
}
|
|
489
|
-
async function
|
|
490
|
-
if (!
|
|
448
|
+
async function ht(t, e, n) {
|
|
449
|
+
if (!n.usages.includes("sign"))
|
|
491
450
|
throw new TypeError('CryptoKey instances used for signing assertions must include "sign" in their "usages"');
|
|
492
|
-
const o = `${E(
|
|
493
|
-
return `${o}.${
|
|
451
|
+
const o = `${A(E(JSON.stringify(t)))}.${A(E(JSON.stringify(e)))}`, a = A(await crypto.subtle.sign(Ae(n), n, E(o)));
|
|
452
|
+
return `${o}.${a}`;
|
|
494
453
|
}
|
|
495
|
-
async function
|
|
496
|
-
var
|
|
497
|
-
const { privateKey: i, publicKey: c, nonce: p = ge.get(
|
|
498
|
-
if (!
|
|
454
|
+
async function dt(t, e, n, o, a, r) {
|
|
455
|
+
var b;
|
|
456
|
+
const { privateKey: i, publicKey: c, nonce: p = ge.get(n.origin) } = e;
|
|
457
|
+
if (!Ze(i))
|
|
499
458
|
throw new TypeError('"DPoP.privateKey" must be a private CryptoKey');
|
|
500
|
-
if (!
|
|
459
|
+
if (!Qe(c))
|
|
501
460
|
throw new TypeError('"DPoP.publicKey" must be a public CryptoKey');
|
|
502
|
-
if (p !== void 0 && !
|
|
461
|
+
if (p !== void 0 && !g(p))
|
|
503
462
|
throw new TypeError('"DPoP.nonce" must be a non-empty string or undefined');
|
|
504
463
|
if (!c.extractable)
|
|
505
464
|
throw new TypeError('"DPoP.publicKey.extractable" must be true');
|
|
506
|
-
const
|
|
507
|
-
alg:
|
|
465
|
+
const _ = ee() + a, f = {
|
|
466
|
+
alg: ut(i),
|
|
508
467
|
typ: "dpop+jwt",
|
|
509
|
-
jwk: await
|
|
510
|
-
},
|
|
511
|
-
iat:
|
|
512
|
-
jti:
|
|
468
|
+
jwk: await pt(c)
|
|
469
|
+
}, v = {
|
|
470
|
+
iat: _,
|
|
471
|
+
jti: X(),
|
|
513
472
|
htm: o,
|
|
514
473
|
nonce: p,
|
|
515
|
-
htu: `${
|
|
516
|
-
ath:
|
|
474
|
+
htu: `${n.origin}${n.pathname}`,
|
|
475
|
+
ath: r ? A(await crypto.subtle.digest("SHA-256", E(r))) : void 0
|
|
517
476
|
};
|
|
518
|
-
(
|
|
477
|
+
(b = e[He]) == null || b.call(e, f, v), t.set("dpop", await ht(f, v, i));
|
|
519
478
|
}
|
|
520
|
-
let
|
|
521
|
-
async function
|
|
522
|
-
const { kty: e, e:
|
|
523
|
-
return
|
|
479
|
+
let N;
|
|
480
|
+
async function ft(t) {
|
|
481
|
+
const { kty: e, e: n, n: o, x: a, y: r, crv: i } = await crypto.subtle.exportKey("jwk", t), c = { kty: e, e: n, n: o, x: a, y: r, crv: i };
|
|
482
|
+
return N.set(t, c), c;
|
|
524
483
|
}
|
|
525
|
-
async function
|
|
526
|
-
return
|
|
484
|
+
async function pt(t) {
|
|
485
|
+
return N || (N = /* @__PURE__ */ new WeakMap()), N.get(t) || ft(t);
|
|
527
486
|
}
|
|
528
|
-
function
|
|
487
|
+
function de(t, e, n) {
|
|
529
488
|
if (typeof t != "string")
|
|
530
|
-
throw
|
|
489
|
+
throw n ? new TypeError(`"as.mtls_endpoint_aliases.${e}" must be a string`) : new TypeError(`"as.${e}" must be a string`);
|
|
531
490
|
return new URL(t);
|
|
532
491
|
}
|
|
533
|
-
function
|
|
534
|
-
return
|
|
492
|
+
function be(t, e, n = !1) {
|
|
493
|
+
return n && t.mtls_endpoint_aliases && e in t.mtls_endpoint_aliases ? de(t.mtls_endpoint_aliases[e], e, n) : de(t[e], e, n);
|
|
535
494
|
}
|
|
536
|
-
function
|
|
537
|
-
return !!(t.use_mtls_endpoint_aliases || e != null && e[
|
|
495
|
+
function _e(t, e) {
|
|
496
|
+
return !!(t.use_mtls_endpoint_aliases || e != null && e[Fe]);
|
|
538
497
|
}
|
|
539
|
-
function
|
|
498
|
+
function G(t) {
|
|
540
499
|
const e = t;
|
|
541
500
|
return typeof e != "object" || Array.isArray(e) || e === null ? !1 : e.error !== void 0;
|
|
542
501
|
}
|
|
543
|
-
async function
|
|
544
|
-
if (!
|
|
502
|
+
async function wt(t, e, n, o, a, r) {
|
|
503
|
+
if (!g(t))
|
|
545
504
|
throw new TypeError('"accessToken" must be a non-empty string');
|
|
546
|
-
if (!(
|
|
505
|
+
if (!(n instanceof URL))
|
|
547
506
|
throw new TypeError('"url" must be an instance of URL');
|
|
548
|
-
return o =
|
|
549
|
-
body:
|
|
507
|
+
return o = K(o), (r == null ? void 0 : r.DPoP) === void 0 ? o.set("authorization", `Bearer ${t}`) : (await dt(o, r.DPoP, n, e.toUpperCase(), H({ [W]: r == null ? void 0 : r[W] }), t), o.set("authorization", `DPoP ${t}`)), ((r == null ? void 0 : r[Z]) || fetch)(n.href, {
|
|
508
|
+
body: a,
|
|
550
509
|
headers: Object.fromEntries(o.entries()),
|
|
551
510
|
method: e,
|
|
552
511
|
redirect: "manual",
|
|
553
|
-
signal:
|
|
554
|
-
}).then(
|
|
512
|
+
signal: r != null && r.signal ? Xe(r.signal) : null
|
|
513
|
+
}).then(Q);
|
|
555
514
|
}
|
|
556
|
-
async function
|
|
515
|
+
async function gt(t, e, n, o) {
|
|
557
516
|
I(t), j(e);
|
|
558
|
-
const
|
|
559
|
-
return e.userinfo_signed_response_alg ?
|
|
517
|
+
const a = be(t, "userinfo_endpoint", _e(e, o)), r = K(o == null ? void 0 : o.headers);
|
|
518
|
+
return e.userinfo_signed_response_alg ? r.set("accept", "application/jwt") : (r.set("accept", "application/json"), r.append("accept", "application/jwt")), wt(n, "GET", a, r, null, {
|
|
560
519
|
...o,
|
|
561
|
-
[
|
|
520
|
+
[W]: H(e)
|
|
562
521
|
});
|
|
563
522
|
}
|
|
564
|
-
async function
|
|
565
|
-
return await
|
|
566
|
-
body:
|
|
567
|
-
headers: Object.fromEntries(
|
|
568
|
-
method:
|
|
523
|
+
async function mt(t, e, n, o, a, r, i) {
|
|
524
|
+
return await lt(t, e, a, r), r.set("content-type", "application/x-www-form-urlencoded;charset=UTF-8"), ((i == null ? void 0 : i[Z]) || fetch)(o.href, {
|
|
525
|
+
body: a,
|
|
526
|
+
headers: Object.fromEntries(r.entries()),
|
|
527
|
+
method: n,
|
|
569
528
|
redirect: "manual",
|
|
570
|
-
signal:
|
|
571
|
-
}).then(
|
|
529
|
+
signal: null
|
|
530
|
+
}).then(Q);
|
|
572
531
|
}
|
|
573
|
-
async function
|
|
574
|
-
const
|
|
575
|
-
o.set("grant_type",
|
|
576
|
-
const i =
|
|
577
|
-
return i.set("accept", "application/json"),
|
|
532
|
+
async function ve(t, e, n, o, a) {
|
|
533
|
+
const r = be(t, "token_endpoint", _e(e, a));
|
|
534
|
+
o.set("grant_type", n);
|
|
535
|
+
const i = K(a == null ? void 0 : a.headers);
|
|
536
|
+
return i.set("accept", "application/json"), mt(t, e, "POST", r, o, i, a);
|
|
578
537
|
}
|
|
579
|
-
async function
|
|
580
|
-
if (I(t), j(e), !
|
|
538
|
+
async function yt(t, e, n, o) {
|
|
539
|
+
if (I(t), j(e), !g(n))
|
|
581
540
|
throw new TypeError('"refreshToken" must be a non-empty string');
|
|
582
|
-
const
|
|
583
|
-
return
|
|
541
|
+
const a = new URLSearchParams(o == null ? void 0 : o.additionalParameters);
|
|
542
|
+
return a.set("refresh_token", n), ve(t, e, "refresh_token", a, o);
|
|
584
543
|
}
|
|
585
|
-
const
|
|
586
|
-
function
|
|
544
|
+
const Se = /* @__PURE__ */ new WeakMap();
|
|
545
|
+
function bt(t) {
|
|
587
546
|
if (!t.id_token)
|
|
588
547
|
return;
|
|
589
|
-
const e =
|
|
548
|
+
const e = Se.get(t);
|
|
590
549
|
if (!e)
|
|
591
550
|
throw new TypeError('"ref" was already garbage collected or did not resolve from the proper sources');
|
|
592
551
|
return e[0];
|
|
593
552
|
}
|
|
594
|
-
async function
|
|
595
|
-
if (I(t), j(e), !
|
|
553
|
+
async function Te(t, e, n, o = !1, a = !1) {
|
|
554
|
+
if (I(t), j(e), !Y(n, Response))
|
|
596
555
|
throw new TypeError('"response" must be an instance of Response');
|
|
597
|
-
if (
|
|
556
|
+
if (n.status !== 200) {
|
|
598
557
|
let i;
|
|
599
|
-
if (i = await
|
|
558
|
+
if (i = await Ut(n))
|
|
600
559
|
return i;
|
|
601
|
-
throw new
|
|
560
|
+
throw new s('"response" is not a conform Token Endpoint response');
|
|
602
561
|
}
|
|
603
|
-
|
|
604
|
-
let
|
|
562
|
+
te(n);
|
|
563
|
+
let r;
|
|
605
564
|
try {
|
|
606
|
-
|
|
565
|
+
r = await n.json();
|
|
607
566
|
} catch (i) {
|
|
608
|
-
throw new
|
|
567
|
+
throw new s('failed to parse "response" body as JSON', { cause: i });
|
|
609
568
|
}
|
|
610
|
-
if (!
|
|
611
|
-
throw new
|
|
612
|
-
if (!
|
|
613
|
-
throw new
|
|
614
|
-
if (!
|
|
615
|
-
throw new
|
|
616
|
-
if (
|
|
617
|
-
throw new
|
|
618
|
-
if (
|
|
619
|
-
throw new
|
|
620
|
-
if (!
|
|
621
|
-
throw new
|
|
622
|
-
if (
|
|
623
|
-
throw new
|
|
569
|
+
if (!x(r))
|
|
570
|
+
throw new s('"response" body must be a top level object');
|
|
571
|
+
if (!g(r.access_token))
|
|
572
|
+
throw new s('"response" body "access_token" property must be a non-empty string');
|
|
573
|
+
if (!g(r.token_type))
|
|
574
|
+
throw new s('"response" body "token_type" property must be a non-empty string');
|
|
575
|
+
if (r.token_type = r.token_type.toLowerCase(), r.token_type !== "dpop" && r.token_type !== "bearer")
|
|
576
|
+
throw new T("unsupported `token_type` value");
|
|
577
|
+
if (r.expires_in !== void 0 && (typeof r.expires_in != "number" || r.expires_in <= 0))
|
|
578
|
+
throw new s('"response" body "expires_in" property must be a positive number');
|
|
579
|
+
if (!a && r.refresh_token !== void 0 && !g(r.refresh_token))
|
|
580
|
+
throw new s('"response" body "refresh_token" property must be a non-empty string');
|
|
581
|
+
if (r.scope !== void 0 && typeof r.scope != "string")
|
|
582
|
+
throw new s('"response" body "scope" property must be a string');
|
|
624
583
|
if (!o) {
|
|
625
|
-
if (
|
|
626
|
-
throw new
|
|
627
|
-
if (
|
|
628
|
-
const { claims: i, jwt: c } = await
|
|
584
|
+
if (r.id_token !== void 0 && !g(r.id_token))
|
|
585
|
+
throw new s('"response" body "id_token" property must be a non-empty string');
|
|
586
|
+
if (r.id_token) {
|
|
587
|
+
const { claims: i, jwt: c } = await xt(r.id_token, It.bind(void 0, e.id_token_signed_response_alg, t.id_token_signing_alg_values_supported), Ee, H(e), ye(e), e[$e]).then(Et.bind(void 0, ["aud", "exp", "iat", "iss", "sub"])).then(St.bind(void 0, t.issuer)).then(vt.bind(void 0, e.client_id));
|
|
629
588
|
if (Array.isArray(i.aud) && i.aud.length !== 1) {
|
|
630
589
|
if (i.azp === void 0)
|
|
631
|
-
throw new
|
|
590
|
+
throw new s('ID Token "aud" (audience) claim includes additional untrusted audiences');
|
|
632
591
|
if (i.azp !== e.client_id)
|
|
633
|
-
throw new
|
|
592
|
+
throw new s('unexpected ID Token "azp" (authorized party) claim value');
|
|
634
593
|
}
|
|
635
594
|
if (i.auth_time !== void 0 && (!Number.isFinite(i.auth_time) || Math.sign(i.auth_time) !== 1))
|
|
636
|
-
throw new
|
|
637
|
-
|
|
595
|
+
throw new s('ID Token "auth_time" (authentication time) must be a positive number');
|
|
596
|
+
Se.set(r, [i, c]);
|
|
638
597
|
}
|
|
639
598
|
}
|
|
640
|
-
return
|
|
599
|
+
return r;
|
|
641
600
|
}
|
|
642
|
-
async function
|
|
643
|
-
return
|
|
601
|
+
async function _t(t, e, n) {
|
|
602
|
+
return Te(t, e, n);
|
|
644
603
|
}
|
|
645
|
-
function
|
|
604
|
+
function vt(t, e) {
|
|
646
605
|
if (Array.isArray(e.claims.aud)) {
|
|
647
606
|
if (!e.claims.aud.includes(t))
|
|
648
|
-
throw new
|
|
607
|
+
throw new s('unexpected JWT "aud" (audience) claim value');
|
|
649
608
|
} else if (e.claims.aud !== t)
|
|
650
|
-
throw new
|
|
609
|
+
throw new s('unexpected JWT "aud" (audience) claim value');
|
|
651
610
|
return e;
|
|
652
611
|
}
|
|
653
|
-
function
|
|
612
|
+
function St(t, e) {
|
|
654
613
|
if (e.claims.iss !== t)
|
|
655
|
-
throw new
|
|
614
|
+
throw new s('unexpected JWT "iss" (issuer) claim value');
|
|
656
615
|
return e;
|
|
657
616
|
}
|
|
658
|
-
const
|
|
659
|
-
function
|
|
660
|
-
return
|
|
617
|
+
const ke = /* @__PURE__ */ new WeakSet();
|
|
618
|
+
function Tt(t) {
|
|
619
|
+
return ke.add(t), t;
|
|
661
620
|
}
|
|
662
|
-
async function
|
|
663
|
-
if (I(t), j(e), !
|
|
621
|
+
async function kt(t, e, n, o, a, r) {
|
|
622
|
+
if (I(t), j(e), !ke.has(n))
|
|
664
623
|
throw new TypeError('"callbackParameters" must be an instance of URLSearchParams obtained from "validateAuthResponse()", or "validateJwtAuthResponse()');
|
|
665
|
-
if (!
|
|
624
|
+
if (!g(o))
|
|
666
625
|
throw new TypeError('"redirectUri" must be a non-empty string');
|
|
667
|
-
if (!
|
|
626
|
+
if (!g(a))
|
|
668
627
|
throw new TypeError('"codeVerifier" must be a non-empty string');
|
|
669
|
-
const i = k(
|
|
628
|
+
const i = k(n, "code");
|
|
670
629
|
if (!i)
|
|
671
|
-
throw new
|
|
672
|
-
const c = new URLSearchParams(
|
|
673
|
-
return c.set("redirect_uri", o), c.set("code_verifier",
|
|
630
|
+
throw new s('no authorization code in "callbackParameters"');
|
|
631
|
+
const c = new URLSearchParams(r == null ? void 0 : r.additionalParameters);
|
|
632
|
+
return c.set("redirect_uri", o), c.set("code_verifier", a), c.set("code", i), ve(t, e, "authorization_code", c, r);
|
|
674
633
|
}
|
|
675
|
-
const
|
|
634
|
+
const At = {
|
|
676
635
|
aud: "audience",
|
|
677
636
|
c_hash: "code hash",
|
|
678
637
|
client_id: "client id",
|
|
@@ -688,66 +647,66 @@ const Ut = {
|
|
|
688
647
|
htu: "http uri",
|
|
689
648
|
cnf: "confirmation"
|
|
690
649
|
};
|
|
691
|
-
function
|
|
692
|
-
for (const
|
|
693
|
-
if (e.claims[
|
|
694
|
-
throw new
|
|
650
|
+
function Et(t, e) {
|
|
651
|
+
for (const n of t)
|
|
652
|
+
if (e.claims[n] === void 0)
|
|
653
|
+
throw new s(`JWT "${n}" (${At[n]}) claim missing`);
|
|
695
654
|
return e;
|
|
696
655
|
}
|
|
697
|
-
const
|
|
698
|
-
async function
|
|
699
|
-
const
|
|
700
|
-
if (
|
|
701
|
-
return
|
|
702
|
-
if (!
|
|
703
|
-
throw new
|
|
704
|
-
|
|
705
|
-
const i =
|
|
706
|
-
if ((e.require_auth_time ||
|
|
707
|
-
throw new
|
|
708
|
-
if (
|
|
709
|
-
if (typeof
|
|
656
|
+
const Rt = Symbol(), F = Symbol();
|
|
657
|
+
async function Pt(t, e, n, o, a) {
|
|
658
|
+
const r = await Te(t, e, n);
|
|
659
|
+
if (G(r))
|
|
660
|
+
return r;
|
|
661
|
+
if (!g(r.id_token))
|
|
662
|
+
throw new s('"response" body "id_token" property must be a non-empty string');
|
|
663
|
+
a ?? (a = e.default_max_age ?? F);
|
|
664
|
+
const i = bt(r);
|
|
665
|
+
if ((e.require_auth_time || a !== F) && i.auth_time === void 0)
|
|
666
|
+
throw new s('ID Token "auth_time" (authentication time) claim missing');
|
|
667
|
+
if (a !== F) {
|
|
668
|
+
if (typeof a != "number" || a < 0)
|
|
710
669
|
throw new TypeError('"maxAge" must be a non-negative number');
|
|
711
|
-
const c =
|
|
712
|
-
if (i.auth_time +
|
|
713
|
-
throw new
|
|
670
|
+
const c = ee() + H(e), p = ye(e);
|
|
671
|
+
if (i.auth_time + a < c - p)
|
|
672
|
+
throw new s("too much time has elapsed since the last End-User authentication");
|
|
714
673
|
}
|
|
715
674
|
switch (o) {
|
|
716
675
|
case void 0:
|
|
717
|
-
case
|
|
676
|
+
case Rt:
|
|
718
677
|
if (i.nonce !== void 0)
|
|
719
|
-
throw new
|
|
678
|
+
throw new s('unexpected ID Token "nonce" claim value');
|
|
720
679
|
break;
|
|
721
680
|
default:
|
|
722
|
-
if (!
|
|
681
|
+
if (!g(o))
|
|
723
682
|
throw new TypeError('"expectedNonce" must be a non-empty string');
|
|
724
683
|
if (i.nonce === void 0)
|
|
725
|
-
throw new
|
|
684
|
+
throw new s('ID Token "nonce" claim missing');
|
|
726
685
|
if (i.nonce !== o)
|
|
727
|
-
throw new
|
|
686
|
+
throw new s('unexpected ID Token "nonce" claim value');
|
|
728
687
|
}
|
|
729
|
-
return
|
|
688
|
+
return r;
|
|
730
689
|
}
|
|
731
|
-
function
|
|
690
|
+
function te(t) {
|
|
732
691
|
if (t.bodyUsed)
|
|
733
692
|
throw new TypeError('"response" body has been used already');
|
|
734
693
|
}
|
|
735
|
-
async function
|
|
694
|
+
async function Ut(t) {
|
|
736
695
|
if (t.status > 399 && t.status < 500) {
|
|
737
|
-
|
|
696
|
+
te(t);
|
|
738
697
|
try {
|
|
739
698
|
const e = await t.json();
|
|
740
|
-
if (
|
|
699
|
+
if (x(e) && typeof e.error == "string" && e.error.length)
|
|
741
700
|
return e.error_description !== void 0 && typeof e.error_description != "string" && delete e.error_description, e.error_uri !== void 0 && typeof e.error_uri != "string" && delete e.error_uri, e.algs !== void 0 && typeof e.algs != "string" && delete e.algs, e.scope !== void 0 && typeof e.scope != "string" && delete e.scope, e;
|
|
742
701
|
} catch {
|
|
743
702
|
}
|
|
744
703
|
}
|
|
745
704
|
}
|
|
746
|
-
function
|
|
705
|
+
function fe(t) {
|
|
747
706
|
if (typeof t.modulusLength != "number" || t.modulusLength < 2048)
|
|
748
|
-
throw new
|
|
707
|
+
throw new s(`${t.name} modulusLength must be at least 2048 bits`);
|
|
749
708
|
}
|
|
750
|
-
function
|
|
709
|
+
function Ct(t) {
|
|
751
710
|
switch (t) {
|
|
752
711
|
case "P-256":
|
|
753
712
|
return "SHA-256";
|
|
@@ -756,18 +715,18 @@ function jt(t) {
|
|
|
756
715
|
case "P-521":
|
|
757
716
|
return "SHA-512";
|
|
758
717
|
default:
|
|
759
|
-
throw new
|
|
718
|
+
throw new T();
|
|
760
719
|
}
|
|
761
720
|
}
|
|
762
|
-
function
|
|
721
|
+
function Ae(t) {
|
|
763
722
|
switch (t.algorithm.name) {
|
|
764
723
|
case "ECDSA":
|
|
765
724
|
return {
|
|
766
725
|
name: t.algorithm.name,
|
|
767
|
-
hash:
|
|
726
|
+
hash: Ct(t.algorithm.namedCurve)
|
|
768
727
|
};
|
|
769
728
|
case "RSA-PSS":
|
|
770
|
-
switch (
|
|
729
|
+
switch (fe(t.algorithm), t.algorithm.hash.name) {
|
|
771
730
|
case "SHA-256":
|
|
772
731
|
case "SHA-384":
|
|
773
732
|
case "SHA-512":
|
|
@@ -776,274 +735,284 @@ function Pe(t) {
|
|
|
776
735
|
saltLength: parseInt(t.algorithm.hash.name.slice(-3), 10) >> 3
|
|
777
736
|
};
|
|
778
737
|
default:
|
|
779
|
-
throw new
|
|
738
|
+
throw new T();
|
|
780
739
|
}
|
|
781
740
|
case "RSASSA-PKCS1-v1_5":
|
|
782
|
-
return
|
|
741
|
+
return fe(t.algorithm), t.algorithm.name;
|
|
783
742
|
case "Ed448":
|
|
784
743
|
case "Ed25519":
|
|
785
744
|
return t.algorithm.name;
|
|
786
745
|
}
|
|
787
|
-
throw new
|
|
788
|
-
}
|
|
789
|
-
const
|
|
790
|
-
async function
|
|
791
|
-
const
|
|
792
|
-
if (!await crypto.subtle.verify(
|
|
793
|
-
throw new
|
|
794
|
-
}
|
|
795
|
-
async function
|
|
796
|
-
let { 0: i, 1: c, 2: p, length:
|
|
797
|
-
if (
|
|
798
|
-
if (
|
|
799
|
-
t = await
|
|
746
|
+
throw new T();
|
|
747
|
+
}
|
|
748
|
+
const Ee = Symbol();
|
|
749
|
+
async function Lt(t, e, n, o) {
|
|
750
|
+
const a = `${t}.${e}`;
|
|
751
|
+
if (!await crypto.subtle.verify(Ae(n), n, o, E(a)))
|
|
752
|
+
throw new s("JWT signature verification failed");
|
|
753
|
+
}
|
|
754
|
+
async function xt(t, e, n, o, a, r) {
|
|
755
|
+
let { 0: i, 1: c, 2: p, length: _ } = t.split(".");
|
|
756
|
+
if (_ === 5)
|
|
757
|
+
if (r !== void 0)
|
|
758
|
+
t = await r(t), { 0: i, 1: c, 2: p, length: _ } = t.split(".");
|
|
800
759
|
else
|
|
801
|
-
throw new
|
|
802
|
-
if (
|
|
803
|
-
throw new
|
|
760
|
+
throw new T("JWE structure JWTs are not supported");
|
|
761
|
+
if (_ !== 3)
|
|
762
|
+
throw new s("Invalid JWT");
|
|
804
763
|
let f;
|
|
805
764
|
try {
|
|
806
|
-
f = JSON.parse(
|
|
765
|
+
f = JSON.parse(E(A(i)));
|
|
807
766
|
} catch (l) {
|
|
808
|
-
throw new
|
|
767
|
+
throw new s("failed to parse JWT Header body as base64url encoded JSON", { cause: l });
|
|
809
768
|
}
|
|
810
|
-
if (!
|
|
811
|
-
throw new
|
|
769
|
+
if (!x(f))
|
|
770
|
+
throw new s("JWT Header must be a top level object");
|
|
812
771
|
if (e(f), f.crit !== void 0)
|
|
813
|
-
throw new
|
|
814
|
-
const
|
|
815
|
-
let
|
|
816
|
-
|
|
817
|
-
let
|
|
772
|
+
throw new s('unexpected JWT "crit" header parameter');
|
|
773
|
+
const v = A(p);
|
|
774
|
+
let b;
|
|
775
|
+
n !== Ee && (b = await n(f), await Lt(i, c, b, v));
|
|
776
|
+
let d;
|
|
818
777
|
try {
|
|
819
|
-
|
|
778
|
+
d = JSON.parse(E(A(c)));
|
|
820
779
|
} catch (l) {
|
|
821
|
-
throw new
|
|
780
|
+
throw new s("failed to parse JWT Payload body as base64url encoded JSON", { cause: l });
|
|
822
781
|
}
|
|
823
|
-
if (!
|
|
824
|
-
throw new
|
|
825
|
-
const
|
|
826
|
-
if (
|
|
827
|
-
if (typeof
|
|
828
|
-
throw new
|
|
829
|
-
if (
|
|
830
|
-
throw new
|
|
782
|
+
if (!x(d))
|
|
783
|
+
throw new s("JWT Payload must be a top level object");
|
|
784
|
+
const P = ee() + o;
|
|
785
|
+
if (d.exp !== void 0) {
|
|
786
|
+
if (typeof d.exp != "number")
|
|
787
|
+
throw new s('unexpected JWT "exp" (expiration time) claim type');
|
|
788
|
+
if (d.exp <= P - a)
|
|
789
|
+
throw new s('unexpected JWT "exp" (expiration time) claim value, timestamp is <= now()');
|
|
831
790
|
}
|
|
832
|
-
if (
|
|
833
|
-
throw new
|
|
834
|
-
if (
|
|
835
|
-
throw new
|
|
836
|
-
if (
|
|
837
|
-
if (typeof
|
|
838
|
-
throw new
|
|
839
|
-
if (
|
|
840
|
-
throw new
|
|
791
|
+
if (d.iat !== void 0 && typeof d.iat != "number")
|
|
792
|
+
throw new s('unexpected JWT "iat" (issued at) claim type');
|
|
793
|
+
if (d.iss !== void 0 && typeof d.iss != "string")
|
|
794
|
+
throw new s('unexpected JWT "iss" (issuer) claim type');
|
|
795
|
+
if (d.nbf !== void 0) {
|
|
796
|
+
if (typeof d.nbf != "number")
|
|
797
|
+
throw new s('unexpected JWT "nbf" (not before) claim type');
|
|
798
|
+
if (d.nbf > P + a)
|
|
799
|
+
throw new s('unexpected JWT "nbf" (not before) claim value, timestamp is > now()');
|
|
841
800
|
}
|
|
842
|
-
if (
|
|
843
|
-
throw new
|
|
844
|
-
return { header: f, claims:
|
|
801
|
+
if (d.aud !== void 0 && typeof d.aud != "string" && !Array.isArray(d.aud))
|
|
802
|
+
throw new s('unexpected JWT "aud" (audience) claim type');
|
|
803
|
+
return { header: f, claims: d, signature: v, key: b, jwt: t };
|
|
845
804
|
}
|
|
846
|
-
function
|
|
805
|
+
function It(t, e, n) {
|
|
847
806
|
if (t !== void 0) {
|
|
848
|
-
if (
|
|
849
|
-
throw new
|
|
807
|
+
if (n.alg !== t)
|
|
808
|
+
throw new s('unexpected JWT "alg" header parameter');
|
|
850
809
|
return;
|
|
851
810
|
}
|
|
852
811
|
if (Array.isArray(e)) {
|
|
853
|
-
if (!e.includes(
|
|
854
|
-
throw new
|
|
812
|
+
if (!e.includes(n.alg))
|
|
813
|
+
throw new s('unexpected JWT "alg" header parameter');
|
|
855
814
|
return;
|
|
856
815
|
}
|
|
857
|
-
if (
|
|
858
|
-
throw new
|
|
816
|
+
if (n.alg !== "RS256")
|
|
817
|
+
throw new s('unexpected JWT "alg" header parameter');
|
|
859
818
|
}
|
|
860
819
|
function k(t, e) {
|
|
861
|
-
const { 0:
|
|
820
|
+
const { 0: n, length: o } = t.getAll(e);
|
|
862
821
|
if (o > 1)
|
|
863
|
-
throw new
|
|
864
|
-
return
|
|
822
|
+
throw new s(`"${e}" parameter must be provided only once`);
|
|
823
|
+
return n;
|
|
865
824
|
}
|
|
866
|
-
const
|
|
867
|
-
function
|
|
868
|
-
if (I(t), j(e),
|
|
825
|
+
const jt = Symbol(), Jt = Symbol();
|
|
826
|
+
function Ot(t, e, n, o) {
|
|
827
|
+
if (I(t), j(e), n instanceof URL && (n = n.searchParams), !(n instanceof URLSearchParams))
|
|
869
828
|
throw new TypeError('"parameters" must be an instance of URLSearchParams, or URL');
|
|
870
|
-
if (k(
|
|
871
|
-
throw new
|
|
872
|
-
const
|
|
873
|
-
if (!
|
|
874
|
-
throw new
|
|
875
|
-
if (
|
|
876
|
-
throw new
|
|
829
|
+
if (k(n, "response"))
|
|
830
|
+
throw new s('"parameters" contains a JARM response, use validateJwtAuthResponse() instead of validateAuthResponse()');
|
|
831
|
+
const a = k(n, "iss"), r = k(n, "state");
|
|
832
|
+
if (!a && t.authorization_response_iss_parameter_supported)
|
|
833
|
+
throw new s('response parameter "iss" (issuer) missing');
|
|
834
|
+
if (a && a !== t.issuer)
|
|
835
|
+
throw new s('unexpected "iss" (issuer) response parameter value');
|
|
877
836
|
switch (o) {
|
|
878
837
|
case void 0:
|
|
879
|
-
case
|
|
880
|
-
if (
|
|
881
|
-
throw new
|
|
838
|
+
case Jt:
|
|
839
|
+
if (r !== void 0)
|
|
840
|
+
throw new s('unexpected "state" response parameter encountered');
|
|
882
841
|
break;
|
|
883
|
-
case
|
|
842
|
+
case jt:
|
|
884
843
|
break;
|
|
885
844
|
default:
|
|
886
|
-
if (!
|
|
887
|
-
throw new
|
|
888
|
-
if (
|
|
889
|
-
throw new
|
|
890
|
-
if (
|
|
891
|
-
throw new
|
|
845
|
+
if (!g(o))
|
|
846
|
+
throw new s('"expectedState" must be a non-empty string');
|
|
847
|
+
if (r === void 0)
|
|
848
|
+
throw new s('response parameter "state" missing');
|
|
849
|
+
if (r !== o)
|
|
850
|
+
throw new s('unexpected "state" response parameter value');
|
|
892
851
|
}
|
|
893
|
-
const i = k(
|
|
852
|
+
const i = k(n, "error");
|
|
894
853
|
if (i)
|
|
895
854
|
return {
|
|
896
855
|
error: i,
|
|
897
|
-
error_description: k(
|
|
898
|
-
error_uri: k(
|
|
856
|
+
error_description: k(n, "error_description"),
|
|
857
|
+
error_uri: k(n, "error_uri")
|
|
899
858
|
};
|
|
900
|
-
const c = k(
|
|
859
|
+
const c = k(n, "id_token"), p = k(n, "token");
|
|
901
860
|
if (c !== void 0 || p !== void 0)
|
|
902
|
-
throw new
|
|
903
|
-
return
|
|
861
|
+
throw new T("implicit and hybrid flows are not supported");
|
|
862
|
+
return Tt(new URLSearchParams(n));
|
|
904
863
|
}
|
|
905
|
-
function
|
|
864
|
+
function zt({
|
|
906
865
|
handleCallback: t
|
|
907
866
|
}) {
|
|
908
|
-
const
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
/* @__PURE__ */ A.jsx(We, { className: "mb-4", children: "Check the configuration of your authorization provider and ensure all settings such as the callback URL are configured correctly." }),
|
|
922
|
-
"An error occurred while authorizing the user.",
|
|
923
|
-
/* @__PURE__ */ A.jsx(Fe, { code: e.toString(), language: "plain" })
|
|
924
|
-
] })
|
|
867
|
+
const e = je({
|
|
868
|
+
retry: !1,
|
|
869
|
+
queryKey: ["oauth-callback"],
|
|
870
|
+
queryFn: async () => {
|
|
871
|
+
try {
|
|
872
|
+
return await t();
|
|
873
|
+
} catch (n) {
|
|
874
|
+
throw new ze("Could not validate user", {
|
|
875
|
+
cause: n,
|
|
876
|
+
title: "Authentication Error",
|
|
877
|
+
developerHint: "Check the configuration of your authorization provider and ensure all settings such as the callback URL are configured correctly."
|
|
878
|
+
});
|
|
879
|
+
}
|
|
925
880
|
}
|
|
926
|
-
|
|
881
|
+
});
|
|
882
|
+
return /* @__PURE__ */ B.jsx(Oe, { to: e.data });
|
|
927
883
|
}
|
|
928
|
-
class
|
|
884
|
+
class R extends Error {
|
|
929
885
|
}
|
|
930
|
-
class
|
|
931
|
-
constructor(e,
|
|
932
|
-
super(e, o), this.error =
|
|
886
|
+
class pe extends R {
|
|
887
|
+
constructor(e, n, o) {
|
|
888
|
+
super(e, o), this.error = n;
|
|
933
889
|
}
|
|
934
890
|
}
|
|
935
|
-
const
|
|
936
|
-
class
|
|
937
|
-
constructor(e,
|
|
938
|
-
super(), this.callbackUrlPath = e, this.handleCallback =
|
|
891
|
+
const M = "code-verifier", q = "oauth-state";
|
|
892
|
+
class Dt extends Je {
|
|
893
|
+
constructor(e, n) {
|
|
894
|
+
super(), this.callbackUrlPath = e, this.handleCallback = n;
|
|
939
895
|
}
|
|
940
896
|
getRoutes() {
|
|
941
897
|
return [
|
|
942
898
|
...super.getRoutes(),
|
|
943
899
|
{
|
|
944
900
|
path: this.callbackUrlPath,
|
|
945
|
-
element: /* @__PURE__ */
|
|
901
|
+
element: /* @__PURE__ */ B.jsx(Ie, { children: /* @__PURE__ */ B.jsx(zt, { handleCallback: this.handleCallback }) })
|
|
946
902
|
}
|
|
947
903
|
];
|
|
948
904
|
}
|
|
949
905
|
}
|
|
950
|
-
class
|
|
906
|
+
class Nt {
|
|
951
907
|
constructor({
|
|
952
908
|
issuer: e,
|
|
953
|
-
audience:
|
|
909
|
+
audience: n,
|
|
954
910
|
clientId: o,
|
|
955
|
-
redirectToAfterSignUp:
|
|
956
|
-
redirectToAfterSignIn:
|
|
957
|
-
redirectToAfterSignOut: i
|
|
911
|
+
redirectToAfterSignUp: a,
|
|
912
|
+
redirectToAfterSignIn: r,
|
|
913
|
+
redirectToAfterSignOut: i,
|
|
914
|
+
basePath: c,
|
|
915
|
+
scopes: p
|
|
958
916
|
}) {
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
917
|
+
w(this, "client");
|
|
918
|
+
w(this, "issuer");
|
|
919
|
+
w(this, "authorizationServer");
|
|
920
|
+
w(this, "absoluteCallbackUrlPath");
|
|
921
|
+
w(this, "relativeCallbackUrlPath");
|
|
922
|
+
w(this, "logoutRedirectUrlPath");
|
|
923
|
+
w(this, "onAuthorizationUrl");
|
|
924
|
+
w(this, "redirectToAfterSignUp");
|
|
925
|
+
w(this, "redirectToAfterSignIn");
|
|
926
|
+
w(this, "redirectToAfterSignOut");
|
|
927
|
+
w(this, "audience");
|
|
928
|
+
w(this, "scopes");
|
|
929
|
+
w(this, "root");
|
|
930
|
+
w(this, "signRequest", async (e) => {
|
|
931
|
+
const n = await this.getAccessToken();
|
|
932
|
+
return e.headers.set("Authorization", `Bearer ${n}`), e;
|
|
933
|
+
});
|
|
934
|
+
w(this, "signOut", async () => {
|
|
935
|
+
L.setState({
|
|
971
936
|
isAuthenticated: !1,
|
|
972
937
|
isPending: !1,
|
|
973
|
-
profile: void 0
|
|
974
|
-
|
|
975
|
-
|
|
938
|
+
profile: void 0,
|
|
939
|
+
providerData: void 0
|
|
940
|
+
});
|
|
941
|
+
const e = await this.getAuthServer(), n = new URL(
|
|
976
942
|
window.location.origin + this.redirectToAfterSignOut
|
|
977
943
|
);
|
|
978
|
-
|
|
944
|
+
n.pathname = this.logoutRedirectUrlPath;
|
|
979
945
|
let o;
|
|
980
946
|
e.end_session_endpoint ? (o = new URL(e.end_session_endpoint), o.searchParams.set(
|
|
981
947
|
"post_logout_redirect_uri",
|
|
982
|
-
|
|
983
|
-
)) : o =
|
|
948
|
+
n.toString()
|
|
949
|
+
)) : o = n;
|
|
984
950
|
});
|
|
985
|
-
|
|
986
|
-
const e = new URL(window.location.href),
|
|
987
|
-
if (sessionStorage.removeItem(
|
|
988
|
-
throw new
|
|
989
|
-
const
|
|
990
|
-
|
|
951
|
+
w(this, "handleCallback", async () => {
|
|
952
|
+
const e = new URL(window.location.href), n = e.searchParams.get("state"), o = sessionStorage.getItem(q);
|
|
953
|
+
if (sessionStorage.removeItem(q), n !== o)
|
|
954
|
+
throw new R("Invalid state parameter");
|
|
955
|
+
const a = sessionStorage.getItem(M);
|
|
956
|
+
if (sessionStorage.removeItem(M), !a)
|
|
957
|
+
throw new R("No code verifier found in state.");
|
|
958
|
+
const r = await this.getAuthServer(), i = Ot(
|
|
959
|
+
r,
|
|
991
960
|
this.client,
|
|
992
961
|
e.searchParams,
|
|
993
|
-
|
|
962
|
+
n ?? void 0
|
|
994
963
|
);
|
|
995
|
-
if (
|
|
996
|
-
throw
|
|
964
|
+
if (G(i))
|
|
965
|
+
throw se.error("Error validating OAuth response", i), new pe(
|
|
997
966
|
"Error validating OAuth response",
|
|
998
|
-
|
|
967
|
+
i
|
|
999
968
|
);
|
|
1000
|
-
const
|
|
1001
|
-
|
|
1002
|
-
const
|
|
1003
|
-
|
|
969
|
+
const c = new URL(e);
|
|
970
|
+
c.pathname = this.absoluteCallbackUrlPath, c.search = "";
|
|
971
|
+
const p = await kt(
|
|
972
|
+
r,
|
|
1004
973
|
this.client,
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
),
|
|
1009
|
-
|
|
974
|
+
i,
|
|
975
|
+
c.toString(),
|
|
976
|
+
a
|
|
977
|
+
), _ = await Pt(
|
|
978
|
+
r,
|
|
1010
979
|
this.client,
|
|
1011
|
-
|
|
980
|
+
p
|
|
1012
981
|
);
|
|
1013
|
-
this.setTokensFromResponse(
|
|
1014
|
-
const
|
|
1015
|
-
|
|
982
|
+
this.setTokensFromResponse(_);
|
|
983
|
+
const f = await this.getAccessToken(), b = await (await gt(
|
|
984
|
+
r,
|
|
1016
985
|
this.client,
|
|
1017
|
-
|
|
1018
|
-
)).json(),
|
|
1019
|
-
sub:
|
|
1020
|
-
email:
|
|
1021
|
-
name:
|
|
1022
|
-
emailVerified:
|
|
1023
|
-
pictureUrl:
|
|
986
|
+
f
|
|
987
|
+
)).json(), d = {
|
|
988
|
+
sub: b.sub,
|
|
989
|
+
email: b.email,
|
|
990
|
+
name: b.name,
|
|
991
|
+
emailVerified: b.email_verified ?? !1,
|
|
992
|
+
pictureUrl: b.picture
|
|
1024
993
|
};
|
|
1025
|
-
|
|
994
|
+
L.setState({
|
|
1026
995
|
isAuthenticated: !0,
|
|
1027
996
|
isPending: !1,
|
|
1028
|
-
profile:
|
|
1029
|
-
})
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
);
|
|
1033
|
-
const h = sessionStorage.getItem("redirect-to") ?? "/";
|
|
1034
|
-
return sessionStorage.removeItem("redirect-to"), h;
|
|
997
|
+
profile: d
|
|
998
|
+
});
|
|
999
|
+
const P = sessionStorage.getItem("redirect-to") ?? "/";
|
|
1000
|
+
return sessionStorage.removeItem("redirect-to"), P;
|
|
1035
1001
|
});
|
|
1036
1002
|
this.client = {
|
|
1037
1003
|
client_id: o,
|
|
1038
1004
|
token_endpoint_auth_method: "none"
|
|
1039
|
-
}, this.audience =
|
|
1005
|
+
}, this.audience = n, this.issuer = e, this.relativeCallbackUrlPath = "/oauth/callback", this.absoluteCallbackUrlPath = ie(
|
|
1006
|
+
c,
|
|
1007
|
+
this.relativeCallbackUrlPath
|
|
1008
|
+
), this.scopes = p ?? ["openid", "profile", "email"], this.root = ie(c, "/"), this.logoutRedirectUrlPath = this.root, this.redirectToAfterSignUp = a ?? this.root, this.redirectToAfterSignIn = r ?? this.root, this.redirectToAfterSignOut = i ?? this.root;
|
|
1040
1009
|
}
|
|
1041
1010
|
async getAuthServer() {
|
|
1042
1011
|
if (!this.authorizationServer) {
|
|
1043
|
-
const e = new URL(this.issuer),
|
|
1044
|
-
this.authorizationServer = await
|
|
1012
|
+
const e = new URL(this.issuer), n = await et(e);
|
|
1013
|
+
this.authorizationServer = await tt(
|
|
1045
1014
|
e,
|
|
1046
|
-
|
|
1015
|
+
n
|
|
1047
1016
|
);
|
|
1048
1017
|
}
|
|
1049
1018
|
return this.authorizationServer;
|
|
@@ -1053,17 +1022,20 @@ class $t {
|
|
|
1053
1022
|
* @param response
|
|
1054
1023
|
*/
|
|
1055
1024
|
setTokensFromResponse(e) {
|
|
1056
|
-
if (
|
|
1057
|
-
throw
|
|
1025
|
+
if (G(e))
|
|
1026
|
+
throw se.error("Bad Token Response", e), new pe("Bad Token Response", e);
|
|
1058
1027
|
if (!e.expires_in)
|
|
1059
|
-
throw new
|
|
1060
|
-
const
|
|
1028
|
+
throw new R("No expires_in in response");
|
|
1029
|
+
const n = {
|
|
1061
1030
|
accessToken: e.access_token,
|
|
1062
1031
|
refreshToken: e.refresh_token,
|
|
1032
|
+
idToken: e.id_token,
|
|
1063
1033
|
expiresOn: new Date(Date.now() + e.expires_in * 1e3),
|
|
1064
1034
|
tokenType: e.token_type
|
|
1065
1035
|
};
|
|
1066
|
-
|
|
1036
|
+
L.setState({
|
|
1037
|
+
providerData: n
|
|
1038
|
+
});
|
|
1067
1039
|
}
|
|
1068
1040
|
async signUp({ redirectTo: e } = {}) {
|
|
1069
1041
|
return this.authorize({
|
|
@@ -1078,75 +1050,67 @@ class $t {
|
|
|
1078
1050
|
}
|
|
1079
1051
|
async authorize({
|
|
1080
1052
|
redirectTo: e,
|
|
1081
|
-
isSignUp:
|
|
1053
|
+
isSignUp: n = !1
|
|
1082
1054
|
}) {
|
|
1083
|
-
var
|
|
1084
|
-
const o = "S256",
|
|
1085
|
-
if (!
|
|
1086
|
-
throw new
|
|
1087
|
-
const
|
|
1088
|
-
sessionStorage.setItem(
|
|
1055
|
+
var v;
|
|
1056
|
+
const o = "S256", a = await this.getAuthServer();
|
|
1057
|
+
if (!a.authorization_endpoint)
|
|
1058
|
+
throw new R("No authorization endpoint");
|
|
1059
|
+
const r = nt(), i = await ot(r);
|
|
1060
|
+
sessionStorage.setItem(M, r);
|
|
1089
1061
|
const c = new URL(
|
|
1090
|
-
|
|
1091
|
-
);
|
|
1092
|
-
sessionStorage.setItem("redirect-to",
|
|
1093
|
-
const
|
|
1094
|
-
|
|
1062
|
+
a.authorization_endpoint
|
|
1063
|
+
), p = e.startsWith(window.location.origin) ? this.root !== "/" && e.startsWith(window.location.origin + this.root) ? e.slice(window.location.origin.length + this.root.length) : e.slice(window.location.origin.length) : e;
|
|
1064
|
+
sessionStorage.setItem("redirect-to", p);
|
|
1065
|
+
const _ = new URL(window.location.origin);
|
|
1066
|
+
_.pathname = this.absoluteCallbackUrlPath, _.search = "", c.searchParams.set("client_id", this.client.client_id), c.searchParams.set("redirect_uri", _.toString()), c.searchParams.set("response_type", "code"), c.searchParams.set("scope", this.scopes.join(" ")), c.searchParams.set("code_challenge", i), c.searchParams.set(
|
|
1095
1067
|
"code_challenge_method",
|
|
1096
1068
|
o
|
|
1097
|
-
), this.audience && c.searchParams.set("audience", this.audience), (
|
|
1098
|
-
isSignIn: !
|
|
1099
|
-
isSignUp:
|
|
1100
|
-
})
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
}
|
|
1104
|
-
location.href = c.href;
|
|
1069
|
+
), this.audience && c.searchParams.set("audience", this.audience), (v = this.onAuthorizationUrl) == null || v.call(this, c, {
|
|
1070
|
+
isSignIn: !n,
|
|
1071
|
+
isSignUp: n
|
|
1072
|
+
});
|
|
1073
|
+
const f = rt();
|
|
1074
|
+
sessionStorage.setItem(q, f), c.searchParams.set("state", f), location.href = c.href;
|
|
1105
1075
|
}
|
|
1106
1076
|
async getAccessToken() {
|
|
1107
|
-
const e = await this.getAuthServer(),
|
|
1108
|
-
if (!
|
|
1109
|
-
throw new
|
|
1110
|
-
const o =
|
|
1111
|
-
if (o.expiresOn < /* @__PURE__ */ new Date()) {
|
|
1077
|
+
const e = await this.getAuthServer(), { providerData: n } = L.getState();
|
|
1078
|
+
if (!n)
|
|
1079
|
+
throw new R("User is not authenticated");
|
|
1080
|
+
const o = n;
|
|
1081
|
+
if (new Date(o.expiresOn) < /* @__PURE__ */ new Date()) {
|
|
1112
1082
|
if (!o.refreshToken)
|
|
1113
|
-
return
|
|
1114
|
-
|
|
1083
|
+
return L.setState({
|
|
1084
|
+
isAuthenticated: !1,
|
|
1085
|
+
isPending: !1,
|
|
1086
|
+
profile: null,
|
|
1087
|
+
providerData: null
|
|
1088
|
+
}), "";
|
|
1089
|
+
const a = await yt(
|
|
1115
1090
|
e,
|
|
1116
1091
|
this.client,
|
|
1117
1092
|
o.refreshToken
|
|
1118
|
-
),
|
|
1093
|
+
), r = await _t(
|
|
1119
1094
|
e,
|
|
1120
1095
|
this.client,
|
|
1121
|
-
|
|
1096
|
+
a
|
|
1122
1097
|
);
|
|
1123
|
-
if (!
|
|
1124
|
-
throw new
|
|
1125
|
-
return this.setTokensFromResponse(
|
|
1098
|
+
if (!r.access_token)
|
|
1099
|
+
throw new R("No access token in response");
|
|
1100
|
+
return this.setTokensFromResponse(r), r.access_token.toString();
|
|
1126
1101
|
} else
|
|
1127
1102
|
return o.accessToken;
|
|
1128
1103
|
}
|
|
1129
|
-
pageLoad() {
|
|
1130
|
-
const e = sessionStorage.getItem("profile-state");
|
|
1131
|
-
if (e)
|
|
1132
|
-
try {
|
|
1133
|
-
const r = JSON.parse(e);
|
|
1134
|
-
N.setState({
|
|
1135
|
-
isAuthenticated: !0,
|
|
1136
|
-
isPending: !1,
|
|
1137
|
-
profile: r
|
|
1138
|
-
});
|
|
1139
|
-
} catch (r) {
|
|
1140
|
-
K.error("Error parsing auth state", r);
|
|
1141
|
-
}
|
|
1142
|
-
}
|
|
1143
1104
|
getAuthenticationPlugin() {
|
|
1144
|
-
return new
|
|
1105
|
+
return new Dt(
|
|
1106
|
+
this.relativeCallbackUrlPath,
|
|
1107
|
+
this.handleCallback
|
|
1108
|
+
);
|
|
1145
1109
|
}
|
|
1146
1110
|
}
|
|
1147
|
-
const
|
|
1111
|
+
const Vt = (t) => new Nt(t);
|
|
1148
1112
|
export {
|
|
1149
|
-
|
|
1150
|
-
|
|
1113
|
+
Nt as OpenIDAuthenticationProvider,
|
|
1114
|
+
Vt as default
|
|
1151
1115
|
};
|
|
1152
1116
|
//# sourceMappingURL=zudoku.auth-openid.js.map
|