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