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