zudoku 0.0.0-ff3751f → 0.0.0-fix-display-option-navigation-items.4bdfe991
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/cli.js +9 -0
- package/dist/app/ZuploBuildConfig.d.ts +45 -0
- package/dist/app/ZuploBuildConfig.js +29 -0
- package/dist/app/ZuploBuildConfig.js.map +1 -0
- package/dist/app/demo.js +22 -9
- package/dist/app/demo.js.map +1 -1
- package/dist/app/entry.client.d.ts +6 -2
- package/dist/app/entry.client.js +51 -3
- package/dist/app/entry.client.js.map +1 -1
- package/dist/app/entry.server.d.ts +9 -8
- package/dist/app/entry.server.js +18 -16
- package/dist/app/entry.server.js.map +1 -1
- package/dist/app/env.d.ts +33 -0
- package/dist/app/env.js +37 -0
- package/dist/app/env.js.map +1 -0
- package/dist/app/main.d.ts +4 -3
- package/dist/app/main.js +44 -43
- package/dist/app/main.js.map +1 -1
- package/dist/app/sentry.d.ts +3 -0
- package/dist/app/sentry.js +19 -0
- package/dist/app/sentry.js.map +1 -0
- package/dist/app/standalone.js +8 -10
- package/dist/app/standalone.js.map +1 -1
- package/dist/cli/build/handler.d.ts +1 -3
- package/dist/cli/build/handler.js +18 -2
- package/dist/cli/build/handler.js.map +1 -1
- package/dist/cli/cli.js +17 -3
- package/dist/cli/cli.js.map +1 -1
- package/dist/cli/cmds/build.d.ts +11 -3
- package/dist/cli/cmds/build.js +21 -13
- package/dist/cli/cmds/build.js.map +1 -1
- package/dist/cli/cmds/dev.d.ts +1 -1
- package/dist/cli/cmds/dev.js +5 -0
- package/dist/cli/cmds/dev.js.map +1 -1
- package/dist/cli/cmds/preview.d.ts +16 -0
- package/dist/cli/cmds/preview.js +25 -0
- package/dist/cli/cmds/preview.js.map +1 -0
- package/dist/cli/common/logger.js +9 -0
- package/dist/cli/common/logger.js.map +1 -1
- package/dist/cli/common/machine-id/lib.js +1 -0
- package/dist/cli/common/machine-id/lib.js.map +1 -1
- package/dist/cli/common/outdated.js +2 -1
- package/dist/cli/common/outdated.js.map +1 -1
- package/dist/cli/common/output.js.map +1 -1
- package/dist/cli/common/utils/ports.d.ts +1 -1
- package/dist/cli/common/utils/ports.js +16 -15
- package/dist/cli/common/utils/ports.js.map +1 -1
- package/dist/cli/dev/handler.d.ts +1 -0
- package/dist/cli/dev/handler.js +15 -12
- package/dist/cli/dev/handler.js.map +1 -1
- package/dist/cli/preview/handler.d.ts +3 -0
- package/dist/cli/preview/handler.js +35 -0
- package/dist/cli/preview/handler.js.map +1 -0
- package/dist/codegen.d.ts +3 -0
- package/dist/codegen.js +45 -0
- package/dist/codegen.js.map +1 -0
- package/dist/config/config.d.ts +28 -13
- package/dist/config/file-exists.d.ts +1 -0
- package/dist/config/file-exists.js +5 -0
- package/dist/config/file-exists.js.map +1 -0
- package/dist/config/loader.d.ts +21 -0
- package/dist/config/loader.js +141 -0
- package/dist/config/loader.js.map +1 -0
- package/dist/config/validators/BuildSchema.d.ts +36 -0
- package/dist/config/validators/BuildSchema.js +25 -0
- package/dist/config/validators/BuildSchema.js.map +1 -0
- package/dist/config/validators/InputNavigationSchema.d.ts +7460 -0
- package/dist/config/validators/InputNavigationSchema.js +74 -0
- package/dist/config/validators/InputNavigationSchema.js.map +1 -0
- package/dist/config/validators/InputNavigationSchema.test-d.js +145 -0
- package/dist/config/validators/InputNavigationSchema.test-d.js.map +1 -0
- package/dist/config/validators/NavigationSchema.d.ts +44 -0
- package/dist/config/validators/NavigationSchema.js +96 -0
- package/dist/config/validators/NavigationSchema.js.map +1 -0
- package/dist/config/validators/ProtectedRoutesSchema.d.ts +12 -0
- package/dist/config/validators/ProtectedRoutesSchema.js +19 -0
- package/dist/config/validators/ProtectedRoutesSchema.js.map +1 -0
- package/dist/config/validators/icon-types.d.ts +2 -0
- package/dist/config/validators/icon-types.js +1830 -0
- package/dist/config/validators/icon-types.js.map +1 -0
- package/dist/config/validators/validate.d.ts +655 -1564
- package/dist/config/validators/validate.js +345 -145
- package/dist/config/validators/validate.js.map +1 -1
- package/dist/config/validators/validate.test.js +141 -0
- package/dist/config/validators/validate.test.js.map +1 -0
- package/dist/index.d.ts +9 -5
- package/dist/index.js +5 -1
- package/dist/index.js.map +1 -1
- package/dist/lib/MissingIcon.d.ts +2 -0
- package/dist/lib/MissingIcon.js +7 -0
- package/dist/lib/MissingIcon.js.map +1 -0
- package/dist/lib/auth/issuer.d.ts +2 -0
- package/dist/lib/auth/issuer.js +37 -0
- package/dist/lib/auth/issuer.js.map +1 -0
- package/dist/lib/auth/issuer.test.js +94 -0
- package/dist/lib/auth/issuer.test.js.map +1 -0
- package/dist/lib/authentication/AuthenticationPlugin.d.ts +6 -4
- package/dist/lib/authentication/AuthenticationPlugin.js +4 -1
- package/dist/lib/authentication/AuthenticationPlugin.js.map +1 -1
- package/dist/lib/authentication/authentication.d.ts +6 -5
- package/dist/lib/authentication/components/CallbackHandler.js +17 -11
- package/dist/lib/authentication/components/CallbackHandler.js.map +1 -1
- package/dist/lib/authentication/components/OAuthErrorPage.d.ts +3 -0
- package/dist/lib/authentication/components/OAuthErrorPage.js +99 -0
- package/dist/lib/authentication/components/OAuthErrorPage.js.map +1 -0
- package/dist/lib/authentication/components/SignIn.d.ts +1 -1
- package/dist/lib/authentication/components/SignIn.js +6 -2
- package/dist/lib/authentication/components/SignIn.js.map +1 -1
- package/dist/lib/authentication/components/SignOut.js +2 -2
- package/dist/lib/authentication/components/SignOut.js.map +1 -1
- package/dist/lib/authentication/components/SignUp.d.ts +1 -1
- package/dist/lib/authentication/components/SignUp.js +4 -1
- package/dist/lib/authentication/components/SignUp.js.map +1 -1
- package/dist/lib/authentication/errors.d.ts +6 -12
- package/dist/lib/authentication/errors.js +2 -1
- package/dist/lib/authentication/errors.js.map +1 -1
- package/dist/lib/authentication/hook.d.ts +13 -4
- package/dist/lib/authentication/hook.js +12 -4
- package/dist/lib/authentication/hook.js.map +1 -1
- package/dist/lib/authentication/providers/auth0.d.ts +2 -2
- package/dist/lib/authentication/providers/auth0.js +16 -14
- package/dist/lib/authentication/providers/auth0.js.map +1 -1
- package/dist/lib/authentication/providers/azureb2c.d.ts +28 -0
- package/dist/lib/authentication/providers/azureb2c.js +147 -0
- package/dist/lib/authentication/providers/azureb2c.js.map +1 -0
- package/dist/lib/authentication/providers/clerk.d.ts +2 -2
- package/dist/lib/authentication/providers/clerk.js +108 -48
- package/dist/lib/authentication/providers/clerk.js.map +1 -1
- package/dist/lib/authentication/providers/openid.d.ts +26 -21
- package/dist/lib/authentication/providers/openid.js +112 -73
- package/dist/lib/authentication/providers/openid.js.map +1 -1
- package/dist/lib/authentication/providers/supabase.d.ts +4 -0
- package/dist/lib/authentication/providers/supabase.js +108 -0
- package/dist/lib/authentication/providers/supabase.js.map +1 -0
- package/dist/lib/authentication/state.d.ts +24 -19
- package/dist/lib/authentication/state.js +47 -7
- package/dist/lib/authentication/state.js.map +1 -1
- package/dist/lib/authentication/use-broadcast/shared.d.ts +48 -0
- package/dist/lib/authentication/use-broadcast/shared.js +243 -0
- package/dist/lib/authentication/use-broadcast/shared.js.map +1 -0
- package/dist/lib/authentication/use-broadcast/useBroadcast.d.ts +24 -0
- package/dist/lib/authentication/use-broadcast/useBroadcast.js +106 -0
- package/dist/lib/authentication/use-broadcast/useBroadcast.js.map +1 -0
- package/dist/lib/components/AnchorLink.d.ts +2 -2
- package/dist/lib/components/AnchorLink.js +9 -5
- package/dist/lib/components/AnchorLink.js.map +1 -1
- package/dist/lib/components/Autocomplete.d.ts +13 -0
- package/dist/lib/components/Autocomplete.js +47 -0
- package/dist/lib/components/Autocomplete.js.map +1 -0
- package/dist/lib/components/Banner.js +2 -2
- package/dist/lib/components/Banner.js.map +1 -1
- package/dist/lib/components/Bootstrap.d.ts +5 -3
- package/dist/lib/components/Bootstrap.js +13 -6
- package/dist/lib/components/Bootstrap.js.map +1 -1
- package/dist/lib/components/BuildCheck.d.ts +4 -0
- package/dist/lib/components/BuildCheck.js +38 -0
- package/dist/lib/components/BuildCheck.js.map +1 -0
- package/dist/lib/components/CategoryHeading.js +1 -1
- package/dist/lib/components/CategoryHeading.js.map +1 -1
- package/dist/lib/components/ClientOnly.d.ts +4 -2
- package/dist/lib/components/ClientOnly.js +1 -1
- package/dist/lib/components/ClientOnly.js.map +1 -1
- package/dist/lib/components/DeveloperHint.js +2 -1
- package/dist/lib/components/DeveloperHint.js.map +1 -1
- package/dist/lib/components/ErrorPage.js +2 -2
- package/dist/lib/components/ErrorPage.js.map +1 -1
- package/dist/lib/components/Footer.d.ts +1 -0
- package/dist/lib/components/Footer.js +32 -0
- package/dist/lib/components/Footer.js.map +1 -0
- package/dist/lib/components/Framed.d.ts +7 -0
- package/dist/lib/components/Framed.js +26 -0
- package/dist/lib/components/Framed.js.map +1 -0
- package/dist/lib/components/Header.js +32 -17
- package/dist/lib/components/Header.js.map +1 -1
- package/dist/lib/components/Heading.d.ts +10 -6
- package/dist/lib/components/Heading.js +7 -2
- package/dist/lib/components/Heading.js.map +1 -1
- package/dist/lib/components/InlineCode.d.ts +2 -1
- package/dist/lib/components/InlineCode.js +2 -9
- package/dist/lib/components/InlineCode.js.map +1 -1
- package/dist/lib/components/Layout.js +10 -21
- package/dist/lib/components/Layout.js.map +1 -1
- package/dist/lib/components/Main.d.ts +2 -0
- package/dist/lib/components/Main.js +18 -0
- package/dist/lib/components/Main.js.map +1 -0
- package/dist/lib/components/Markdown.d.ts +4 -3
- package/dist/lib/components/Markdown.js +14 -14
- package/dist/lib/components/Markdown.js.map +1 -1
- package/dist/lib/components/MobileTopNavigation.js +18 -9
- package/dist/lib/components/MobileTopNavigation.js.map +1 -1
- package/dist/lib/components/NotFoundPage.js +3 -3
- package/dist/lib/components/NotFoundPage.js.map +1 -1
- package/dist/lib/components/PageProgress.d.ts +1 -0
- package/dist/lib/components/PageProgress.js +20 -0
- package/dist/lib/components/PageProgress.js.map +1 -0
- package/dist/lib/components/Pagination.d.ts +11 -0
- package/dist/lib/components/Pagination.js +10 -0
- package/dist/lib/components/Pagination.js.map +1 -0
- package/dist/lib/components/PathRenderer.d.ts +11 -0
- package/dist/lib/components/PathRenderer.js +28 -0
- package/dist/lib/components/PathRenderer.js.map +1 -0
- package/dist/lib/components/ReactMarkdown.d.ts +29 -0
- package/dist/lib/components/ReactMarkdown.js +182 -0
- package/dist/lib/components/ReactMarkdown.js.map +1 -0
- package/dist/lib/components/Search.d.ts +3 -1
- package/dist/lib/components/Search.js +9 -3
- package/dist/lib/components/Search.js.map +1 -1
- package/dist/lib/components/Slot.d.ts +17 -0
- package/dist/lib/components/Slot.js +24 -0
- package/dist/lib/components/Slot.js.map +1 -0
- package/dist/lib/components/Slot.test.d.ts +1 -0
- package/dist/lib/components/Slot.test.js +168 -0
- package/dist/lib/components/Slot.test.js.map +1 -0
- package/dist/lib/components/StatusPage.d.ts +7 -0
- package/dist/lib/components/StatusPage.js +75 -0
- package/dist/lib/components/StatusPage.js.map +1 -0
- package/dist/lib/components/ThemeSwitch.d.ts +1 -0
- package/dist/lib/components/ThemeSwitch.js +16 -0
- package/dist/lib/components/ThemeSwitch.js.map +1 -0
- package/dist/lib/components/TopNavigation.d.ts +7 -3
- package/dist/lib/components/TopNavigation.js +55 -37
- package/dist/lib/components/TopNavigation.js.map +1 -1
- package/dist/lib/components/Typography.d.ts +5 -0
- package/dist/lib/components/Typography.js +8 -0
- package/dist/lib/components/Typography.js.map +1 -0
- package/dist/lib/components/Zudoku.d.ts +7 -0
- package/dist/lib/components/Zudoku.js +58 -0
- package/dist/lib/components/Zudoku.js.map +1 -0
- package/dist/lib/components/cache.d.ts +13 -0
- package/dist/lib/components/cache.js +20 -0
- package/dist/lib/components/cache.js.map +1 -0
- package/dist/lib/components/context/BypassProtectedRoutesContext.d.ts +1 -0
- package/dist/lib/components/context/BypassProtectedRoutesContext.js +3 -0
- package/dist/lib/components/context/BypassProtectedRoutesContext.js.map +1 -0
- package/dist/lib/components/context/RouterEventsEmitter.d.ts +1 -0
- package/dist/lib/components/context/RouterEventsEmitter.js +17 -0
- package/dist/lib/components/context/RouterEventsEmitter.js.map +1 -0
- package/dist/lib/components/context/SlotProvider.d.ts +26 -0
- package/dist/lib/components/context/SlotProvider.js +83 -0
- package/dist/lib/components/context/SlotProvider.js.map +1 -0
- package/dist/lib/components/context/ViewportAnchorContext.d.ts +2 -4
- package/dist/lib/components/context/ViewportAnchorContext.js +29 -23
- package/dist/lib/components/context/ViewportAnchorContext.js.map +1 -1
- package/dist/lib/components/context/ZudokuContext.d.ts +9 -13
- package/dist/lib/components/context/ZudokuContext.js +64 -31
- package/dist/lib/components/context/ZudokuContext.js.map +1 -1
- package/dist/lib/components/context/ZudokuProvider.d.ts +2 -2
- package/dist/lib/components/context/ZudokuProvider.js +2 -1
- package/dist/lib/components/context/ZudokuProvider.js.map +1 -1
- package/dist/lib/components/index.d.ts +69 -20
- package/dist/lib/components/index.js +31 -9
- package/dist/lib/components/index.js.map +1 -1
- package/dist/lib/components/navigation/Navigation.d.ts +5 -0
- package/dist/lib/components/navigation/Navigation.js +12 -0
- package/dist/lib/components/navigation/Navigation.js.map +1 -0
- package/dist/lib/components/navigation/NavigationBadge.d.ts +26 -0
- package/dist/lib/components/navigation/NavigationBadge.js +26 -0
- package/dist/lib/components/navigation/NavigationBadge.js.map +1 -0
- package/dist/lib/components/navigation/NavigationCategory.d.ts +5 -0
- package/dist/lib/components/navigation/NavigationCategory.js +61 -0
- package/dist/lib/components/navigation/NavigationCategory.js.map +1 -0
- package/dist/lib/components/navigation/NavigationItem.d.ts +6 -0
- package/dist/lib/components/navigation/NavigationItem.js +54 -0
- package/dist/lib/components/navigation/NavigationItem.js.map +1 -0
- package/dist/lib/components/navigation/NavigationWrapper.d.ts +7 -0
- package/dist/lib/components/navigation/NavigationWrapper.js +21 -0
- package/dist/lib/components/navigation/NavigationWrapper.js.map +1 -0
- package/dist/lib/components/navigation/PoweredByZudoku.d.ts +3 -0
- package/dist/lib/components/navigation/PoweredByZudoku.js +7 -0
- package/dist/lib/components/navigation/PoweredByZudoku.js.map +1 -0
- package/dist/lib/components/navigation/Toc.js +46 -0
- package/dist/lib/components/navigation/Toc.js.map +1 -0
- package/dist/lib/components/navigation/ZudokuLogo.d.ts +6 -0
- package/dist/lib/components/navigation/ZudokuLogo.js +5 -0
- package/dist/lib/components/navigation/ZudokuLogo.js.map +1 -0
- package/dist/lib/components/navigation/ZuploLogo.d.ts +3 -0
- package/dist/lib/components/navigation/ZuploLogo.js +4 -0
- package/dist/lib/components/navigation/ZuploLogo.js.map +1 -0
- package/dist/lib/components/navigation/utils.d.ts +14 -6
- package/dist/lib/components/navigation/utils.js +50 -19
- package/dist/lib/components/navigation/utils.js.map +1 -1
- package/dist/lib/core/RouteGuard.d.ts +2 -0
- package/dist/lib/core/RouteGuard.js +52 -0
- package/dist/lib/core/RouteGuard.js.map +1 -0
- package/dist/lib/core/ZudokuContext.d.ts +113 -0
- package/dist/lib/core/ZudokuContext.js +93 -0
- package/dist/lib/core/ZudokuContext.js.map +1 -0
- package/dist/lib/core/plugins.d.ts +37 -19
- package/dist/lib/core/plugins.js +4 -0
- package/dist/lib/core/plugins.js.map +1 -1
- package/dist/lib/errors/ErrorAlert.js +5 -1
- package/dist/lib/errors/ErrorAlert.js.map +1 -1
- package/dist/lib/errors/RouterError.js +1 -1
- package/dist/lib/errors/RouterError.js.map +1 -1
- package/dist/lib/hooks/index.d.ts +28 -0
- package/dist/lib/hooks/index.js +16 -0
- package/dist/lib/hooks/index.js.map +1 -0
- package/dist/lib/hooks/useEvent.d.ts +11 -0
- package/dist/lib/hooks/useEvent.js +19 -0
- package/dist/lib/hooks/useEvent.js.map +1 -0
- package/dist/lib/hooks/useEvent.test.d.ts +1 -0
- package/dist/lib/hooks/useEvent.test.js +102 -0
- package/dist/lib/hooks/useEvent.test.js.map +1 -0
- package/dist/lib/hooks/useHotkey.d.ts +4 -0
- package/dist/lib/hooks/useHotkey.js +58 -0
- package/dist/lib/hooks/useHotkey.js.map +1 -0
- package/dist/lib/icons.d.ts +1 -0
- package/dist/lib/icons.js +1 -0
- package/dist/lib/icons.js.map +1 -1
- package/dist/lib/oas/graphql/circular.d.ts +3 -0
- package/dist/lib/oas/graphql/circular.js +43 -0
- package/dist/lib/oas/graphql/circular.js.map +1 -0
- package/dist/lib/oas/graphql/index.d.ts +25 -1
- package/dist/lib/oas/graphql/index.js +216 -69
- package/dist/lib/oas/graphql/index.js.map +1 -1
- package/dist/lib/oas/parser/dereference/index.js +8 -3
- package/dist/lib/oas/parser/dereference/index.js.map +1 -1
- package/dist/lib/oas/parser/index.d.ts +8 -3
- package/dist/lib/oas/parser/index.js +7 -23
- package/dist/lib/oas/parser/index.js.map +1 -1
- package/dist/lib/oas/parser/upgrade/index.d.ts +3 -2
- package/dist/lib/oas/parser/upgrade/index.js +83 -31
- package/dist/lib/oas/parser/upgrade/index.js.map +1 -1
- package/dist/lib/plugins/api-catalog/Catalog.d.ts +4 -0
- package/dist/lib/plugins/api-catalog/Catalog.js +26 -0
- package/dist/lib/plugins/api-catalog/Catalog.js.map +1 -0
- package/dist/lib/plugins/api-catalog/index.d.ts +31 -0
- package/dist/lib/plugins/api-catalog/index.js +46 -0
- package/dist/lib/plugins/api-catalog/index.js.map +1 -0
- package/dist/lib/plugins/api-keys/CreateApiKey.d.ts +3 -2
- package/dist/lib/plugins/api-keys/CreateApiKey.js +15 -7
- package/dist/lib/plugins/api-keys/CreateApiKey.js.map +1 -1
- package/dist/lib/plugins/api-keys/ProtectedRoute.js +1 -1
- package/dist/lib/plugins/api-keys/ProtectedRoute.js.map +1 -1
- package/dist/lib/plugins/api-keys/SettingsApiKeys.d.ts +1 -1
- package/dist/lib/plugins/api-keys/SettingsApiKeys.js +151 -28
- package/dist/lib/plugins/api-keys/SettingsApiKeys.js.map +1 -1
- package/dist/lib/plugins/api-keys/index.d.ts +25 -15
- package/dist/lib/plugins/api-keys/index.js +68 -30
- 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 +9 -2
- package/dist/lib/plugins/markdown/MdxPage.js +43 -10
- package/dist/lib/plugins/markdown/MdxPage.js.map +1 -1
- package/dist/lib/plugins/markdown/index.d.ts +14 -4
- package/dist/lib/plugins/markdown/index.js +9 -26
- package/dist/lib/plugins/markdown/index.js.map +1 -1
- package/dist/lib/plugins/openapi/CollapsibleCode.d.ts +5 -0
- package/dist/lib/plugins/openapi/CollapsibleCode.js +25 -0
- package/dist/lib/plugins/openapi/CollapsibleCode.js.map +1 -0
- package/dist/lib/plugins/openapi/ColorizedParam.d.ts +10 -2
- package/dist/lib/plugins/openapi/ColorizedParam.js +29 -14
- package/dist/lib/plugins/openapi/ColorizedParam.js.map +1 -1
- package/dist/lib/plugins/openapi/Endpoint.js +13 -16
- package/dist/lib/plugins/openapi/Endpoint.js.map +1 -1
- package/dist/lib/plugins/openapi/OasProvider.d.ts +8 -0
- package/dist/lib/plugins/openapi/OasProvider.js +29 -0
- package/dist/lib/plugins/openapi/OasProvider.js.map +1 -0
- package/dist/lib/plugins/openapi/OperationList.d.ts +6 -3
- package/dist/lib/plugins/openapi/OperationList.js +109 -29
- package/dist/lib/plugins/openapi/OperationList.js.map +1 -1
- package/dist/lib/plugins/openapi/OperationListItem.d.ts +5 -3
- package/dist/lib/plugins/openapi/OperationListItem.js +13 -7
- package/dist/lib/plugins/openapi/OperationListItem.js.map +1 -1
- package/dist/lib/plugins/openapi/ParamInfos.d.ts +6 -0
- package/dist/lib/plugins/openapi/ParamInfos.js +45 -0
- package/dist/lib/plugins/openapi/ParamInfos.js.map +1 -0
- package/dist/lib/plugins/openapi/ParameterList.d.ts +2 -1
- package/dist/lib/plugins/openapi/ParameterList.js +3 -2
- package/dist/lib/plugins/openapi/ParameterList.js.map +1 -1
- package/dist/lib/plugins/openapi/ParameterListItem.js +19 -1
- package/dist/lib/plugins/openapi/ParameterListItem.js.map +1 -1
- package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.d.ts +4 -2
- package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.js +17 -4
- package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.js.map +1 -1
- package/dist/lib/plugins/openapi/RequestBodySidecarBox.d.ts +3 -4
- package/dist/lib/plugins/openapi/RequestBodySidecarBox.js +5 -9
- package/dist/lib/plugins/openapi/RequestBodySidecarBox.js.map +1 -1
- package/dist/lib/plugins/openapi/ResponsesSidecarBox.d.ts +2 -4
- package/dist/lib/plugins/openapi/ResponsesSidecarBox.js +4 -6
- package/dist/lib/plugins/openapi/ResponsesSidecarBox.js.map +1 -1
- package/dist/lib/plugins/openapi/SchemaList.d.ts +1 -0
- package/dist/lib/plugins/openapi/SchemaList.js +52 -0
- package/dist/lib/plugins/openapi/SchemaList.js.map +1 -0
- package/dist/lib/plugins/openapi/Sidecar.d.ts +1 -1
- package/dist/lib/plugins/openapi/Sidecar.js +87 -118
- package/dist/lib/plugins/openapi/Sidecar.js.map +1 -1
- package/dist/lib/plugins/openapi/SidecarBox.js +4 -4
- package/dist/lib/plugins/openapi/SidecarBox.js.map +1 -1
- package/dist/lib/plugins/openapi/SidecarExamples.d.ts +9 -0
- package/dist/lib/plugins/openapi/SidecarExamples.js +76 -0
- package/dist/lib/plugins/openapi/SidecarExamples.js.map +1 -0
- package/dist/lib/plugins/openapi/SimpleSelect.js +1 -1
- package/dist/lib/plugins/openapi/SimpleSelect.js.map +1 -1
- package/dist/lib/plugins/openapi/client/GraphQLClient.d.ts +8 -0
- package/dist/lib/plugins/openapi/client/GraphQLClient.js +43 -0
- package/dist/lib/plugins/openapi/client/GraphQLClient.js.map +1 -0
- package/dist/lib/plugins/openapi/client/GraphQLContext.d.ts +7 -0
- package/dist/lib/plugins/openapi/client/GraphQLContext.js +5 -0
- package/dist/lib/plugins/openapi/client/GraphQLContext.js.map +1 -0
- package/dist/lib/plugins/openapi/client/createServer.d.ts +3 -1
- package/dist/lib/plugins/openapi/client/createServer.js +5 -2
- package/dist/lib/plugins/openapi/client/createServer.js.map +1 -1
- package/dist/lib/plugins/openapi/client/useCreateQuery.d.ts +14 -0
- package/dist/lib/plugins/openapi/client/useCreateQuery.js +20 -0
- package/dist/lib/plugins/openapi/client/useCreateQuery.js.map +1 -0
- package/dist/lib/plugins/openapi/components/ConstValue.d.ts +5 -0
- package/dist/lib/plugins/openapi/components/ConstValue.js +6 -0
- package/dist/lib/plugins/openapi/components/ConstValue.js.map +1 -0
- package/dist/lib/plugins/openapi/components/EnumValues.d.ts +5 -0
- package/dist/lib/plugins/openapi/components/EnumValues.js +15 -0
- package/dist/lib/plugins/openapi/components/EnumValues.js.map +1 -0
- package/dist/lib/plugins/openapi/components/ResponseContent.d.ts +12 -0
- package/dist/lib/plugins/openapi/components/ResponseContent.js +21 -0
- package/dist/lib/plugins/openapi/components/ResponseContent.js.map +1 -0
- package/dist/lib/plugins/openapi/components/SelectOnClick.d.ts +5 -0
- package/dist/lib/plugins/openapi/components/SelectOnClick.js +16 -0
- package/dist/lib/plugins/openapi/components/SelectOnClick.js.map +1 -0
- package/dist/lib/plugins/openapi/context.d.ts +3 -3
- package/dist/lib/plugins/openapi/graphql/fragment-masking.d.ts +3 -3
- package/dist/lib/plugins/openapi/graphql/fragment-masking.js +3 -4
- package/dist/lib/plugins/openapi/graphql/fragment-masking.js.map +1 -1
- package/dist/lib/plugins/openapi/graphql/gql.d.ts +8 -46
- package/dist/lib/plugins/openapi/graphql/gql.js +6 -13
- package/dist/lib/plugins/openapi/graphql/gql.js.map +1 -1
- package/dist/lib/plugins/openapi/graphql/graphql.d.ts +142 -25
- package/dist/lib/plugins/openapi/graphql/graphql.js +239 -662
- package/dist/lib/plugins/openapi/graphql/graphql.js.map +1 -1
- package/dist/lib/plugins/openapi/index.d.ts +11 -8
- package/dist/lib/plugins/openapi/index.js +106 -104
- package/dist/lib/plugins/openapi/index.js.map +1 -1
- package/dist/lib/plugins/openapi/interfaces.d.ts +58 -4
- package/dist/lib/plugins/openapi/playground/BodyPanel.d.ts +5 -0
- package/dist/lib/plugins/openapi/playground/BodyPanel.js +26 -0
- package/dist/lib/plugins/openapi/playground/BodyPanel.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/CollapsibleHeader.d.ts +8 -0
- package/dist/lib/plugins/openapi/playground/CollapsibleHeader.js +11 -0
- package/dist/lib/plugins/openapi/playground/CollapsibleHeader.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/ExamplesDropdown.d.ts +6 -0
- package/dist/lib/plugins/openapi/playground/ExamplesDropdown.js +9 -0
- package/dist/lib/plugins/openapi/playground/ExamplesDropdown.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/Headers.d.ts +5 -4
- package/dist/lib/plugins/openapi/playground/Headers.js +108 -7
- package/dist/lib/plugins/openapi/playground/Headers.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/IdentityDialog.d.ts +11 -0
- package/dist/lib/plugins/openapi/playground/IdentityDialog.js +15 -0
- package/dist/lib/plugins/openapi/playground/IdentityDialog.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/IdentitySelector.d.ts +7 -0
- package/dist/lib/plugins/openapi/playground/IdentitySelector.js +7 -0
- package/dist/lib/plugins/openapi/playground/IdentitySelector.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/InlineInput.js +1 -1
- package/dist/lib/plugins/openapi/playground/InlineInput.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/ParamsGrid.d.ts +9 -0
- package/dist/lib/plugins/openapi/playground/ParamsGrid.js +5 -0
- package/dist/lib/plugins/openapi/playground/ParamsGrid.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/PathParams.d.ts +3 -2
- package/dist/lib/plugins/openapi/playground/PathParams.js +4 -7
- package/dist/lib/plugins/openapi/playground/PathParams.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/Playground.d.ts +32 -2
- package/dist/lib/plugins/openapi/playground/Playground.js +168 -84
- package/dist/lib/plugins/openapi/playground/Playground.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js +1 -1
- package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/QueryParams.d.ts +3 -3
- package/dist/lib/plugins/openapi/playground/QueryParams.js +43 -22
- package/dist/lib/plugins/openapi/playground/QueryParams.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/RequestLoginDialog.d.ts +7 -0
- package/dist/lib/plugins/openapi/playground/RequestLoginDialog.js +8 -0
- package/dist/lib/plugins/openapi/playground/RequestLoginDialog.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/Spinner.d.ts +2 -0
- package/dist/lib/plugins/openapi/playground/Spinner.js +63 -0
- package/dist/lib/plugins/openapi/playground/Spinner.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/fileUtils.d.ts +2 -0
- package/dist/lib/plugins/openapi/playground/fileUtils.js +22 -0
- package/dist/lib/plugins/openapi/playground/fileUtils.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/rememberedIdentity.d.ts +17 -0
- package/dist/lib/plugins/openapi/playground/rememberedIdentity.js +11 -0
- package/dist/lib/plugins/openapi/playground/rememberedIdentity.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/request-panel/UrlPath.d.ts +3 -0
- package/dist/lib/plugins/openapi/playground/request-panel/UrlPath.js +13 -0
- package/dist/lib/plugins/openapi/playground/request-panel/UrlPath.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/request-panel/UrlQueryParams.d.ts +1 -0
- package/dist/lib/plugins/openapi/playground/request-panel/UrlQueryParams.js +12 -0
- package/dist/lib/plugins/openapi/playground/request-panel/UrlQueryParams.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/result-panel/Highlight.d.ts +12 -0
- package/dist/lib/plugins/openapi/playground/result-panel/Highlight.js +11 -0
- package/dist/lib/plugins/openapi/playground/result-panel/Highlight.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/result-panel/ResponseStatusBar.d.ts +8 -0
- package/dist/lib/plugins/openapi/playground/result-panel/ResponseStatusBar.js +69 -0
- package/dist/lib/plugins/openapi/playground/result-panel/ResponseStatusBar.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.d.ts +14 -0
- package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.js +103 -0
- package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.d.ts +11 -0
- package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.js +15 -0
- package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.d.ts +10 -0
- package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.js +32 -0
- package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.test.d.ts +1 -0
- package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.test.js +56 -0
- package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.test.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/useRememberSkipLoginDialog.d.ts +16 -0
- package/dist/lib/plugins/openapi/playground/useRememberSkipLoginDialog.js +10 -0
- package/dist/lib/plugins/openapi/playground/useRememberSkipLoginDialog.js.map +1 -0
- package/dist/lib/plugins/openapi/processors/removeExtensions.d.ts +8 -0
- package/dist/lib/plugins/openapi/processors/removeExtensions.js +16 -0
- package/dist/lib/plugins/openapi/processors/removeExtensions.js.map +1 -0
- package/dist/lib/plugins/openapi/processors/removeExtensions.test.d.ts +1 -0
- package/dist/lib/plugins/openapi/processors/removeExtensions.test.js +194 -0
- package/dist/lib/plugins/openapi/processors/removeExtensions.test.js.map +1 -0
- package/dist/lib/plugins/openapi/processors/removeParameters.d.ts +12 -0
- package/dist/lib/plugins/openapi/processors/removeParameters.js +66 -0
- package/dist/lib/plugins/openapi/processors/removeParameters.js.map +1 -0
- package/dist/lib/plugins/openapi/processors/removeParameters.test.d.ts +1 -0
- package/dist/lib/plugins/openapi/processors/removeParameters.test.js +159 -0
- package/dist/lib/plugins/openapi/processors/removeParameters.test.js.map +1 -0
- package/dist/lib/plugins/openapi/processors/removePaths.d.ts +13 -0
- package/dist/lib/plugins/openapi/processors/removePaths.js +33 -0
- package/dist/lib/plugins/openapi/processors/removePaths.js.map +1 -0
- package/dist/lib/plugins/openapi/processors/removePaths.test.d.ts +1 -0
- package/dist/lib/plugins/openapi/processors/removePaths.test.js +144 -0
- package/dist/lib/plugins/openapi/processors/removePaths.test.js.map +1 -0
- package/dist/lib/plugins/openapi/processors/traverse.d.ts +1 -0
- package/dist/lib/plugins/openapi/processors/traverse.js +2 -0
- package/dist/lib/plugins/openapi/processors/traverse.js.map +1 -0
- package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.d.ts +1 -2
- package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.js +2 -2
- package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.js.map +1 -1
- package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupConnector.d.ts +2 -1
- package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupConnector.js +2 -2
- package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupConnector.js.map +1 -1
- package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupItem.d.ts +0 -1
- package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupItem.js +1 -1
- package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupItem.js.map +1 -1
- package/dist/lib/plugins/openapi/schema/SchemaExampleAndDefault.d.ts +4 -0
- package/dist/lib/plugins/openapi/schema/SchemaExampleAndDefault.js +15 -0
- package/dist/lib/plugins/openapi/schema/SchemaExampleAndDefault.js.map +1 -0
- package/dist/lib/plugins/openapi/schema/SchemaPropertyItem.d.ts +11 -0
- package/dist/lib/plugins/openapi/schema/SchemaPropertyItem.js +44 -0
- package/dist/lib/plugins/openapi/schema/SchemaPropertyItem.js.map +1 -0
- package/dist/lib/plugins/openapi/schema/SchemaView.d.ts +2 -2
- package/dist/lib/plugins/openapi/schema/SchemaView.js +40 -51
- package/dist/lib/plugins/openapi/schema/SchemaView.js.map +1 -1
- package/dist/lib/plugins/openapi/schema/utils.d.ts +8 -1
- package/dist/lib/plugins/openapi/schema/utils.js +16 -4
- package/dist/lib/plugins/openapi/schema/utils.js.map +1 -1
- package/dist/lib/plugins/openapi/state.d.ts +25 -0
- package/dist/lib/plugins/openapi/state.js +18 -0
- package/dist/lib/plugins/openapi/state.js.map +1 -0
- package/dist/lib/plugins/openapi/util/createHttpSnippet.d.ts +11 -0
- package/dist/lib/plugins/openapi/util/createHttpSnippet.js +89 -0
- package/dist/lib/plugins/openapi/util/createHttpSnippet.js.map +1 -0
- package/dist/lib/plugins/openapi/util/createNavigationCategory.d.ts +9 -0
- package/dist/lib/plugins/openapi/util/createNavigationCategory.js +24 -0
- package/dist/lib/plugins/openapi/util/createNavigationCategory.js.map +1 -0
- package/dist/lib/plugins/openapi/util/generateSchemaExample.d.ts +1 -2
- package/dist/lib/plugins/openapi/util/generateSchemaExample.js +80 -39
- package/dist/lib/plugins/openapi/util/generateSchemaExample.js.map +1 -1
- package/dist/lib/plugins/openapi/util/getRoutes.d.ts +10 -0
- package/dist/lib/plugins/openapi/util/getRoutes.js +117 -0
- package/dist/lib/plugins/openapi/util/getRoutes.js.map +1 -0
- package/dist/lib/plugins/openapi/util/methodColorMap.d.ts +2 -0
- package/dist/lib/plugins/openapi/util/methodColorMap.js +10 -0
- package/dist/lib/plugins/openapi/util/methodColorMap.js.map +1 -0
- package/dist/lib/plugins/openapi/util/methodToColor.d.ts +20 -0
- package/dist/lib/plugins/openapi/util/methodToColor.js +24 -0
- package/dist/lib/plugins/openapi/util/methodToColor.js.map +1 -0
- package/dist/lib/plugins/openapi/util/sanitizeMarkdownForMetatag.d.ts +1 -0
- package/dist/lib/plugins/openapi/util/sanitizeMarkdownForMetatag.js +27 -0
- package/dist/lib/plugins/openapi/util/sanitizeMarkdownForMetatag.js.map +1 -0
- package/dist/lib/plugins/redirect/index.d.ts +3 -3
- package/dist/lib/plugins/redirect/index.js +1 -1
- package/dist/lib/plugins/redirect/index.js.map +1 -1
- package/dist/lib/plugins/search-inkeep/index.d.ts +8 -6
- package/dist/lib/plugins/search-inkeep/index.js +49 -7
- package/dist/lib/plugins/search-inkeep/index.js.map +1 -1
- package/dist/lib/plugins/search-inkeep/inkeep.d.ts +2 -19
- package/dist/lib/plugins/search-inkeep/inkeep.js +10 -19
- package/dist/lib/plugins/search-inkeep/inkeep.js.map +1 -1
- package/dist/lib/plugins/search-pagefind/PagefindSearch.d.ts +6 -0
- package/dist/lib/plugins/search-pagefind/PagefindSearch.js +80 -0
- package/dist/lib/plugins/search-pagefind/PagefindSearch.js.map +1 -0
- package/dist/lib/plugins/search-pagefind/ResultList.d.ts +8 -0
- package/dist/lib/plugins/search-pagefind/ResultList.js +39 -0
- package/dist/lib/plugins/search-pagefind/ResultList.js.map +1 -0
- package/dist/lib/plugins/search-pagefind/get-results.d.ts +10 -0
- package/dist/lib/plugins/search-pagefind/get-results.js +42 -0
- package/dist/lib/plugins/search-pagefind/get-results.js.map +1 -0
- package/dist/lib/plugins/search-pagefind/index.d.ts +6 -0
- package/dist/lib/plugins/search-pagefind/index.js +9 -0
- package/dist/lib/plugins/search-pagefind/index.js.map +1 -0
- package/dist/lib/plugins/search-pagefind/types.d.ts +85 -0
- package/dist/lib/plugins/search-pagefind/types.js +2 -0
- package/dist/lib/plugins/search-pagefind/types.js.map +1 -0
- package/dist/lib/shiki.d.ts +31 -0
- package/dist/lib/shiki.js +101 -0
- package/dist/lib/shiki.js.map +1 -0
- package/dist/lib/ui/ActionButton.d.ts +4 -0
- package/dist/lib/ui/ActionButton.js +10 -0
- package/dist/lib/ui/ActionButton.js.map +1 -0
- package/dist/lib/ui/Alert.d.ts +6 -5
- package/dist/lib/ui/Alert.js +12 -10
- package/dist/lib/ui/Alert.js.map +1 -1
- package/dist/lib/ui/Badge.d.ts +2 -2
- package/dist/lib/ui/Badge.js +2 -1
- package/dist/lib/ui/Badge.js.map +1 -1
- package/dist/lib/ui/Button.d.ts +3 -3
- package/dist/lib/ui/Button.js +9 -6
- package/dist/lib/ui/Button.js.map +1 -1
- package/dist/lib/ui/Callout.d.ts +2 -1
- package/dist/lib/ui/Callout.js +3 -2
- package/dist/lib/ui/Callout.js.map +1 -1
- package/dist/lib/ui/Card.js +1 -1
- package/dist/lib/ui/Card.js.map +1 -1
- package/dist/lib/ui/Checkbox.js +1 -1
- package/dist/lib/ui/Checkbox.js.map +1 -1
- package/dist/lib/ui/CodeBlock.d.ts +15 -0
- package/dist/lib/ui/CodeBlock.js +17 -0
- package/dist/lib/ui/CodeBlock.js.map +1 -0
- package/dist/lib/ui/Command.d.ts +17 -3
- package/dist/lib/ui/Command.js +9 -5
- package/dist/lib/ui/Command.js.map +1 -1
- package/dist/lib/ui/Dialog.d.ts +3 -1
- package/dist/lib/ui/Dialog.js +2 -2
- package/dist/lib/ui/Dialog.js.map +1 -1
- package/dist/lib/ui/DropdownMenu.js +4 -4
- package/dist/lib/ui/DropdownMenu.js.map +1 -1
- package/dist/lib/ui/EmbeddedCodeBlock.d.ts +15 -0
- package/dist/lib/ui/EmbeddedCodeBlock.js +18 -0
- package/dist/lib/ui/EmbeddedCodeBlock.js.map +1 -0
- package/dist/lib/ui/Form.d.ts +1 -1
- package/dist/lib/ui/HoverCard.js +1 -1
- package/dist/lib/ui/HoverCard.js.map +1 -1
- package/dist/lib/ui/Input.d.ts +1 -2
- package/dist/lib/ui/Input.js +1 -1
- package/dist/lib/ui/Input.js.map +1 -1
- package/dist/lib/ui/Popover.js +1 -1
- package/dist/lib/ui/Popover.js.map +1 -1
- package/dist/lib/ui/RadioGroup.js +1 -1
- package/dist/lib/ui/RadioGroup.js.map +1 -1
- package/dist/lib/ui/Select.js +4 -4
- package/dist/lib/ui/Select.js.map +1 -1
- package/dist/lib/ui/Slider.js +1 -1
- package/dist/lib/ui/Slider.js.map +1 -1
- package/dist/lib/ui/Stepper.d.ts +3 -0
- package/dist/lib/ui/Stepper.js +7 -0
- package/dist/lib/ui/Stepper.js.map +1 -0
- package/dist/lib/ui/Switch.js +1 -1
- package/dist/lib/ui/Switch.js.map +1 -1
- package/dist/lib/ui/SyntaxHighlight.d.ts +12 -0
- package/dist/lib/ui/SyntaxHighlight.js +15 -0
- package/dist/lib/ui/SyntaxHighlight.js.map +1 -0
- package/dist/lib/ui/Tabs.js +2 -2
- package/dist/lib/ui/Tabs.js.map +1 -1
- package/dist/lib/ui/Textarea.js +1 -1
- package/dist/lib/ui/Textarea.js.map +1 -1
- package/dist/lib/ui/Toggle.js +1 -1
- package/dist/lib/ui/Toggle.js.map +1 -1
- package/dist/lib/ui/Tooltip.d.ts +2 -1
- package/dist/lib/ui/Tooltip.js +2 -1
- package/dist/lib/ui/Tooltip.js.map +1 -1
- package/dist/lib/ui/util.d.ts +2 -0
- package/dist/lib/ui/util.js +3 -0
- package/dist/lib/ui/util.js.map +1 -0
- package/dist/lib/util/MdxComponents.d.ts +38 -21
- package/dist/lib/util/MdxComponents.js +21 -17
- package/dist/lib/util/MdxComponents.js.map +1 -1
- package/dist/lib/util/createVariantComponent.d.ts +2 -2
- package/dist/lib/util/detectOS.d.ts +1 -0
- package/dist/lib/util/detectOS.js +11 -0
- package/dist/lib/util/detectOS.js.map +1 -0
- package/dist/lib/util/ensureArray.d.ts +1 -0
- package/dist/lib/util/ensureArray.js +2 -0
- package/dist/lib/util/ensureArray.js.map +1 -0
- package/dist/lib/util/humanFileSize.d.ts +6 -0
- package/dist/lib/util/humanFileSize.js +14 -0
- package/dist/lib/util/humanFileSize.js.map +1 -0
- package/dist/lib/util/humanFileSize.test.d.ts +1 -0
- package/dist/lib/util/humanFileSize.test.js +22 -0
- package/dist/lib/util/humanFileSize.test.js.map +1 -0
- package/dist/lib/util/invariant.d.ts +6 -5
- package/dist/lib/util/invariant.js +1 -1
- package/dist/lib/util/invariant.js.map +1 -1
- package/dist/lib/util/joinPath.d.ts +3 -0
- package/dist/lib/util/joinPath.js +3 -0
- package/dist/lib/util/joinPath.js.map +1 -1
- package/dist/lib/util/joinUrl.d.ts +1 -0
- package/dist/lib/util/joinUrl.js +40 -0
- package/dist/lib/util/joinUrl.js.map +1 -0
- package/dist/lib/util/joinUrl.test.d.ts +1 -0
- package/dist/lib/util/joinUrl.test.js +43 -0
- package/dist/lib/util/joinUrl.test.js.map +1 -0
- package/dist/lib/util/os.d.ts +2 -0
- package/dist/lib/util/os.js +21 -0
- package/dist/lib/util/os.js.map +1 -0
- package/dist/lib/util/scrollIntoViewIfNeeded.d.ts +1 -0
- package/dist/lib/util/scrollIntoViewIfNeeded.js +14 -0
- package/dist/lib/util/scrollIntoViewIfNeeded.js.map +1 -0
- package/dist/lib/util/traverse.d.ts +3 -0
- package/dist/lib/util/traverse.js +23 -0
- package/dist/lib/util/traverse.js.map +1 -0
- package/dist/lib/util/types.d.ts +7 -0
- package/dist/lib/util/types.js +2 -0
- package/dist/lib/util/types.js.map +1 -0
- package/dist/lib/util/url.d.ts +4 -0
- package/dist/lib/util/url.js +13 -0
- package/dist/lib/util/url.js.map +1 -0
- package/dist/lib/util/url.test.d.ts +1 -0
- package/dist/lib/util/url.test.js +26 -0
- package/dist/lib/util/url.test.js.map +1 -0
- package/dist/lib/util/useCopyToClipboard.d.ts +1 -0
- package/dist/lib/util/useCopyToClipboard.js +11 -0
- package/dist/lib/util/useCopyToClipboard.js.map +1 -0
- package/dist/lib/util/useExposedProps.d.ts +8 -1
- package/dist/lib/util/useExposedProps.js +1 -1
- package/dist/lib/util/useExposedProps.js.map +1 -1
- package/dist/lib/util/useIsomorphicLayoutEffect.d.ts +3 -0
- package/dist/lib/util/useIsomorphicLayoutEffect.js +4 -0
- package/dist/lib/util/useIsomorphicLayoutEffect.js.map +1 -0
- package/dist/lib/util/useLatest.d.ts +1 -0
- package/dist/lib/util/useLatest.js +15 -0
- package/dist/lib/util/useLatest.js.map +1 -0
- package/dist/lib/util/useOnScreen.d.ts +5 -0
- package/dist/lib/util/useOnScreen.js +19 -0
- package/dist/lib/util/useOnScreen.js.map +1 -0
- package/dist/lib/util/useScrollToAnchor.d.ts +1 -0
- package/dist/lib/util/useScrollToAnchor.js +43 -38
- package/dist/lib/util/useScrollToAnchor.js.map +1 -1
- package/dist/lib/util/useScrollToTop.js +7 -5
- package/dist/lib/util/useScrollToTop.js.map +1 -1
- package/dist/vite/api/SchemaManager.d.ts +36 -0
- package/dist/vite/api/SchemaManager.js +141 -0
- package/dist/vite/api/SchemaManager.js.map +1 -0
- package/dist/vite/api/SchemaManager.test.d.ts +1 -0
- package/dist/vite/api/SchemaManager.test.js +106 -0
- package/dist/vite/api/SchemaManager.test.js.map +1 -0
- package/dist/vite/api/schema-codegen.d.ts +12 -0
- package/dist/vite/api/schema-codegen.js +116 -0
- package/dist/vite/api/schema-codegen.js.map +1 -0
- package/dist/vite/api/schema-codegen.test.d.ts +1 -0
- package/dist/vite/api/schema-codegen.test.js +395 -0
- package/dist/vite/api/schema-codegen.test.js.map +1 -0
- package/dist/vite/build.js +58 -18
- package/dist/vite/build.js.map +1 -1
- package/dist/vite/config.d.ts +2 -10
- package/dist/vite/config.js +115 -112
- package/dist/vite/config.js.map +1 -1
- package/dist/vite/config.test.js +12 -6
- package/dist/vite/config.test.js.map +1 -1
- package/dist/vite/create-pagefind-index.d.ts +4 -0
- package/dist/vite/create-pagefind-index.js +12 -0
- package/dist/vite/create-pagefind-index.js.map +1 -0
- package/dist/vite/css/collect.d.ts +2 -0
- package/dist/vite/css/collect.js +27 -0
- package/dist/vite/css/collect.js.map +1 -0
- package/dist/vite/css/plugin.d.ts +4 -0
- package/dist/vite/css/plugin.js +91 -0
- package/dist/vite/css/plugin.js.map +1 -0
- package/dist/vite/dev-server.d.ts +5 -3
- package/dist/vite/dev-server.js +81 -22
- package/dist/vite/dev-server.js.map +1 -1
- package/dist/vite/error-handler.d.ts +1 -1
- package/dist/vite/error-handler.js +1 -1
- package/dist/vite/error-handler.js.map +1 -1
- package/dist/vite/html.d.ts +7 -3
- package/dist/vite/html.js +15 -11
- package/dist/vite/html.js.map +1 -1
- package/dist/vite/mdx/remark-last-modified.d.ts +3 -0
- package/dist/vite/mdx/remark-last-modified.js +29 -0
- package/dist/vite/mdx/remark-last-modified.js.map +1 -0
- package/dist/vite/mdx/utils.d.ts +2 -0
- package/dist/vite/mdx/utils.js +31 -0
- package/dist/vite/mdx/utils.js.map +1 -0
- package/dist/vite/output.d.ts +15 -3
- package/dist/vite/output.js +46 -16
- package/dist/vite/output.js.map +1 -1
- package/dist/vite/plugin-api-keys.d.ts +1 -2
- package/dist/vite/plugin-api-keys.js +13 -7
- package/dist/vite/plugin-api-keys.js.map +1 -1
- package/dist/vite/plugin-api.d.ts +1 -2
- package/dist/vite/plugin-api.js +146 -32
- package/dist/vite/plugin-api.js.map +1 -1
- package/dist/vite/plugin-auth.d.ts +1 -2
- package/dist/vite/plugin-auth.js +10 -6
- package/dist/vite/plugin-auth.js.map +1 -1
- package/dist/vite/plugin-component.d.ts +1 -2
- package/dist/vite/plugin-component.js +23 -22
- package/dist/vite/plugin-component.js.map +1 -1
- package/dist/vite/plugin-config-reload.d.ts +3 -4
- package/dist/vite/plugin-config-reload.js +31 -23
- package/dist/vite/plugin-config-reload.js.map +1 -1
- package/dist/vite/plugin-config.d.ts +1 -2
- package/dist/vite/plugin-config.js +27 -2
- package/dist/vite/plugin-config.js.map +1 -1
- package/dist/vite/plugin-custom-pages.d.ts +1 -2
- package/dist/vite/plugin-custom-pages.js +7 -6
- package/dist/vite/plugin-custom-pages.js.map +1 -1
- package/dist/vite/plugin-docs.d.ts +2 -3
- package/dist/vite/plugin-docs.js +73 -46
- package/dist/vite/plugin-docs.js.map +1 -1
- package/dist/vite/plugin-frontmatter.d.ts +1 -2
- package/dist/vite/plugin-frontmatter.js +13 -7
- package/dist/vite/plugin-frontmatter.js.map +1 -1
- package/dist/vite/plugin-mdx.d.ts +1 -8
- package/dist/vite/plugin-mdx.js +72 -26
- package/dist/vite/plugin-mdx.js.map +1 -1
- package/dist/vite/plugin-navigation.d.ts +4 -0
- package/dist/vite/plugin-navigation.js +64 -0
- package/dist/vite/plugin-navigation.js.map +1 -0
- package/dist/vite/plugin-redirect.d.ts +1 -2
- package/dist/vite/plugin-redirect.js +6 -5
- package/dist/vite/plugin-redirect.js.map +1 -1
- package/dist/vite/plugin-search.d.ts +1 -2
- package/dist/vite/plugin-search.js +8 -3
- package/dist/vite/plugin-search.js.map +1 -1
- package/dist/vite/plugin-shiki-register.d.ts +2 -0
- package/dist/vite/plugin-shiki-register.js +39 -0
- package/dist/vite/plugin-shiki-register.js.map +1 -0
- package/dist/vite/plugin-theme.d.ts +8 -0
- package/dist/vite/plugin-theme.js +274 -0
- package/dist/vite/plugin-theme.js.map +1 -0
- package/dist/vite/plugin-theme.test.d.ts +1 -0
- package/dist/vite/plugin-theme.test.js +312 -0
- package/dist/vite/plugin-theme.test.js.map +1 -0
- package/dist/vite/plugin.d.ts +1 -3
- package/dist/vite/plugin.js +24 -21
- package/dist/vite/plugin.js.map +1 -1
- package/dist/vite/prerender/FileWritingResponse.d.ts +25 -0
- package/dist/vite/prerender/FileWritingResponse.js +51 -0
- package/dist/vite/prerender/FileWritingResponse.js.map +1 -0
- package/dist/vite/prerender/InMemoryResponse.d.ts +16 -0
- package/dist/vite/prerender/InMemoryResponse.js +32 -0
- package/dist/vite/prerender/InMemoryResponse.js.map +1 -0
- package/dist/vite/prerender/PrerenderResponse.d.ts +10 -0
- package/dist/vite/prerender/PrerenderResponse.js +2 -0
- package/dist/vite/prerender/PrerenderResponse.js.map +1 -0
- package/dist/vite/prerender/prerender.d.ts +15 -0
- package/dist/vite/prerender/prerender.js +109 -0
- package/dist/vite/prerender/prerender.js.map +1 -0
- package/dist/vite/prerender/worker.d.ts +13 -0
- package/dist/vite/prerender/worker.js +63 -0
- package/dist/vite/prerender/worker.js.map +1 -0
- package/dist/vite/remarkStaticGeneration.d.ts +3 -0
- package/dist/vite/remarkStaticGeneration.js +125 -0
- package/dist/vite/remarkStaticGeneration.js.map +1 -0
- package/dist/vite/reporter.d.ts +3 -0
- package/dist/vite/reporter.js +33 -0
- package/dist/vite/reporter.js.map +1 -0
- package/dist/vite/shadcn-registry.d.ts +45 -0
- package/dist/vite/shadcn-registry.js +29 -0
- package/dist/vite/shadcn-registry.js.map +1 -0
- package/dist/vite/sitemap.d.ts +1 -1
- package/dist/vite/sitemap.js +2 -1
- package/dist/vite/sitemap.js.map +1 -1
- package/dist/zuplo/enrich-with-zuplo.d.ts +5 -0
- package/dist/zuplo/enrich-with-zuplo.js +185 -0
- package/dist/zuplo/enrich-with-zuplo.js.map +1 -0
- package/dist/zuplo/policy-types.d.ts +33 -0
- package/dist/zuplo/policy-types.js +8 -0
- package/dist/zuplo/policy-types.js.map +1 -0
- package/dist/zuplo/with-zuplo-processors.d.ts +3 -0
- package/dist/zuplo/with-zuplo-processors.js +26 -0
- package/dist/zuplo/with-zuplo-processors.js.map +1 -0
- package/dist/zuplo/with-zuplo.d.ts +6 -0
- package/dist/zuplo/with-zuplo.js +10 -0
- package/dist/zuplo/with-zuplo.js.map +1 -0
- package/lib/Alert-De-0F8I9.js +161 -0
- package/lib/Alert-De-0F8I9.js.map +1 -0
- package/lib/Button-B3o-2Xdf.js +51 -0
- package/lib/Button-B3o-2Xdf.js.map +1 -0
- package/lib/Card-CMDQUPM4.js +61 -0
- package/lib/Card-CMDQUPM4.js.map +1 -0
- package/lib/ClientOnly-E7hGysn1.js +11 -0
- package/lib/ClientOnly-E7hGysn1.js.map +1 -0
- package/lib/CodeBlock-B-G0eKtw.js +85 -0
- package/lib/CodeBlock-B-G0eKtw.js.map +1 -0
- package/lib/Command-C9AC5cf-.js +140 -0
- package/lib/Command-C9AC5cf-.js.map +1 -0
- package/lib/Dialog-DMWw1doX.js +99 -0
- package/lib/Dialog-DMWw1doX.js.map +1 -0
- package/lib/Drawer-DJ05s2pH.js +1133 -0
- package/lib/Drawer-DJ05s2pH.js.map +1 -0
- package/lib/MdxPage-Cipn_ReM.js +110 -0
- package/lib/MdxPage-Cipn_ReM.js.map +1 -0
- package/lib/OAuthErrorPage-DpNmpL61.js +150 -0
- package/lib/OAuthErrorPage-DpNmpL61.js.map +1 -0
- package/lib/OasProvider-6hriUaZr.js +35 -0
- package/lib/OasProvider-6hriUaZr.js.map +1 -0
- package/lib/OperationList-o1tnXlAi.js +5167 -0
- package/lib/OperationList-o1tnXlAi.js.map +1 -0
- package/lib/Pagination-BtZ4LBGC.js +37 -0
- package/lib/Pagination-BtZ4LBGC.js.map +1 -0
- package/lib/RouteGuard-BxsRhHRt.js +738 -0
- package/lib/RouteGuard-BxsRhHRt.js.map +1 -0
- package/lib/SchemaList-XZWLQ9Iu.js +149 -0
- package/lib/SchemaList-XZWLQ9Iu.js.map +1 -0
- package/lib/SchemaView-CnCipUNH.js +366 -0
- package/lib/SchemaView-CnCipUNH.js.map +1 -0
- package/lib/SignUp-CEKqv066.js +56 -0
- package/lib/SignUp-CEKqv066.js.map +1 -0
- package/lib/Slot-DAyXieeZ.js +15726 -0
- package/lib/Slot-DAyXieeZ.js.map +1 -0
- package/lib/Spinner-mNLZ6awP.js +7 -0
- package/lib/Spinner-mNLZ6awP.js.map +1 -0
- package/lib/SyntaxHighlight-BMKR4pl6.js +10306 -0
- package/lib/SyntaxHighlight-BMKR4pl6.js.map +1 -0
- package/lib/Toc-BKDRCQzU.js +92 -0
- package/lib/Toc-BKDRCQzU.js.map +1 -0
- package/lib/ZudokuContext-CLl5w57E.js +1278 -0
- package/lib/ZudokuContext-CLl5w57E.js.map +1 -0
- package/lib/chunk-QMGIS6GS-CEOk3lro.js +1839 -0
- package/lib/chunk-QMGIS6GS-CEOk3lro.js.map +1 -0
- package/lib/circular-NO6Ikm3k.js +14934 -0
- package/lib/circular-NO6Ikm3k.js.map +1 -0
- package/lib/clsx-OuTLNxxd.js +17 -0
- package/lib/clsx-OuTLNxxd.js.map +1 -0
- package/lib/cn-dYga0KKN.js +2731 -0
- package/lib/cn-dYga0KKN.js.map +1 -0
- package/lib/createServer-CSgplJuR.js +12505 -0
- package/lib/createServer-CSgplJuR.js.map +1 -0
- package/lib/errors-D036swsq.js +45 -0
- package/lib/errors-D036swsq.js.map +1 -0
- package/lib/hook-DbUCLQNg.js +247 -0
- package/lib/hook-DbUCLQNg.js.map +1 -0
- package/lib/index-BdJ_3lZe.js +3500 -0
- package/lib/index-BdJ_3lZe.js.map +1 -0
- package/lib/index-BkW9tJ6j.js +2094 -0
- package/lib/index-BkW9tJ6j.js.map +1 -0
- package/lib/index-Bm35Tkgf.js +107 -0
- package/lib/index-Bm35Tkgf.js.map +1 -0
- package/lib/index-BtBsh6LU.js +4081 -0
- package/lib/index-BtBsh6LU.js.map +1 -0
- package/lib/index-CrcNWbel.js +316 -0
- package/lib/index-CrcNWbel.js.map +1 -0
- package/lib/index-DI5SPFK9.js +36 -0
- package/lib/index-DI5SPFK9.js.map +1 -0
- package/lib/index-DmNq2fbN.js +4827 -0
- package/lib/index-DmNq2fbN.js.map +1 -0
- package/lib/index.esm-CpVp4hQq.js +1254 -0
- package/lib/index.esm-CpVp4hQq.js.map +1 -0
- package/lib/invariant-Bm-FVUQE.js +44 -0
- package/lib/invariant-Bm-FVUQE.js.map +1 -0
- package/lib/jsx-runtime-C5mzlN2N.js +285 -0
- package/lib/jsx-runtime-C5mzlN2N.js.map +1 -0
- package/lib/processors/removeExtensions.js +11 -0
- package/lib/processors/removeExtensions.js.map +1 -0
- package/lib/processors/removeParameters.js +47 -0
- package/lib/processors/removeParameters.js.map +1 -0
- package/lib/processors/removePaths.js +28 -0
- package/lib/processors/removePaths.js.map +1 -0
- package/lib/processors/traverse.js +17 -0
- package/lib/processors/traverse.js.map +1 -0
- package/lib/ui/Accordion.js +2 -2
- package/lib/ui/Accordion.js.map +1 -1
- package/lib/ui/ActionButton.js +25 -0
- package/lib/ui/ActionButton.js.map +1 -0
- package/lib/ui/Alert.js +55 -39
- package/lib/ui/Alert.js.map +1 -1
- package/lib/ui/AlertDialog.js +2 -2
- package/lib/ui/AlertDialog.js.map +1 -1
- package/lib/ui/Badge.js +5 -4
- package/lib/ui/Badge.js.map +1 -1
- package/lib/ui/Breadcrumb.js +5 -5
- package/lib/ui/Breadcrumb.js.map +1 -1
- package/lib/ui/Button.js +22 -19
- package/lib/ui/Button.js.map +1 -1
- package/lib/ui/Callout.js +40 -20
- package/lib/ui/Callout.js.map +1 -1
- package/lib/ui/Card.js +3 -3
- package/lib/ui/Card.js.map +1 -1
- package/lib/ui/Carousel.js +552 -546
- package/lib/ui/Carousel.js.map +1 -1
- package/lib/ui/Checkbox.js +14 -13
- package/lib/ui/Checkbox.js.map +1 -1
- package/lib/ui/CodeBlock.js +9 -0
- package/lib/ui/CodeBlock.js.map +1 -0
- package/lib/ui/Command.js +116 -510
- package/lib/ui/Command.js.map +1 -1
- package/lib/ui/Dialog.js +41 -41
- package/lib/ui/Dialog.js.map +1 -1
- package/lib/ui/Drawer.js +14 -1150
- package/lib/ui/Drawer.js.map +1 -1
- package/lib/ui/DropdownMenu.js +35 -35
- package/lib/ui/DropdownMenu.js.map +1 -1
- package/lib/ui/EmbeddedCodeBlock.js +80 -0
- package/lib/ui/EmbeddedCodeBlock.js.map +1 -0
- package/lib/ui/Form.js +6 -6
- package/lib/ui/Form.js.map +1 -1
- package/lib/ui/HoverCard.js +6 -6
- package/lib/ui/HoverCard.js.map +1 -1
- package/lib/ui/Input.js +3 -3
- package/lib/ui/Input.js.map +1 -1
- package/lib/ui/Label.js +3 -3
- package/lib/ui/Label.js.map +1 -1
- package/lib/ui/Pagination.js +5 -5
- package/lib/ui/Pagination.js.map +1 -1
- package/lib/ui/Popover.js +3 -3
- package/lib/ui/Popover.js.map +1 -1
- package/lib/ui/Progress.js +2 -2
- package/lib/ui/Progress.js.map +1 -1
- package/lib/ui/RadioGroup.js +11 -11
- package/lib/ui/RadioGroup.js.map +1 -1
- package/lib/ui/ScrollArea.js +2 -2
- package/lib/ui/ScrollArea.js.map +1 -1
- package/lib/ui/Select.js +34 -34
- package/lib/ui/Select.js.map +1 -1
- package/lib/ui/Skeleton.js +2 -2
- package/lib/ui/Skeleton.js.map +1 -1
- package/lib/ui/Slider.js +6 -6
- package/lib/ui/Slider.js.map +1 -1
- package/lib/ui/Stepper.js +6 -0
- package/lib/ui/Stepper.js.map +1 -0
- package/lib/ui/Switch.js +6 -6
- package/lib/ui/Switch.js.map +1 -1
- package/lib/ui/SyntaxHighlight.js +11 -0
- package/lib/ui/SyntaxHighlight.js.map +1 -0
- package/lib/ui/Tabs.js +17 -17
- package/lib/ui/Tabs.js.map +1 -1
- package/lib/ui/Textarea.js +6 -6
- package/lib/ui/Textarea.js.map +1 -1
- package/lib/ui/Toggle.js +8 -8
- package/lib/ui/Toggle.js.map +1 -1
- package/lib/ui/ToggleGroup.js +2 -2
- package/lib/ui/ToggleGroup.js.map +1 -1
- package/lib/ui/Tooltip.js +15 -8
- package/lib/ui/Tooltip.js.map +1 -1
- package/lib/ui/util.js +6 -0
- package/lib/ui/util.js.map +1 -0
- package/lib/useExposedProps-KcgXHKeE.js +9 -0
- package/lib/useExposedProps-KcgXHKeE.js.map +1 -0
- package/lib/zudoku.auth-auth0.js +32 -30
- package/lib/zudoku.auth-auth0.js.map +1 -1
- package/lib/zudoku.auth-azureb2c.js +137 -0
- package/lib/zudoku.auth-azureb2c.js.map +1 -0
- package/lib/zudoku.auth-clerk.js +108 -60
- package/lib/zudoku.auth-clerk.js.map +1 -1
- package/lib/zudoku.auth-openid.js +600 -623
- package/lib/zudoku.auth-openid.js.map +1 -1
- package/lib/zudoku.auth-supabase.js +97 -0
- package/lib/zudoku.auth-supabase.js.map +1 -0
- package/lib/zudoku.components.js +34 -1464
- package/lib/zudoku.components.js.map +1 -1
- package/lib/zudoku.hooks.js +28 -0
- package/lib/zudoku.hooks.js.map +1 -0
- package/lib/zudoku.icons.js +10 -0
- package/lib/zudoku.icons.js.map +1 -1
- package/lib/zudoku.plugin-api-catalog.js +118 -0
- package/lib/zudoku.plugin-api-catalog.js.map +1 -0
- package/lib/zudoku.plugin-api-keys.js +560 -204
- package/lib/zudoku.plugin-api-keys.js.map +1 -1
- package/lib/zudoku.plugin-custom-pages.js +12 -18
- package/lib/zudoku.plugin-custom-pages.js.map +1 -1
- package/lib/zudoku.plugin-markdown.js +20 -93
- package/lib/zudoku.plugin-markdown.js.map +1 -1
- package/lib/zudoku.plugin-openapi.js +8 -10
- package/lib/zudoku.plugin-openapi.js.map +1 -1
- package/lib/zudoku.plugin-redirect.js +1 -1
- package/lib/zudoku.plugin-redirect.js.map +1 -1
- package/lib/zudoku.plugin-search-inkeep.js +61 -36
- package/lib/zudoku.plugin-search-inkeep.js.map +1 -1
- package/lib/zudoku.plugin-search-pagefind.js +325 -0
- package/lib/zudoku.plugin-search-pagefind.js.map +1 -0
- package/lib/zudoku.plugins.js +15 -0
- package/lib/zudoku.plugins.js.map +1 -0
- package/package.json +187 -101
- package/src/app/ZuploBuildConfig.ts +33 -0
- package/src/app/defaultTheme.css +73 -0
- package/src/app/demo-cdn.html +31 -31
- package/src/app/demo.html +1 -1
- package/src/app/demo.tsx +25 -11
- package/src/app/entry.client.tsx +67 -3
- package/src/app/entry.server.tsx +80 -65
- package/src/app/env.ts +43 -0
- package/src/app/font.geist.css +73 -0
- package/src/app/main.css +177 -130
- package/src/app/main.tsx +72 -50
- package/src/app/sentry.ts +24 -0
- package/src/app/standalone.tsx +8 -11
- package/src/lib/MissingIcon.tsx +22 -0
- package/src/lib/auth/issuer.test.ts +120 -0
- package/src/lib/auth/issuer.ts +41 -0
- package/src/lib/authentication/AuthenticationPlugin.tsx +8 -5
- package/src/lib/authentication/authentication.ts +7 -8
- package/src/lib/authentication/components/CallbackHandler.tsx +29 -12
- package/src/lib/authentication/components/OAuthErrorPage.tsx +171 -0
- package/src/lib/authentication/components/SignIn.tsx +28 -2
- package/src/lib/authentication/components/SignOut.tsx +3 -2
- package/src/lib/authentication/components/SignUp.tsx +35 -1
- package/src/lib/authentication/errors.ts +27 -13
- package/src/lib/authentication/hook.ts +15 -4
- package/src/lib/authentication/providers/auth0.tsx +29 -19
- package/src/lib/authentication/providers/azureb2c.tsx +201 -0
- package/src/lib/authentication/providers/clerk.tsx +127 -53
- package/src/lib/authentication/providers/openid.tsx +169 -88
- package/src/lib/authentication/providers/supabase.tsx +150 -0
- package/src/lib/authentication/state.ts +86 -25
- package/src/lib/authentication/use-broadcast/LICENSE.md +9 -0
- package/src/lib/authentication/use-broadcast/shared.ts +372 -0
- package/src/lib/authentication/use-broadcast/useBroadcast.ts +146 -0
- package/src/lib/components/AnchorLink.tsx +13 -8
- package/src/lib/components/Autocomplete.tsx +114 -0
- package/src/lib/components/Banner.tsx +3 -3
- package/src/lib/components/Bootstrap.tsx +43 -16
- package/src/lib/components/BuildCheck.tsx +75 -0
- package/src/lib/components/CategoryHeading.tsx +4 -1
- package/src/lib/components/ClientOnly.tsx +6 -3
- package/src/lib/components/DeveloperHint.tsx +6 -1
- package/src/lib/components/ErrorPage.tsx +3 -3
- package/src/lib/components/Footer.tsx +136 -0
- package/src/lib/components/Framed.tsx +51 -0
- package/src/lib/components/Header.tsx +119 -80
- package/src/lib/components/Heading.tsx +26 -18
- package/src/lib/components/InlineCode.tsx +13 -16
- package/src/lib/components/Layout.tsx +36 -60
- package/src/lib/components/Main.tsx +51 -0
- package/src/lib/components/Markdown.tsx +42 -30
- package/src/lib/components/MobileTopNavigation.tsx +96 -32
- package/src/lib/components/NotFoundPage.tsx +7 -6
- package/src/lib/components/PageProgress.tsx +28 -0
- package/src/lib/components/Pagination.tsx +45 -0
- package/src/lib/components/PathRenderer.tsx +61 -0
- package/src/lib/components/ReactMarkdown.license.txt +21 -0
- package/src/lib/components/ReactMarkdown.tsx +264 -0
- package/src/lib/components/Search.tsx +18 -7
- package/src/lib/components/Slot.test.tsx +465 -0
- package/src/lib/components/Slot.tsx +64 -0
- package/src/lib/components/StatusPage.tsx +96 -0
- package/src/lib/components/ThemeSwitch.tsx +46 -0
- package/src/lib/components/TopNavigation.tsx +91 -61
- package/src/lib/components/Typography.tsx +14 -0
- package/src/lib/components/Zudoku.tsx +119 -0
- package/src/lib/components/cache.ts +23 -0
- package/src/lib/components/context/BypassProtectedRoutesContext.ts +3 -0
- package/src/lib/components/context/RouterEventsEmitter.tsx +19 -0
- package/src/lib/components/context/SlotProvider.tsx +149 -0
- package/src/lib/components/context/ViewportAnchorContext.tsx +34 -36
- package/src/lib/components/context/ZudokuContext.ts +79 -38
- package/src/lib/components/context/ZudokuProvider.tsx +4 -3
- package/src/lib/components/index.ts +37 -13
- package/src/lib/components/navigation/Navigation.tsx +50 -0
- package/src/lib/components/navigation/NavigationBadge.tsx +48 -0
- package/src/lib/components/navigation/NavigationCategory.tsx +146 -0
- package/src/lib/components/navigation/NavigationItem.tsx +159 -0
- package/src/lib/components/navigation/NavigationWrapper.tsx +49 -0
- package/src/lib/components/navigation/PoweredByZudoku.tsx +33 -0
- package/src/lib/components/navigation/Toc.tsx +126 -0
- package/src/lib/components/navigation/ZudokuLogo.tsx +25 -0
- package/src/lib/components/navigation/ZuploLogo.tsx +14 -0
- package/src/lib/components/navigation/utils.ts +70 -29
- package/src/lib/core/RouteGuard.tsx +96 -0
- package/src/lib/core/ZudokuContext.ts +227 -0
- package/src/lib/core/plugins.ts +55 -24
- package/src/lib/errors/ErrorAlert.tsx +18 -18
- package/src/lib/errors/RouterError.tsx +1 -1
- package/src/lib/hooks/index.ts +16 -0
- package/src/lib/hooks/useEvent.test.tsx +151 -0
- package/src/lib/hooks/useEvent.ts +41 -0
- package/src/lib/hooks/useHotkey.ts +70 -0
- package/src/lib/icons.ts +1 -0
- package/src/lib/oas/graphql/circular.ts +58 -0
- package/src/lib/oas/graphql/index.ts +298 -104
- package/src/lib/oas/parser/dereference/index.ts +10 -4
- package/src/lib/oas/parser/index.ts +14 -30
- package/src/lib/oas/parser/upgrade/index.ts +103 -38
- package/src/lib/plugins/api-catalog/Catalog.tsx +73 -0
- package/src/lib/plugins/api-catalog/index.tsx +115 -0
- package/src/lib/plugins/api-keys/CreateApiKey.tsx +61 -45
- package/src/lib/plugins/api-keys/ProtectedRoute.tsx +1 -1
- package/src/lib/plugins/api-keys/SettingsApiKeys.tsx +464 -116
- package/src/lib/plugins/api-keys/index.tsx +141 -62
- package/src/lib/plugins/custom-pages/index.tsx +22 -17
- package/src/lib/plugins/markdown/MdxPage.tsx +111 -54
- package/src/lib/plugins/markdown/index.tsx +33 -43
- package/src/lib/plugins/openapi/CollapsibleCode.tsx +86 -0
- package/src/lib/plugins/openapi/ColorizedParam.tsx +49 -23
- package/src/lib/plugins/openapi/Endpoint.tsx +19 -22
- package/src/lib/plugins/openapi/OasProvider.tsx +51 -0
- package/src/lib/plugins/openapi/OperationList.tsx +234 -72
- package/src/lib/plugins/openapi/OperationListItem.tsx +123 -94
- package/src/lib/plugins/openapi/ParamInfos.tsx +90 -0
- package/src/lib/plugins/openapi/ParameterList.tsx +4 -0
- package/src/lib/plugins/openapi/ParameterListItem.tsx +84 -31
- package/src/lib/plugins/openapi/PlaygroundDialogWrapper.tsx +28 -3
- package/src/lib/plugins/openapi/RequestBodySidecarBox.tsx +15 -33
- package/src/lib/plugins/openapi/ResponsesSidecarBox.tsx +36 -59
- package/src/lib/plugins/openapi/SchemaList.tsx +157 -0
- package/src/lib/plugins/openapi/Sidecar.tsx +154 -172
- package/src/lib/plugins/openapi/SidecarBox.tsx +4 -16
- package/src/lib/plugins/openapi/SidecarExamples.tsx +169 -0
- package/src/lib/plugins/openapi/SimpleSelect.tsx +1 -1
- package/src/lib/plugins/openapi/client/GraphQLClient.tsx +65 -0
- package/src/lib/plugins/openapi/client/GraphQLContext.tsx +16 -0
- package/src/lib/plugins/openapi/client/createServer.ts +8 -2
- package/src/lib/plugins/openapi/client/useCreateQuery.ts +45 -0
- package/src/lib/plugins/openapi/components/ConstValue.tsx +24 -0
- package/src/lib/plugins/openapi/components/EnumValues.tsx +58 -0
- package/src/lib/plugins/openapi/components/ResponseContent.tsx +104 -0
- package/src/lib/plugins/openapi/components/SelectOnClick.tsx +29 -0
- package/src/lib/plugins/openapi/context.tsx +2 -2
- package/src/lib/plugins/openapi/graphql/fragment-masking.ts +11 -18
- package/src/lib/plugins/openapi/graphql/gql.ts +38 -30
- package/src/lib/plugins/openapi/graphql/graphql.ts +388 -682
- package/src/lib/plugins/openapi/index.tsx +161 -134
- package/src/lib/plugins/openapi/interfaces.ts +59 -4
- package/src/lib/plugins/openapi/playground/BodyPanel.tsx +55 -0
- package/src/lib/plugins/openapi/playground/CollapsibleHeader.tsx +47 -0
- package/src/lib/plugins/openapi/playground/ExamplesDropdown.tsx +59 -0
- package/src/lib/plugins/openapi/playground/Headers.tsx +284 -53
- package/src/lib/plugins/openapi/playground/IdentityDialog.tsx +75 -0
- package/src/lib/plugins/openapi/playground/IdentitySelector.tsx +38 -0
- package/src/lib/plugins/openapi/playground/InlineInput.tsx +1 -1
- package/src/lib/plugins/openapi/playground/ParamsGrid.tsx +13 -0
- package/src/lib/plugins/openapi/playground/PathParams.tsx +38 -64
- package/src/lib/plugins/openapi/playground/Playground.tsx +405 -288
- package/src/lib/plugins/openapi/playground/PlaygroundDialog.tsx +7 -3
- package/src/lib/plugins/openapi/playground/QueryParams.tsx +134 -90
- package/src/lib/plugins/openapi/playground/RequestLoginDialog.tsx +51 -0
- package/src/lib/plugins/openapi/playground/Spinner.tsx +87 -0
- package/src/lib/plugins/openapi/playground/fileUtils.ts +32 -0
- package/src/lib/plugins/openapi/playground/rememberedIdentity.ts +26 -0
- package/src/lib/plugins/openapi/playground/request-panel/UrlPath.tsx +31 -0
- package/src/lib/plugins/openapi/playground/request-panel/UrlQueryParams.tsx +25 -0
- package/src/lib/plugins/openapi/playground/result-panel/Highlight.tsx +26 -0
- package/src/lib/plugins/openapi/playground/result-panel/ResponseStatusBar.tsx +115 -0
- package/src/lib/plugins/openapi/playground/result-panel/ResponseTab.tsx +271 -0
- package/src/lib/plugins/openapi/playground/result-panel/ResultPanel.tsx +102 -0
- package/src/lib/plugins/openapi/playground/result-panel/convertToTypes.test.ts +64 -0
- package/src/lib/plugins/openapi/playground/result-panel/convertToTypes.ts +36 -0
- package/src/lib/plugins/openapi/playground/useRememberSkipLoginDialog.tsx +20 -0
- package/src/lib/plugins/openapi/processors/removeExtensions.test.ts +222 -0
- package/src/lib/plugins/openapi/processors/removeExtensions.ts +29 -0
- package/src/lib/plugins/openapi/processors/removeParameters.test.ts +182 -0
- package/src/lib/plugins/openapi/processors/removeParameters.ts +103 -0
- package/src/lib/plugins/openapi/processors/removePaths.test.ts +167 -0
- package/src/lib/plugins/openapi/processors/removePaths.ts +57 -0
- package/src/lib/plugins/openapi/processors/traverse.ts +1 -0
- package/src/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.tsx +1 -8
- package/src/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupConnector.tsx +3 -0
- package/src/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupItem.tsx +6 -3
- package/src/lib/plugins/openapi/schema/SchemaExampleAndDefault.tsx +39 -0
- package/src/lib/plugins/openapi/schema/SchemaPropertyItem.tsx +159 -0
- package/src/lib/plugins/openapi/schema/SchemaView.tsx +103 -141
- package/src/lib/plugins/openapi/schema/utils.ts +33 -5
- package/src/lib/plugins/openapi/state.ts +36 -0
- package/src/lib/plugins/openapi/util/createHttpSnippet.ts +107 -0
- package/src/lib/plugins/openapi/util/createNavigationCategory.tsx +38 -0
- package/src/lib/plugins/openapi/util/generateSchemaExample.ts +95 -44
- package/src/lib/plugins/openapi/util/getRoutes.tsx +198 -0
- package/src/lib/plugins/openapi/util/methodColorMap.tsx +11 -0
- package/src/lib/plugins/openapi/util/methodToColor.ts +27 -0
- package/src/lib/plugins/openapi/util/sanitizeMarkdownForMetatag.tsx +32 -0
- package/src/lib/plugins/redirect/index.tsx +4 -4
- package/src/lib/plugins/search-inkeep/index.tsx +83 -32
- package/src/lib/plugins/search-inkeep/inkeep.ts +15 -23
- package/src/lib/plugins/search-pagefind/PagefindSearch.tsx +165 -0
- package/src/lib/plugins/search-pagefind/ResultList.tsx +114 -0
- package/src/lib/plugins/search-pagefind/get-results.tsx +75 -0
- package/src/lib/plugins/search-pagefind/index.tsx +21 -0
- package/src/lib/plugins/search-pagefind/types.ts +118 -0
- package/src/lib/shiki.ts +132 -0
- package/src/lib/ui/ActionButton.tsx +30 -0
- package/src/lib/ui/Alert.tsx +45 -39
- package/src/lib/ui/Badge.tsx +3 -2
- package/src/lib/ui/Button.tsx +12 -7
- package/src/lib/ui/Callout.tsx +30 -10
- package/src/lib/ui/Card.tsx +1 -1
- package/src/lib/ui/Checkbox.tsx +2 -1
- package/src/lib/ui/CodeBlock.tsx +88 -0
- package/src/lib/ui/Command.tsx +47 -5
- package/src/lib/ui/Dialog.tsx +11 -7
- package/src/lib/ui/DropdownMenu.tsx +4 -4
- package/src/lib/ui/EmbeddedCodeBlock.tsx +94 -0
- package/src/lib/ui/HoverCard.tsx +1 -1
- package/src/lib/ui/Input.tsx +2 -3
- package/src/lib/ui/Popover.tsx +1 -1
- package/src/lib/ui/RadioGroup.tsx +1 -1
- package/src/lib/ui/Select.tsx +4 -4
- package/src/lib/ui/Slider.tsx +1 -1
- package/src/lib/ui/Stepper.tsx +8 -0
- package/src/lib/ui/Switch.tsx +1 -1
- package/src/lib/ui/SyntaxHighlight.tsx +35 -0
- package/src/lib/ui/Tabs.tsx +2 -2
- package/src/lib/ui/Textarea.tsx +1 -1
- package/src/lib/ui/Toggle.tsx +1 -1
- package/src/lib/ui/Tooltip.tsx +16 -1
- package/src/lib/ui/util.tsx +3 -0
- package/src/lib/util/MdxComponents.tsx +50 -25
- package/src/lib/util/createVariantComponent.tsx +2 -2
- package/src/lib/util/detectOS.ts +9 -0
- package/src/lib/util/ensureArray.ts +3 -0
- package/src/lib/util/humanFileSize.test.ts +24 -0
- package/src/lib/util/humanFileSize.ts +16 -0
- package/src/lib/util/invariant.ts +7 -5
- package/src/lib/util/joinPath.tsx +3 -0
- package/src/lib/util/joinUrl.test.ts +62 -0
- package/src/lib/util/joinUrl.ts +57 -0
- package/src/lib/util/os.ts +18 -0
- package/src/lib/util/scrollIntoViewIfNeeded.ts +18 -0
- package/src/lib/util/traverse.ts +34 -0
- package/src/lib/util/types.ts +7 -0
- package/src/lib/util/url.test.ts +51 -0
- package/src/lib/util/url.ts +18 -0
- package/src/lib/util/useCopyToClipboard.ts +17 -0
- package/src/lib/util/useExposedProps.tsx +13 -2
- package/src/lib/util/useIsomorphicLayoutEffect.ts +5 -0
- package/src/lib/util/useLatest.ts +18 -0
- package/src/lib/util/useOnScreen.ts +34 -0
- package/src/lib/util/useScrollToAnchor.ts +49 -40
- package/src/lib/util/useScrollToTop.ts +9 -4
- package/src/shiki/langs/abap.js +1 -0
- package/src/shiki/langs/actionscript-3.js +1 -0
- package/src/shiki/langs/ada.js +1 -0
- package/src/shiki/langs/angular-expression.js +1 -0
- package/src/shiki/langs/angular-html.js +1 -0
- package/src/shiki/langs/angular-inline-style.js +1 -0
- package/src/shiki/langs/angular-inline-template.js +1 -0
- package/src/shiki/langs/angular-let-declaration.js +1 -0
- package/src/shiki/langs/angular-template-blocks.js +1 -0
- package/src/shiki/langs/angular-template.js +1 -0
- package/src/shiki/langs/angular-ts.js +1 -0
- package/src/shiki/langs/apache.js +1 -0
- package/src/shiki/langs/apex.js +1 -0
- package/src/shiki/langs/apl.js +1 -0
- package/src/shiki/langs/applescript.js +1 -0
- package/src/shiki/langs/ara.js +1 -0
- package/src/shiki/langs/asciidoc.js +1 -0
- package/src/shiki/langs/asm.js +1 -0
- package/src/shiki/langs/astro.js +1 -0
- package/src/shiki/langs/awk.js +1 -0
- package/src/shiki/langs/ballerina.js +1 -0
- package/src/shiki/langs/bat.js +1 -0
- package/src/shiki/langs/beancount.js +1 -0
- package/src/shiki/langs/berry.js +1 -0
- package/src/shiki/langs/bibtex.js +1 -0
- package/src/shiki/langs/bicep.js +1 -0
- package/src/shiki/langs/blade.js +1 -0
- package/src/shiki/langs/bsl.js +1 -0
- package/src/shiki/langs/c.js +1 -0
- package/src/shiki/langs/cadence.js +1 -0
- package/src/shiki/langs/cairo.js +1 -0
- package/src/shiki/langs/clarity.js +1 -0
- package/src/shiki/langs/clojure.js +1 -0
- package/src/shiki/langs/cmake.js +1 -0
- package/src/shiki/langs/cobol.js +1 -0
- package/src/shiki/langs/codeowners.js +1 -0
- package/src/shiki/langs/codeql.js +1 -0
- package/src/shiki/langs/coffee.js +1 -0
- package/src/shiki/langs/common-lisp.js +1 -0
- package/src/shiki/langs/coq.js +1 -0
- package/src/shiki/langs/cpp-macro.js +1 -0
- package/src/shiki/langs/cpp.js +1 -0
- package/src/shiki/langs/crystal.js +1 -0
- package/src/shiki/langs/csharp.js +1 -0
- package/src/shiki/langs/css.js +1 -0
- package/src/shiki/langs/csv.js +1 -0
- package/src/shiki/langs/cue.js +1 -0
- package/src/shiki/langs/cypher.js +1 -0
- package/src/shiki/langs/d.js +1 -0
- package/src/shiki/langs/dart.js +1 -0
- package/src/shiki/langs/dax.js +1 -0
- package/src/shiki/langs/desktop.js +1 -0
- package/src/shiki/langs/diff.js +1 -0
- package/src/shiki/langs/docker.js +1 -0
- package/src/shiki/langs/dotenv.js +1 -0
- package/src/shiki/langs/dream-maker.js +1 -0
- package/src/shiki/langs/edge.js +1 -0
- package/src/shiki/langs/elixir.js +1 -0
- package/src/shiki/langs/elm.js +1 -0
- package/src/shiki/langs/emacs-lisp.js +1 -0
- package/src/shiki/langs/erb.js +1 -0
- package/src/shiki/langs/erlang.js +1 -0
- package/src/shiki/langs/es-tag-css.js +1 -0
- package/src/shiki/langs/es-tag-glsl.js +1 -0
- package/src/shiki/langs/es-tag-html.js +1 -0
- package/src/shiki/langs/es-tag-sql.js +1 -0
- package/src/shiki/langs/es-tag-xml.js +1 -0
- package/src/shiki/langs/fennel.js +1 -0
- package/src/shiki/langs/fish.js +1 -0
- package/src/shiki/langs/fluent.js +1 -0
- package/src/shiki/langs/fortran-fixed-form.js +1 -0
- package/src/shiki/langs/fortran-free-form.js +1 -0
- package/src/shiki/langs/fsharp.js +1 -0
- package/src/shiki/langs/gdresource.js +1 -0
- package/src/shiki/langs/gdscript.js +1 -0
- package/src/shiki/langs/gdshader.js +1 -0
- package/src/shiki/langs/genie.js +1 -0
- package/src/shiki/langs/gherkin.js +1 -0
- package/src/shiki/langs/git-commit.js +1 -0
- package/src/shiki/langs/git-rebase.js +1 -0
- package/src/shiki/langs/gleam.js +1 -0
- package/src/shiki/langs/glimmer-js.js +1 -0
- package/src/shiki/langs/glimmer-ts.js +1 -0
- package/src/shiki/langs/glsl.js +1 -0
- package/src/shiki/langs/gnuplot.js +1 -0
- package/src/shiki/langs/go.js +1 -0
- package/src/shiki/langs/graphql.js +1 -0
- package/src/shiki/langs/groovy.js +1 -0
- package/src/shiki/langs/hack.js +1 -0
- package/src/shiki/langs/haml.js +1 -0
- package/src/shiki/langs/handlebars.js +1 -0
- package/src/shiki/langs/haskell.js +1 -0
- package/src/shiki/langs/haxe.js +1 -0
- package/src/shiki/langs/hcl.js +1 -0
- package/src/shiki/langs/hjson.js +1 -0
- package/src/shiki/langs/hlsl.js +1 -0
- package/src/shiki/langs/html-derivative.js +1 -0
- package/src/shiki/langs/html.js +1 -0
- package/src/shiki/langs/http.js +1 -0
- package/src/shiki/langs/hxml.js +1 -0
- package/src/shiki/langs/hy.js +1 -0
- package/src/shiki/langs/imba.js +1 -0
- package/src/shiki/langs/ini.js +1 -0
- package/src/shiki/langs/java.js +1 -0
- package/src/shiki/langs/javascript.js +1 -0
- package/src/shiki/langs/jinja-html.js +1 -0
- package/src/shiki/langs/jinja.js +1 -0
- package/src/shiki/langs/jison.js +1 -0
- package/src/shiki/langs/json.js +1 -0
- package/src/shiki/langs/json5.js +1 -0
- package/src/shiki/langs/jsonc.js +1 -0
- package/src/shiki/langs/jsonl.js +1 -0
- package/src/shiki/langs/jsonnet.js +1 -0
- package/src/shiki/langs/jssm.js +1 -0
- package/src/shiki/langs/jsx.js +1 -0
- package/src/shiki/langs/julia.js +1 -0
- package/src/shiki/langs/kotlin.js +1 -0
- package/src/shiki/langs/kusto.js +1 -0
- package/src/shiki/langs/latex.js +1 -0
- package/src/shiki/langs/lean.js +1 -0
- package/src/shiki/langs/less.js +1 -0
- package/src/shiki/langs/liquid.js +1 -0
- package/src/shiki/langs/llvm.js +1 -0
- package/src/shiki/langs/log.js +1 -0
- package/src/shiki/langs/logo.js +1 -0
- package/src/shiki/langs/lua.js +1 -0
- package/src/shiki/langs/luau.js +1 -0
- package/src/shiki/langs/make.js +1 -0
- package/src/shiki/langs/markdown-vue.js +1 -0
- package/src/shiki/langs/markdown.js +1 -0
- package/src/shiki/langs/marko.js +1 -0
- package/src/shiki/langs/matlab.js +1 -0
- package/src/shiki/langs/mdc.js +1 -0
- package/src/shiki/langs/mdx.js +1 -0
- package/src/shiki/langs/mermaid.js +1 -0
- package/src/shiki/langs/mipsasm.js +1 -0
- package/src/shiki/langs/mojo.js +1 -0
- package/src/shiki/langs/move.js +1 -0
- package/src/shiki/langs/narrat.js +1 -0
- package/src/shiki/langs/nextflow.js +1 -0
- package/src/shiki/langs/nginx.js +1 -0
- package/src/shiki/langs/nim.js +1 -0
- package/src/shiki/langs/nix.js +1 -0
- package/src/shiki/langs/nushell.js +1 -0
- package/src/shiki/langs/objective-c.js +1 -0
- package/src/shiki/langs/objective-cpp.js +1 -0
- package/src/shiki/langs/ocaml.js +1 -0
- package/src/shiki/langs/pascal.js +1 -0
- package/src/shiki/langs/perl.js +1 -0
- package/src/shiki/langs/php.js +1 -0
- package/src/shiki/langs/plsql.js +1 -0
- package/src/shiki/langs/po.js +1 -0
- package/src/shiki/langs/polar.js +1 -0
- package/src/shiki/langs/postcss.js +1 -0
- package/src/shiki/langs/powerquery.js +1 -0
- package/src/shiki/langs/powershell.js +1 -0
- package/src/shiki/langs/prisma.js +1 -0
- package/src/shiki/langs/prolog.js +1 -0
- package/src/shiki/langs/proto.js +1 -0
- package/src/shiki/langs/pug.js +1 -0
- package/src/shiki/langs/puppet.js +1 -0
- package/src/shiki/langs/purescript.js +1 -0
- package/src/shiki/langs/python.js +1 -0
- package/src/shiki/langs/qml.js +1 -0
- package/src/shiki/langs/qmldir.js +1 -0
- package/src/shiki/langs/qss.js +1 -0
- package/src/shiki/langs/r.js +1 -0
- package/src/shiki/langs/racket.js +1 -0
- package/src/shiki/langs/raku.js +1 -0
- package/src/shiki/langs/razor.js +1 -0
- package/src/shiki/langs/reg.js +1 -0
- package/src/shiki/langs/regexp.js +1 -0
- package/src/shiki/langs/rel.js +1 -0
- package/src/shiki/langs/riscv.js +1 -0
- package/src/shiki/langs/rst.js +1 -0
- package/src/shiki/langs/ruby.js +1 -0
- package/src/shiki/langs/rust.js +1 -0
- package/src/shiki/langs/sas.js +1 -0
- package/src/shiki/langs/sass.js +1 -0
- package/src/shiki/langs/scala.js +1 -0
- package/src/shiki/langs/scheme.js +1 -0
- package/src/shiki/langs/scss.js +1 -0
- package/src/shiki/langs/sdbl.js +1 -0
- package/src/shiki/langs/shaderlab.js +1 -0
- package/src/shiki/langs/shellscript.js +1 -0
- package/src/shiki/langs/shellsession.js +1 -0
- package/src/shiki/langs/smalltalk.js +1 -0
- package/src/shiki/langs/solidity.js +1 -0
- package/src/shiki/langs/soy.js +1 -0
- package/src/shiki/langs/sparql.js +1 -0
- package/src/shiki/langs/splunk.js +1 -0
- package/src/shiki/langs/sql.js +1 -0
- package/src/shiki/langs/ssh-config.js +1 -0
- package/src/shiki/langs/stata.js +1 -0
- package/src/shiki/langs/stylus.js +1 -0
- package/src/shiki/langs/svelte.js +1 -0
- package/src/shiki/langs/swift.js +1 -0
- package/src/shiki/langs/system-verilog.js +1 -0
- package/src/shiki/langs/systemd.js +1 -0
- package/src/shiki/langs/talonscript.js +1 -0
- package/src/shiki/langs/tasl.js +1 -0
- package/src/shiki/langs/tcl.js +1 -0
- package/src/shiki/langs/templ.js +1 -0
- package/src/shiki/langs/terraform.js +1 -0
- package/src/shiki/langs/tex.js +1 -0
- package/src/shiki/langs/toml.js +1 -0
- package/src/shiki/langs/ts-tags.js +1 -0
- package/src/shiki/langs/tsv.js +1 -0
- package/src/shiki/langs/tsx.js +1 -0
- package/src/shiki/langs/turtle.js +1 -0
- package/src/shiki/langs/twig.js +1 -0
- package/src/shiki/langs/typescript.js +1 -0
- package/src/shiki/langs/typespec.js +1 -0
- package/src/shiki/langs/typst.js +1 -0
- package/src/shiki/langs/v.js +1 -0
- package/src/shiki/langs/vala.js +1 -0
- package/src/shiki/langs/vb.js +1 -0
- package/src/shiki/langs/verilog.js +1 -0
- package/src/shiki/langs/vhdl.js +1 -0
- package/src/shiki/langs/viml.js +1 -0
- package/src/shiki/langs/vue-directives.js +1 -0
- package/src/shiki/langs/vue-html.js +1 -0
- package/src/shiki/langs/vue-interpolations.js +1 -0
- package/src/shiki/langs/vue-sfc-style-variable-injection.js +1 -0
- package/src/shiki/langs/vue.js +1 -0
- package/src/shiki/langs/vyper.js +1 -0
- package/src/shiki/langs/wasm.js +1 -0
- package/src/shiki/langs/wenyan.js +1 -0
- package/src/shiki/langs/wgsl.js +1 -0
- package/src/shiki/langs/wikitext.js +1 -0
- package/src/shiki/langs/wit.js +1 -0
- package/src/shiki/langs/wolfram.js +1 -0
- package/src/shiki/langs/xml.js +1 -0
- package/src/shiki/langs/xsl.js +1 -0
- package/src/shiki/langs/yaml.js +1 -0
- package/src/shiki/langs/zenscript.js +1 -0
- package/src/shiki/langs/zig.js +1 -0
- package/src/shiki/themes/andromeeda.js +1 -0
- package/src/shiki/themes/aurora-x.js +1 -0
- package/src/shiki/themes/ayu-dark.js +1 -0
- package/src/shiki/themes/catppuccin-frappe.js +1 -0
- package/src/shiki/themes/catppuccin-latte.js +1 -0
- package/src/shiki/themes/catppuccin-macchiato.js +1 -0
- package/src/shiki/themes/catppuccin-mocha.js +1 -0
- package/src/shiki/themes/dark-plus.js +1 -0
- package/src/shiki/themes/dracula-soft.js +1 -0
- package/src/shiki/themes/dracula.js +1 -0
- package/src/shiki/themes/everforest-dark.js +1 -0
- package/src/shiki/themes/everforest-light.js +1 -0
- package/src/shiki/themes/github-dark-default.js +1 -0
- package/src/shiki/themes/github-dark-dimmed.js +1 -0
- package/src/shiki/themes/github-dark-high-contrast.js +1 -0
- package/src/shiki/themes/github-dark.js +1 -0
- package/src/shiki/themes/github-light-default.js +1 -0
- package/src/shiki/themes/github-light-high-contrast.js +1 -0
- package/src/shiki/themes/github-light.js +1 -0
- package/src/shiki/themes/gruvbox-dark-hard.js +1 -0
- package/src/shiki/themes/gruvbox-dark-medium.js +1 -0
- package/src/shiki/themes/gruvbox-dark-soft.js +1 -0
- package/src/shiki/themes/gruvbox-light-hard.js +1 -0
- package/src/shiki/themes/gruvbox-light-medium.js +1 -0
- package/src/shiki/themes/gruvbox-light-soft.js +1 -0
- package/src/shiki/themes/houston.js +1 -0
- package/src/shiki/themes/kanagawa-dragon.js +1 -0
- package/src/shiki/themes/kanagawa-lotus.js +1 -0
- package/src/shiki/themes/kanagawa-wave.js +1 -0
- package/src/shiki/themes/laserwave.js +1 -0
- package/src/shiki/themes/light-plus.js +1 -0
- package/src/shiki/themes/material-theme-darker.js +1 -0
- package/src/shiki/themes/material-theme-lighter.js +1 -0
- package/src/shiki/themes/material-theme-ocean.js +1 -0
- package/src/shiki/themes/material-theme-palenight.js +1 -0
- package/src/shiki/themes/material-theme.js +1 -0
- package/src/shiki/themes/min-dark.js +1 -0
- package/src/shiki/themes/min-light.js +1 -0
- package/src/shiki/themes/monokai.js +1 -0
- package/src/shiki/themes/night-owl.js +1 -0
- package/src/shiki/themes/nord.js +1 -0
- package/src/shiki/themes/one-dark-pro.js +1 -0
- package/src/shiki/themes/one-light.js +1 -0
- package/src/shiki/themes/plastic.js +1 -0
- package/src/shiki/themes/poimandres.js +1 -0
- package/src/shiki/themes/red.js +1 -0
- package/src/shiki/themes/rose-pine-dawn.js +1 -0
- package/src/shiki/themes/rose-pine-moon.js +1 -0
- package/src/shiki/themes/rose-pine.js +1 -0
- package/src/shiki/themes/slack-dark.js +1 -0
- package/src/shiki/themes/slack-ochin.js +1 -0
- package/src/shiki/themes/snazzy-light.js +1 -0
- package/src/shiki/themes/solarized-dark.js +1 -0
- package/src/shiki/themes/solarized-light.js +1 -0
- package/src/shiki/themes/synthwave-84.js +1 -0
- package/src/shiki/themes/tokyo-night.js +1 -0
- package/src/shiki/themes/vesper.js +1 -0
- package/src/shiki/themes/vitesse-black.js +1 -0
- package/src/shiki/themes/vitesse-dark.js +1 -0
- package/src/shiki/themes/vitesse-light.js +1 -0
- package/LICENSE.md +0 -9
- package/client.d.ts +0 -1
- package/dist/app/tailwind.d.ts +0 -3
- package/dist/app/tailwind.js +0 -65
- package/dist/app/tailwind.js.map +0 -1
- package/dist/config/validators/InputSidebarSchema.d.ts +0 -201
- package/dist/config/validators/InputSidebarSchema.js +0 -52
- package/dist/config/validators/InputSidebarSchema.js.map +0 -1
- package/dist/config/validators/SidebarSchema.d.ts +0 -46
- package/dist/config/validators/SidebarSchema.js +0 -118
- package/dist/config/validators/SidebarSchema.js.map +0 -1
- package/dist/lib/components/DevPortal.d.ts +0 -7
- package/dist/lib/components/DevPortal.js +0 -54
- package/dist/lib/components/DevPortal.js.map +0 -1
- package/dist/lib/components/SlotletProvider.d.ts +0 -17
- package/dist/lib/components/SlotletProvider.js +0 -18
- package/dist/lib/components/SlotletProvider.js.map +0 -1
- package/dist/lib/components/SyntaxHighlight.d.ts +0 -11
- package/dist/lib/components/SyntaxHighlight.js +0 -53
- package/dist/lib/components/SyntaxHighlight.js.map +0 -1
- package/dist/lib/components/context/PluginSystem.js +0 -2
- package/dist/lib/components/context/PluginSystem.js.map +0 -1
- package/dist/lib/components/context/ThemeContext.d.ts +0 -2
- package/dist/lib/components/context/ThemeContext.js +0 -7
- package/dist/lib/components/context/ThemeContext.js.map +0 -1
- package/dist/lib/components/context/ThemeProvider.d.ts +0 -4
- package/dist/lib/components/context/ThemeProvider.js +0 -23
- package/dist/lib/components/context/ThemeProvider.js.map +0 -1
- package/dist/lib/components/navigation/Sidebar.d.ts +0 -1
- package/dist/lib/components/navigation/Sidebar.js +0 -14
- package/dist/lib/components/navigation/Sidebar.js.map +0 -1
- package/dist/lib/components/navigation/SidebarBadge.d.ts +0 -23
- package/dist/lib/components/navigation/SidebarBadge.js +0 -24
- package/dist/lib/components/navigation/SidebarBadge.js.map +0 -1
- package/dist/lib/components/navigation/SidebarCategory.d.ts +0 -5
- package/dist/lib/components/navigation/SidebarCategory.js +0 -50
- package/dist/lib/components/navigation/SidebarCategory.js.map +0 -1
- package/dist/lib/components/navigation/SidebarItem.d.ts +0 -12
- package/dist/lib/components/navigation/SidebarItem.js +0 -48
- package/dist/lib/components/navigation/SidebarItem.js.map +0 -1
- package/dist/lib/components/navigation/SidebarWrapper.d.ts +0 -6
- package/dist/lib/components/navigation/SidebarWrapper.js +0 -6
- package/dist/lib/components/navigation/SidebarWrapper.js.map +0 -1
- package/dist/lib/core/DevPortalContext.d.ts +0 -75
- package/dist/lib/core/DevPortalContext.js +0 -49
- package/dist/lib/core/DevPortalContext.js.map +0 -1
- package/dist/lib/plugins/custom-pages/CustomPage.d.ts +0 -2
- package/dist/lib/plugins/custom-pages/CustomPage.js +0 -11
- package/dist/lib/plugins/custom-pages/CustomPage.js.map +0 -1
- package/dist/lib/plugins/markdown/Toc.js +0 -48
- package/dist/lib/plugins/markdown/Toc.js.map +0 -1
- package/dist/lib/plugins/markdown/resolver.d.ts +0 -38
- package/dist/lib/plugins/markdown/resolver.js +0 -75
- package/dist/lib/plugins/markdown/resolver.js.map +0 -1
- package/dist/lib/plugins/openapi/Route.d.ts +0 -6
- package/dist/lib/plugins/openapi/Route.js +0 -8
- package/dist/lib/plugins/openapi/Route.js.map +0 -1
- package/dist/lib/plugins/openapi/client/createMemoryClient.d.ts +0 -12
- package/dist/lib/plugins/openapi/client/createMemoryClient.js +0 -46
- package/dist/lib/plugins/openapi/client/createMemoryClient.js.map +0 -1
- package/dist/lib/plugins/openapi/client/createWorkerClient.d.ts +0 -10
- package/dist/lib/plugins/openapi/client/createWorkerClient.js +0 -61
- package/dist/lib/plugins/openapi/client/createWorkerClient.js.map +0 -1
- package/dist/lib/plugins/openapi/client/interfaces.d.ts +0 -4
- package/dist/lib/plugins/openapi/client/interfaces.js +0 -2
- package/dist/lib/plugins/openapi/client/interfaces.js.map +0 -1
- package/dist/lib/plugins/openapi/client/worker.js +0 -20
- package/dist/lib/plugins/openapi/client/worker.js.map +0 -1
- package/dist/lib/plugins/openapi/playground/ResponseTab.d.ts +0 -4
- package/dist/lib/plugins/openapi/playground/ResponseTab.js +0 -42
- package/dist/lib/plugins/openapi/playground/ResponseTab.js.map +0 -1
- package/dist/lib/plugins/openapi/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/schema/SchemaComponents.d.ts +0 -13
- package/dist/lib/plugins/openapi/schema/SchemaComponents.js +0 -28
- package/dist/lib/plugins/openapi/schema/SchemaComponents.js.map +0 -1
- package/dist/lib/plugins/openapi-worker.d.ts +0 -1
- package/dist/lib/plugins/openapi-worker.js +0 -2
- package/dist/lib/plugins/openapi-worker.js.map +0 -1
- package/dist/lib/plugins/search-inkeep/InkeepCustomTrigger.d.ts +0 -2
- package/dist/lib/plugins/search-inkeep/InkeepCustomTrigger.js +0 -3
- package/dist/lib/plugins/search-inkeep/InkeepCustomTrigger.js.map +0 -1
- package/dist/lib/themeToggle.d.ts +0 -1
- package/dist/lib/themeToggle.js +0 -7
- package/dist/lib/themeToggle.js.map +0 -1
- package/dist/lib/util/createWaitForNotify.d.ts +0 -1
- package/dist/lib/util/createWaitForNotify.js +0 -15
- package/dist/lib/util/createWaitForNotify.js.map +0 -1
- package/dist/vite/plugin-custom-css.d.ts +0 -6
- package/dist/vite/plugin-custom-css.js +0 -55
- package/dist/vite/plugin-custom-css.js.map +0 -1
- package/dist/vite/plugin-docs.test.js +0 -30
- package/dist/vite/plugin-docs.test.js.map +0 -1
- package/dist/vite/plugin-html-transform.d.ts +0 -2
- package/dist/vite/plugin-html-transform.js +0 -15
- package/dist/vite/plugin-html-transform.js.map +0 -1
- package/dist/vite/plugin-sidebar.d.ts +0 -3
- package/dist/vite/plugin-sidebar.js +0 -47
- package/dist/vite/plugin-sidebar.js.map +0 -1
- package/dist/vite/prerender.d.ts +0 -21
- package/dist/vite/prerender.js +0 -88
- package/dist/vite/prerender.js.map +0 -1
- package/lib/AnchorLink-BbB2q-jx.js +0 -705
- package/lib/AnchorLink-BbB2q-jx.js.map +0 -1
- package/lib/AuthenticationPlugin-C9BHGXlE.js +0 -55
- package/lib/AuthenticationPlugin-C9BHGXlE.js.map +0 -1
- package/lib/CategoryHeading-Bb9dqxD3.js +0 -10
- package/lib/CategoryHeading-Bb9dqxD3.js.map +0 -1
- package/lib/ClientOnly-CVN6leDu.js +0 -11
- package/lib/ClientOnly-CVN6leDu.js.map +0 -1
- package/lib/DeveloperHint-DHdLXGHA.js +0 -16
- package/lib/DeveloperHint-DHdLXGHA.js.map +0 -1
- package/lib/Dialog-k70Qfukb.js +0 -67
- package/lib/Dialog-k70Qfukb.js.map +0 -1
- package/lib/InkeepCustomTrigger-CE5-K5ex.js +0 -6
- package/lib/InkeepCustomTrigger-CE5-K5ex.js.map +0 -1
- package/lib/Markdown-BDcCAWwm.js +0 -18059
- package/lib/Markdown-BDcCAWwm.js.map +0 -1
- package/lib/MdxPage-DKMH_t0f.js +0 -174
- package/lib/MdxPage-DKMH_t0f.js.map +0 -1
- package/lib/OperationList-Tj7ubW_t.js +0 -604
- package/lib/OperationList-Tj7ubW_t.js.map +0 -1
- package/lib/Route-C3DGB6OS.js +0 -13
- package/lib/Route-C3DGB6OS.js.map +0 -1
- package/lib/Select-Bagt3Bme.js +0 -223
- package/lib/Select-Bagt3Bme.js.map +0 -1
- package/lib/SlotletProvider-Da7eFgd2.js +0 -241
- package/lib/SlotletProvider-Da7eFgd2.js.map +0 -1
- package/lib/Spinner-C6zroowC.js +0 -40
- package/lib/Spinner-C6zroowC.js.map +0 -1
- package/lib/StaggeredRender-DDHSzQKE.js +0 -17
- package/lib/StaggeredRender-DDHSzQKE.js.map +0 -1
- package/lib/ZudokuContext-BKXGJTmu.js +0 -1222
- package/lib/ZudokuContext-BKXGJTmu.js.map +0 -1
- package/lib/__vite-browser-external-BYRIRx8p.js +0 -9
- package/lib/__vite-browser-external-BYRIRx8p.js.map +0 -1
- package/lib/_commonjsHelpers-BkfeUUK-.js +0 -29
- package/lib/_commonjsHelpers-BkfeUUK-.js.map +0 -1
- package/lib/assets/index-B_Jk_Yzp.js +0 -4820
- package/lib/assets/index-B_Jk_Yzp.js.map +0 -1
- package/lib/assets/worker-Bf8vjASY.js +0 -18197
- package/lib/assets/worker-Bf8vjASY.js.map +0 -1
- package/lib/cn-BmFQLtkS.js +0 -2279
- package/lib/cn-BmFQLtkS.js.map +0 -1
- package/lib/hook-sn0zMTkE.js +0 -229
- package/lib/hook-sn0zMTkE.js.map +0 -1
- package/lib/index-AjWCJNGC.js +0 -5690
- package/lib/index-AjWCJNGC.js.map +0 -1
- package/lib/index-Bn6Lc9tq.js +0 -9
- package/lib/index-Bn6Lc9tq.js.map +0 -1
- package/lib/index-BuAyrJe3.js +0 -46
- package/lib/index-BuAyrJe3.js.map +0 -1
- package/lib/index-CRo94sKK.js +0 -1783
- package/lib/index-CRo94sKK.js.map +0 -1
- package/lib/index-CkwDvuPt.js +0 -4820
- package/lib/index-CkwDvuPt.js.map +0 -1
- package/lib/index-LNp6rxyU.js +0 -2094
- package/lib/index-LNp6rxyU.js.map +0 -1
- package/lib/index.esm-C5mr_sKO.js +0 -1193
- package/lib/index.esm-C5mr_sKO.js.map +0 -1
- package/lib/invariant-Caa8-XvF.js +0 -26
- package/lib/invariant-Caa8-XvF.js.map +0 -1
- package/lib/jsx-runtime-B6kdoens.js +0 -635
- package/lib/jsx-runtime-B6kdoens.js.map +0 -1
- package/lib/prism-bash.min-DadFsM4Z.js +0 -7
- package/lib/prism-bash.min-DadFsM4Z.js.map +0 -1
- package/lib/prism-csharp.min-Yizuc34Y.js +0 -35
- package/lib/prism-csharp.min-Yizuc34Y.js.map +0 -1
- package/lib/prism-java.min-d5iT_mOd.js +0 -7
- package/lib/prism-java.min-d5iT_mOd.js.map +0 -1
- package/lib/prism-javascript.min-CEqHqgbm.js +0 -9
- package/lib/prism-javascript.min-CEqHqgbm.js.map +0 -1
- package/lib/prism-json.min-B1GJqK1k.js +0 -2
- package/lib/prism-json.min-B1GJqK1k.js.map +0 -1
- package/lib/prism-markdown.min-F3U-vPBi.js +0 -61
- package/lib/prism-markdown.min-F3U-vPBi.js.map +0 -1
- package/lib/prism-markup-BNGj0Tvm.js +0 -174
- package/lib/prism-markup-BNGj0Tvm.js.map +0 -1
- package/lib/prism-markup-templating-DZrrEs0A.js +0 -62
- package/lib/prism-markup-templating-DZrrEs0A.js.map +0 -1
- package/lib/prism-objectivec.min-BXSWqpJJ.js +0 -2
- package/lib/prism-objectivec.min-BXSWqpJJ.js.map +0 -1
- package/lib/prism-php.min-o7FpoMP_.js +0 -11
- package/lib/prism-php.min-o7FpoMP_.js.map +0 -1
- package/lib/prism-ruby.min-C7LwcKyz.js +0 -10
- package/lib/prism-ruby.min-C7LwcKyz.js.map +0 -1
- package/lib/prism-typescript.min-oSVeWCAd.js +0 -6
- package/lib/prism-typescript.min-oSVeWCAd.js.map +0 -1
- package/lib/router-BsfSoK2j.js +0 -3024
- package/lib/router-BsfSoK2j.js.map +0 -1
- package/lib/state-CsuHT8ZO.js +0 -183
- package/lib/state-CsuHT8ZO.js.map +0 -1
- package/lib/urql-core-KJnLL26g.js +0 -1455
- package/lib/urql-core-KJnLL26g.js.map +0 -1
- package/lib/useExposedProps-ChOIUaS4.js +0 -9
- package/lib/useExposedProps-ChOIUaS4.js.map +0 -1
- package/lib/zudoku.openapi-worker.js +0 -16341
- package/lib/zudoku.openapi-worker.js.map +0 -1
- package/src/app/tailwind.ts +0 -68
- package/src/lib/components/DevPortal.tsx +0 -111
- package/src/lib/components/SlotletProvider.tsx +0 -55
- package/src/lib/components/SyntaxHighlight.tsx +0 -126
- package/src/lib/components/context/PluginSystem.ts +0 -0
- package/src/lib/components/context/ThemeContext.tsx +0 -8
- package/src/lib/components/context/ThemeProvider.tsx +0 -27
- package/src/lib/components/navigation/Sidebar.tsx +0 -39
- package/src/lib/components/navigation/SidebarBadge.tsx +0 -43
- package/src/lib/components/navigation/SidebarCategory.tsx +0 -137
- package/src/lib/components/navigation/SidebarItem.tsx +0 -127
- package/src/lib/components/navigation/SidebarWrapper.tsx +0 -26
- package/src/lib/core/DevPortalContext.ts +0 -136
- package/src/lib/plugins/custom-pages/CustomPage.tsx +0 -18
- package/src/lib/plugins/markdown/Toc.tsx +0 -135
- package/src/lib/plugins/markdown/resolver.ts +0 -92
- package/src/lib/plugins/openapi/Route.tsx +0 -20
- package/src/lib/plugins/openapi/client/createMemoryClient.ts +0 -51
- package/src/lib/plugins/openapi/client/createWorkerClient.ts +0 -75
- package/src/lib/plugins/openapi/client/interfaces.ts +0 -5
- package/src/lib/plugins/openapi/client/worker.ts +0 -30
- package/src/lib/plugins/openapi/playground/ResponseTab.tsx +0 -76
- package/src/lib/plugins/openapi/playground/UrlDisplay.tsx +0 -32
- package/src/lib/plugins/openapi/schema/SchemaComponents.tsx +0 -126
- package/src/lib/plugins/openapi-worker.ts +0 -1
- package/src/lib/plugins/search-inkeep/InkeepCustomTrigger.tsx +0 -3
- package/src/lib/themeToggle.ts +0 -7
- package/src/lib/util/createWaitForNotify.ts +0 -18
- /package/dist/{lib/components/context/PluginSystem.d.ts → config/validators/InputNavigationSchema.test-d.d.ts} +0 -0
- /package/dist/{lib/plugins/openapi/client/worker.d.ts → config/validators/validate.test.d.ts} +0 -0
- /package/dist/{vite/plugin-docs.test.d.ts → lib/auth/issuer.test.d.ts} +0 -0
- /package/dist/lib/{plugins/markdown → components/navigation}/Toc.d.ts +0 -0
|
@@ -1,1222 +0,0 @@
|
|
|
1
|
-
var _e = (t) => {
|
|
2
|
-
throw TypeError(t);
|
|
3
|
-
};
|
|
4
|
-
var be = (t, e, s) => e.has(t) || _e("Cannot " + s);
|
|
5
|
-
var i = (t, e, s) => (be(t, e, "read from private field"), s ? s.call(t) : e.get(t)), y = (t, e, s) => e.has(t) ? _e("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, s), c = (t, e, s, r) => (be(t, e, "write to private field"), r ? r.call(t, s) : e.set(t, s), s), b = (t, e, s) => (be(t, e, "access private method"), s);
|
|
6
|
-
import * as I from "react";
|
|
7
|
-
import { createContext as dt, useContext as ft } from "react";
|
|
8
|
-
import { j as yt } from "./jsx-runtime-B6kdoens.js";
|
|
9
|
-
import { u as pe } from "./index-CRo94sKK.js";
|
|
10
|
-
import { b as pt } from "./router-BsfSoK2j.js";
|
|
11
|
-
var ke = class {
|
|
12
|
-
constructor() {
|
|
13
|
-
this.listeners = /* @__PURE__ */ new Set(), this.subscribe = this.subscribe.bind(this);
|
|
14
|
-
}
|
|
15
|
-
subscribe(t) {
|
|
16
|
-
return this.listeners.add(t), this.onSubscribe(), () => {
|
|
17
|
-
this.listeners.delete(t), this.onUnsubscribe();
|
|
18
|
-
};
|
|
19
|
-
}
|
|
20
|
-
hasListeners() {
|
|
21
|
-
return this.listeners.size > 0;
|
|
22
|
-
}
|
|
23
|
-
onSubscribe() {
|
|
24
|
-
}
|
|
25
|
-
onUnsubscribe() {
|
|
26
|
-
}
|
|
27
|
-
}, V = typeof window > "u" || "Deno" in globalThis;
|
|
28
|
-
function ge() {
|
|
29
|
-
}
|
|
30
|
-
function Jt(t, e) {
|
|
31
|
-
return typeof t == "function" ? t(e) : t;
|
|
32
|
-
}
|
|
33
|
-
function Ce(t) {
|
|
34
|
-
return typeof t == "number" && t >= 0 && t !== 1 / 0;
|
|
35
|
-
}
|
|
36
|
-
function Ye(t, e) {
|
|
37
|
-
return Math.max(t + (e || 0) - Date.now(), 0);
|
|
38
|
-
}
|
|
39
|
-
function fe(t, e) {
|
|
40
|
-
return typeof t == "function" ? t(e) : t;
|
|
41
|
-
}
|
|
42
|
-
function q(t, e) {
|
|
43
|
-
return typeof t == "function" ? t(e) : t;
|
|
44
|
-
}
|
|
45
|
-
function Zt(t, e) {
|
|
46
|
-
const {
|
|
47
|
-
type: s = "all",
|
|
48
|
-
exact: r,
|
|
49
|
-
fetchStatus: n,
|
|
50
|
-
predicate: u,
|
|
51
|
-
queryKey: a,
|
|
52
|
-
stale: o
|
|
53
|
-
} = t;
|
|
54
|
-
if (a) {
|
|
55
|
-
if (r) {
|
|
56
|
-
if (e.queryHash !== vt(a, e.options))
|
|
57
|
-
return !1;
|
|
58
|
-
} else if (!Qe(e.queryKey, a))
|
|
59
|
-
return !1;
|
|
60
|
-
}
|
|
61
|
-
if (s !== "all") {
|
|
62
|
-
const l = e.isActive();
|
|
63
|
-
if (s === "active" && !l || s === "inactive" && l)
|
|
64
|
-
return !1;
|
|
65
|
-
}
|
|
66
|
-
return !(typeof o == "boolean" && e.isStale() !== o || n && n !== e.state.fetchStatus || u && !u(e));
|
|
67
|
-
}
|
|
68
|
-
function Xt(t, e) {
|
|
69
|
-
const { exact: s, status: r, predicate: n, mutationKey: u } = t;
|
|
70
|
-
if (u) {
|
|
71
|
-
if (!e.options.mutationKey)
|
|
72
|
-
return !1;
|
|
73
|
-
if (s) {
|
|
74
|
-
if (Se(e.options.mutationKey) !== Se(u))
|
|
75
|
-
return !1;
|
|
76
|
-
} else if (!Qe(e.options.mutationKey, u))
|
|
77
|
-
return !1;
|
|
78
|
-
}
|
|
79
|
-
return !(r && e.state.status !== r || n && !n(e));
|
|
80
|
-
}
|
|
81
|
-
function vt(t, e) {
|
|
82
|
-
return ((e == null ? void 0 : e.queryKeyHashFn) || Se)(t);
|
|
83
|
-
}
|
|
84
|
-
function Se(t) {
|
|
85
|
-
return JSON.stringify(
|
|
86
|
-
t,
|
|
87
|
-
(e, s) => Ee(s) ? Object.keys(s).sort().reduce((r, n) => (r[n] = s[n], r), {}) : s
|
|
88
|
-
);
|
|
89
|
-
}
|
|
90
|
-
function Qe(t, e) {
|
|
91
|
-
return t === e ? !0 : typeof t != typeof e ? !1 : t && e && typeof t == "object" && typeof e == "object" ? !Object.keys(e).some((s) => !Qe(t[s], e[s])) : !1;
|
|
92
|
-
}
|
|
93
|
-
function Re(t, e) {
|
|
94
|
-
if (t === e)
|
|
95
|
-
return t;
|
|
96
|
-
const s = He(t) && He(e);
|
|
97
|
-
if (s || Ee(t) && Ee(e)) {
|
|
98
|
-
const r = s ? t : Object.keys(t), n = r.length, u = s ? e : Object.keys(e), a = u.length, o = s ? [] : {};
|
|
99
|
-
let l = 0;
|
|
100
|
-
for (let C = 0; C < a; C++) {
|
|
101
|
-
const v = s ? C : u[C];
|
|
102
|
-
(!s && r.includes(v) || s) && t[v] === void 0 && e[v] === void 0 ? (o[v] = void 0, l++) : (o[v] = Re(t[v], e[v]), o[v] === t[v] && t[v] !== void 0 && l++);
|
|
103
|
-
}
|
|
104
|
-
return n === a && l === n ? t : o;
|
|
105
|
-
}
|
|
106
|
-
return e;
|
|
107
|
-
}
|
|
108
|
-
function we(t, e) {
|
|
109
|
-
if (!e || Object.keys(t).length !== Object.keys(e).length)
|
|
110
|
-
return !1;
|
|
111
|
-
for (const s in t)
|
|
112
|
-
if (t[s] !== e[s])
|
|
113
|
-
return !1;
|
|
114
|
-
return !0;
|
|
115
|
-
}
|
|
116
|
-
function He(t) {
|
|
117
|
-
return Array.isArray(t) && t.length === Object.keys(t).length;
|
|
118
|
-
}
|
|
119
|
-
function Ee(t) {
|
|
120
|
-
if (!Be(t))
|
|
121
|
-
return !1;
|
|
122
|
-
const e = t.constructor;
|
|
123
|
-
if (e === void 0)
|
|
124
|
-
return !0;
|
|
125
|
-
const s = e.prototype;
|
|
126
|
-
return !(!Be(s) || !s.hasOwnProperty("isPrototypeOf") || Object.getPrototypeOf(t) !== Object.prototype);
|
|
127
|
-
}
|
|
128
|
-
function Be(t) {
|
|
129
|
-
return Object.prototype.toString.call(t) === "[object Object]";
|
|
130
|
-
}
|
|
131
|
-
function bt(t) {
|
|
132
|
-
return new Promise((e) => {
|
|
133
|
-
setTimeout(e, t);
|
|
134
|
-
});
|
|
135
|
-
}
|
|
136
|
-
function Oe(t, e, s) {
|
|
137
|
-
if (typeof s.structuralSharing == "function")
|
|
138
|
-
return s.structuralSharing(t, e);
|
|
139
|
-
if (s.structuralSharing !== !1) {
|
|
140
|
-
if (process.env.NODE_ENV !== "production")
|
|
141
|
-
try {
|
|
142
|
-
return Re(t, e);
|
|
143
|
-
} catch (r) {
|
|
144
|
-
console.error(
|
|
145
|
-
`Structural sharing requires data to be JSON serializable. To fix this, turn off structuralSharing or return JSON-serializable data from your queryFn. [${s.queryHash}]: ${r}`
|
|
146
|
-
);
|
|
147
|
-
}
|
|
148
|
-
return Re(t, e);
|
|
149
|
-
}
|
|
150
|
-
return e;
|
|
151
|
-
}
|
|
152
|
-
function Yt(t, e, s = 0) {
|
|
153
|
-
const r = [...t, e];
|
|
154
|
-
return s && r.length > s ? r.slice(1) : r;
|
|
155
|
-
}
|
|
156
|
-
function es(t, e, s = 0) {
|
|
157
|
-
const r = [e, ...t];
|
|
158
|
-
return s && r.length > s ? r.slice(0, -1) : r;
|
|
159
|
-
}
|
|
160
|
-
var ye = Symbol();
|
|
161
|
-
function mt(t, e) {
|
|
162
|
-
return process.env.NODE_ENV !== "production" && t.queryFn === ye && console.error(
|
|
163
|
-
`Attempted to invoke queryFn when set to skipToken. This is likely a configuration error. Query hash: '${t.queryHash}'`
|
|
164
|
-
), !t.queryFn && (e != null && e.initialPromise) ? () => e.initialPromise : !t.queryFn || t.queryFn === ye ? () => Promise.reject(new Error(`Missing queryFn: '${t.queryHash}'`)) : t.queryFn;
|
|
165
|
-
}
|
|
166
|
-
var K, Q, Z, $e, gt = ($e = class extends ke {
|
|
167
|
-
constructor() {
|
|
168
|
-
super();
|
|
169
|
-
y(this, K);
|
|
170
|
-
y(this, Q);
|
|
171
|
-
y(this, Z);
|
|
172
|
-
c(this, Z, (e) => {
|
|
173
|
-
if (!V && window.addEventListener) {
|
|
174
|
-
const s = () => e();
|
|
175
|
-
return window.addEventListener("visibilitychange", s, !1), () => {
|
|
176
|
-
window.removeEventListener("visibilitychange", s);
|
|
177
|
-
};
|
|
178
|
-
}
|
|
179
|
-
});
|
|
180
|
-
}
|
|
181
|
-
onSubscribe() {
|
|
182
|
-
i(this, Q) || this.setEventListener(i(this, Z));
|
|
183
|
-
}
|
|
184
|
-
onUnsubscribe() {
|
|
185
|
-
var e;
|
|
186
|
-
this.hasListeners() || ((e = i(this, Q)) == null || e.call(this), c(this, Q, void 0));
|
|
187
|
-
}
|
|
188
|
-
setEventListener(e) {
|
|
189
|
-
var s;
|
|
190
|
-
c(this, Z, e), (s = i(this, Q)) == null || s.call(this), c(this, Q, e((r) => {
|
|
191
|
-
typeof r == "boolean" ? this.setFocused(r) : this.onFocus();
|
|
192
|
-
}));
|
|
193
|
-
}
|
|
194
|
-
setFocused(e) {
|
|
195
|
-
i(this, K) !== e && (c(this, K, e), this.onFocus());
|
|
196
|
-
}
|
|
197
|
-
onFocus() {
|
|
198
|
-
const e = this.isFocused();
|
|
199
|
-
this.listeners.forEach((s) => {
|
|
200
|
-
s(e);
|
|
201
|
-
});
|
|
202
|
-
}
|
|
203
|
-
isFocused() {
|
|
204
|
-
var e;
|
|
205
|
-
return typeof i(this, K) == "boolean" ? i(this, K) : ((e = globalThis.document) == null ? void 0 : e.visibilityState) !== "hidden";
|
|
206
|
-
}
|
|
207
|
-
}, K = new WeakMap(), Q = new WeakMap(), Z = new WeakMap(), $e), et = new gt(), X, A, Y, We, Ct = (We = class extends ke {
|
|
208
|
-
constructor() {
|
|
209
|
-
super();
|
|
210
|
-
y(this, X, !0);
|
|
211
|
-
y(this, A);
|
|
212
|
-
y(this, Y);
|
|
213
|
-
c(this, Y, (e) => {
|
|
214
|
-
if (!V && window.addEventListener) {
|
|
215
|
-
const s = () => e(!0), r = () => e(!1);
|
|
216
|
-
return window.addEventListener("online", s, !1), window.addEventListener("offline", r, !1), () => {
|
|
217
|
-
window.removeEventListener("online", s), window.removeEventListener("offline", r);
|
|
218
|
-
};
|
|
219
|
-
}
|
|
220
|
-
});
|
|
221
|
-
}
|
|
222
|
-
onSubscribe() {
|
|
223
|
-
i(this, A) || this.setEventListener(i(this, Y));
|
|
224
|
-
}
|
|
225
|
-
onUnsubscribe() {
|
|
226
|
-
var e;
|
|
227
|
-
this.hasListeners() || ((e = i(this, A)) == null || e.call(this), c(this, A, void 0));
|
|
228
|
-
}
|
|
229
|
-
setEventListener(e) {
|
|
230
|
-
var s;
|
|
231
|
-
c(this, Y, e), (s = i(this, A)) == null || s.call(this), c(this, A, e(this.setOnline.bind(this)));
|
|
232
|
-
}
|
|
233
|
-
setOnline(e) {
|
|
234
|
-
i(this, X) !== e && (c(this, X, e), this.listeners.forEach((r) => {
|
|
235
|
-
r(e);
|
|
236
|
-
}));
|
|
237
|
-
}
|
|
238
|
-
isOnline() {
|
|
239
|
-
return i(this, X);
|
|
240
|
-
}
|
|
241
|
-
}, X = new WeakMap(), A = new WeakMap(), Y = new WeakMap(), We), tt = new Ct();
|
|
242
|
-
function Fe() {
|
|
243
|
-
let t, e;
|
|
244
|
-
const s = new Promise((n, u) => {
|
|
245
|
-
t = n, e = u;
|
|
246
|
-
});
|
|
247
|
-
s.status = "pending", s.catch(() => {
|
|
248
|
-
});
|
|
249
|
-
function r(n) {
|
|
250
|
-
Object.assign(s, n), delete s.resolve, delete s.reject;
|
|
251
|
-
}
|
|
252
|
-
return s.resolve = (n) => {
|
|
253
|
-
r({
|
|
254
|
-
status: "fulfilled",
|
|
255
|
-
value: n
|
|
256
|
-
}), t(n);
|
|
257
|
-
}, s.reject = (n) => {
|
|
258
|
-
r({
|
|
259
|
-
status: "rejected",
|
|
260
|
-
reason: n
|
|
261
|
-
}), e(n);
|
|
262
|
-
}, s;
|
|
263
|
-
}
|
|
264
|
-
function St(t) {
|
|
265
|
-
return Math.min(1e3 * 2 ** t, 3e4);
|
|
266
|
-
}
|
|
267
|
-
function st(t) {
|
|
268
|
-
return (t ?? "online") === "online" ? tt.isOnline() : !0;
|
|
269
|
-
}
|
|
270
|
-
var rt = class extends Error {
|
|
271
|
-
constructor(t) {
|
|
272
|
-
super("CancelledError"), this.revert = t == null ? void 0 : t.revert, this.silent = t == null ? void 0 : t.silent;
|
|
273
|
-
}
|
|
274
|
-
};
|
|
275
|
-
function me(t) {
|
|
276
|
-
return t instanceof rt;
|
|
277
|
-
}
|
|
278
|
-
function Rt(t) {
|
|
279
|
-
let e = !1, s = 0, r = !1, n;
|
|
280
|
-
const u = Fe(), a = (f) => {
|
|
281
|
-
var g;
|
|
282
|
-
r || (m(new rt(f)), (g = t.abort) == null || g.call(t));
|
|
283
|
-
}, o = () => {
|
|
284
|
-
e = !0;
|
|
285
|
-
}, l = () => {
|
|
286
|
-
e = !1;
|
|
287
|
-
}, C = () => et.isFocused() && (t.networkMode === "always" || tt.isOnline()) && t.canRun(), v = () => st(t.networkMode) && t.canRun(), h = (f) => {
|
|
288
|
-
var g;
|
|
289
|
-
r || (r = !0, (g = t.onSuccess) == null || g.call(t, f), n == null || n(), u.resolve(f));
|
|
290
|
-
}, m = (f) => {
|
|
291
|
-
var g;
|
|
292
|
-
r || (r = !0, (g = t.onError) == null || g.call(t, f), n == null || n(), u.reject(f));
|
|
293
|
-
}, S = () => new Promise((f) => {
|
|
294
|
-
var g;
|
|
295
|
-
n = (P) => {
|
|
296
|
-
(r || C()) && f(P);
|
|
297
|
-
}, (g = t.onPause) == null || g.call(t);
|
|
298
|
-
}).then(() => {
|
|
299
|
-
var f;
|
|
300
|
-
n = void 0, r || (f = t.onContinue) == null || f.call(t);
|
|
301
|
-
}), w = () => {
|
|
302
|
-
if (r)
|
|
303
|
-
return;
|
|
304
|
-
let f;
|
|
305
|
-
const g = s === 0 ? t.initialPromise : void 0;
|
|
306
|
-
try {
|
|
307
|
-
f = g ?? t.fn();
|
|
308
|
-
} catch (P) {
|
|
309
|
-
f = Promise.reject(P);
|
|
310
|
-
}
|
|
311
|
-
Promise.resolve(f).then(h).catch((P) => {
|
|
312
|
-
var ve;
|
|
313
|
-
if (r)
|
|
314
|
-
return;
|
|
315
|
-
const U = t.retry ?? (V ? 0 : 3), N = t.retryDelay ?? St, ce = typeof N == "function" ? N(s, P) : N, le = U === !0 || typeof U == "number" && s < U || typeof U == "function" && U(s, P);
|
|
316
|
-
if (e || !le) {
|
|
317
|
-
m(P);
|
|
318
|
-
return;
|
|
319
|
-
}
|
|
320
|
-
s++, (ve = t.onFail) == null || ve.call(t, s, P), bt(ce).then(() => C() ? void 0 : S()).then(() => {
|
|
321
|
-
e ? m(P) : w();
|
|
322
|
-
});
|
|
323
|
-
});
|
|
324
|
-
};
|
|
325
|
-
return {
|
|
326
|
-
promise: u,
|
|
327
|
-
cancel: a,
|
|
328
|
-
continue: () => (n == null || n(), u),
|
|
329
|
-
cancelRetry: o,
|
|
330
|
-
continueRetry: l,
|
|
331
|
-
canStart: v,
|
|
332
|
-
start: () => (v() ? w() : S().then(w), u)
|
|
333
|
-
};
|
|
334
|
-
}
|
|
335
|
-
function wt() {
|
|
336
|
-
let t = [], e = 0, s = (o) => {
|
|
337
|
-
o();
|
|
338
|
-
}, r = (o) => {
|
|
339
|
-
o();
|
|
340
|
-
}, n = (o) => setTimeout(o, 0);
|
|
341
|
-
const u = (o) => {
|
|
342
|
-
e ? t.push(o) : n(() => {
|
|
343
|
-
s(o);
|
|
344
|
-
});
|
|
345
|
-
}, a = () => {
|
|
346
|
-
const o = t;
|
|
347
|
-
t = [], o.length && n(() => {
|
|
348
|
-
r(() => {
|
|
349
|
-
o.forEach((l) => {
|
|
350
|
-
s(l);
|
|
351
|
-
});
|
|
352
|
-
});
|
|
353
|
-
});
|
|
354
|
-
};
|
|
355
|
-
return {
|
|
356
|
-
batch: (o) => {
|
|
357
|
-
let l;
|
|
358
|
-
e++;
|
|
359
|
-
try {
|
|
360
|
-
l = o();
|
|
361
|
-
} finally {
|
|
362
|
-
e--, e || a();
|
|
363
|
-
}
|
|
364
|
-
return l;
|
|
365
|
-
},
|
|
366
|
-
/**
|
|
367
|
-
* All calls to the wrapped function will be batched.
|
|
368
|
-
*/
|
|
369
|
-
batchCalls: (o) => (...l) => {
|
|
370
|
-
u(() => {
|
|
371
|
-
o(...l);
|
|
372
|
-
});
|
|
373
|
-
},
|
|
374
|
-
schedule: u,
|
|
375
|
-
/**
|
|
376
|
-
* Use this method to set a custom notify function.
|
|
377
|
-
* This can be used to for example wrap notifications with `React.act` while running tests.
|
|
378
|
-
*/
|
|
379
|
-
setNotifyFunction: (o) => {
|
|
380
|
-
s = o;
|
|
381
|
-
},
|
|
382
|
-
/**
|
|
383
|
-
* Use this method to set a custom function to batch notifications together into a single tick.
|
|
384
|
-
* By default React Query will use the batch function provided by ReactDOM or React Native.
|
|
385
|
-
*/
|
|
386
|
-
setBatchNotifyFunction: (o) => {
|
|
387
|
-
r = o;
|
|
388
|
-
},
|
|
389
|
-
setScheduler: (o) => {
|
|
390
|
-
n = o;
|
|
391
|
-
}
|
|
392
|
-
};
|
|
393
|
-
}
|
|
394
|
-
var Ae = wt(), _, Je, Et = (Je = class {
|
|
395
|
-
constructor() {
|
|
396
|
-
y(this, _);
|
|
397
|
-
}
|
|
398
|
-
destroy() {
|
|
399
|
-
this.clearGcTimeout();
|
|
400
|
-
}
|
|
401
|
-
scheduleGc() {
|
|
402
|
-
this.clearGcTimeout(), Ce(this.gcTime) && c(this, _, setTimeout(() => {
|
|
403
|
-
this.optionalRemove();
|
|
404
|
-
}, this.gcTime));
|
|
405
|
-
}
|
|
406
|
-
updateGcTime(t) {
|
|
407
|
-
this.gcTime = Math.max(
|
|
408
|
-
this.gcTime || 0,
|
|
409
|
-
t ?? (V ? 1 / 0 : 5 * 60 * 1e3)
|
|
410
|
-
);
|
|
411
|
-
}
|
|
412
|
-
clearGcTimeout() {
|
|
413
|
-
i(this, _) && (clearTimeout(i(this, _)), c(this, _, void 0));
|
|
414
|
-
}
|
|
415
|
-
}, _ = new WeakMap(), Je), ee, te, D, R, oe, H, T, k, Ze, ts = (Ze = class extends Et {
|
|
416
|
-
constructor(e) {
|
|
417
|
-
super();
|
|
418
|
-
y(this, T);
|
|
419
|
-
y(this, ee);
|
|
420
|
-
y(this, te);
|
|
421
|
-
y(this, D);
|
|
422
|
-
y(this, R);
|
|
423
|
-
y(this, oe);
|
|
424
|
-
y(this, H);
|
|
425
|
-
c(this, H, !1), c(this, oe, e.defaultOptions), this.setOptions(e.options), this.observers = [], c(this, D, e.cache), this.queryKey = e.queryKey, this.queryHash = e.queryHash, c(this, ee, Ot(this.options)), this.state = e.state ?? i(this, ee), this.scheduleGc();
|
|
426
|
-
}
|
|
427
|
-
get meta() {
|
|
428
|
-
return this.options.meta;
|
|
429
|
-
}
|
|
430
|
-
get promise() {
|
|
431
|
-
var e;
|
|
432
|
-
return (e = i(this, R)) == null ? void 0 : e.promise;
|
|
433
|
-
}
|
|
434
|
-
setOptions(e) {
|
|
435
|
-
this.options = { ...i(this, oe), ...e }, this.updateGcTime(this.options.gcTime);
|
|
436
|
-
}
|
|
437
|
-
optionalRemove() {
|
|
438
|
-
!this.observers.length && this.state.fetchStatus === "idle" && i(this, D).remove(this);
|
|
439
|
-
}
|
|
440
|
-
setData(e, s) {
|
|
441
|
-
const r = Oe(this.state.data, e, this.options);
|
|
442
|
-
return b(this, T, k).call(this, {
|
|
443
|
-
data: r,
|
|
444
|
-
type: "success",
|
|
445
|
-
dataUpdatedAt: s == null ? void 0 : s.updatedAt,
|
|
446
|
-
manual: s == null ? void 0 : s.manual
|
|
447
|
-
}), r;
|
|
448
|
-
}
|
|
449
|
-
setState(e, s) {
|
|
450
|
-
b(this, T, k).call(this, { type: "setState", state: e, setStateOptions: s });
|
|
451
|
-
}
|
|
452
|
-
cancel(e) {
|
|
453
|
-
var r, n;
|
|
454
|
-
const s = (r = i(this, R)) == null ? void 0 : r.promise;
|
|
455
|
-
return (n = i(this, R)) == null || n.cancel(e), s ? s.then(ge).catch(ge) : Promise.resolve();
|
|
456
|
-
}
|
|
457
|
-
destroy() {
|
|
458
|
-
super.destroy(), this.cancel({ silent: !0 });
|
|
459
|
-
}
|
|
460
|
-
reset() {
|
|
461
|
-
this.destroy(), this.setState(i(this, ee));
|
|
462
|
-
}
|
|
463
|
-
isActive() {
|
|
464
|
-
return this.observers.some(
|
|
465
|
-
(e) => q(e.options.enabled, this) !== !1
|
|
466
|
-
);
|
|
467
|
-
}
|
|
468
|
-
isDisabled() {
|
|
469
|
-
return this.getObserversCount() > 0 ? !this.isActive() : this.options.queryFn === ye || this.state.dataUpdateCount + this.state.errorUpdateCount === 0;
|
|
470
|
-
}
|
|
471
|
-
isStale() {
|
|
472
|
-
return this.state.isInvalidated ? !0 : this.getObserversCount() > 0 ? this.observers.some(
|
|
473
|
-
(e) => e.getCurrentResult().isStale
|
|
474
|
-
) : this.state.data === void 0;
|
|
475
|
-
}
|
|
476
|
-
isStaleByTime(e = 0) {
|
|
477
|
-
return this.state.isInvalidated || this.state.data === void 0 || !Ye(this.state.dataUpdatedAt, e);
|
|
478
|
-
}
|
|
479
|
-
onFocus() {
|
|
480
|
-
var s;
|
|
481
|
-
const e = this.observers.find((r) => r.shouldFetchOnWindowFocus());
|
|
482
|
-
e == null || e.refetch({ cancelRefetch: !1 }), (s = i(this, R)) == null || s.continue();
|
|
483
|
-
}
|
|
484
|
-
onOnline() {
|
|
485
|
-
var s;
|
|
486
|
-
const e = this.observers.find((r) => r.shouldFetchOnReconnect());
|
|
487
|
-
e == null || e.refetch({ cancelRefetch: !1 }), (s = i(this, R)) == null || s.continue();
|
|
488
|
-
}
|
|
489
|
-
addObserver(e) {
|
|
490
|
-
this.observers.includes(e) || (this.observers.push(e), this.clearGcTimeout(), i(this, D).notify({ type: "observerAdded", query: this, observer: e }));
|
|
491
|
-
}
|
|
492
|
-
removeObserver(e) {
|
|
493
|
-
this.observers.includes(e) && (this.observers = this.observers.filter((s) => s !== e), this.observers.length || (i(this, R) && (i(this, H) ? i(this, R).cancel({ revert: !0 }) : i(this, R).cancelRetry()), this.scheduleGc()), i(this, D).notify({ type: "observerRemoved", query: this, observer: e }));
|
|
494
|
-
}
|
|
495
|
-
getObserversCount() {
|
|
496
|
-
return this.observers.length;
|
|
497
|
-
}
|
|
498
|
-
invalidate() {
|
|
499
|
-
this.state.isInvalidated || b(this, T, k).call(this, { type: "invalidate" });
|
|
500
|
-
}
|
|
501
|
-
fetch(e, s) {
|
|
502
|
-
var l, C, v;
|
|
503
|
-
if (this.state.fetchStatus !== "idle") {
|
|
504
|
-
if (this.state.data !== void 0 && (s != null && s.cancelRefetch))
|
|
505
|
-
this.cancel({ silent: !0 });
|
|
506
|
-
else if (i(this, R))
|
|
507
|
-
return i(this, R).continueRetry(), i(this, R).promise;
|
|
508
|
-
}
|
|
509
|
-
if (e && this.setOptions(e), !this.options.queryFn) {
|
|
510
|
-
const h = this.observers.find((m) => m.options.queryFn);
|
|
511
|
-
h && this.setOptions(h.options);
|
|
512
|
-
}
|
|
513
|
-
process.env.NODE_ENV !== "production" && (Array.isArray(this.options.queryKey) || console.error(
|
|
514
|
-
"As of v4, queryKey needs to be an Array. If you are using a string like 'repoData', please change it to an Array, e.g. ['repoData']"
|
|
515
|
-
));
|
|
516
|
-
const r = new AbortController(), n = (h) => {
|
|
517
|
-
Object.defineProperty(h, "signal", {
|
|
518
|
-
enumerable: !0,
|
|
519
|
-
get: () => (c(this, H, !0), r.signal)
|
|
520
|
-
});
|
|
521
|
-
}, u = () => {
|
|
522
|
-
const h = mt(this.options, s), m = {
|
|
523
|
-
queryKey: this.queryKey,
|
|
524
|
-
meta: this.meta
|
|
525
|
-
};
|
|
526
|
-
return n(m), c(this, H, !1), this.options.persister ? this.options.persister(
|
|
527
|
-
h,
|
|
528
|
-
m,
|
|
529
|
-
this
|
|
530
|
-
) : h(m);
|
|
531
|
-
}, a = {
|
|
532
|
-
fetchOptions: s,
|
|
533
|
-
options: this.options,
|
|
534
|
-
queryKey: this.queryKey,
|
|
535
|
-
state: this.state,
|
|
536
|
-
fetchFn: u
|
|
537
|
-
};
|
|
538
|
-
n(a), (l = this.options.behavior) == null || l.onFetch(
|
|
539
|
-
a,
|
|
540
|
-
this
|
|
541
|
-
), c(this, te, this.state), (this.state.fetchStatus === "idle" || this.state.fetchMeta !== ((C = a.fetchOptions) == null ? void 0 : C.meta)) && b(this, T, k).call(this, { type: "fetch", meta: (v = a.fetchOptions) == null ? void 0 : v.meta });
|
|
542
|
-
const o = (h) => {
|
|
543
|
-
var m, S, w, f;
|
|
544
|
-
me(h) && h.silent || b(this, T, k).call(this, {
|
|
545
|
-
type: "error",
|
|
546
|
-
error: h
|
|
547
|
-
}), me(h) || ((S = (m = i(this, D).config).onError) == null || S.call(
|
|
548
|
-
m,
|
|
549
|
-
h,
|
|
550
|
-
this
|
|
551
|
-
), (f = (w = i(this, D).config).onSettled) == null || f.call(
|
|
552
|
-
w,
|
|
553
|
-
this.state.data,
|
|
554
|
-
h,
|
|
555
|
-
this
|
|
556
|
-
)), this.scheduleGc();
|
|
557
|
-
};
|
|
558
|
-
return c(this, R, Rt({
|
|
559
|
-
initialPromise: s == null ? void 0 : s.initialPromise,
|
|
560
|
-
fn: a.fetchFn,
|
|
561
|
-
abort: r.abort.bind(r),
|
|
562
|
-
onSuccess: (h) => {
|
|
563
|
-
var m, S, w, f;
|
|
564
|
-
if (h === void 0) {
|
|
565
|
-
process.env.NODE_ENV !== "production" && console.error(
|
|
566
|
-
`Query data cannot be undefined. Please make sure to return a value other than undefined from your query function. Affected query key: ${this.queryHash}`
|
|
567
|
-
), o(new Error(`${this.queryHash} data is undefined`));
|
|
568
|
-
return;
|
|
569
|
-
}
|
|
570
|
-
try {
|
|
571
|
-
this.setData(h);
|
|
572
|
-
} catch (g) {
|
|
573
|
-
o(g);
|
|
574
|
-
return;
|
|
575
|
-
}
|
|
576
|
-
(S = (m = i(this, D).config).onSuccess) == null || S.call(m, h, this), (f = (w = i(this, D).config).onSettled) == null || f.call(
|
|
577
|
-
w,
|
|
578
|
-
h,
|
|
579
|
-
this.state.error,
|
|
580
|
-
this
|
|
581
|
-
), this.scheduleGc();
|
|
582
|
-
},
|
|
583
|
-
onError: o,
|
|
584
|
-
onFail: (h, m) => {
|
|
585
|
-
b(this, T, k).call(this, { type: "failed", failureCount: h, error: m });
|
|
586
|
-
},
|
|
587
|
-
onPause: () => {
|
|
588
|
-
b(this, T, k).call(this, { type: "pause" });
|
|
589
|
-
},
|
|
590
|
-
onContinue: () => {
|
|
591
|
-
b(this, T, k).call(this, { type: "continue" });
|
|
592
|
-
},
|
|
593
|
-
retry: a.options.retry,
|
|
594
|
-
retryDelay: a.options.retryDelay,
|
|
595
|
-
networkMode: a.options.networkMode,
|
|
596
|
-
canRun: () => !0
|
|
597
|
-
})), i(this, R).start();
|
|
598
|
-
}
|
|
599
|
-
}, ee = new WeakMap(), te = new WeakMap(), D = new WeakMap(), R = new WeakMap(), oe = new WeakMap(), H = new WeakMap(), T = new WeakSet(), k = function(e) {
|
|
600
|
-
const s = (r) => {
|
|
601
|
-
switch (e.type) {
|
|
602
|
-
case "failed":
|
|
603
|
-
return {
|
|
604
|
-
...r,
|
|
605
|
-
fetchFailureCount: e.failureCount,
|
|
606
|
-
fetchFailureReason: e.error
|
|
607
|
-
};
|
|
608
|
-
case "pause":
|
|
609
|
-
return {
|
|
610
|
-
...r,
|
|
611
|
-
fetchStatus: "paused"
|
|
612
|
-
};
|
|
613
|
-
case "continue":
|
|
614
|
-
return {
|
|
615
|
-
...r,
|
|
616
|
-
fetchStatus: "fetching"
|
|
617
|
-
};
|
|
618
|
-
case "fetch":
|
|
619
|
-
return {
|
|
620
|
-
...r,
|
|
621
|
-
...it(r.data, this.options),
|
|
622
|
-
fetchMeta: e.meta ?? null
|
|
623
|
-
};
|
|
624
|
-
case "success":
|
|
625
|
-
return {
|
|
626
|
-
...r,
|
|
627
|
-
data: e.data,
|
|
628
|
-
dataUpdateCount: r.dataUpdateCount + 1,
|
|
629
|
-
dataUpdatedAt: e.dataUpdatedAt ?? Date.now(),
|
|
630
|
-
error: null,
|
|
631
|
-
isInvalidated: !1,
|
|
632
|
-
status: "success",
|
|
633
|
-
...!e.manual && {
|
|
634
|
-
fetchStatus: "idle",
|
|
635
|
-
fetchFailureCount: 0,
|
|
636
|
-
fetchFailureReason: null
|
|
637
|
-
}
|
|
638
|
-
};
|
|
639
|
-
case "error":
|
|
640
|
-
const n = e.error;
|
|
641
|
-
return me(n) && n.revert && i(this, te) ? { ...i(this, te), fetchStatus: "idle" } : {
|
|
642
|
-
...r,
|
|
643
|
-
error: n,
|
|
644
|
-
errorUpdateCount: r.errorUpdateCount + 1,
|
|
645
|
-
errorUpdatedAt: Date.now(),
|
|
646
|
-
fetchFailureCount: r.fetchFailureCount + 1,
|
|
647
|
-
fetchFailureReason: n,
|
|
648
|
-
fetchStatus: "idle",
|
|
649
|
-
status: "error"
|
|
650
|
-
};
|
|
651
|
-
case "invalidate":
|
|
652
|
-
return {
|
|
653
|
-
...r,
|
|
654
|
-
isInvalidated: !0
|
|
655
|
-
};
|
|
656
|
-
case "setState":
|
|
657
|
-
return {
|
|
658
|
-
...r,
|
|
659
|
-
...e.state
|
|
660
|
-
};
|
|
661
|
-
}
|
|
662
|
-
};
|
|
663
|
-
this.state = s(this.state), Ae.batch(() => {
|
|
664
|
-
this.observers.forEach((r) => {
|
|
665
|
-
r.onQueryUpdate();
|
|
666
|
-
}), i(this, D).notify({ query: this, type: "updated", action: e });
|
|
667
|
-
});
|
|
668
|
-
}, Ze);
|
|
669
|
-
function it(t, e) {
|
|
670
|
-
return {
|
|
671
|
-
fetchFailureCount: 0,
|
|
672
|
-
fetchFailureReason: null,
|
|
673
|
-
fetchStatus: st(e.networkMode) ? "fetching" : "paused",
|
|
674
|
-
...t === void 0 && {
|
|
675
|
-
error: null,
|
|
676
|
-
status: "pending"
|
|
677
|
-
}
|
|
678
|
-
};
|
|
679
|
-
}
|
|
680
|
-
function Ot(t) {
|
|
681
|
-
const e = typeof t.initialData == "function" ? t.initialData() : t.initialData, s = e !== void 0, r = s ? typeof t.initialDataUpdatedAt == "function" ? t.initialDataUpdatedAt() : t.initialDataUpdatedAt : 0;
|
|
682
|
-
return {
|
|
683
|
-
data: e,
|
|
684
|
-
dataUpdateCount: 0,
|
|
685
|
-
dataUpdatedAt: s ? r ?? Date.now() : 0,
|
|
686
|
-
error: null,
|
|
687
|
-
errorUpdateCount: 0,
|
|
688
|
-
errorUpdatedAt: 0,
|
|
689
|
-
fetchFailureCount: 0,
|
|
690
|
-
fetchFailureReason: null,
|
|
691
|
-
fetchMeta: null,
|
|
692
|
-
isInvalidated: !1,
|
|
693
|
-
status: s ? "success" : "pending",
|
|
694
|
-
fetchStatus: "idle"
|
|
695
|
-
};
|
|
696
|
-
}
|
|
697
|
-
var F, d, ue, O, B, se, L, x, he, re, ie, G, z, M, ne, p, ae, Pe, De, Ie, Te, qe, je, xe, at, Xe, nt = (Xe = class extends ke {
|
|
698
|
-
constructor(e, s) {
|
|
699
|
-
super();
|
|
700
|
-
y(this, p);
|
|
701
|
-
y(this, F);
|
|
702
|
-
y(this, d);
|
|
703
|
-
y(this, ue);
|
|
704
|
-
y(this, O);
|
|
705
|
-
y(this, B);
|
|
706
|
-
y(this, se);
|
|
707
|
-
y(this, L);
|
|
708
|
-
y(this, x);
|
|
709
|
-
y(this, he);
|
|
710
|
-
y(this, re);
|
|
711
|
-
// This property keeps track of the last query with defined data.
|
|
712
|
-
// It will be used to pass the previous data and query to the placeholder function between renders.
|
|
713
|
-
y(this, ie);
|
|
714
|
-
y(this, G);
|
|
715
|
-
y(this, z);
|
|
716
|
-
y(this, M);
|
|
717
|
-
y(this, ne, /* @__PURE__ */ new Set());
|
|
718
|
-
this.options = s, c(this, F, e), c(this, x, null), c(this, L, Fe()), this.options.experimental_prefetchInRender || i(this, L).reject(
|
|
719
|
-
new Error("experimental_prefetchInRender feature flag is not enabled")
|
|
720
|
-
), this.bindMethods(), this.setOptions(s);
|
|
721
|
-
}
|
|
722
|
-
bindMethods() {
|
|
723
|
-
this.refetch = this.refetch.bind(this);
|
|
724
|
-
}
|
|
725
|
-
onSubscribe() {
|
|
726
|
-
this.listeners.size === 1 && (i(this, d).addObserver(this), Ge(i(this, d), this.options) ? b(this, p, ae).call(this) : this.updateResult(), b(this, p, Te).call(this));
|
|
727
|
-
}
|
|
728
|
-
onUnsubscribe() {
|
|
729
|
-
this.hasListeners() || this.destroy();
|
|
730
|
-
}
|
|
731
|
-
shouldFetchOnReconnect() {
|
|
732
|
-
return Ue(
|
|
733
|
-
i(this, d),
|
|
734
|
-
this.options,
|
|
735
|
-
this.options.refetchOnReconnect
|
|
736
|
-
);
|
|
737
|
-
}
|
|
738
|
-
shouldFetchOnWindowFocus() {
|
|
739
|
-
return Ue(
|
|
740
|
-
i(this, d),
|
|
741
|
-
this.options,
|
|
742
|
-
this.options.refetchOnWindowFocus
|
|
743
|
-
);
|
|
744
|
-
}
|
|
745
|
-
destroy() {
|
|
746
|
-
this.listeners = /* @__PURE__ */ new Set(), b(this, p, qe).call(this), b(this, p, je).call(this), i(this, d).removeObserver(this);
|
|
747
|
-
}
|
|
748
|
-
setOptions(e, s) {
|
|
749
|
-
const r = this.options, n = i(this, d);
|
|
750
|
-
if (this.options = i(this, F).defaultQueryOptions(e), this.options.enabled !== void 0 && typeof this.options.enabled != "boolean" && typeof this.options.enabled != "function" && typeof q(this.options.enabled, i(this, d)) != "boolean")
|
|
751
|
-
throw new Error(
|
|
752
|
-
"Expected enabled to be a boolean or a callback that returns a boolean"
|
|
753
|
-
);
|
|
754
|
-
b(this, p, xe).call(this), i(this, d).setOptions(this.options), r._defaulted && !we(this.options, r) && i(this, F).getQueryCache().notify({
|
|
755
|
-
type: "observerOptionsUpdated",
|
|
756
|
-
query: i(this, d),
|
|
757
|
-
observer: this
|
|
758
|
-
});
|
|
759
|
-
const u = this.hasListeners();
|
|
760
|
-
u && ze(
|
|
761
|
-
i(this, d),
|
|
762
|
-
n,
|
|
763
|
-
this.options,
|
|
764
|
-
r
|
|
765
|
-
) && b(this, p, ae).call(this), this.updateResult(s), u && (i(this, d) !== n || q(this.options.enabled, i(this, d)) !== q(r.enabled, i(this, d)) || fe(this.options.staleTime, i(this, d)) !== fe(r.staleTime, i(this, d))) && b(this, p, Pe).call(this);
|
|
766
|
-
const a = b(this, p, De).call(this);
|
|
767
|
-
u && (i(this, d) !== n || q(this.options.enabled, i(this, d)) !== q(r.enabled, i(this, d)) || a !== i(this, M)) && b(this, p, Ie).call(this, a);
|
|
768
|
-
}
|
|
769
|
-
getOptimisticResult(e) {
|
|
770
|
-
const s = i(this, F).getQueryCache().build(i(this, F), e), r = this.createResult(s, e);
|
|
771
|
-
return Pt(this, r) && (c(this, O, r), c(this, se, this.options), c(this, B, i(this, d).state)), r;
|
|
772
|
-
}
|
|
773
|
-
getCurrentResult() {
|
|
774
|
-
return i(this, O);
|
|
775
|
-
}
|
|
776
|
-
trackResult(e, s) {
|
|
777
|
-
const r = {};
|
|
778
|
-
return Object.keys(e).forEach((n) => {
|
|
779
|
-
Object.defineProperty(r, n, {
|
|
780
|
-
configurable: !1,
|
|
781
|
-
enumerable: !0,
|
|
782
|
-
get: () => (this.trackProp(n), s == null || s(n), e[n])
|
|
783
|
-
});
|
|
784
|
-
}), r;
|
|
785
|
-
}
|
|
786
|
-
trackProp(e) {
|
|
787
|
-
i(this, ne).add(e);
|
|
788
|
-
}
|
|
789
|
-
getCurrentQuery() {
|
|
790
|
-
return i(this, d);
|
|
791
|
-
}
|
|
792
|
-
refetch({ ...e } = {}) {
|
|
793
|
-
return this.fetch({
|
|
794
|
-
...e
|
|
795
|
-
});
|
|
796
|
-
}
|
|
797
|
-
fetchOptimistic(e) {
|
|
798
|
-
const s = i(this, F).defaultQueryOptions(e), r = i(this, F).getQueryCache().build(i(this, F), s);
|
|
799
|
-
return r.fetch().then(() => this.createResult(r, s));
|
|
800
|
-
}
|
|
801
|
-
fetch(e) {
|
|
802
|
-
return b(this, p, ae).call(this, {
|
|
803
|
-
...e,
|
|
804
|
-
cancelRefetch: e.cancelRefetch ?? !0
|
|
805
|
-
}).then(() => (this.updateResult(), i(this, O)));
|
|
806
|
-
}
|
|
807
|
-
createResult(e, s) {
|
|
808
|
-
var Ke;
|
|
809
|
-
const r = i(this, d), n = this.options, u = i(this, O), a = i(this, B), o = i(this, se), C = e !== r ? e.state : i(this, ue), { state: v } = e;
|
|
810
|
-
let h = { ...v }, m = !1, S;
|
|
811
|
-
if (s._optimisticResults) {
|
|
812
|
-
const E = this.hasListeners(), W = !E && Ge(e, s), J = E && ze(e, r, s, n);
|
|
813
|
-
(W || J) && (h = {
|
|
814
|
-
...h,
|
|
815
|
-
...it(v.data, e.options)
|
|
816
|
-
}), s._optimisticResults === "isRestoring" && (h.fetchStatus = "idle");
|
|
817
|
-
}
|
|
818
|
-
let { error: w, errorUpdatedAt: f, status: g } = h;
|
|
819
|
-
if (s.select && h.data !== void 0)
|
|
820
|
-
if (u && h.data === (a == null ? void 0 : a.data) && s.select === i(this, he))
|
|
821
|
-
S = i(this, re);
|
|
822
|
-
else
|
|
823
|
-
try {
|
|
824
|
-
c(this, he, s.select), S = s.select(h.data), S = Oe(u == null ? void 0 : u.data, S, s), c(this, re, S), c(this, x, null);
|
|
825
|
-
} catch (E) {
|
|
826
|
-
c(this, x, E);
|
|
827
|
-
}
|
|
828
|
-
else
|
|
829
|
-
S = h.data;
|
|
830
|
-
if (s.placeholderData !== void 0 && S === void 0 && g === "pending") {
|
|
831
|
-
let E;
|
|
832
|
-
if (u != null && u.isPlaceholderData && s.placeholderData === (o == null ? void 0 : o.placeholderData))
|
|
833
|
-
E = u.data;
|
|
834
|
-
else if (E = typeof s.placeholderData == "function" ? s.placeholderData(
|
|
835
|
-
(Ke = i(this, ie)) == null ? void 0 : Ke.state.data,
|
|
836
|
-
i(this, ie)
|
|
837
|
-
) : s.placeholderData, s.select && E !== void 0)
|
|
838
|
-
try {
|
|
839
|
-
E = s.select(E), c(this, x, null);
|
|
840
|
-
} catch (W) {
|
|
841
|
-
c(this, x, W);
|
|
842
|
-
}
|
|
843
|
-
E !== void 0 && (g = "success", S = Oe(
|
|
844
|
-
u == null ? void 0 : u.data,
|
|
845
|
-
E,
|
|
846
|
-
s
|
|
847
|
-
), m = !0);
|
|
848
|
-
}
|
|
849
|
-
i(this, x) && (w = i(this, x), S = i(this, re), f = Date.now(), g = "error");
|
|
850
|
-
const P = h.fetchStatus === "fetching", U = g === "pending", N = g === "error", ce = U && P, le = S !== void 0, j = {
|
|
851
|
-
status: g,
|
|
852
|
-
fetchStatus: h.fetchStatus,
|
|
853
|
-
isPending: U,
|
|
854
|
-
isSuccess: g === "success",
|
|
855
|
-
isError: N,
|
|
856
|
-
isInitialLoading: ce,
|
|
857
|
-
isLoading: ce,
|
|
858
|
-
data: S,
|
|
859
|
-
dataUpdatedAt: h.dataUpdatedAt,
|
|
860
|
-
error: w,
|
|
861
|
-
errorUpdatedAt: f,
|
|
862
|
-
failureCount: h.fetchFailureCount,
|
|
863
|
-
failureReason: h.fetchFailureReason,
|
|
864
|
-
errorUpdateCount: h.errorUpdateCount,
|
|
865
|
-
isFetched: h.dataUpdateCount > 0 || h.errorUpdateCount > 0,
|
|
866
|
-
isFetchedAfterMount: h.dataUpdateCount > C.dataUpdateCount || h.errorUpdateCount > C.errorUpdateCount,
|
|
867
|
-
isFetching: P,
|
|
868
|
-
isRefetching: P && !U,
|
|
869
|
-
isLoadingError: N && !le,
|
|
870
|
-
isPaused: h.fetchStatus === "paused",
|
|
871
|
-
isPlaceholderData: m,
|
|
872
|
-
isRefetchError: N && le,
|
|
873
|
-
isStale: Le(e, s),
|
|
874
|
-
refetch: this.refetch,
|
|
875
|
-
promise: i(this, L)
|
|
876
|
-
};
|
|
877
|
-
if (this.options.experimental_prefetchInRender) {
|
|
878
|
-
const E = (de) => {
|
|
879
|
-
j.status === "error" ? de.reject(j.error) : j.data !== void 0 && de.resolve(j.data);
|
|
880
|
-
}, W = () => {
|
|
881
|
-
const de = c(this, L, j.promise = Fe());
|
|
882
|
-
E(de);
|
|
883
|
-
}, J = i(this, L);
|
|
884
|
-
switch (J.status) {
|
|
885
|
-
case "pending":
|
|
886
|
-
e.queryHash === r.queryHash && E(J);
|
|
887
|
-
break;
|
|
888
|
-
case "fulfilled":
|
|
889
|
-
(j.status === "error" || j.data !== J.value) && W();
|
|
890
|
-
break;
|
|
891
|
-
case "rejected":
|
|
892
|
-
(j.status !== "error" || j.error !== J.reason) && W();
|
|
893
|
-
break;
|
|
894
|
-
}
|
|
895
|
-
}
|
|
896
|
-
return j;
|
|
897
|
-
}
|
|
898
|
-
updateResult(e) {
|
|
899
|
-
const s = i(this, O), r = this.createResult(i(this, d), this.options);
|
|
900
|
-
if (c(this, B, i(this, d).state), c(this, se, this.options), i(this, B).data !== void 0 && c(this, ie, i(this, d)), we(r, s))
|
|
901
|
-
return;
|
|
902
|
-
c(this, O, r);
|
|
903
|
-
const n = {}, u = () => {
|
|
904
|
-
if (!s)
|
|
905
|
-
return !0;
|
|
906
|
-
const { notifyOnChangeProps: a } = this.options, o = typeof a == "function" ? a() : a;
|
|
907
|
-
if (o === "all" || !o && !i(this, ne).size)
|
|
908
|
-
return !0;
|
|
909
|
-
const l = new Set(
|
|
910
|
-
o ?? i(this, ne)
|
|
911
|
-
);
|
|
912
|
-
return this.options.throwOnError && l.add("error"), Object.keys(i(this, O)).some((C) => {
|
|
913
|
-
const v = C;
|
|
914
|
-
return i(this, O)[v] !== s[v] && l.has(v);
|
|
915
|
-
});
|
|
916
|
-
};
|
|
917
|
-
(e == null ? void 0 : e.listeners) !== !1 && u() && (n.listeners = !0), b(this, p, at).call(this, { ...n, ...e });
|
|
918
|
-
}
|
|
919
|
-
onQueryUpdate() {
|
|
920
|
-
this.updateResult(), this.hasListeners() && b(this, p, Te).call(this);
|
|
921
|
-
}
|
|
922
|
-
}, F = new WeakMap(), d = new WeakMap(), ue = new WeakMap(), O = new WeakMap(), B = new WeakMap(), se = new WeakMap(), L = new WeakMap(), x = new WeakMap(), he = new WeakMap(), re = new WeakMap(), ie = new WeakMap(), G = new WeakMap(), z = new WeakMap(), M = new WeakMap(), ne = new WeakMap(), p = new WeakSet(), ae = function(e) {
|
|
923
|
-
b(this, p, xe).call(this);
|
|
924
|
-
let s = i(this, d).fetch(
|
|
925
|
-
this.options,
|
|
926
|
-
e
|
|
927
|
-
);
|
|
928
|
-
return e != null && e.throwOnError || (s = s.catch(ge)), s;
|
|
929
|
-
}, Pe = function() {
|
|
930
|
-
b(this, p, qe).call(this);
|
|
931
|
-
const e = fe(
|
|
932
|
-
this.options.staleTime,
|
|
933
|
-
i(this, d)
|
|
934
|
-
);
|
|
935
|
-
if (V || i(this, O).isStale || !Ce(e))
|
|
936
|
-
return;
|
|
937
|
-
const r = Ye(i(this, O).dataUpdatedAt, e) + 1;
|
|
938
|
-
c(this, G, setTimeout(() => {
|
|
939
|
-
i(this, O).isStale || this.updateResult();
|
|
940
|
-
}, r));
|
|
941
|
-
}, De = function() {
|
|
942
|
-
return (typeof this.options.refetchInterval == "function" ? this.options.refetchInterval(i(this, d)) : this.options.refetchInterval) ?? !1;
|
|
943
|
-
}, Ie = function(e) {
|
|
944
|
-
b(this, p, je).call(this), c(this, M, e), !(V || q(this.options.enabled, i(this, d)) === !1 || !Ce(i(this, M)) || i(this, M) === 0) && c(this, z, setInterval(() => {
|
|
945
|
-
(this.options.refetchIntervalInBackground || et.isFocused()) && b(this, p, ae).call(this);
|
|
946
|
-
}, i(this, M)));
|
|
947
|
-
}, Te = function() {
|
|
948
|
-
b(this, p, Pe).call(this), b(this, p, Ie).call(this, b(this, p, De).call(this));
|
|
949
|
-
}, qe = function() {
|
|
950
|
-
i(this, G) && (clearTimeout(i(this, G)), c(this, G, void 0));
|
|
951
|
-
}, je = function() {
|
|
952
|
-
i(this, z) && (clearInterval(i(this, z)), c(this, z, void 0));
|
|
953
|
-
}, xe = function() {
|
|
954
|
-
const e = i(this, F).getQueryCache().build(i(this, F), this.options);
|
|
955
|
-
if (e === i(this, d))
|
|
956
|
-
return;
|
|
957
|
-
const s = i(this, d);
|
|
958
|
-
c(this, d, e), c(this, ue, e.state), this.hasListeners() && (s == null || s.removeObserver(this), e.addObserver(this));
|
|
959
|
-
}, at = function(e) {
|
|
960
|
-
Ae.batch(() => {
|
|
961
|
-
e.listeners && this.listeners.forEach((s) => {
|
|
962
|
-
s(i(this, O));
|
|
963
|
-
}), i(this, F).getQueryCache().notify({
|
|
964
|
-
query: i(this, d),
|
|
965
|
-
type: "observerResultsUpdated"
|
|
966
|
-
});
|
|
967
|
-
});
|
|
968
|
-
}, Xe);
|
|
969
|
-
function Ft(t, e) {
|
|
970
|
-
return q(e.enabled, t) !== !1 && t.state.data === void 0 && !(t.state.status === "error" && e.retryOnMount === !1);
|
|
971
|
-
}
|
|
972
|
-
function Ge(t, e) {
|
|
973
|
-
return Ft(t, e) || t.state.data !== void 0 && Ue(t, e, e.refetchOnMount);
|
|
974
|
-
}
|
|
975
|
-
function Ue(t, e, s) {
|
|
976
|
-
if (q(e.enabled, t) !== !1) {
|
|
977
|
-
const r = typeof s == "function" ? s(t) : s;
|
|
978
|
-
return r === "always" || r !== !1 && Le(t, e);
|
|
979
|
-
}
|
|
980
|
-
return !1;
|
|
981
|
-
}
|
|
982
|
-
function ze(t, e, s, r) {
|
|
983
|
-
return (t !== e || q(r.enabled, t) === !1) && (!s.suspense || t.state.status !== "error") && Le(t, s);
|
|
984
|
-
}
|
|
985
|
-
function Le(t, e) {
|
|
986
|
-
return q(e.enabled, t) !== !1 && t.isStaleByTime(fe(e.staleTime, t));
|
|
987
|
-
}
|
|
988
|
-
function Pt(t, e) {
|
|
989
|
-
return !we(t.getCurrentResult(), e);
|
|
990
|
-
}
|
|
991
|
-
var ot = I.createContext(
|
|
992
|
-
void 0
|
|
993
|
-
), Dt = (t) => {
|
|
994
|
-
const e = I.useContext(ot);
|
|
995
|
-
if (!e)
|
|
996
|
-
throw new Error("No QueryClient set, use QueryClientProvider to set one");
|
|
997
|
-
return e;
|
|
998
|
-
}, ss = ({
|
|
999
|
-
client: t,
|
|
1000
|
-
children: e
|
|
1001
|
-
}) => (I.useEffect(() => (t.mount(), () => {
|
|
1002
|
-
t.unmount();
|
|
1003
|
-
}), [t]), /* @__PURE__ */ yt.jsx(ot.Provider, { value: t, children: e })), ut = I.createContext(!1), It = () => I.useContext(ut);
|
|
1004
|
-
ut.Provider;
|
|
1005
|
-
function Tt() {
|
|
1006
|
-
let t = !1;
|
|
1007
|
-
return {
|
|
1008
|
-
clearReset: () => {
|
|
1009
|
-
t = !1;
|
|
1010
|
-
},
|
|
1011
|
-
reset: () => {
|
|
1012
|
-
t = !0;
|
|
1013
|
-
},
|
|
1014
|
-
isReset: () => t
|
|
1015
|
-
};
|
|
1016
|
-
}
|
|
1017
|
-
var qt = I.createContext(Tt()), jt = () => I.useContext(qt);
|
|
1018
|
-
function xt(t, e) {
|
|
1019
|
-
return typeof t == "function" ? t(...e) : !!t;
|
|
1020
|
-
}
|
|
1021
|
-
function Ut() {
|
|
1022
|
-
}
|
|
1023
|
-
var kt = (t, e) => {
|
|
1024
|
-
(t.suspense || t.throwOnError) && (e.isReset() || (t.retryOnMount = !1));
|
|
1025
|
-
}, Qt = (t) => {
|
|
1026
|
-
I.useEffect(() => {
|
|
1027
|
-
t.clearReset();
|
|
1028
|
-
}, [t]);
|
|
1029
|
-
}, At = ({
|
|
1030
|
-
result: t,
|
|
1031
|
-
errorResetBoundary: e,
|
|
1032
|
-
throwOnError: s,
|
|
1033
|
-
query: r
|
|
1034
|
-
}) => t.isError && !e.isReset() && !t.isFetching && r && xt(s, [t.error, r]), Lt = (t, e) => e.state.data === void 0, Mt = (t) => {
|
|
1035
|
-
t.suspense && (typeof t.staleTime != "number" && (t.staleTime = 1e3), typeof t.gcTime == "number" && (t.gcTime = Math.max(t.gcTime, 1e3)));
|
|
1036
|
-
}, Nt = (t, e) => t.isLoading && t.isFetching && !e, Kt = (t, e) => (t == null ? void 0 : t.suspense) && e.isPending, Ve = (t, e, s) => e.fetchOptimistic(t).catch(() => {
|
|
1037
|
-
s.clearReset();
|
|
1038
|
-
});
|
|
1039
|
-
function ht(t, e, s) {
|
|
1040
|
-
var v, h, m, S, w;
|
|
1041
|
-
if (process.env.NODE_ENV !== "production" && (typeof t != "object" || Array.isArray(t)))
|
|
1042
|
-
throw new Error(
|
|
1043
|
-
'Bad argument type. Starting with v5, only the "Object" form is allowed when calling query related functions. Please use the error stack to find the culprit call. More info here: https://tanstack.com/query/latest/docs/react/guides/migrating-to-v5#supports-a-single-signature-one-object'
|
|
1044
|
-
);
|
|
1045
|
-
const r = Dt(), n = It(), u = jt(), a = r.defaultQueryOptions(t);
|
|
1046
|
-
(h = (v = r.getDefaultOptions().queries) == null ? void 0 : v._experimental_beforeQuery) == null || h.call(
|
|
1047
|
-
v,
|
|
1048
|
-
a
|
|
1049
|
-
), a._optimisticResults = n ? "isRestoring" : "optimistic", Mt(a), kt(a, u), Qt(u);
|
|
1050
|
-
const o = !r.getQueryCache().get(a.queryHash), [l] = I.useState(
|
|
1051
|
-
() => new e(
|
|
1052
|
-
r,
|
|
1053
|
-
a
|
|
1054
|
-
)
|
|
1055
|
-
), C = l.getOptimisticResult(a);
|
|
1056
|
-
if (I.useSyncExternalStore(
|
|
1057
|
-
I.useCallback(
|
|
1058
|
-
(f) => {
|
|
1059
|
-
const g = n ? () => {
|
|
1060
|
-
} : l.subscribe(Ae.batchCalls(f));
|
|
1061
|
-
return l.updateResult(), g;
|
|
1062
|
-
},
|
|
1063
|
-
[l, n]
|
|
1064
|
-
),
|
|
1065
|
-
() => l.getCurrentResult(),
|
|
1066
|
-
() => l.getCurrentResult()
|
|
1067
|
-
), I.useEffect(() => {
|
|
1068
|
-
l.setOptions(a, { listeners: !1 });
|
|
1069
|
-
}, [a, l]), Kt(a, C))
|
|
1070
|
-
throw Ve(a, l, u);
|
|
1071
|
-
if (At({
|
|
1072
|
-
result: C,
|
|
1073
|
-
errorResetBoundary: u,
|
|
1074
|
-
throwOnError: a.throwOnError,
|
|
1075
|
-
query: r.getQueryCache().get(a.queryHash)
|
|
1076
|
-
}))
|
|
1077
|
-
throw C.error;
|
|
1078
|
-
if ((S = (m = r.getDefaultOptions().queries) == null ? void 0 : m._experimental_afterQuery) == null || S.call(
|
|
1079
|
-
m,
|
|
1080
|
-
a,
|
|
1081
|
-
C
|
|
1082
|
-
), a.experimental_prefetchInRender && !V && Nt(C, n)) {
|
|
1083
|
-
const f = o ? (
|
|
1084
|
-
// Fetch immediately on render in order to ensure `.promise` is resolved even if the component is unmounted
|
|
1085
|
-
Ve(a, l, u)
|
|
1086
|
-
) : (
|
|
1087
|
-
// subscribe to the "cache promise" so that we can finalize the currentThenable once data comes in
|
|
1088
|
-
(w = r.getQueryCache().get(a.queryHash)) == null ? void 0 : w.promise
|
|
1089
|
-
);
|
|
1090
|
-
f == null || f.catch(Ut).finally(() => {
|
|
1091
|
-
l.hasListeners() || l.updateResult();
|
|
1092
|
-
});
|
|
1093
|
-
}
|
|
1094
|
-
return a.notifyOnChangeProps ? C : l.trackResult(C);
|
|
1095
|
-
}
|
|
1096
|
-
function _t(t, e) {
|
|
1097
|
-
return ht(t, nt);
|
|
1098
|
-
}
|
|
1099
|
-
function Ht(t, e) {
|
|
1100
|
-
return process.env.NODE_ENV !== "production" && t.queryFn === ye && console.error("skipToken is not allowed for useSuspenseQuery"), ht(
|
|
1101
|
-
{
|
|
1102
|
-
...t,
|
|
1103
|
-
enabled: !0,
|
|
1104
|
-
suspense: !0,
|
|
1105
|
-
throwOnError: Lt,
|
|
1106
|
-
placeholderData: void 0
|
|
1107
|
-
},
|
|
1108
|
-
nt
|
|
1109
|
-
);
|
|
1110
|
-
}
|
|
1111
|
-
const $ = (...t) => {
|
|
1112
|
-
const e = t.filter((s) => !!s).map((s) => s.replace(/(^\/+|\/+$)/g, "")).join("/").replace(/(^\/+|\/+$)/g, "");
|
|
1113
|
-
return e ? `/${e}` : "/";
|
|
1114
|
-
}, Me = (t, e) => {
|
|
1115
|
-
for (const s of t) {
|
|
1116
|
-
const r = Ne(s, e);
|
|
1117
|
-
if (r !== void 0) return r;
|
|
1118
|
-
}
|
|
1119
|
-
}, Ne = (t, e, s = []) => {
|
|
1120
|
-
const r = e(t, s);
|
|
1121
|
-
if (r !== void 0) return r;
|
|
1122
|
-
if (t.type === "category")
|
|
1123
|
-
for (const n of t.items) {
|
|
1124
|
-
const u = Ne(n, e, [
|
|
1125
|
-
...s,
|
|
1126
|
-
t
|
|
1127
|
-
]);
|
|
1128
|
-
if (u !== void 0) return u;
|
|
1129
|
-
}
|
|
1130
|
-
}, rs = () => {
|
|
1131
|
-
const t = pe(), s = lt().data.sidebar;
|
|
1132
|
-
return Me(s, (r) => {
|
|
1133
|
-
if (r.type === "doc" && $(r.id) === t.pathname)
|
|
1134
|
-
return r;
|
|
1135
|
-
});
|
|
1136
|
-
}, is = (t) => {
|
|
1137
|
-
const e = pe();
|
|
1138
|
-
return Ne(t, (s) => {
|
|
1139
|
-
if (s.type === "category" && s.link && $(s.link.id) === e.pathname || s.type === "doc" && $(s.id) === e.pathname)
|
|
1140
|
-
return !0;
|
|
1141
|
-
});
|
|
1142
|
-
}, ns = () => {
|
|
1143
|
-
const t = pe().pathname, s = lt().data.sidebar;
|
|
1144
|
-
let r, n, u = !1;
|
|
1145
|
-
return Me(s, (a) => {
|
|
1146
|
-
const o = a.type === "doc" ? $(a.id) : a.type === "category" && a.link ? $(a.link.id) : void 0;
|
|
1147
|
-
if (o) {
|
|
1148
|
-
if (u)
|
|
1149
|
-
return n = { label: a.label, id: o }, !0;
|
|
1150
|
-
t === o ? u = !0 : r = { label: a.label, id: o };
|
|
1151
|
-
}
|
|
1152
|
-
}), { prev: r, next: n };
|
|
1153
|
-
}, Bt = dt(
|
|
1154
|
-
void 0
|
|
1155
|
-
), ct = () => {
|
|
1156
|
-
const t = ft(Bt);
|
|
1157
|
-
if (!t)
|
|
1158
|
-
throw new Error("useDevPortal must be used within a DevPortalProvider.");
|
|
1159
|
-
return t;
|
|
1160
|
-
}, as = () => {
|
|
1161
|
-
const { getApiIdentities: t } = ct();
|
|
1162
|
-
return _t({
|
|
1163
|
-
queryFn: t,
|
|
1164
|
-
queryKey: ["api-identities"]
|
|
1165
|
-
});
|
|
1166
|
-
}, lt = () => {
|
|
1167
|
-
const { getPluginSidebar: t, sidebars: e, topNavigation: s } = ct(), r = pe(), n = Object.entries(e).find(([, a]) => Me(a, (o) => {
|
|
1168
|
-
if ((o.type === "doc" ? $(o.id) : o.type === "category" && o.link ? $(o.link.id) : void 0) === r.pathname)
|
|
1169
|
-
return o;
|
|
1170
|
-
})), u = s.find((a) => a.id === (n == null ? void 0 : n[0])) ?? s.find((a) => pt(a.id, r.pathname));
|
|
1171
|
-
return Ht({
|
|
1172
|
-
queryFn: async () => {
|
|
1173
|
-
const a = await t(r.pathname);
|
|
1174
|
-
return {
|
|
1175
|
-
sidebar: [
|
|
1176
|
-
...n ? n[1] : [],
|
|
1177
|
-
...a
|
|
1178
|
-
],
|
|
1179
|
-
topNavItem: u
|
|
1180
|
-
};
|
|
1181
|
-
},
|
|
1182
|
-
queryKey: ["navigation", r.pathname]
|
|
1183
|
-
});
|
|
1184
|
-
};
|
|
1185
|
-
export {
|
|
1186
|
-
Me as A,
|
|
1187
|
-
ss as B,
|
|
1188
|
-
is as C,
|
|
1189
|
-
as as D,
|
|
1190
|
-
_t as E,
|
|
1191
|
-
ts as Q,
|
|
1192
|
-
Et as R,
|
|
1193
|
-
ke as S,
|
|
1194
|
-
Bt as Z,
|
|
1195
|
-
rs as a,
|
|
1196
|
-
ns as b,
|
|
1197
|
-
Rt as c,
|
|
1198
|
-
Dt as d,
|
|
1199
|
-
Ut as e,
|
|
1200
|
-
xt as f,
|
|
1201
|
-
Ht as g,
|
|
1202
|
-
Se as h,
|
|
1203
|
-
vt as i,
|
|
1204
|
-
Xt as j,
|
|
1205
|
-
ge as k,
|
|
1206
|
-
mt as l,
|
|
1207
|
-
Zt as m,
|
|
1208
|
-
Ae as n,
|
|
1209
|
-
es as o,
|
|
1210
|
-
Yt as p,
|
|
1211
|
-
et as q,
|
|
1212
|
-
tt as r,
|
|
1213
|
-
we as s,
|
|
1214
|
-
fe as t,
|
|
1215
|
-
ct as u,
|
|
1216
|
-
Jt as v,
|
|
1217
|
-
Qe as w,
|
|
1218
|
-
ye as x,
|
|
1219
|
-
$ as y,
|
|
1220
|
-
lt as z
|
|
1221
|
-
};
|
|
1222
|
-
//# sourceMappingURL=ZudokuContext-BKXGJTmu.js.map
|