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