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