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