zudoku 0.0.0-ec20d13 → 0.0.0-ec4a6db
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 +2 -2
- package/dist/app/ZuploBuildConfig.d.ts +11 -121
- package/dist/app/ZuploBuildConfig.js +8 -8
- package/dist/app/ZuploBuildConfig.js.map +1 -1
- package/dist/app/demo.js +21 -5
- package/dist/app/demo.js.map +1 -1
- package/dist/app/entry.client.d.ts +0 -2
- package/dist/app/entry.client.js +0 -2
- package/dist/app/entry.client.js.map +1 -1
- package/dist/app/entry.server.d.ts +0 -2
- package/dist/app/entry.server.js +0 -2
- package/dist/app/entry.server.js.map +1 -1
- package/dist/app/env.d.ts +7 -7
- package/dist/app/env.js +8 -0
- package/dist/app/env.js.map +1 -1
- package/dist/app/main.d.ts +1 -0
- package/dist/app/main.js +13 -18
- package/dist/app/main.js.map +1 -1
- package/dist/app/standalone.js +7 -6
- package/dist/app/standalone.js.map +1 -1
- package/dist/cli/build/handler.js +9 -1
- package/dist/cli/build/handler.js.map +1 -1
- package/dist/config/loader.js +4 -8
- package/dist/config/loader.js.map +1 -1
- package/dist/config/validators/BuildSchema.d.ts +20 -44
- package/dist/config/validators/BuildSchema.js +8 -14
- package/dist/config/validators/BuildSchema.js.map +1 -1
- package/dist/config/validators/InputNavigationSchema.d.ts +7369 -0
- package/dist/config/validators/InputNavigationSchema.js +74 -0
- package/dist/config/validators/InputNavigationSchema.js.map +1 -0
- package/dist/config/validators/InputNavigationSchema.test-d.d.ts +1 -0
- package/dist/config/validators/InputNavigationSchema.test-d.js +146 -0
- package/dist/config/validators/InputNavigationSchema.test-d.js.map +1 -0
- package/dist/config/validators/NavigationSchema.d.ts +44 -0
- package/dist/config/validators/NavigationSchema.js +95 -0
- package/dist/config/validators/NavigationSchema.js.map +1 -0
- package/dist/config/validators/icon-types.d.ts +2 -1
- package/dist/config/validators/icon-types.js +1813 -1
- package/dist/config/validators/icon-types.js.map +1 -1
- package/dist/config/validators/validate.d.ts +464 -5669
- package/dist/config/validators/validate.js +80 -71
- package/dist/config/validators/validate.js.map +1 -1
- package/dist/config/validators/validate.test.js +65 -4
- package/dist/config/validators/validate.test.js.map +1 -1
- package/dist/flat-config.d.ts +325 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js.map +1 -1
- package/dist/lib/auth/issuer.js +1 -1
- package/dist/lib/auth/issuer.js.map +1 -1
- package/dist/lib/auth/issuer.test.js +1 -1
- package/dist/lib/auth/issuer.test.js.map +1 -1
- package/dist/lib/authentication/authentication.d.ts +2 -0
- package/dist/lib/authentication/components/CallbackHandler.js +1 -1
- package/dist/lib/authentication/components/CallbackHandler.js.map +1 -1
- package/dist/lib/authentication/components/SignIn.js +4 -3
- package/dist/lib/authentication/components/SignIn.js.map +1 -1
- package/dist/lib/authentication/providers/openid.d.ts +4 -2
- package/dist/lib/authentication/providers/openid.js +11 -5
- package/dist/lib/authentication/providers/openid.js.map +1 -1
- package/dist/lib/components/Autocomplete.js +2 -2
- package/dist/lib/components/Autocomplete.js.map +1 -1
- package/dist/lib/components/Banner.js +2 -2
- package/dist/lib/components/Banner.js.map +1 -1
- package/dist/lib/components/BuildCheck.js +1 -1
- package/dist/lib/components/BuildCheck.js.map +1 -1
- package/dist/lib/components/CategoryHeading.js +1 -1
- package/dist/lib/components/CategoryHeading.js.map +1 -1
- package/dist/lib/components/ErrorPage.js +2 -2
- package/dist/lib/components/ErrorPage.js.map +1 -1
- package/dist/lib/components/Footer.js +1 -1
- package/dist/lib/components/Footer.js.map +1 -1
- package/dist/lib/components/Framed.d.ts +7 -0
- package/dist/lib/components/Framed.js +26 -0
- package/dist/lib/components/Framed.js.map +1 -0
- package/dist/lib/components/Header.js +19 -18
- package/dist/lib/components/Header.js.map +1 -1
- package/dist/lib/components/Heading.d.ts +6 -2
- package/dist/lib/components/Heading.js +2 -2
- package/dist/lib/components/Heading.js.map +1 -1
- package/dist/lib/components/Main.js +4 -4
- package/dist/lib/components/Main.js.map +1 -1
- package/dist/lib/components/Markdown.d.ts +0 -1
- package/dist/lib/components/Markdown.js +2 -3
- package/dist/lib/components/Markdown.js.map +1 -1
- package/dist/lib/components/MobileTopNavigation.js +11 -7
- package/dist/lib/components/MobileTopNavigation.js.map +1 -1
- package/dist/lib/components/NotFoundPage.js +2 -2
- package/dist/lib/components/NotFoundPage.js.map +1 -1
- package/dist/lib/components/PageProgress.d.ts +1 -0
- package/dist/lib/components/PageProgress.js +20 -0
- package/dist/lib/components/PageProgress.js.map +1 -0
- package/dist/lib/components/Pagination.js +1 -1
- package/dist/lib/components/Pagination.js.map +1 -1
- package/dist/lib/components/StatusPage.js +4 -0
- package/dist/lib/components/StatusPage.js.map +1 -1
- package/dist/lib/components/TopNavigation.d.ts +7 -3
- package/dist/lib/components/TopNavigation.js +49 -44
- package/dist/lib/components/TopNavigation.js.map +1 -1
- package/dist/lib/components/Typography.d.ts +5 -0
- package/dist/lib/components/Typography.js +8 -0
- package/dist/lib/components/Typography.js.map +1 -0
- package/dist/lib/components/context/ZudokuContext.d.ts +3 -7
- package/dist/lib/components/context/ZudokuContext.js +44 -26
- package/dist/lib/components/context/ZudokuContext.js.map +1 -1
- package/dist/lib/components/index.d.ts +4 -0
- package/dist/lib/components/index.js +2 -0
- package/dist/lib/components/index.js.map +1 -1
- package/dist/lib/components/navigation/Navigation.d.ts +5 -0
- package/dist/lib/components/navigation/Navigation.js +12 -0
- package/dist/lib/components/navigation/Navigation.js.map +1 -0
- package/dist/lib/components/navigation/{SidebarBadge.d.ts → NavigationBadge.d.ts} +1 -1
- package/dist/lib/components/navigation/{SidebarBadge.js → NavigationBadge.js} +2 -2
- package/dist/lib/components/navigation/NavigationBadge.js.map +1 -0
- package/dist/lib/components/navigation/NavigationCategory.d.ts +5 -0
- package/dist/lib/components/navigation/{SidebarCategory.js → NavigationCategory.js} +14 -12
- package/dist/lib/components/navigation/NavigationCategory.js.map +1 -0
- package/dist/lib/components/navigation/NavigationItem.d.ts +6 -0
- package/dist/lib/components/navigation/NavigationItem.js +47 -0
- package/dist/lib/components/navigation/NavigationItem.js.map +1 -0
- package/dist/lib/components/navigation/{SidebarWrapper.d.ts → NavigationWrapper.d.ts} +1 -1
- package/dist/lib/components/navigation/{SidebarWrapper.js → NavigationWrapper.js} +5 -5
- package/dist/lib/components/navigation/NavigationWrapper.js.map +1 -0
- package/dist/lib/components/navigation/utils.d.ts +7 -9
- package/dist/lib/components/navigation/utils.js +17 -17
- package/dist/lib/components/navigation/utils.js.map +1 -1
- package/dist/lib/core/ZudokuContext.d.ts +12 -13
- package/dist/lib/core/ZudokuContext.js +21 -10
- package/dist/lib/core/ZudokuContext.js.map +1 -1
- package/dist/lib/core/plugins.d.ts +2 -2
- package/dist/lib/errors/ErrorAlert.js +2 -3
- package/dist/lib/errors/ErrorAlert.js.map +1 -1
- package/dist/lib/hooks/useEvent.test.js +5 -3
- package/dist/lib/hooks/useEvent.test.js.map +1 -1
- package/dist/lib/hooks/useHotkey.d.ts +4 -0
- package/dist/lib/hooks/useHotkey.js +58 -0
- package/dist/lib/hooks/useHotkey.js.map +1 -0
- package/dist/lib/plugins/api-catalog/Catalog.d.ts +1 -1
- package/dist/lib/plugins/api-catalog/index.d.ts +6 -6
- package/dist/lib/plugins/api-catalog/index.js +10 -10
- package/dist/lib/plugins/api-catalog/index.js.map +1 -1
- package/dist/lib/plugins/api-keys/SettingsApiKeys.js +13 -16
- package/dist/lib/plugins/api-keys/SettingsApiKeys.js.map +1 -1
- package/dist/lib/plugins/api-keys/index.js +23 -2
- package/dist/lib/plugins/api-keys/index.js.map +1 -1
- package/dist/lib/plugins/custom-pages/index.d.ts +4 -6
- package/dist/lib/plugins/custom-pages/index.js +15 -10
- package/dist/lib/plugins/custom-pages/index.js.map +1 -1
- package/dist/lib/plugins/markdown/MdxPage.d.ts +1 -2
- package/dist/lib/plugins/markdown/MdxPage.js +30 -10
- package/dist/lib/plugins/markdown/MdxPage.js.map +1 -1
- package/dist/lib/plugins/markdown/index.d.ts +10 -2
- package/dist/lib/plugins/markdown/index.js +9 -26
- package/dist/lib/plugins/markdown/index.js.map +1 -1
- package/dist/lib/plugins/openapi/OperationList.js +2 -3
- package/dist/lib/plugins/openapi/OperationList.js.map +1 -1
- package/dist/lib/plugins/openapi/OperationListItem.js +2 -2
- package/dist/lib/plugins/openapi/OperationListItem.js.map +1 -1
- package/dist/lib/plugins/openapi/ParameterListItem.js +1 -1
- package/dist/lib/plugins/openapi/ParameterListItem.js.map +1 -1
- package/dist/lib/plugins/openapi/SchemaList.js +2 -3
- package/dist/lib/plugins/openapi/SchemaList.js.map +1 -1
- package/dist/lib/plugins/openapi/Sidecar.js +1 -1
- package/dist/lib/plugins/openapi/Sidecar.js.map +1 -1
- package/dist/lib/plugins/openapi/SidecarExamples.js +1 -1
- package/dist/lib/plugins/openapi/SidecarExamples.js.map +1 -1
- package/dist/lib/plugins/openapi/graphql/gql.d.ts +1 -1
- package/dist/lib/plugins/openapi/graphql/gql.js +1 -1
- package/dist/lib/plugins/openapi/graphql/gql.js.map +1 -1
- package/dist/lib/plugins/openapi/graphql/graphql.d.ts +3 -3
- package/dist/lib/plugins/openapi/graphql/graphql.js +2 -2
- package/dist/lib/plugins/openapi/graphql/graphql.js.map +1 -1
- package/dist/lib/plugins/openapi/index.d.ts +3 -3
- package/dist/lib/plugins/openapi/index.js +10 -10
- package/dist/lib/plugins/openapi/index.js.map +1 -1
- package/dist/lib/plugins/openapi/interfaces.d.ts +3 -3
- package/dist/lib/plugins/openapi/playground/BodyPanel.d.ts +2 -2
- package/dist/lib/plugins/openapi/playground/BodyPanel.js +16 -12
- package/dist/lib/plugins/openapi/playground/BodyPanel.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/CollapsibleHeader.d.ts +8 -0
- package/dist/lib/plugins/openapi/playground/CollapsibleHeader.js +11 -0
- package/dist/lib/plugins/openapi/playground/CollapsibleHeader.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/ExamplesDropdown.js +2 -2
- package/dist/lib/plugins/openapi/playground/ExamplesDropdown.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/Headers.d.ts +3 -2
- package/dist/lib/plugins/openapi/playground/Headers.js +52 -30
- package/dist/lib/plugins/openapi/playground/Headers.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/IdentityDialog.js +2 -1
- package/dist/lib/plugins/openapi/playground/IdentityDialog.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/IdentitySelector.js +1 -2
- package/dist/lib/plugins/openapi/playground/IdentitySelector.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/InlineInput.js +1 -1
- package/dist/lib/plugins/openapi/playground/InlineInput.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/ParamsGrid.js +2 -2
- package/dist/lib/plugins/openapi/playground/ParamsGrid.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/PathParams.js +1 -2
- package/dist/lib/plugins/openapi/playground/PathParams.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/Playground.js +47 -34
- package/dist/lib/plugins/openapi/playground/Playground.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js +1 -1
- package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/QueryParams.d.ts +2 -2
- package/dist/lib/plugins/openapi/playground/QueryParams.js +38 -23
- package/dist/lib/plugins/openapi/playground/QueryParams.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/Spinner.d.ts +2 -0
- package/dist/lib/plugins/openapi/playground/Spinner.js +63 -0
- package/dist/lib/plugins/openapi/playground/Spinner.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/request-panel/UrlPath.d.ts +3 -0
- package/dist/lib/plugins/openapi/playground/request-panel/UrlPath.js +13 -0
- package/dist/lib/plugins/openapi/playground/request-panel/UrlPath.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/request-panel/UrlQueryParams.d.ts +1 -0
- package/dist/lib/plugins/openapi/playground/request-panel/UrlQueryParams.js +12 -0
- package/dist/lib/plugins/openapi/playground/request-panel/UrlQueryParams.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/result-panel/Highlight.d.ts +12 -0
- package/dist/lib/plugins/openapi/playground/result-panel/Highlight.js +11 -0
- package/dist/lib/plugins/openapi/playground/result-panel/Highlight.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/result-panel/ResponseStatusBar.d.ts +8 -0
- package/dist/lib/plugins/openapi/playground/result-panel/ResponseStatusBar.js +69 -0
- package/dist/lib/plugins/openapi/playground/result-panel/ResponseStatusBar.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.d.ts +7 -4
- package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.js +25 -32
- package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.d.ts +4 -2
- package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.js +8 -10
- package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.js.map +1 -1
- package/dist/lib/plugins/openapi/schema/SchemaExampleAndDefault.js +3 -3
- package/dist/lib/plugins/openapi/schema/SchemaExampleAndDefault.js.map +1 -1
- package/dist/lib/plugins/openapi/schema/SchemaPropertyItem.js +2 -3
- package/dist/lib/plugins/openapi/schema/SchemaPropertyItem.js.map +1 -1
- package/dist/lib/plugins/openapi/schema/SchemaView.js +4 -4
- package/dist/lib/plugins/openapi/schema/SchemaView.js.map +1 -1
- package/dist/lib/plugins/openapi/schema/utils.js +3 -2
- package/dist/lib/plugins/openapi/schema/utils.js.map +1 -1
- package/dist/lib/plugins/openapi/util/createNavigationCategory.d.ts +9 -0
- package/dist/lib/plugins/openapi/util/{createSidebarCategory.js → createNavigationCategory.js} +5 -4
- package/dist/lib/plugins/openapi/util/createNavigationCategory.js.map +1 -0
- package/dist/lib/plugins/openapi/util/getRoutes.js +2 -2
- package/dist/lib/plugins/openapi/util/getRoutes.js.map +1 -1
- package/dist/lib/plugins/openapi/util/methodColorMap.d.ts +1 -1
- package/dist/lib/plugins/search-inkeep/index.d.ts +5 -22
- package/dist/lib/plugins/search-inkeep/index.js +35 -29
- package/dist/lib/plugins/search-inkeep/index.js.map +1 -1
- package/dist/lib/plugins/search-inkeep/inkeep.d.ts +5 -21
- package/dist/lib/plugins/search-inkeep/inkeep.js +10 -19
- package/dist/lib/plugins/search-inkeep/inkeep.js.map +1 -1
- package/dist/lib/plugins/search-pagefind/PagefindSearch.js +1 -1
- package/dist/lib/plugins/search-pagefind/PagefindSearch.js.map +1 -1
- package/dist/lib/plugins/search-pagefind/ResultList.d.ts +1 -1
- package/dist/lib/plugins/search-pagefind/ResultList.js +12 -5
- package/dist/lib/plugins/search-pagefind/ResultList.js.map +1 -1
- package/dist/lib/ui/Alert.d.ts +6 -5
- package/dist/lib/ui/Alert.js +12 -10
- package/dist/lib/ui/Alert.js.map +1 -1
- package/dist/lib/ui/CodeBlock.d.ts +1 -2
- package/dist/lib/ui/CodeBlock.js +10 -11
- package/dist/lib/ui/CodeBlock.js.map +1 -1
- package/dist/lib/ui/Dialog.js +1 -1
- package/dist/lib/ui/Dialog.js.map +1 -1
- package/dist/lib/ui/EmbeddedCodeBlock.d.ts +15 -0
- package/dist/lib/ui/EmbeddedCodeBlock.js +18 -0
- package/dist/lib/ui/EmbeddedCodeBlock.js.map +1 -0
- package/dist/lib/ui/Select.js +1 -1
- package/dist/lib/ui/SyntaxHighlight.d.ts +3 -1
- package/dist/lib/ui/SyntaxHighlight.js +3 -2
- package/dist/lib/ui/SyntaxHighlight.js.map +1 -1
- package/dist/lib/util/MdxComponents.d.ts +9 -1
- package/dist/lib/util/MdxComponents.js +4 -2
- package/dist/lib/util/MdxComponents.js.map +1 -1
- package/dist/lib/util/os.d.ts +2 -0
- package/dist/lib/util/os.js +21 -0
- package/dist/lib/util/os.js.map +1 -0
- package/dist/lib/util/useCopyToClipboard.d.ts +1 -0
- package/dist/lib/util/useCopyToClipboard.js +11 -0
- package/dist/lib/util/useCopyToClipboard.js.map +1 -0
- package/dist/lib/util/useScrollToAnchor.js +3 -3
- package/dist/lib/util/useScrollToAnchor.js.map +1 -1
- package/dist/vite/api/SchemaManager.d.ts +4 -4
- package/dist/vite/api/SchemaManager.js +25 -21
- package/dist/vite/api/SchemaManager.js.map +1 -1
- package/dist/vite/api/SchemaManager.test.js +4 -4
- package/dist/vite/api/SchemaManager.test.js.map +1 -1
- package/dist/vite/api/schema-codegen.js +42 -11
- package/dist/vite/api/schema-codegen.js.map +1 -1
- package/dist/vite/api/schema-codegen.test.js +82 -0
- package/dist/vite/api/schema-codegen.test.js.map +1 -1
- package/dist/vite/build.js +8 -2
- package/dist/vite/build.js.map +1 -1
- package/dist/vite/config.js +12 -2
- package/dist/vite/config.js.map +1 -1
- package/dist/vite/css/plugin.js +11 -0
- package/dist/vite/css/plugin.js.map +1 -1
- package/dist/vite/dev-server.js +1 -1
- package/dist/vite/mdx/remark-last-modified.d.ts +3 -0
- package/dist/vite/mdx/remark-last-modified.js +29 -0
- package/dist/vite/mdx/remark-last-modified.js.map +1 -0
- package/dist/vite/mdx/utils.d.ts +2 -0
- package/dist/vite/mdx/utils.js +31 -0
- package/dist/vite/mdx/utils.js.map +1 -0
- package/dist/vite/plugin-api.js +8 -8
- package/dist/vite/plugin-api.js.map +1 -1
- package/dist/vite/plugin-config-reload.js +2 -0
- package/dist/vite/plugin-config-reload.js.map +1 -1
- package/dist/vite/plugin-custom-pages.js +2 -2
- package/dist/vite/plugin-custom-pages.js.map +1 -1
- package/dist/vite/plugin-docs.js +61 -59
- package/dist/vite/plugin-docs.js.map +1 -1
- package/dist/vite/plugin-frontmatter.js +6 -2
- package/dist/vite/plugin-frontmatter.js.map +1 -1
- package/dist/vite/plugin-mdx.js +17 -38
- package/dist/vite/plugin-mdx.js.map +1 -1
- package/dist/vite/{plugin-sidebar.d.ts → plugin-navigation.d.ts} +1 -1
- package/dist/vite/{plugin-sidebar.js → plugin-navigation.js} +20 -19
- package/dist/vite/plugin-navigation.js.map +1 -0
- package/dist/vite/plugin-theme.d.ts +8 -0
- package/dist/vite/plugin-theme.js +235 -0
- package/dist/vite/plugin-theme.js.map +1 -0
- package/dist/vite/plugin-theme.test.d.ts +1 -0
- package/dist/vite/plugin-theme.test.js +291 -0
- package/dist/vite/plugin-theme.test.js.map +1 -0
- package/dist/vite/plugin.js +4 -6
- package/dist/vite/plugin.js.map +1 -1
- package/dist/vite/shadcn-registry.d.ts +45 -0
- package/dist/vite/shadcn-registry.js +29 -0
- package/dist/vite/shadcn-registry.js.map +1 -0
- package/lib/Alert-FYKbqjIt.js +161 -0
- package/lib/Alert-FYKbqjIt.js.map +1 -0
- package/lib/CodeBlock-DAKxs_Tu.js +85 -0
- package/lib/CodeBlock-DAKxs_Tu.js.map +1 -0
- package/lib/Command-xsbs2uhf.js +140 -0
- package/lib/Command-xsbs2uhf.js.map +1 -0
- package/lib/{Dialog-BxpuVLh9.js → Dialog-CiIdyz6a.js} +5 -5
- package/lib/Dialog-CiIdyz6a.js.map +1 -0
- package/lib/Drawer-BzkOKwgC.js.map +1 -1
- package/lib/MdxPage-DyRuoE_F.js +110 -0
- package/lib/MdxPage-DyRuoE_F.js.map +1 -0
- package/lib/OasProvider-CUA-DFGE.js +35 -0
- package/lib/OasProvider-CUA-DFGE.js.map +1 -0
- package/lib/{OperationList-Bi9ufpnW.js → OperationList-CRMvWoTv.js} +583 -570
- package/lib/OperationList-CRMvWoTv.js.map +1 -0
- package/lib/Pagination-HZKe5ncg.js +37 -0
- package/lib/Pagination-HZKe5ncg.js.map +1 -0
- package/lib/RouteGuard-CbKd7_9h.js +737 -0
- package/lib/RouteGuard-CbKd7_9h.js.map +1 -0
- package/lib/{SchemaList-Dx3pkSpp.js → SchemaList-B792ORza.js} +32 -43
- package/lib/SchemaList-B792ORza.js.map +1 -0
- package/lib/{SchemaView-DFs4gzhN.js → SchemaView-Bo53TeMb.js} +94 -103
- package/lib/SchemaView-Bo53TeMb.js.map +1 -0
- package/lib/SignUp-DfVvOCYB.js +56 -0
- package/lib/SignUp-DfVvOCYB.js.map +1 -0
- package/lib/{Markdown-r4buN85T.js → Slot-BpO_AGKJ.js} +3328 -2937
- package/lib/Slot-BpO_AGKJ.js.map +1 -0
- package/lib/{SyntaxHighlight-CqKHkyEy.js → SyntaxHighlight-CZgjJ7-f.js} +1152 -1151
- package/lib/SyntaxHighlight-CZgjJ7-f.js.map +1 -0
- package/lib/{Toc-lxYQEOzX.js → Toc-DYMzDvOa.js} +2 -2
- package/lib/{Toc-lxYQEOzX.js.map → Toc-DYMzDvOa.js.map} +1 -1
- package/lib/{chunk-DQRVZFIR-BblmKnHy.js → chunk-DQRVZFIR-DHK7_Ilc.js} +7 -7
- package/lib/{chunk-DQRVZFIR-BblmKnHy.js.map → chunk-DQRVZFIR-DHK7_Ilc.js.map} +1 -1
- package/lib/{circular-Dcv3tia6.js → circular-CLdQ0oUd.js} +2 -2
- package/lib/{circular-Dcv3tia6.js.map → circular-CLdQ0oUd.js.map} +1 -1
- package/lib/clerk-BDZ31hjU.js +25190 -0
- package/lib/clerk-BDZ31hjU.js.map +1 -0
- package/lib/{createServer-Bq93MdwG.js → createServer-Co4BBP-i.js} +4 -4
- package/lib/createServer-Co4BBP-i.js.map +1 -0
- package/lib/{errors-D27ZTQgx.js → errors-DE1gK7ms.js} +12 -12
- package/lib/{errors-D27ZTQgx.js.map → errors-DE1gK7ms.js.map} +1 -1
- package/lib/hook-Bd0yS8M0.js +1503 -0
- package/lib/hook-Bd0yS8M0.js.map +1 -0
- package/lib/index-ClhS5TxS.js +107 -0
- package/lib/index-ClhS5TxS.js.map +1 -0
- package/lib/index-CrcNWbel.js.map +1 -1
- package/lib/index-DLshv89l.js +3979 -0
- package/lib/index-DLshv89l.js.map +1 -0
- package/lib/{index-BvvmIczU.js → index-DLzZDv8_.js} +2 -2
- package/lib/{index-BvvmIczU.js.map → index-DLzZDv8_.js.map} +1 -1
- package/lib/index-DYP-V0jG.js +3469 -0
- package/lib/index-DYP-V0jG.js.map +1 -0
- package/lib/ui/Alert.js +54 -38
- package/lib/ui/Alert.js.map +1 -1
- package/lib/ui/CodeBlock.js +6 -81
- package/lib/ui/CodeBlock.js.map +1 -1
- package/lib/ui/Command.js +1 -1
- package/lib/ui/Dialog.js +23 -23
- package/lib/ui/Dialog.js.map +1 -1
- package/lib/ui/EmbeddedCodeBlock.js +80 -0
- package/lib/ui/EmbeddedCodeBlock.js.map +1 -0
- package/lib/ui/Select.js +1 -1
- package/lib/ui/Select.js.map +1 -1
- package/lib/ui/SyntaxHighlight.js +5 -4
- package/lib/ui/SyntaxHighlight.js.map +1 -1
- package/lib/{useExposedProps-BZQkZneR.js → useExposedProps-BIYjecPD.js} +2 -2
- package/lib/{useExposedProps-BZQkZneR.js.map → useExposedProps-BIYjecPD.js.map} +1 -1
- package/lib/zudoku.auth-auth0.js +1 -1
- package/lib/zudoku.auth-azureb2c.js +1553 -1556
- package/lib/zudoku.auth-azureb2c.js.map +1 -1
- package/lib/zudoku.auth-clerk.js +3 -3
- package/lib/zudoku.auth-openid.js +115 -106
- package/lib/zudoku.auth-openid.js.map +1 -1
- package/lib/zudoku.components.js +33 -4201
- package/lib/zudoku.components.js.map +1 -1
- package/lib/zudoku.hooks.js +10 -11
- package/lib/zudoku.hooks.js.map +1 -1
- package/lib/zudoku.plugin-api-catalog.js +47 -47
- package/lib/zudoku.plugin-api-catalog.js.map +1 -1
- package/lib/zudoku.plugin-api-keys.js +257 -217
- package/lib/zudoku.plugin-api-keys.js.map +1 -1
- package/lib/zudoku.plugin-custom-pages.js +12 -18
- package/lib/zudoku.plugin-custom-pages.js.map +1 -1
- package/lib/zudoku.plugin-markdown.js +19 -69
- package/lib/zudoku.plugin-markdown.js.map +1 -1
- package/lib/zudoku.plugin-openapi.js +6 -6
- package/lib/zudoku.plugin-redirect.js +1 -1
- package/lib/zudoku.plugin-search-inkeep.js +54 -57
- package/lib/zudoku.plugin-search-inkeep.js.map +1 -1
- package/lib/zudoku.plugin-search-pagefind.js +211 -117
- package/lib/zudoku.plugin-search-pagefind.js.map +1 -1
- package/lib/zudoku.plugins.js.map +1 -1
- package/package.json +29 -24
- package/src/app/ZuploBuildConfig.ts +8 -8
- package/src/app/defaultTheme.css +68 -49
- package/src/app/demo.tsx +24 -6
- package/src/app/entry.client.tsx +0 -2
- package/src/app/entry.server.tsx +0 -2
- package/src/app/env.ts +8 -0
- package/src/app/main.css +10 -53
- package/src/app/main.tsx +17 -23
- package/src/app/standalone.tsx +7 -6
- package/src/lib/auth/issuer.test.ts +1 -1
- package/src/lib/auth/issuer.ts +1 -1
- package/src/lib/authentication/authentication.ts +2 -2
- package/src/lib/authentication/components/CallbackHandler.tsx +1 -1
- package/src/lib/authentication/components/SignIn.tsx +5 -12
- package/src/lib/authentication/providers/openid.tsx +23 -4
- package/src/lib/components/Autocomplete.tsx +2 -1
- package/src/lib/components/Banner.tsx +1 -2
- package/src/lib/components/BuildCheck.tsx +1 -1
- package/src/lib/components/CategoryHeading.tsx +4 -1
- package/src/lib/components/ErrorPage.tsx +3 -3
- package/src/lib/components/Footer.tsx +1 -1
- package/src/lib/components/Framed.tsx +51 -0
- package/src/lib/components/Header.tsx +24 -21
- package/src/lib/components/Heading.tsx +7 -3
- package/src/lib/components/Main.tsx +9 -9
- package/src/lib/components/Markdown.tsx +3 -5
- package/src/lib/components/MobileTopNavigation.tsx +69 -15
- package/src/lib/components/NotFoundPage.tsx +3 -3
- package/src/lib/components/PageProgress.tsx +28 -0
- package/src/lib/components/Pagination.tsx +5 -4
- package/src/lib/components/StatusPage.tsx +5 -0
- package/src/lib/components/TopNavigation.tsx +75 -68
- package/src/lib/components/Typography.tsx +14 -0
- package/src/lib/components/context/ZudokuContext.ts +50 -32
- package/src/lib/components/index.ts +2 -0
- package/src/lib/components/navigation/{Sidebar.tsx → Navigation.tsx} +18 -16
- package/src/lib/components/navigation/{SidebarBadge.tsx → NavigationBadge.tsx} +1 -1
- package/src/lib/components/navigation/{SidebarCategory.tsx → NavigationCategory.tsx} +16 -14
- package/src/lib/components/navigation/{SidebarItem.tsx → NavigationItem.tsx} +23 -17
- package/src/lib/components/navigation/{SidebarWrapper.tsx → NavigationWrapper.tsx} +7 -4
- package/src/lib/components/navigation/utils.ts +27 -28
- package/src/lib/core/ZudokuContext.ts +35 -20
- package/src/lib/core/plugins.ts +2 -2
- package/src/lib/errors/ErrorAlert.tsx +3 -9
- package/src/lib/hooks/useEvent.test.tsx +7 -5
- package/src/lib/hooks/useHotkey.ts +70 -0
- package/src/lib/plugins/api-catalog/Catalog.tsx +1 -1
- package/src/lib/plugins/api-catalog/index.tsx +19 -19
- package/src/lib/plugins/api-keys/SettingsApiKeys.tsx +52 -29
- package/src/lib/plugins/api-keys/index.tsx +26 -4
- package/src/lib/plugins/custom-pages/index.tsx +21 -16
- package/src/lib/plugins/markdown/MdxPage.tsx +76 -21
- package/src/lib/plugins/markdown/index.tsx +28 -41
- package/src/lib/plugins/openapi/OperationList.tsx +9 -19
- package/src/lib/plugins/openapi/OperationListItem.tsx +3 -3
- package/src/lib/plugins/openapi/ParameterListItem.tsx +6 -0
- package/src/lib/plugins/openapi/SchemaList.tsx +5 -11
- package/src/lib/plugins/openapi/Sidecar.tsx +1 -0
- package/src/lib/plugins/openapi/SidecarExamples.tsx +1 -0
- package/src/lib/plugins/openapi/graphql/gql.ts +5 -5
- package/src/lib/plugins/openapi/graphql/graphql.ts +6 -6
- package/src/lib/plugins/openapi/index.tsx +12 -12
- package/src/lib/plugins/openapi/interfaces.ts +3 -3
- package/src/lib/plugins/openapi/playground/BodyPanel.tsx +40 -31
- package/src/lib/plugins/openapi/playground/CollapsibleHeader.tsx +47 -0
- package/src/lib/plugins/openapi/playground/ExamplesDropdown.tsx +7 -3
- package/src/lib/plugins/openapi/playground/Headers.tsx +187 -89
- package/src/lib/plugins/openapi/playground/IdentityDialog.tsx +3 -2
- package/src/lib/plugins/openapi/playground/IdentitySelector.tsx +7 -12
- package/src/lib/plugins/openapi/playground/InlineInput.tsx +1 -1
- package/src/lib/plugins/openapi/playground/ParamsGrid.tsx +2 -2
- package/src/lib/plugins/openapi/playground/PathParams.tsx +4 -5
- package/src/lib/plugins/openapi/playground/Playground.tsx +174 -125
- package/src/lib/plugins/openapi/playground/PlaygroundDialog.tsx +1 -1
- package/src/lib/plugins/openapi/playground/QueryParams.tsx +104 -58
- package/src/lib/plugins/openapi/playground/Spinner.tsx +87 -0
- package/src/lib/plugins/openapi/playground/request-panel/UrlPath.tsx +31 -0
- package/src/lib/plugins/openapi/playground/request-panel/UrlQueryParams.tsx +25 -0
- package/src/lib/plugins/openapi/playground/result-panel/Highlight.tsx +26 -0
- package/src/lib/plugins/openapi/playground/result-panel/ResponseStatusBar.tsx +115 -0
- package/src/lib/plugins/openapi/playground/result-panel/ResponseTab.tsx +103 -97
- package/src/lib/plugins/openapi/playground/result-panel/ResultPanel.tsx +68 -92
- package/src/lib/plugins/openapi/schema/SchemaExampleAndDefault.tsx +3 -3
- package/src/lib/plugins/openapi/schema/SchemaPropertyItem.tsx +2 -3
- package/src/lib/plugins/openapi/schema/SchemaView.tsx +5 -10
- package/src/lib/plugins/openapi/schema/utils.ts +3 -2
- package/src/lib/plugins/openapi/util/{createSidebarCategory.tsx → createNavigationCategory.tsx} +6 -5
- package/src/lib/plugins/openapi/util/getRoutes.tsx +2 -2
- package/src/lib/plugins/openapi/util/methodColorMap.tsx +1 -1
- package/src/lib/plugins/search-inkeep/index.tsx +54 -58
- package/src/lib/plugins/search-inkeep/inkeep.ts +19 -21
- package/src/lib/plugins/search-pagefind/PagefindSearch.tsx +1 -0
- package/src/lib/plugins/search-pagefind/ResultList.tsx +13 -4
- package/src/lib/ui/Alert.tsx +45 -39
- package/src/lib/ui/CodeBlock.tsx +40 -55
- package/src/lib/ui/Dialog.tsx +2 -2
- package/src/lib/ui/EmbeddedCodeBlock.tsx +94 -0
- package/src/lib/ui/Select.tsx +1 -1
- package/src/lib/ui/SyntaxHighlight.tsx +11 -3
- package/src/lib/util/MdxComponents.tsx +13 -2
- package/src/lib/util/os.ts +18 -0
- package/src/lib/util/useCopyToClipboard.ts +17 -0
- package/src/lib/util/useScrollToAnchor.ts +3 -3
- package/dist/config/validators/InputSidebarSchema.d.ts +0 -220
- package/dist/config/validators/InputSidebarSchema.js +0 -63
- package/dist/config/validators/InputSidebarSchema.js.map +0 -1
- package/dist/config/validators/SidebarSchema.d.ts +0 -46
- package/dist/config/validators/SidebarSchema.js +0 -118
- package/dist/config/validators/SidebarSchema.js.map +0 -1
- package/dist/lib/components/navigation/Sidebar.d.ts +0 -5
- package/dist/lib/components/navigation/Sidebar.js +0 -10
- package/dist/lib/components/navigation/Sidebar.js.map +0 -1
- package/dist/lib/components/navigation/SidebarBadge.js.map +0 -1
- package/dist/lib/components/navigation/SidebarCategory.d.ts +0 -5
- package/dist/lib/components/navigation/SidebarCategory.js.map +0 -1
- package/dist/lib/components/navigation/SidebarItem.d.ts +0 -6
- package/dist/lib/components/navigation/SidebarItem.js +0 -44
- package/dist/lib/components/navigation/SidebarItem.js.map +0 -1
- package/dist/lib/components/navigation/SidebarWrapper.js.map +0 -1
- package/dist/lib/plugins/custom-pages/CustomPage.d.ts +0 -2
- package/dist/lib/plugins/custom-pages/CustomPage.js +0 -11
- package/dist/lib/plugins/custom-pages/CustomPage.js.map +0 -1
- package/dist/lib/plugins/markdown/resolver.d.ts +0 -32
- package/dist/lib/plugins/markdown/resolver.js +0 -46
- package/dist/lib/plugins/markdown/resolver.js.map +0 -1
- package/dist/lib/plugins/openapi/playground/UrlDisplay.d.ts +0 -4
- package/dist/lib/plugins/openapi/playground/UrlDisplay.js +0 -22
- package/dist/lib/plugins/openapi/playground/UrlDisplay.js.map +0 -1
- package/dist/lib/plugins/openapi/playground/result-panel/RequestTab.d.ts +0 -7
- package/dist/lib/plugins/openapi/playground/result-panel/RequestTab.js +0 -11
- package/dist/lib/plugins/openapi/playground/result-panel/RequestTab.js.map +0 -1
- package/dist/lib/plugins/openapi/util/createSidebarCategory.d.ts +0 -9
- package/dist/lib/plugins/openapi/util/createSidebarCategory.js.map +0 -1
- package/dist/vite/plugin-configure-tailwind.d.ts +0 -2
- package/dist/vite/plugin-configure-tailwind.js +0 -38
- package/dist/vite/plugin-configure-tailwind.js.map +0 -1
- package/dist/vite/plugin-sidebar.js.map +0 -1
- package/dist/vite/plugin-theme-css.d.ts +0 -5
- package/dist/vite/plugin-theme-css.js +0 -77
- package/dist/vite/plugin-theme-css.js.map +0 -1
- package/lib/Callout-CoVxYafP.js +0 -231
- package/lib/Callout-CoVxYafP.js.map +0 -1
- package/lib/CategoryHeading-Cu2RwgjC.js +0 -10
- package/lib/CategoryHeading-Cu2RwgjC.js.map +0 -1
- package/lib/Dialog-BxpuVLh9.js.map +0 -1
- package/lib/Markdown-r4buN85T.js.map +0 -1
- package/lib/MdxPage-DYKsTerz.js +0 -84
- package/lib/MdxPage-DYKsTerz.js.map +0 -1
- package/lib/OasProvider-C499U3sP.js +0 -33
- package/lib/OasProvider-C499U3sP.js.map +0 -1
- package/lib/OperationList-Bi9ufpnW.js.map +0 -1
- package/lib/Pagination-CCxhL836.js +0 -36
- package/lib/Pagination-CCxhL836.js.map +0 -1
- package/lib/RouteGuard-B7GVW4oL.js +0 -55
- package/lib/RouteGuard-B7GVW4oL.js.map +0 -1
- package/lib/SchemaList-Dx3pkSpp.js.map +0 -1
- package/lib/SchemaView-DFs4gzhN.js.map +0 -1
- package/lib/SignUp-CRIKdWt9.js +0 -63
- package/lib/SignUp-CRIKdWt9.js.map +0 -1
- package/lib/Slot-B5qSAnwR.js +0 -160
- package/lib/Slot-B5qSAnwR.js.map +0 -1
- package/lib/SyntaxHighlight-CqKHkyEy.js.map +0 -1
- package/lib/clerk-yAKDC3Qz.js +0 -24812
- package/lib/clerk-yAKDC3Qz.js.map +0 -1
- package/lib/createServer-Bq93MdwG.js.map +0 -1
- package/lib/hook-7wZANGJP.js +0 -1483
- package/lib/hook-7wZANGJP.js.map +0 -1
- package/lib/index--oeBayMa.js +0 -86
- package/lib/index--oeBayMa.js.map +0 -1
- package/lib/index-BgPFzhG_.js +0 -3226
- package/lib/index-BgPFzhG_.js.map +0 -1
- package/lib/index-Bn6Lc9tq.js +0 -9
- package/lib/index-Bn6Lc9tq.js.map +0 -1
- package/lib/index-QzXzw_ra.js +0 -24
- package/lib/index-QzXzw_ra.js.map +0 -1
- package/lib/index.esm-BFcSKCe-.js +0 -683
- package/lib/index.esm-BFcSKCe-.js.map +0 -1
- package/lib/joinPath-B7kNnUX4.js +0 -8
- package/lib/joinPath-B7kNnUX4.js.map +0 -1
- package/lib/mutation-C1XCQTQL.js +0 -196
- package/lib/mutation-C1XCQTQL.js.map +0 -1
- package/lib/objectEntries-yMIkr2mI.js +0 -5
- package/lib/objectEntries-yMIkr2mI.js.map +0 -1
- package/lib/react-nprogress.esm-C2MPXjiJ.js +0 -389
- package/lib/react-nprogress.esm-C2MPXjiJ.js.map +0 -1
- package/lib/useLatest-hmRS46UF.js +0 -11
- package/lib/useLatest-hmRS46UF.js.map +0 -1
- package/lib/useMutation-BKvPttRn.js +0 -97
- package/lib/useMutation-BKvPttRn.js.map +0 -1
- package/src/lib/plugins/custom-pages/CustomPage.tsx +0 -18
- package/src/lib/plugins/markdown/resolver.ts +0 -59
- package/src/lib/plugins/openapi/playground/UrlDisplay.tsx +0 -32
- package/src/lib/plugins/openapi/playground/result-panel/RequestTab.tsx +0 -73
package/lib/zudoku.auth-clerk.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { j as l } from "./jsx-runtime-C5mzlN2N.js";
|
|
2
2
|
import { LogOutIcon as g } from "lucide-react";
|
|
3
|
-
import { S as f, a as w, b as p } from "./SignUp-
|
|
4
|
-
import { u as n } from "./hook-
|
|
3
|
+
import { S as f, a as w, b as p } from "./SignUp-DfVvOCYB.js";
|
|
4
|
+
import { u as n } from "./hook-Bd0yS8M0.js";
|
|
5
5
|
const y = ({
|
|
6
6
|
clerkPubKey: d,
|
|
7
7
|
redirectToAfterSignOut: c = "/",
|
|
@@ -11,7 +11,7 @@ const y = ({
|
|
|
11
11
|
let s;
|
|
12
12
|
const a = (async () => {
|
|
13
13
|
if (typeof window > "u") return;
|
|
14
|
-
const { Clerk: e } = await import("./clerk-
|
|
14
|
+
const { Clerk: e } = await import("./clerk-BDZ31hjU.js");
|
|
15
15
|
if (s = new e(d), await s.load(), s.user) {
|
|
16
16
|
const i = s.user.emailAddresses.find(
|
|
17
17
|
(o) => o.verification.status === "verified"
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { j as ne } from "./jsx-runtime-C5mzlN2N.js";
|
|
2
2
|
import { g as Le } from "./invariant-DAFpPywt.js";
|
|
3
3
|
import { C as Ue } from "./ClientOnly-E7hGysn1.js";
|
|
4
|
-
import { j as xe, u as S } from "./hook-
|
|
5
|
-
import { C as Ce, O as re, A as R, a as Ie } from "./errors-
|
|
4
|
+
import { j as xe, u as S } from "./hook-Bd0yS8M0.js";
|
|
5
|
+
import { C as Ce, O as re, A as R, a as Ie } from "./errors-DE1gK7ms.js";
|
|
6
6
|
var O = { exports: {} }, je = O.exports, oe;
|
|
7
7
|
function De() {
|
|
8
8
|
return oe || (oe = 1, function(t) {
|
|
@@ -17,28 +17,28 @@ function De() {
|
|
|
17
17
|
"warn",
|
|
18
18
|
"error"
|
|
19
19
|
], r = {}, i = null;
|
|
20
|
-
function
|
|
21
|
-
var
|
|
22
|
-
if (typeof
|
|
23
|
-
return
|
|
20
|
+
function u(l, m) {
|
|
21
|
+
var c = l[m];
|
|
22
|
+
if (typeof c.bind == "function")
|
|
23
|
+
return c.bind(l);
|
|
24
24
|
try {
|
|
25
|
-
return Function.prototype.bind.call(
|
|
25
|
+
return Function.prototype.bind.call(c, l);
|
|
26
26
|
} catch {
|
|
27
27
|
return function() {
|
|
28
|
-
return Function.prototype.apply.apply(
|
|
28
|
+
return Function.prototype.apply.apply(c, [l, arguments]);
|
|
29
29
|
};
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
|
-
function
|
|
32
|
+
function d() {
|
|
33
33
|
console.log && (console.log.apply ? console.log.apply(console, arguments) : Function.prototype.apply.apply(console.log, [console, arguments])), console.trace && console.trace();
|
|
34
34
|
}
|
|
35
35
|
function y(l) {
|
|
36
|
-
return l === "debug" && (l = "log"), typeof console === n ? !1 : l === "trace" && o ?
|
|
36
|
+
return l === "debug" && (l = "log"), typeof console === n ? !1 : l === "trace" && o ? d : console[l] !== void 0 ? u(console, l) : console.log !== void 0 ? u(console, "log") : e;
|
|
37
37
|
}
|
|
38
38
|
function p() {
|
|
39
39
|
for (var l = this.getLevel(), m = 0; m < s.length; m++) {
|
|
40
|
-
var
|
|
41
|
-
this[
|
|
40
|
+
var c = s[m];
|
|
41
|
+
this[c] = m < l ? e : this.methodFactory(c, l, this.name);
|
|
42
42
|
}
|
|
43
43
|
if (this.log = this.debug, typeof console === n && l < this.levels.SILENT)
|
|
44
44
|
return "No console available for logging";
|
|
@@ -48,14 +48,14 @@ function De() {
|
|
|
48
48
|
typeof console !== n && (p.call(this), this[l].apply(this, arguments));
|
|
49
49
|
};
|
|
50
50
|
}
|
|
51
|
-
function b(l, m,
|
|
51
|
+
function b(l, m, c) {
|
|
52
52
|
return y(l) || k.apply(this, arguments);
|
|
53
53
|
}
|
|
54
|
-
function
|
|
55
|
-
var
|
|
54
|
+
function f(l, m) {
|
|
55
|
+
var c = this, j, K, L, _ = "loglevel";
|
|
56
56
|
typeof l == "string" ? _ += ":" + l : typeof l == "symbol" && (_ = void 0);
|
|
57
|
-
function Ee(
|
|
58
|
-
var g = (s[
|
|
57
|
+
function Ee(h) {
|
|
58
|
+
var g = (s[h] || "silent").toUpperCase();
|
|
59
59
|
if (!(typeof window === n || !_)) {
|
|
60
60
|
try {
|
|
61
61
|
window.localStorage[_] = g;
|
|
@@ -69,21 +69,21 @@ function De() {
|
|
|
69
69
|
}
|
|
70
70
|
}
|
|
71
71
|
function X() {
|
|
72
|
-
var
|
|
72
|
+
var h;
|
|
73
73
|
if (!(typeof window === n || !_)) {
|
|
74
74
|
try {
|
|
75
|
-
|
|
75
|
+
h = window.localStorage[_];
|
|
76
76
|
} catch {
|
|
77
77
|
}
|
|
78
|
-
if (typeof
|
|
78
|
+
if (typeof h === n)
|
|
79
79
|
try {
|
|
80
80
|
var g = window.document.cookie, D = encodeURIComponent(_), te = g.indexOf(D + "=");
|
|
81
|
-
te !== -1 && (
|
|
81
|
+
te !== -1 && (h = /^([^;]+)/.exec(
|
|
82
82
|
g.slice(te + D.length + 1)
|
|
83
83
|
)[1]);
|
|
84
84
|
} catch {
|
|
85
85
|
}
|
|
86
|
-
return
|
|
86
|
+
return c.levels[h] === void 0 && (h = void 0), h;
|
|
87
87
|
}
|
|
88
88
|
}
|
|
89
89
|
function Re() {
|
|
@@ -98,49 +98,49 @@ function De() {
|
|
|
98
98
|
}
|
|
99
99
|
}
|
|
100
100
|
}
|
|
101
|
-
function U(
|
|
102
|
-
var g =
|
|
103
|
-
if (typeof g == "string" &&
|
|
101
|
+
function U(h) {
|
|
102
|
+
var g = h;
|
|
103
|
+
if (typeof g == "string" && c.levels[g.toUpperCase()] !== void 0 && (g = c.levels[g.toUpperCase()]), typeof g == "number" && g >= 0 && g <= c.levels.SILENT)
|
|
104
104
|
return g;
|
|
105
|
-
throw new TypeError("log.setLevel() called with invalid level: " +
|
|
105
|
+
throw new TypeError("log.setLevel() called with invalid level: " + h);
|
|
106
106
|
}
|
|
107
|
-
|
|
107
|
+
c.name = l, c.levels = {
|
|
108
108
|
TRACE: 0,
|
|
109
109
|
DEBUG: 1,
|
|
110
110
|
INFO: 2,
|
|
111
111
|
WARN: 3,
|
|
112
112
|
ERROR: 4,
|
|
113
113
|
SILENT: 5
|
|
114
|
-
},
|
|
114
|
+
}, c.methodFactory = m || b, c.getLevel = function() {
|
|
115
115
|
return L ?? K ?? j;
|
|
116
|
-
},
|
|
117
|
-
return L = U(
|
|
118
|
-
},
|
|
119
|
-
K = U(
|
|
120
|
-
},
|
|
121
|
-
L = null, Re(), p.call(
|
|
122
|
-
},
|
|
123
|
-
|
|
124
|
-
},
|
|
125
|
-
|
|
126
|
-
},
|
|
127
|
-
if (i !==
|
|
128
|
-
for (var
|
|
129
|
-
r[
|
|
116
|
+
}, c.setLevel = function(h, g) {
|
|
117
|
+
return L = U(h), g !== !1 && Ee(L), p.call(c);
|
|
118
|
+
}, c.setDefaultLevel = function(h) {
|
|
119
|
+
K = U(h), X() || c.setLevel(h, !1);
|
|
120
|
+
}, c.resetLevel = function() {
|
|
121
|
+
L = null, Re(), p.call(c);
|
|
122
|
+
}, c.enableAll = function(h) {
|
|
123
|
+
c.setLevel(c.levels.TRACE, h);
|
|
124
|
+
}, c.disableAll = function(h) {
|
|
125
|
+
c.setLevel(c.levels.SILENT, h);
|
|
126
|
+
}, c.rebuild = function() {
|
|
127
|
+
if (i !== c && (j = U(i.getLevel())), p.call(c), i === c)
|
|
128
|
+
for (var h in r)
|
|
129
|
+
r[h].rebuild();
|
|
130
130
|
}, j = U(
|
|
131
131
|
i ? i.getLevel() : "WARN"
|
|
132
132
|
);
|
|
133
133
|
var ee = X();
|
|
134
|
-
ee != null && (L = U(ee)), p.call(
|
|
134
|
+
ee != null && (L = U(ee)), p.call(c);
|
|
135
135
|
}
|
|
136
|
-
i = new
|
|
136
|
+
i = new f(), i.getLogger = function(m) {
|
|
137
137
|
if (typeof m != "symbol" && typeof m != "string" || m === "")
|
|
138
138
|
throw new TypeError("You must supply a name when creating a logger.");
|
|
139
|
-
var
|
|
140
|
-
return
|
|
139
|
+
var c = r[m];
|
|
140
|
+
return c || (c = r[m] = new f(
|
|
141
141
|
m,
|
|
142
142
|
i.methodFactory
|
|
143
|
-
)),
|
|
143
|
+
)), c;
|
|
144
144
|
};
|
|
145
145
|
var P = typeof window !== n ? window.log : void 0;
|
|
146
146
|
return i.noConflict = function() {
|
|
@@ -444,24 +444,24 @@ async function at(t, e, n) {
|
|
|
444
444
|
return `${o}.${s}`;
|
|
445
445
|
}
|
|
446
446
|
async function ct(t, e, n, o, s, r) {
|
|
447
|
-
const { privateKey: i, publicKey:
|
|
447
|
+
const { privateKey: i, publicKey: u, nonce: d = we.get(n.origin) } = e;
|
|
448
448
|
if (!qe(i))
|
|
449
449
|
throw new TypeError('"DPoP.privateKey" must be a private CryptoKey');
|
|
450
|
-
if (!Ve(
|
|
450
|
+
if (!Ve(u))
|
|
451
451
|
throw new TypeError('"DPoP.publicKey" must be a public CryptoKey');
|
|
452
|
-
if (
|
|
452
|
+
if (d !== void 0 && !w(d))
|
|
453
453
|
throw new TypeError('"DPoP.nonce" must be a non-empty string or undefined');
|
|
454
|
-
if (!
|
|
454
|
+
if (!u.extractable)
|
|
455
455
|
throw new TypeError('"DPoP.publicKey.extractable" must be true');
|
|
456
456
|
const y = Z() + s, p = {
|
|
457
457
|
alg: it(i),
|
|
458
458
|
typ: "dpop+jwt",
|
|
459
|
-
jwk: await lt(
|
|
459
|
+
jwk: await lt(u)
|
|
460
460
|
}, k = {
|
|
461
461
|
iat: y,
|
|
462
462
|
jti: Y(),
|
|
463
463
|
htm: o,
|
|
464
|
-
nonce:
|
|
464
|
+
nonce: d,
|
|
465
465
|
htu: `${n.origin}${n.pathname}`,
|
|
466
466
|
ath: r ? A(await crypto.subtle.digest("SHA-256", E(r))) : void 0
|
|
467
467
|
};
|
|
@@ -469,8 +469,8 @@ async function ct(t, e, n, o, s, r) {
|
|
|
469
469
|
}
|
|
470
470
|
let J;
|
|
471
471
|
async function ut(t) {
|
|
472
|
-
const { kty: e, e: n, n: o, x: s, y: r, crv: i } = await crypto.subtle.exportKey("jwk", t),
|
|
473
|
-
return J.set(t,
|
|
472
|
+
const { kty: e, e: n, n: o, x: s, y: r, crv: i } = await crypto.subtle.exportKey("jwk", t), u = { kty: e, e: n, n: o, x: s, y: r, crv: i };
|
|
473
|
+
return J.set(t, u), u;
|
|
474
474
|
}
|
|
475
475
|
async function lt(t) {
|
|
476
476
|
return J || (J = /* @__PURE__ */ new WeakMap()), J.get(t) || ut(t);
|
|
@@ -575,7 +575,7 @@ async function Se(t, e, n, o = !1, s = !1) {
|
|
|
575
575
|
if (r.id_token !== void 0 && !w(r.id_token))
|
|
576
576
|
throw new a('"response" body "id_token" property must be a non-empty string');
|
|
577
577
|
if (r.id_token) {
|
|
578
|
-
const { claims: i, jwt:
|
|
578
|
+
const { claims: i, jwt: u } = await Et(r.id_token, Rt.bind(void 0, e.id_token_signed_response_alg, t.id_token_signing_alg_values_supported), ke, W(e), ge(e), e[Ne]).then(_t.bind(void 0, ["aud", "exp", "iat", "iss", "sub"])).then(mt.bind(void 0, t.issuer)).then(wt.bind(void 0, e.client_id));
|
|
579
579
|
if (Array.isArray(i.aud) && i.aud.length !== 1) {
|
|
580
580
|
if (i.azp === void 0)
|
|
581
581
|
throw new a('ID Token "aud" (audience) claim includes additional untrusted audiences');
|
|
@@ -584,7 +584,7 @@ async function Se(t, e, n, o = !1, s = !1) {
|
|
|
584
584
|
}
|
|
585
585
|
if (i.auth_time !== void 0 && (!Number.isFinite(i.auth_time) || Math.sign(i.auth_time) !== 1))
|
|
586
586
|
throw new a('ID Token "auth_time" (authentication time) must be a positive number');
|
|
587
|
-
ve.set(r, [i,
|
|
587
|
+
ve.set(r, [i, u]);
|
|
588
588
|
}
|
|
589
589
|
}
|
|
590
590
|
return r;
|
|
@@ -619,8 +619,8 @@ async function yt(t, e, n, o, s, r) {
|
|
|
619
619
|
const i = T(n, "code");
|
|
620
620
|
if (!i)
|
|
621
621
|
throw new a('no authorization code in "callbackParameters"');
|
|
622
|
-
const
|
|
623
|
-
return
|
|
622
|
+
const u = new URLSearchParams(r?.additionalParameters);
|
|
623
|
+
return u.set("redirect_uri", o), u.set("code_verifier", s), u.set("code", i), _e(t, e, "authorization_code", u, r);
|
|
624
624
|
}
|
|
625
625
|
const bt = {
|
|
626
626
|
aud: "audience",
|
|
@@ -658,8 +658,8 @@ async function St(t, e, n, o, s) {
|
|
|
658
658
|
if (s !== H) {
|
|
659
659
|
if (typeof s != "number" || s < 0)
|
|
660
660
|
throw new TypeError('"maxAge" must be a non-negative number');
|
|
661
|
-
const
|
|
662
|
-
if (i.auth_time + s <
|
|
661
|
+
const u = Z() + W(e), d = ge(e);
|
|
662
|
+
if (i.auth_time + s < u - d)
|
|
663
663
|
throw new a("too much time has elapsed since the last End-User authentication");
|
|
664
664
|
}
|
|
665
665
|
switch (o) {
|
|
@@ -743,10 +743,10 @@ async function kt(t, e, n, o) {
|
|
|
743
743
|
throw new a("JWT signature verification failed");
|
|
744
744
|
}
|
|
745
745
|
async function Et(t, e, n, o, s, r) {
|
|
746
|
-
let { 0: i, 1:
|
|
746
|
+
let { 0: i, 1: u, 2: d, length: y } = t.split(".");
|
|
747
747
|
if (y === 5)
|
|
748
748
|
if (r !== void 0)
|
|
749
|
-
t = await r(t), { 0: i, 1:
|
|
749
|
+
t = await r(t), { 0: i, 1: u, 2: d, length: y } = t.split(".");
|
|
750
750
|
else
|
|
751
751
|
throw new v("JWE structure JWTs are not supported");
|
|
752
752
|
if (y !== 3)
|
|
@@ -761,37 +761,37 @@ async function Et(t, e, n, o, s, r) {
|
|
|
761
761
|
throw new a("JWT Header must be a top level object");
|
|
762
762
|
if (e(p), p.crit !== void 0)
|
|
763
763
|
throw new a('unexpected JWT "crit" header parameter');
|
|
764
|
-
const k = A(
|
|
764
|
+
const k = A(d);
|
|
765
765
|
let b;
|
|
766
|
-
n !== ke && (b = await n(p), await kt(i,
|
|
767
|
-
let
|
|
766
|
+
n !== ke && (b = await n(p), await kt(i, u, b, k));
|
|
767
|
+
let f;
|
|
768
768
|
try {
|
|
769
|
-
|
|
769
|
+
f = JSON.parse(E(A(u)));
|
|
770
770
|
} catch (l) {
|
|
771
771
|
throw new a("failed to parse JWT Payload body as base64url encoded JSON", { cause: l });
|
|
772
772
|
}
|
|
773
|
-
if (!x(
|
|
773
|
+
if (!x(f))
|
|
774
774
|
throw new a("JWT Payload must be a top level object");
|
|
775
775
|
const P = Z() + o;
|
|
776
|
-
if (
|
|
777
|
-
if (typeof
|
|
776
|
+
if (f.exp !== void 0) {
|
|
777
|
+
if (typeof f.exp != "number")
|
|
778
778
|
throw new a('unexpected JWT "exp" (expiration time) claim type');
|
|
779
|
-
if (
|
|
779
|
+
if (f.exp <= P - s)
|
|
780
780
|
throw new a('unexpected JWT "exp" (expiration time) claim value, timestamp is <= now()');
|
|
781
781
|
}
|
|
782
|
-
if (
|
|
782
|
+
if (f.iat !== void 0 && typeof f.iat != "number")
|
|
783
783
|
throw new a('unexpected JWT "iat" (issued at) claim type');
|
|
784
|
-
if (
|
|
784
|
+
if (f.iss !== void 0 && typeof f.iss != "string")
|
|
785
785
|
throw new a('unexpected JWT "iss" (issuer) claim type');
|
|
786
|
-
if (
|
|
787
|
-
if (typeof
|
|
786
|
+
if (f.nbf !== void 0) {
|
|
787
|
+
if (typeof f.nbf != "number")
|
|
788
788
|
throw new a('unexpected JWT "nbf" (not before) claim type');
|
|
789
|
-
if (
|
|
789
|
+
if (f.nbf > P + s)
|
|
790
790
|
throw new a('unexpected JWT "nbf" (not before) claim value, timestamp is > now()');
|
|
791
791
|
}
|
|
792
|
-
if (
|
|
792
|
+
if (f.aud !== void 0 && typeof f.aud != "string" && !Array.isArray(f.aud))
|
|
793
793
|
throw new a('unexpected JWT "aud" (audience) claim type');
|
|
794
|
-
return { header: p, claims:
|
|
794
|
+
return { header: p, claims: f, signature: k, key: b, jwt: t };
|
|
795
795
|
}
|
|
796
796
|
function Rt(t, e, n) {
|
|
797
797
|
if (t !== void 0) {
|
|
@@ -847,8 +847,8 @@ function Ut(t, e, n, o) {
|
|
|
847
847
|
error_description: T(n, "error_description"),
|
|
848
848
|
error_uri: T(n, "error_uri")
|
|
849
849
|
};
|
|
850
|
-
const
|
|
851
|
-
if (
|
|
850
|
+
const u = T(n, "id_token"), d = T(n, "token");
|
|
851
|
+
if (u !== void 0 || d !== void 0)
|
|
852
852
|
throw new v("implicit and hybrid flows are not supported");
|
|
853
853
|
return gt(new URLSearchParams(n));
|
|
854
854
|
}
|
|
@@ -871,13 +871,13 @@ class xt extends Ce {
|
|
|
871
871
|
redirectToAfterSignUp: s,
|
|
872
872
|
redirectToAfterSignIn: r,
|
|
873
873
|
redirectToAfterSignOut: i = "/",
|
|
874
|
-
basePath:
|
|
875
|
-
scopes:
|
|
874
|
+
basePath: u,
|
|
875
|
+
scopes: d
|
|
876
876
|
}) {
|
|
877
877
|
super(), this.client = {
|
|
878
878
|
client_id: o,
|
|
879
879
|
token_endpoint_auth_method: "none"
|
|
880
|
-
}, this.audience = n, this.issuer = e, this.callbackUrlPath = xe(
|
|
880
|
+
}, this.audience = n, this.issuer = e, this.callbackUrlPath = xe(u, pe), this.scopes = d ?? ["openid", "profile", "email"], this.redirectToAfterSignUp = s, this.redirectToAfterSignIn = r, this.redirectToAfterSignOut = i;
|
|
881
881
|
}
|
|
882
882
|
async getAuthServer() {
|
|
883
883
|
if (!this.authorizationServer) {
|
|
@@ -909,40 +909,49 @@ class xt extends Ce {
|
|
|
909
909
|
providerData: n
|
|
910
910
|
});
|
|
911
911
|
}
|
|
912
|
-
async signUp({
|
|
912
|
+
async signUp({
|
|
913
|
+
redirectTo: e,
|
|
914
|
+
replace: n = !1
|
|
915
|
+
} = {}) {
|
|
913
916
|
return this.authorize({
|
|
914
917
|
redirectTo: this.redirectToAfterSignUp ?? e ?? "/",
|
|
918
|
+
replace: n,
|
|
915
919
|
isSignUp: !0
|
|
916
920
|
});
|
|
917
921
|
}
|
|
918
|
-
async signIn({
|
|
922
|
+
async signIn({
|
|
923
|
+
redirectTo: e,
|
|
924
|
+
replace: n = !1
|
|
925
|
+
} = {}) {
|
|
919
926
|
return this.authorize({
|
|
920
|
-
redirectTo: this.redirectToAfterSignIn ?? e ?? "/"
|
|
927
|
+
redirectTo: this.redirectToAfterSignIn ?? e ?? "/",
|
|
928
|
+
replace: n
|
|
921
929
|
});
|
|
922
930
|
}
|
|
923
931
|
async authorize({
|
|
924
932
|
redirectTo: e,
|
|
925
|
-
isSignUp: n = !1
|
|
933
|
+
isSignUp: n = !1,
|
|
934
|
+
replace: o = !1
|
|
926
935
|
}) {
|
|
927
|
-
const
|
|
928
|
-
if (!
|
|
936
|
+
const s = "S256", r = await this.getAuthServer();
|
|
937
|
+
if (!r.authorization_endpoint)
|
|
929
938
|
throw new R("No authorization endpoint");
|
|
930
|
-
const
|
|
931
|
-
sessionStorage.setItem($,
|
|
932
|
-
const
|
|
933
|
-
|
|
939
|
+
const i = Qe(), u = await et(i);
|
|
940
|
+
sessionStorage.setItem($, i);
|
|
941
|
+
const d = new URL(
|
|
942
|
+
r.authorization_endpoint
|
|
934
943
|
);
|
|
935
944
|
sessionStorage.setItem("redirect-to", e);
|
|
936
|
-
const
|
|
937
|
-
|
|
945
|
+
const y = new URL(window.location.origin);
|
|
946
|
+
y.pathname = this.callbackUrlPath, y.search = "", d.searchParams.set("client_id", this.client.client_id), d.searchParams.set("redirect_uri", y.toString()), d.searchParams.set("response_type", "code"), d.searchParams.set("scope", this.scopes.join(" ")), d.searchParams.set("code_challenge", u), d.searchParams.set(
|
|
938
947
|
"code_challenge_method",
|
|
939
|
-
|
|
940
|
-
), this.audience &&
|
|
948
|
+
s
|
|
949
|
+
), this.audience && d.searchParams.set("audience", this.audience), this.onAuthorizationUrl?.(d, {
|
|
941
950
|
isSignIn: !n,
|
|
942
951
|
isSignUp: n
|
|
943
952
|
});
|
|
944
|
-
const
|
|
945
|
-
sessionStorage.setItem(F,
|
|
953
|
+
const p = Xe();
|
|
954
|
+
sessionStorage.setItem(F, p), d.searchParams.set("state", p), o ? location.replace(d.href) : location.href = d.href;
|
|
946
955
|
}
|
|
947
956
|
async getAccessToken() {
|
|
948
957
|
const e = await this.getAuthServer(), { providerData: n } = S.getState();
|
|
@@ -1053,25 +1062,25 @@ class xt extends Ce {
|
|
|
1053
1062
|
"Error validating OAuth response",
|
|
1054
1063
|
i
|
|
1055
1064
|
);
|
|
1056
|
-
const
|
|
1057
|
-
|
|
1058
|
-
const
|
|
1065
|
+
const u = new URL(e);
|
|
1066
|
+
u.pathname = this.callbackUrlPath, u.search = "";
|
|
1067
|
+
const d = await yt(
|
|
1059
1068
|
r,
|
|
1060
1069
|
this.client,
|
|
1061
1070
|
i,
|
|
1062
|
-
|
|
1071
|
+
u.toString(),
|
|
1063
1072
|
s
|
|
1064
1073
|
), y = await St(
|
|
1065
1074
|
r,
|
|
1066
1075
|
this.client,
|
|
1067
|
-
|
|
1076
|
+
d
|
|
1068
1077
|
);
|
|
1069
1078
|
this.setTokensFromResponse(y);
|
|
1070
1079
|
const p = await this.getAccessToken(), b = await (await ht(
|
|
1071
1080
|
r,
|
|
1072
1081
|
this.client,
|
|
1073
1082
|
p
|
|
1074
|
-
)).json(),
|
|
1083
|
+
)).json(), f = {
|
|
1075
1084
|
sub: b.sub,
|
|
1076
1085
|
email: b.email,
|
|
1077
1086
|
name: b.name,
|
|
@@ -1081,7 +1090,7 @@ class xt extends Ce {
|
|
|
1081
1090
|
S.setState({
|
|
1082
1091
|
isAuthenticated: !0,
|
|
1083
1092
|
isPending: !1,
|
|
1084
|
-
profile:
|
|
1093
|
+
profile: f
|
|
1085
1094
|
});
|
|
1086
1095
|
const P = sessionStorage.getItem("redirect-to") ?? "/";
|
|
1087
1096
|
return sessionStorage.removeItem("redirect-to"), P;
|