zudoku 0.0.0-feat-bundled-types.9aa135e → 0.0.0-feat-openapi-docs-redesign.dab3fc6a
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 +33 -13
- package/cli.js +1 -0
- package/client.d.ts +8 -0
- package/dist/app/ZuploBuildConfig.d.ts +10 -120
- package/dist/app/ZuploBuildConfig.js +7 -7
- package/dist/app/ZuploBuildConfig.js.map +1 -1
- package/dist/app/demo.js +22 -6
- package/dist/app/demo.js.map +1 -1
- package/dist/app/entry.client.d.ts +0 -2
- package/dist/app/entry.client.js +6 -7
- package/dist/app/entry.client.js.map +1 -1
- package/dist/app/entry.server.d.ts +0 -2
- package/dist/app/entry.server.js +17 -6
- package/dist/app/entry.server.js.map +1 -1
- package/dist/app/env.d.ts +7 -7
- package/dist/app/env.js +10 -2
- package/dist/app/env.js.map +1 -1
- package/dist/app/main.d.ts +93 -2
- package/dist/app/main.js +31 -26
- package/dist/app/main.js.map +1 -1
- package/dist/app/standalone.js +11 -7
- package/dist/app/standalone.js.map +1 -1
- package/dist/cli/build/handler.js +9 -1
- package/dist/cli/build/handler.js.map +1 -1
- package/dist/cli/cli.d.ts +9 -0
- package/dist/cli/cli.js +5 -10
- package/dist/cli/cli.js.map +1 -1
- package/dist/cli/cmds/build.d.ts +1 -1
- package/dist/cli/cmds/dev.d.ts +1 -1
- package/dist/cli/cmds/preview.d.ts +1 -1
- package/dist/cli/common/analytics/lib.js +1 -1
- package/dist/cli/common/analytics/lib.js.map +1 -1
- package/dist/cli/common/logger.js +0 -1
- package/dist/cli/common/logger.js.map +1 -1
- package/dist/cli/common/machine-id/lib.js +3 -2
- 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 +2 -3
- package/dist/cli/common/output.js.map +1 -1
- package/dist/cli/common/utils/box.js +2 -2
- package/dist/cli/common/utils/box.js.map +1 -1
- package/dist/cli/common/validators/lib.js +1 -1
- package/dist/cli/common/validators/lib.js.map +1 -1
- package/dist/cli/common/version-check.d.ts +2 -0
- package/dist/cli/common/version-check.js +58 -0
- package/dist/cli/common/version-check.js.map +1 -0
- package/dist/cli/dev/handler.js +0 -4
- package/dist/cli/dev/handler.js.map +1 -1
- package/dist/codegen.js +2 -2
- package/dist/codegen.js.map +1 -1
- package/dist/config/config.d.ts +16 -30
- package/dist/config/loader.js +4 -8
- package/dist/config/loader.js.map +1 -1
- package/dist/config/validators/BuildSchema.d.ts +30 -46
- package/dist/config/validators/BuildSchema.js +29 -18
- package/dist/config/validators/BuildSchema.js.map +1 -1
- package/dist/config/validators/InputNavigationSchema.d.ts +7646 -0
- package/dist/config/validators/InputNavigationSchema.js +78 -0
- package/dist/config/validators/InputNavigationSchema.js.map +1 -0
- package/dist/config/validators/InputNavigationSchema.test-d.d.ts +1 -0
- package/dist/config/validators/InputNavigationSchema.test-d.js +146 -0
- package/dist/config/validators/InputNavigationSchema.test-d.js.map +1 -0
- package/dist/config/validators/NavigationSchema.d.ts +44 -0
- package/dist/config/validators/NavigationSchema.js +98 -0
- package/dist/config/validators/NavigationSchema.js.map +1 -0
- package/dist/config/validators/ProtectedRoutesSchema.d.ts +13 -0
- package/dist/config/validators/ProtectedRoutesSchema.js +10 -0
- package/dist/config/validators/ProtectedRoutesSchema.js.map +1 -0
- package/dist/config/validators/auth.d.ts +2 -2
- package/dist/config/validators/auth.js +1 -1
- package/dist/config/validators/auth.js.map +1 -1
- package/dist/config/validators/icon-types.d.ts +2 -1
- package/dist/config/validators/icon-types.js +1872 -1
- package/dist/config/validators/icon-types.js.map +1 -1
- package/dist/config/validators/validate.d.ts +672 -5561
- package/dist/config/validators/validate.js +182 -85
- package/dist/config/validators/validate.js.map +1 -1
- package/dist/config/validators/validate.test.d.ts +1 -0
- package/dist/config/validators/validate.test.js +140 -0
- package/dist/config/validators/validate.test.js.map +1 -0
- package/dist/flat-config.d.ts +378 -0
- package/dist/index.d.ts +12 -6264
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/dist/lib/MissingIcon.d.ts +1 -1
- package/dist/lib/MissingIcon.js.map +1 -1
- package/dist/lib/assets/language-icons/c.d.ts +3 -0
- package/dist/lib/assets/language-icons/c.js +4 -0
- package/dist/lib/assets/language-icons/c.js.map +1 -0
- package/dist/lib/assets/language-icons/commonlisp.d.ts +3 -0
- package/dist/lib/assets/language-icons/commonlisp.js +4 -0
- package/dist/lib/assets/language-icons/commonlisp.js.map +1 -0
- package/dist/lib/assets/language-icons/cpp.d.ts +3 -0
- package/dist/lib/assets/language-icons/cpp.js +4 -0
- package/dist/lib/assets/language-icons/cpp.js.map +1 -0
- package/dist/lib/assets/language-icons/csharp.d.ts +3 -0
- package/dist/lib/assets/language-icons/csharp.js +4 -0
- package/dist/lib/assets/language-icons/csharp.js.map +1 -0
- package/dist/lib/assets/language-icons/css.d.ts +3 -0
- package/dist/lib/assets/language-icons/css.js +4 -0
- package/dist/lib/assets/language-icons/css.js.map +1 -0
- package/dist/lib/assets/language-icons/dart.d.ts +3 -0
- package/dist/lib/assets/language-icons/dart.js +4 -0
- package/dist/lib/assets/language-icons/dart.js.map +1 -0
- package/dist/lib/assets/language-icons/elixir.d.ts +3 -0
- package/dist/lib/assets/language-icons/elixir.js +4 -0
- package/dist/lib/assets/language-icons/elixir.js.map +1 -0
- package/dist/lib/assets/language-icons/go.d.ts +3 -0
- package/dist/lib/assets/language-icons/go.js +4 -0
- package/dist/lib/assets/language-icons/go.js.map +1 -0
- package/dist/lib/assets/language-icons/graphql.d.ts +3 -0
- package/dist/lib/assets/language-icons/graphql.js +4 -0
- package/dist/lib/assets/language-icons/graphql.js.map +1 -0
- package/dist/lib/assets/language-icons/html.d.ts +3 -0
- package/dist/lib/assets/language-icons/html.js +4 -0
- package/dist/lib/assets/language-icons/html.js.map +1 -0
- package/dist/lib/assets/language-icons/java.d.ts +3 -0
- package/dist/lib/assets/language-icons/java.js +4 -0
- package/dist/lib/assets/language-icons/java.js.map +1 -0
- package/dist/lib/assets/language-icons/javascript.d.ts +3 -0
- package/dist/lib/assets/language-icons/javascript.js +4 -0
- package/dist/lib/assets/language-icons/javascript.js.map +1 -0
- package/dist/lib/assets/language-icons/json.d.ts +3 -0
- package/dist/lib/assets/language-icons/json.js +4 -0
- package/dist/lib/assets/language-icons/json.js.map +1 -0
- package/dist/lib/assets/language-icons/kotlin.d.ts +3 -0
- package/dist/lib/assets/language-icons/kotlin.js +4 -0
- package/dist/lib/assets/language-icons/kotlin.js.map +1 -0
- package/dist/lib/assets/language-icons/markdown.d.ts +3 -0
- package/dist/lib/assets/language-icons/markdown.js +4 -0
- package/dist/lib/assets/language-icons/markdown.js.map +1 -0
- package/dist/lib/assets/language-icons/mdx.d.ts +3 -0
- package/dist/lib/assets/language-icons/mdx.js +4 -0
- package/dist/lib/assets/language-icons/mdx.js.map +1 -0
- package/dist/lib/assets/language-icons/objectivec.d.ts +3 -0
- package/dist/lib/assets/language-icons/objectivec.js +4 -0
- package/dist/lib/assets/language-icons/objectivec.js.map +1 -0
- package/dist/lib/assets/language-icons/ocaml.d.ts +3 -0
- package/dist/lib/assets/language-icons/ocaml.js +4 -0
- package/dist/lib/assets/language-icons/ocaml.js.map +1 -0
- package/dist/lib/assets/language-icons/php.d.ts +3 -0
- package/dist/lib/assets/language-icons/php.js +4 -0
- package/dist/lib/assets/language-icons/php.js.map +1 -0
- package/dist/lib/assets/language-icons/powershell.d.ts +3 -0
- package/dist/lib/assets/language-icons/powershell.js +4 -0
- package/dist/lib/assets/language-icons/powershell.js.map +1 -0
- package/dist/lib/assets/language-icons/python.d.ts +3 -0
- package/dist/lib/assets/language-icons/python.js +4 -0
- package/dist/lib/assets/language-icons/python.js.map +1 -0
- package/dist/lib/assets/language-icons/react.d.ts +3 -0
- package/dist/lib/assets/language-icons/react.js +4 -0
- package/dist/lib/assets/language-icons/react.js.map +1 -0
- package/dist/lib/assets/language-icons/ruby.d.ts +3 -0
- package/dist/lib/assets/language-icons/ruby.js +4 -0
- package/dist/lib/assets/language-icons/ruby.js.map +1 -0
- package/dist/lib/assets/language-icons/rust.d.ts +3 -0
- package/dist/lib/assets/language-icons/rust.js +4 -0
- package/dist/lib/assets/language-icons/rust.js.map +1 -0
- package/dist/lib/assets/language-icons/scala.d.ts +3 -0
- package/dist/lib/assets/language-icons/scala.js +4 -0
- package/dist/lib/assets/language-icons/scala.js.map +1 -0
- package/dist/lib/assets/language-icons/shell.d.ts +3 -0
- package/dist/lib/assets/language-icons/shell.js +4 -0
- package/dist/lib/assets/language-icons/shell.js.map +1 -0
- package/dist/lib/assets/language-icons/swift.d.ts +3 -0
- package/dist/lib/assets/language-icons/swift.js +4 -0
- package/dist/lib/assets/language-icons/swift.js.map +1 -0
- package/dist/lib/assets/language-icons/toml.d.ts +3 -0
- package/dist/lib/assets/language-icons/toml.js +4 -0
- package/dist/lib/assets/language-icons/toml.js.map +1 -0
- package/dist/lib/assets/language-icons/typescript.d.ts +3 -0
- package/dist/lib/assets/language-icons/typescript.js +4 -0
- package/dist/lib/assets/language-icons/typescript.js.map +1 -0
- package/dist/lib/assets/language-icons/xml.d.ts +3 -0
- package/dist/lib/assets/language-icons/xml.js +4 -0
- package/dist/lib/assets/language-icons/xml.js.map +1 -0
- package/dist/lib/assets/language-icons/yaml.d.ts +3 -0
- package/dist/lib/assets/language-icons/yaml.js +4 -0
- package/dist/lib/assets/language-icons/yaml.js.map +1 -0
- package/dist/lib/assets/language-icons/zig.d.ts +3 -0
- package/dist/lib/assets/language-icons/zig.js +4 -0
- package/dist/lib/assets/language-icons/zig.js.map +1 -0
- package/dist/lib/auth/issuer.d.ts +2 -0
- package/dist/lib/auth/issuer.js +40 -0
- package/dist/lib/auth/issuer.js.map +1 -0
- package/dist/lib/auth/issuer.test.d.ts +1 -0
- package/dist/lib/auth/issuer.test.js +95 -0
- package/dist/lib/auth/issuer.test.js.map +1 -0
- package/dist/lib/authentication/AuthenticationPlugin.d.ts +1 -1
- package/dist/lib/authentication/authentication.d.ts +19 -11
- package/dist/lib/authentication/components/CallbackHandler.js +12 -10
- package/dist/lib/authentication/components/CallbackHandler.js.map +1 -1
- package/dist/lib/authentication/components/OAuthErrorPage.d.ts +3 -0
- package/dist/lib/authentication/components/OAuthErrorPage.js +99 -0
- package/dist/lib/authentication/components/OAuthErrorPage.js.map +1 -0
- package/dist/lib/authentication/components/SignIn.js +10 -8
- package/dist/lib/authentication/components/SignIn.js.map +1 -1
- package/dist/lib/authentication/components/SignOut.js +6 -6
- package/dist/lib/authentication/components/SignOut.js.map +1 -1
- package/dist/lib/authentication/components/SignUp.js +5 -5
- 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 +10 -2
- package/dist/lib/authentication/hook.js +12 -8
- 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 +10 -6
- 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 +9 -16
- package/dist/lib/authentication/providers/clerk.js.map +1 -1
- package/dist/lib/authentication/providers/firebase.d.ts +4 -0
- package/dist/lib/authentication/providers/firebase.js +215 -0
- package/dist/lib/authentication/providers/firebase.js.map +1 -0
- package/dist/lib/authentication/providers/openid.d.ts +10 -7
- package/dist/lib/authentication/providers/openid.js +55 -7
- package/dist/lib/authentication/providers/openid.js.map +1 -1
- package/dist/lib/authentication/providers/supabase/SupabaseAuthUI.d.ts +8 -0
- package/dist/lib/authentication/providers/supabase/SupabaseAuthUI.js +39 -0
- package/dist/lib/authentication/providers/supabase/SupabaseAuthUI.js.map +1 -0
- package/dist/lib/authentication/providers/supabase.d.ts +2 -2
- package/dist/lib/authentication/providers/supabase.js +32 -39
- package/dist/lib/authentication/providers/supabase.js.map +1 -1
- package/dist/lib/authentication/state.d.ts +11 -12
- package/dist/lib/authentication/state.js +21 -20
- package/dist/lib/authentication/state.js.map +1 -1
- package/dist/lib/authentication/ui/ZudokuAuthUi.d.ts +24 -0
- package/dist/lib/authentication/ui/ZudokuAuthUi.js +124 -0
- package/dist/lib/authentication/ui/ZudokuAuthUi.js.map +1 -0
- package/dist/lib/authentication/ui/icons/Apple.d.ts +3 -0
- package/dist/lib/authentication/ui/icons/Apple.js +4 -0
- package/dist/lib/authentication/ui/icons/Apple.js.map +1 -0
- package/dist/lib/authentication/ui/icons/Facebook.d.ts +3 -0
- package/dist/lib/authentication/ui/icons/Facebook.js +4 -0
- package/dist/lib/authentication/ui/icons/Facebook.js.map +1 -0
- package/dist/lib/authentication/ui/icons/Github.d.ts +3 -0
- package/dist/lib/authentication/ui/icons/Github.js +4 -0
- package/dist/lib/authentication/ui/icons/Github.js.map +1 -0
- package/dist/lib/authentication/ui/icons/Google.d.ts +3 -0
- package/dist/lib/authentication/ui/icons/Google.js +4 -0
- package/dist/lib/authentication/ui/icons/Google.js.map +1 -0
- package/dist/lib/authentication/ui/icons/Microsoft.d.ts +3 -0
- package/dist/lib/authentication/ui/icons/Microsoft.js +4 -0
- package/dist/lib/authentication/ui/icons/Microsoft.js.map +1 -0
- package/dist/lib/authentication/ui/icons/X.d.ts +3 -0
- package/dist/lib/authentication/ui/icons/X.js +4 -0
- package/dist/lib/authentication/ui/icons/X.js.map +1 -0
- package/dist/lib/authentication/use-broadcast/shared.d.ts +1 -1
- package/dist/lib/authentication/use-broadcast/shared.js +3 -3
- package/dist/lib/authentication/use-broadcast/shared.js.map +1 -1
- package/dist/lib/authentication/use-broadcast/useBroadcast.js +2 -2
- package/dist/lib/authentication/use-broadcast/useBroadcast.js.map +1 -1
- package/dist/lib/components/Autocomplete.d.ts +3 -1
- package/dist/lib/components/Autocomplete.js +7 -3
- package/dist/lib/components/Autocomplete.js.map +1 -1
- package/dist/lib/components/Banner.js +2 -2
- package/dist/lib/components/Banner.js.map +1 -1
- package/dist/lib/components/Bootstrap.d.ts +2 -2
- package/dist/lib/components/Bootstrap.js +0 -2
- package/dist/lib/components/Bootstrap.js.map +1 -1
- package/dist/lib/components/BuildCheck.d.ts +2 -1
- package/dist/lib/components/BuildCheck.js +12 -5
- package/dist/lib/components/BuildCheck.js.map +1 -1
- package/dist/lib/components/CategoryHeading.js +1 -1
- package/dist/lib/components/CategoryHeading.js.map +1 -1
- package/dist/lib/components/ErrorPage.js +2 -2
- package/dist/lib/components/ErrorPage.js.map +1 -1
- package/dist/lib/components/Footer.js +1 -1
- package/dist/lib/components/Footer.js.map +1 -1
- package/dist/lib/components/Framed.d.ts +7 -0
- package/dist/lib/components/Framed.js +26 -0
- package/dist/lib/components/Framed.js.map +1 -0
- package/dist/lib/components/Header.js +20 -21
- package/dist/lib/components/Header.js.map +1 -1
- package/dist/lib/components/Heading.d.ts +8 -4
- package/dist/lib/components/Heading.js +3 -7
- package/dist/lib/components/Heading.js.map +1 -1
- package/dist/lib/components/LanguageIcon.d.ts +3 -0
- package/dist/lib/components/LanguageIcon.js +163 -0
- package/dist/lib/components/LanguageIcon.js.map +1 -0
- package/dist/lib/components/Layout.js +5 -7
- package/dist/lib/components/Layout.js.map +1 -1
- package/dist/lib/components/Main.js +4 -4
- package/dist/lib/components/Main.js.map +1 -1
- package/dist/lib/components/Markdown.d.ts +0 -1
- package/dist/lib/components/Markdown.js +5 -6
- package/dist/lib/components/Markdown.js.map +1 -1
- package/dist/lib/components/Meta.d.ts +2 -0
- package/dist/lib/components/Meta.js +11 -0
- package/dist/lib/components/Meta.js.map +1 -0
- package/dist/lib/components/MobileTopNavigation.js +13 -7
- package/dist/lib/components/MobileTopNavigation.js.map +1 -1
- package/dist/lib/components/NotFoundPage.js +2 -2
- package/dist/lib/components/NotFoundPage.js.map +1 -1
- package/dist/lib/components/PageProgress.d.ts +1 -0
- package/dist/lib/components/PageProgress.js +20 -0
- package/dist/lib/components/PageProgress.js.map +1 -0
- package/dist/lib/components/Pagination.js +1 -1
- package/dist/lib/components/Pagination.js.map +1 -1
- package/dist/lib/components/PathRenderer.js +1 -1
- package/dist/lib/components/PathRenderer.js.map +1 -1
- package/dist/lib/components/Search.js +1 -1
- package/dist/lib/components/Search.js.map +1 -1
- package/dist/lib/components/Slot.js.map +1 -1
- package/dist/lib/components/Slot.test.js +7 -3
- package/dist/lib/components/Slot.test.js.map +1 -1
- package/dist/lib/components/StatusPage.js +4 -0
- package/dist/lib/components/StatusPage.js.map +1 -1
- package/dist/lib/components/TopNavigation.d.ts +7 -3
- package/dist/lib/components/TopNavigation.js +51 -45
- 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.js +5 -5
- package/dist/lib/components/Zudoku.js.map +1 -1
- package/dist/lib/components/cache.d.ts +3 -1
- package/dist/lib/components/cache.js +3 -5
- package/dist/lib/components/cache.js.map +1 -1
- package/dist/lib/components/context/ComponentsContext.js.map +1 -1
- package/dist/lib/components/context/RouterEventsEmitter.js.map +1 -1
- package/dist/lib/components/context/SlotProvider.js.map +1 -1
- package/dist/lib/components/context/ViewportAnchorContext.js +1 -1
- package/dist/lib/components/context/ViewportAnchorContext.js.map +1 -1
- package/dist/lib/components/context/ZudokuContext.d.ts +3 -7
- package/dist/lib/components/context/ZudokuContext.js +66 -32
- package/dist/lib/components/context/ZudokuContext.js.map +1 -1
- package/dist/lib/components/context/ZudokuProvider.d.ts +1 -1
- package/dist/lib/components/index.d.ts +74 -726
- package/dist/lib/components/index.js +5 -16
- package/dist/lib/components/index.js.map +1 -1
- package/dist/lib/components/navigation/Navigation.d.ts +5 -0
- package/dist/lib/components/navigation/Navigation.js +12 -0
- package/dist/lib/components/navigation/Navigation.js.map +1 -0
- package/dist/lib/components/navigation/{SidebarBadge.d.ts → NavigationBadge.d.ts} +1 -1
- package/dist/lib/components/navigation/{SidebarBadge.js → NavigationBadge.js} +2 -2
- package/dist/lib/components/navigation/NavigationBadge.js.map +1 -0
- package/dist/lib/components/navigation/NavigationCategory.d.ts +5 -0
- package/dist/lib/components/navigation/{SidebarCategory.js → NavigationCategory.js} +21 -14
- 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 +55 -0
- package/dist/lib/components/navigation/NavigationItem.js.map +1 -0
- package/dist/lib/components/navigation/{SidebarWrapper.d.ts → NavigationWrapper.d.ts} +1 -1
- package/dist/lib/components/navigation/{SidebarWrapper.js → NavigationWrapper.js} +5 -5
- package/dist/lib/components/navigation/NavigationWrapper.js.map +1 -0
- package/dist/lib/components/navigation/Toc.js +1 -1
- package/dist/lib/components/navigation/Toc.js.map +1 -1
- package/dist/lib/components/navigation/ZudokuLogo.d.ts +1 -1
- package/dist/lib/components/navigation/utils.d.ts +11 -11
- package/dist/lib/components/navigation/utils.js +32 -29
- package/dist/lib/components/navigation/utils.js.map +1 -1
- package/dist/lib/core/RouteGuard.d.ts +1 -1
- package/dist/lib/core/RouteGuard.js +19 -27
- package/dist/lib/core/RouteGuard.js.map +1 -1
- package/dist/lib/core/ZudokuContext.d.ts +17 -13
- package/dist/lib/core/ZudokuContext.js +47 -11
- package/dist/lib/core/ZudokuContext.js.map +1 -1
- package/dist/lib/core/__internal.d.ts +37 -0
- package/dist/lib/core/__internal.js +26 -0
- package/dist/lib/core/__internal.js.map +1 -0
- package/dist/lib/core/plugins.d.ts +4 -3
- package/dist/lib/core/plugins.js.map +1 -1
- package/dist/lib/core/router.d.ts +1 -0
- package/dist/lib/core/router.js +2 -0
- package/dist/lib/core/router.js.map +1 -0
- package/dist/lib/errors/ErrorAlert.js +2 -4
- package/dist/lib/errors/ErrorAlert.js.map +1 -1
- package/dist/lib/errors/RouterError.d.ts +3 -1
- package/dist/lib/errors/RouterError.js +3 -2
- package/dist/lib/errors/RouterError.js.map +1 -1
- package/dist/lib/errors/TopLevelError.d.ts +2 -2
- package/dist/lib/errors/TopLevelError.js +1 -2
- package/dist/lib/errors/TopLevelError.js.map +1 -1
- package/dist/lib/hooks/index.d.ts +28 -637
- package/dist/lib/hooks/useEvent.test.js +5 -3
- package/dist/lib/hooks/useEvent.test.js.map +1 -1
- package/dist/lib/hooks/useHotkey.d.ts +4 -0
- package/dist/lib/hooks/useHotkey.js +58 -0
- package/dist/lib/hooks/useHotkey.js.map +1 -0
- package/dist/lib/oas/graphql/circular.js +2 -2
- package/dist/lib/oas/graphql/circular.js.map +1 -1
- package/dist/lib/oas/graphql/index.js +39 -3
- package/dist/lib/oas/graphql/index.js.map +1 -1
- package/dist/lib/oas/parser/dereference/index.js +2 -1
- package/dist/lib/oas/parser/dereference/index.js.map +1 -1
- package/dist/lib/oas/parser/dereference/resolveRef.js +3 -3
- package/dist/lib/oas/parser/dereference/resolveRef.js.map +1 -1
- package/dist/lib/oas/parser/index.js +8 -4
- package/dist/lib/oas/parser/index.js.map +1 -1
- package/dist/lib/oas/parser/upgrade/index.js +2 -1
- package/dist/lib/oas/parser/upgrade/index.js.map +1 -1
- package/dist/lib/plugins/api-catalog/Catalog.d.ts +1 -1
- package/dist/lib/plugins/api-catalog/Catalog.js +7 -1
- package/dist/lib/plugins/api-catalog/Catalog.js.map +1 -1
- package/dist/lib/plugins/api-catalog/index.d.ts +6 -6
- package/dist/lib/plugins/api-catalog/index.js +10 -10
- package/dist/lib/plugins/api-catalog/index.js.map +1 -1
- package/dist/lib/plugins/api-keys/CreateApiKey.d.ts +1 -1
- package/dist/lib/plugins/api-keys/CreateApiKey.js +13 -3
- package/dist/lib/plugins/api-keys/CreateApiKey.js.map +1 -1
- package/dist/lib/plugins/api-keys/CreateApiKeyDialog.d.ts +11 -0
- package/dist/lib/plugins/api-keys/CreateApiKeyDialog.js +9 -0
- package/dist/lib/plugins/api-keys/CreateApiKeyDialog.js.map +1 -0
- package/dist/lib/plugins/api-keys/ProtectedRoute.js +4 -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 +17 -24
- package/dist/lib/plugins/api-keys/SettingsApiKeys.js.map +1 -1
- package/dist/lib/plugins/api-keys/index.d.ts +11 -6
- package/dist/lib/plugins/api-keys/index.js +28 -13
- 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 +18 -10
- package/dist/lib/plugins/custom-pages/index.js.map +1 -1
- package/dist/lib/plugins/markdown/MdxPage.d.ts +3 -3
- package/dist/lib/plugins/markdown/MdxPage.js +56 -12
- package/dist/lib/plugins/markdown/MdxPage.js.map +1 -1
- package/dist/lib/plugins/markdown/assets/ChatGPTLogo.d.ts +2 -0
- package/dist/lib/plugins/markdown/assets/ChatGPTLogo.js +3 -0
- package/dist/lib/plugins/markdown/assets/ChatGPTLogo.js.map +1 -0
- package/dist/lib/plugins/markdown/assets/ClaudeLogo.d.ts +2 -0
- package/dist/lib/plugins/markdown/assets/ClaudeLogo.js +3 -0
- package/dist/lib/plugins/markdown/assets/ClaudeLogo.js.map +1 -0
- package/dist/lib/plugins/markdown/index.d.ts +13 -3
- package/dist/lib/plugins/markdown/index.js +9 -26
- package/dist/lib/plugins/markdown/index.js.map +1 -1
- package/dist/lib/plugins/openapi/CollapsibleCode.d.ts +1 -0
- package/dist/lib/plugins/openapi/CollapsibleCode.js +2 -1
- package/dist/lib/plugins/openapi/CollapsibleCode.js.map +1 -1
- package/dist/lib/plugins/openapi/ColorizedParam.js +4 -1
- package/dist/lib/plugins/openapi/ColorizedParam.js.map +1 -1
- package/dist/lib/plugins/openapi/Endpoint.js +2 -2
- package/dist/lib/plugins/openapi/Endpoint.js.map +1 -1
- package/dist/lib/plugins/openapi/GeneratedExampleSidecarBox.d.ts +5 -0
- package/dist/lib/plugins/openapi/GeneratedExampleSidecarBox.js +10 -0
- package/dist/lib/plugins/openapi/GeneratedExampleSidecarBox.js.map +1 -0
- package/dist/lib/plugins/openapi/MCPEndpoint.d.ts +5 -0
- package/dist/lib/plugins/openapi/MCPEndpoint.js +56 -0
- package/dist/lib/plugins/openapi/MCPEndpoint.js.map +1 -0
- package/dist/lib/plugins/openapi/OasProvider.d.ts +1 -1
- package/dist/lib/plugins/openapi/OasProvider.js +1 -0
- package/dist/lib/plugins/openapi/OasProvider.js.map +1 -1
- package/dist/lib/plugins/openapi/OperationList.d.ts +0 -2
- package/dist/lib/plugins/openapi/OperationList.js +33 -9
- package/dist/lib/plugins/openapi/OperationList.js.map +1 -1
- package/dist/lib/plugins/openapi/OperationListItem.d.ts +4 -3
- package/dist/lib/plugins/openapi/OperationListItem.js +14 -6
- package/dist/lib/plugins/openapi/OperationListItem.js.map +1 -1
- package/dist/lib/plugins/openapi/ParamInfos.d.ts +1 -1
- package/dist/lib/plugins/openapi/ParamInfos.js +11 -9
- package/dist/lib/plugins/openapi/ParamInfos.js.map +1 -1
- package/dist/lib/plugins/openapi/ParameterList.d.ts +2 -2
- package/dist/lib/plugins/openapi/ParameterList.js +8 -5
- package/dist/lib/plugins/openapi/ParameterList.js.map +1 -1
- package/dist/lib/plugins/openapi/ParameterListItem.d.ts +2 -3
- package/dist/lib/plugins/openapi/ParameterListItem.js +18 -7
- package/dist/lib/plugins/openapi/ParameterListItem.js.map +1 -1
- package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.d.ts +3 -4
- package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.js +3 -5
- package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.js.map +1 -1
- package/dist/lib/plugins/openapi/RequestBodySidecarBox.d.ts +11 -4
- package/dist/lib/plugins/openapi/RequestBodySidecarBox.js +5 -2
- package/dist/lib/plugins/openapi/RequestBodySidecarBox.js.map +1 -1
- package/dist/lib/plugins/openapi/ResponsesSidecarBox.d.ts +3 -2
- package/dist/lib/plugins/openapi/ResponsesSidecarBox.js +25 -4
- package/dist/lib/plugins/openapi/ResponsesSidecarBox.js.map +1 -1
- package/dist/lib/plugins/openapi/SchemaList.js +2 -3
- package/dist/lib/plugins/openapi/SchemaList.js.map +1 -1
- package/dist/lib/plugins/openapi/Sidecar.d.ts +5 -4
- package/dist/lib/plugins/openapi/Sidecar.js +57 -31
- 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 +11 -6
- package/dist/lib/plugins/openapi/SidecarExamples.js +24 -43
- package/dist/lib/plugins/openapi/SidecarExamples.js.map +1 -1
- package/dist/lib/plugins/openapi/StaggeredRender.d.ts +1 -1
- package/dist/lib/plugins/openapi/client/GraphQLContext.d.ts +1 -1
- package/dist/lib/plugins/openapi/client/createServer.js +1 -2
- package/dist/lib/plugins/openapi/client/createServer.js.map +1 -1
- package/dist/lib/plugins/openapi/client/useCreateQuery.js.map +1 -1
- package/dist/lib/plugins/openapi/components/ConstValue.js +1 -1
- package/dist/lib/plugins/openapi/components/ConstValue.js.map +1 -1
- package/dist/lib/plugins/openapi/components/EnumValues.js +1 -1
- package/dist/lib/plugins/openapi/components/EnumValues.js.map +1 -1
- package/dist/lib/plugins/openapi/components/NonHighlightedCode.d.ts +4 -0
- package/dist/lib/plugins/openapi/components/NonHighlightedCode.js +5 -0
- package/dist/lib/plugins/openapi/components/NonHighlightedCode.js.map +1 -0
- package/dist/lib/plugins/openapi/components/ResponseContent.js +5 -6
- package/dist/lib/plugins/openapi/components/ResponseContent.js.map +1 -1
- package/dist/lib/plugins/openapi/context.d.ts +1 -1
- package/dist/lib/plugins/openapi/graphql/fragment-masking.d.ts +1 -1
- package/dist/lib/plugins/openapi/graphql/gql.d.ts +3 -3
- package/dist/lib/plugins/openapi/graphql/gql.js +3 -3
- package/dist/lib/plugins/openapi/graphql/gql.js.map +1 -1
- package/dist/lib/plugins/openapi/graphql/graphql.d.ts +15 -5
- package/dist/lib/plugins/openapi/graphql/graphql.js +14 -2
- package/dist/lib/plugins/openapi/graphql/graphql.js.map +1 -1
- package/dist/lib/plugins/openapi/index.d.ts +5 -5
- package/dist/lib/plugins/openapi/index.js +57 -29
- package/dist/lib/plugins/openapi/index.js.map +1 -1
- package/dist/lib/plugins/openapi/interfaces.d.ts +21 -7
- package/dist/lib/plugins/openapi/playground/BodyPanel.d.ts +3 -3
- package/dist/lib/plugins/openapi/playground/BodyPanel.js +71 -15
- package/dist/lib/plugins/openapi/playground/BodyPanel.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/CollapsibleHeader.d.ts +8 -0
- package/dist/lib/plugins/openapi/playground/CollapsibleHeader.js +11 -0
- package/dist/lib/plugins/openapi/playground/CollapsibleHeader.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/ExamplesDropdown.d.ts +3 -3
- package/dist/lib/plugins/openapi/playground/ExamplesDropdown.js +2 -2
- package/dist/lib/plugins/openapi/playground/ExamplesDropdown.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/Headers.d.ts +5 -4
- package/dist/lib/plugins/openapi/playground/Headers.js +42 -80
- package/dist/lib/plugins/openapi/playground/Headers.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/IdentityDialog.d.ts +1 -1
- package/dist/lib/plugins/openapi/playground/IdentityDialog.js +2 -1
- package/dist/lib/plugins/openapi/playground/IdentityDialog.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/IdentitySelector.d.ts +1 -1
- package/dist/lib/plugins/openapi/playground/IdentitySelector.js +1 -2
- package/dist/lib/plugins/openapi/playground/IdentitySelector.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/ParamsGrid.d.ts +10 -2
- package/dist/lib/plugins/openapi/playground/ParamsGrid.js +9 -2
- package/dist/lib/plugins/openapi/playground/ParamsGrid.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/PathParams.js +2 -4
- package/dist/lib/plugins/openapi/playground/PathParams.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/Playground.d.ts +9 -2
- package/dist/lib/plugins/openapi/playground/Playground.js +117 -64
- package/dist/lib/plugins/openapi/playground/Playground.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js +5 -2
- 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 +20 -29
- package/dist/lib/plugins/openapi/playground/QueryParams.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/RequestLoginDialog.d.ts +2 -1
- package/dist/lib/plugins/openapi/playground/RequestLoginDialog.js +10 -2
- package/dist/lib/plugins/openapi/playground/RequestLoginDialog.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/Spinner.d.ts +2 -0
- package/dist/lib/plugins/openapi/playground/Spinner.js +63 -0
- package/dist/lib/plugins/openapi/playground/Spinner.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/fileUtils.js +1 -1
- package/dist/lib/plugins/openapi/playground/fileUtils.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/rememberedIdentity.d.ts +5 -3
- package/dist/lib/plugins/openapi/playground/request-panel/MultipartField.d.ts +8 -0
- package/dist/lib/plugins/openapi/playground/request-panel/MultipartField.js +19 -0
- package/dist/lib/plugins/openapi/playground/request-panel/MultipartField.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/request-panel/fieldManager/useKeyValueFieldManager.test.d.ts +1 -0
- package/dist/lib/plugins/openapi/playground/request-panel/fieldManager/useKeyValueFieldManager.test.js +540 -0
- package/dist/lib/plugins/openapi/playground/request-panel/fieldManager/useKeyValueFieldManager.test.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/request-panel/useKeyValueFieldManager.d.ts +40 -0
- package/dist/lib/plugins/openapi/playground/request-panel/useKeyValueFieldManager.js +205 -0
- package/dist/lib/plugins/openapi/playground/request-panel/useKeyValueFieldManager.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 +71 -0
- package/dist/lib/plugins/openapi/playground/result-panel/ResponseStatusBar.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.d.ts +7 -4
- package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.js +40 -33
- package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.d.ts +6 -4
- package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.js +8 -10
- package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.d.ts +1 -1
- package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.js +1 -1
- package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/useRememberSkipLoginDialog.d.ts +5 -3
- package/dist/lib/plugins/openapi/playground/useRememberSkipLoginDialog.js +2 -0
- package/dist/lib/plugins/openapi/playground/useRememberSkipLoginDialog.js.map +1 -1
- package/dist/lib/plugins/openapi/processors/removeExtensions.test.js +1 -0
- package/dist/lib/plugins/openapi/processors/removeExtensions.test.js.map +1 -1
- package/dist/lib/plugins/openapi/processors/removeParameters.test.js +1 -0
- package/dist/lib/plugins/openapi/processors/removeParameters.test.js.map +1 -1
- package/dist/lib/plugins/openapi/processors/traverse.d.ts +1 -1
- package/dist/lib/plugins/openapi/processors/traverse.js.map +1 -1
- package/dist/lib/plugins/openapi/schema/SchemaExampleAndDefault.js +3 -3
- package/dist/lib/plugins/openapi/schema/SchemaExampleAndDefault.js.map +1 -1
- package/dist/lib/plugins/openapi/schema/SchemaPropertyItem.d.ts +0 -3
- package/dist/lib/plugins/openapi/schema/SchemaPropertyItem.js +22 -22
- package/dist/lib/plugins/openapi/schema/SchemaPropertyItem.js.map +1 -1
- package/dist/lib/plugins/openapi/schema/SchemaView.d.ts +3 -2
- package/dist/lib/plugins/openapi/schema/SchemaView.js +28 -17
- package/dist/lib/plugins/openapi/schema/SchemaView.js.map +1 -1
- package/dist/lib/plugins/openapi/schema/UnionView.d.ts +5 -0
- package/dist/lib/plugins/openapi/schema/UnionView.js +33 -0
- package/dist/lib/plugins/openapi/schema/UnionView.js.map +1 -0
- package/dist/lib/plugins/openapi/schema/union-helpers.d.ts +28 -0
- package/dist/lib/plugins/openapi/schema/union-helpers.js +71 -0
- package/dist/lib/plugins/openapi/schema/union-helpers.js.map +1 -0
- package/dist/lib/plugins/openapi/schema/utils.d.ts +0 -7
- package/dist/lib/plugins/openapi/schema/utils.js +3 -8
- package/dist/lib/plugins/openapi/schema/utils.js.map +1 -1
- package/dist/lib/plugins/openapi/state.d.ts +5 -3
- package/dist/lib/plugins/openapi/util/createHttpSnippet.d.ts +1 -1
- package/dist/lib/plugins/openapi/util/createHttpSnippet.js +1 -1
- package/dist/lib/plugins/openapi/util/createHttpSnippet.js.map +1 -1
- package/dist/lib/plugins/openapi/util/createNavigationCategory.d.ts +9 -0
- package/dist/lib/plugins/openapi/util/{createSidebarCategory.js → createNavigationCategory.js} +6 -4
- package/dist/lib/plugins/openapi/util/createNavigationCategory.js.map +1 -0
- package/dist/lib/plugins/openapi/util/generateSchemaExample.d.ts +1 -1
- package/dist/lib/plugins/openapi/util/generateSchemaExample.js +10 -13
- package/dist/lib/plugins/openapi/util/generateSchemaExample.js.map +1 -1
- package/dist/lib/plugins/openapi/util/getRoutes.js +3 -3
- package/dist/lib/plugins/openapi/util/getRoutes.js.map +1 -1
- package/dist/lib/plugins/openapi/util/methodColorMap.d.ts +1 -1
- package/dist/lib/plugins/search-inkeep/index.d.ts +5 -22
- package/dist/lib/plugins/search-inkeep/index.js +35 -29
- package/dist/lib/plugins/search-inkeep/index.js.map +1 -1
- package/dist/lib/plugins/search-inkeep/inkeep.d.ts +5 -21
- package/dist/lib/plugins/search-inkeep/inkeep.js +10 -19
- package/dist/lib/plugins/search-inkeep/inkeep.js.map +1 -1
- package/dist/lib/plugins/search-pagefind/PagefindSearch.js +2 -2
- package/dist/lib/plugins/search-pagefind/PagefindSearch.js.map +1 -1
- package/dist/lib/plugins/search-pagefind/ResultList.d.ts +2 -2
- package/dist/lib/plugins/search-pagefind/ResultList.js +15 -5
- package/dist/lib/plugins/search-pagefind/ResultList.js.map +1 -1
- package/dist/lib/plugins/search-pagefind/get-results.js +0 -1
- package/dist/lib/plugins/search-pagefind/get-results.js.map +1 -1
- package/dist/lib/shiki.d.ts +7 -6
- package/dist/lib/shiki.js +31 -8
- package/dist/lib/shiki.js.map +1 -1
- package/dist/lib/ui/ActionButton.js +1 -1
- package/dist/lib/ui/ActionButton.js.map +1 -1
- package/dist/lib/ui/Alert.d.ts +6 -5
- package/dist/lib/ui/Alert.js +12 -10
- package/dist/lib/ui/Alert.js.map +1 -1
- package/dist/lib/ui/Badge.d.ts +4 -4
- package/dist/lib/ui/Badge.js +9 -7
- package/dist/lib/ui/Badge.js.map +1 -1
- package/dist/lib/ui/Breadcrumb.js +1 -1
- package/dist/lib/ui/Breadcrumb.js.map +1 -1
- package/dist/lib/ui/Button.d.ts +2 -2
- package/dist/lib/ui/Button.js +1 -0
- package/dist/lib/ui/Button.js.map +1 -1
- package/dist/lib/ui/Callout.d.ts +5 -5
- package/dist/lib/ui/Callout.js +5 -5
- package/dist/lib/ui/Callout.js.map +1 -1
- package/dist/lib/ui/Checkbox.d.ts +2 -2
- package/dist/lib/ui/Checkbox.js +4 -4
- package/dist/lib/ui/Checkbox.js.map +1 -1
- package/dist/lib/ui/CodeBlock.d.ts +2 -4
- package/dist/lib/ui/CodeBlock.js +10 -10
- package/dist/lib/ui/CodeBlock.js.map +1 -1
- package/dist/lib/ui/Collapsible.d.ts +4 -4
- package/dist/lib/ui/Collapsible.js +11 -4
- package/dist/lib/ui/Collapsible.js.map +1 -1
- package/dist/lib/ui/Command.d.ts +5 -5
- package/dist/lib/ui/Command.js +2 -6
- package/dist/lib/ui/Command.js.map +1 -1
- package/dist/lib/ui/Dialog.d.ts +12 -18
- package/dist/lib/ui/Dialog.js +31 -18
- package/dist/lib/ui/Dialog.js.map +1 -1
- package/dist/lib/ui/EmbeddedCodeBlock.d.ts +16 -0
- package/dist/lib/ui/EmbeddedCodeBlock.js +19 -0
- package/dist/lib/ui/EmbeddedCodeBlock.js.map +1 -0
- package/dist/lib/ui/Form.d.ts +2 -2
- package/dist/lib/ui/Frame.d.ts +8 -0
- package/dist/lib/ui/Frame.js +22 -0
- package/dist/lib/ui/Frame.js.map +1 -0
- package/dist/lib/ui/Item.d.ts +23 -0
- package/dist/lib/ui/Item.js +67 -0
- package/dist/lib/ui/Item.js.map +1 -0
- package/dist/lib/ui/NativeSelect.d.ts +5 -0
- package/dist/lib/ui/NativeSelect.js +14 -0
- package/dist/lib/ui/NativeSelect.js.map +1 -0
- package/dist/lib/ui/Pagination.d.ts +1 -1
- package/dist/lib/ui/Pagination.js +1 -1
- package/dist/lib/ui/Pagination.js.map +1 -1
- package/dist/lib/ui/ReactComponentDoc.d.ts +20 -0
- package/dist/lib/ui/ReactComponentDoc.js +10 -0
- package/dist/lib/ui/ReactComponentDoc.js.map +1 -0
- package/dist/lib/ui/Secret.d.ts +18 -0
- package/dist/lib/ui/Secret.js +26 -0
- package/dist/lib/ui/Secret.js.map +1 -0
- package/dist/lib/ui/Select.d.ts +13 -11
- package/dist/lib/ui/Select.js +34 -23
- package/dist/lib/ui/Select.js.map +1 -1
- package/dist/lib/ui/Separator.d.ts +4 -0
- package/dist/lib/ui/Separator.js +8 -0
- package/dist/lib/ui/Separator.js.map +1 -0
- package/dist/lib/ui/SyntaxHighlight.d.ts +4 -1
- package/dist/lib/ui/SyntaxHighlight.js +3 -2
- package/dist/lib/ui/SyntaxHighlight.js.map +1 -1
- package/dist/lib/ui/ToggleGroup.d.ts +1 -1
- package/dist/lib/ui/Tooltip.d.ts +7 -7
- package/dist/lib/ui/Tooltip.js +16 -10
- package/dist/lib/ui/Tooltip.js.map +1 -1
- package/dist/lib/ui/Value.d.ts +5 -0
- package/dist/lib/ui/Value.js +13 -0
- package/dist/lib/ui/Value.js.map +1 -0
- package/dist/lib/util/MdxComponents.d.ts +11 -2
- package/dist/lib/util/MdxComponents.js +9 -4
- package/dist/lib/util/MdxComponents.js.map +1 -1
- package/dist/lib/util/cn.js.map +1 -1
- package/dist/lib/util/createVariantComponent.d.ts +7 -4
- package/dist/lib/util/createVariantComponent.js +5 -2
- package/dist/lib/util/createVariantComponent.js.map +1 -1
- package/dist/lib/util/flattenAllOf.d.ts +4 -0
- package/dist/lib/util/flattenAllOf.js +65 -0
- package/dist/lib/util/flattenAllOf.js.map +1 -0
- package/dist/lib/util/flattenAllOf.test.d.ts +1 -0
- package/dist/lib/util/flattenAllOf.test.js +532 -0
- package/dist/lib/util/flattenAllOf.test.js.map +1 -0
- package/dist/lib/util/groupBy.js +1 -0
- package/dist/lib/util/groupBy.js.map +1 -1
- package/dist/lib/util/humanFileSize.js +1 -1
- package/dist/lib/util/humanFileSize.js.map +1 -1
- package/dist/lib/util/invariant.d.ts +6 -5
- package/dist/lib/util/invariant.js +4 -2
- package/dist/lib/util/invariant.js.map +1 -1
- package/dist/lib/util/os.d.ts +2 -0
- package/dist/lib/util/os.js +21 -0
- package/dist/lib/util/os.js.map +1 -0
- package/dist/lib/util/pastellize.js +4 -4
- package/dist/lib/util/pastellize.js.map +1 -1
- package/dist/lib/util/syncZustandState.d.ts +5 -0
- package/dist/lib/util/syncZustandState.js +14 -0
- package/dist/lib/util/syncZustandState.js.map +1 -0
- package/dist/lib/util/traverse.d.ts +1 -0
- package/dist/lib/util/traverse.js +25 -0
- package/dist/lib/util/traverse.js.map +1 -1
- 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/useIsomorphicLayoutEffect.js.map +1 -1
- package/dist/lib/util/useScrollToAnchor.js +5 -3
- package/dist/lib/util/useScrollToAnchor.js.map +1 -1
- package/dist/ts.d.ts +6 -0
- package/dist/ts.js +61 -0
- package/dist/ts.js.map +1 -0
- package/dist/vite/api/SchemaManager.d.ts +7 -5
- package/dist/vite/api/SchemaManager.js +62 -47
- package/dist/vite/api/SchemaManager.js.map +1 -1
- package/dist/vite/api/SchemaManager.test.js +6 -6
- package/dist/vite/api/SchemaManager.test.js.map +1 -1
- package/dist/vite/api/schema-codegen.js +71 -22
- package/dist/vite/api/schema-codegen.js.map +1 -1
- package/dist/vite/api/schema-codegen.test.js +156 -1
- package/dist/vite/api/schema-codegen.test.js.map +1 -1
- package/dist/vite/build.js +11 -35
- package/dist/vite/build.js.map +1 -1
- package/dist/vite/config.js +18 -3
- package/dist/vite/config.js.map +1 -1
- package/dist/vite/css/plugin.js +11 -0
- package/dist/vite/css/plugin.js.map +1 -1
- package/dist/vite/dev-server.js +12 -4
- package/dist/vite/dev-server.js.map +1 -1
- package/dist/vite/error-handler.d.ts +2 -2
- package/dist/vite/error-handler.js.map +1 -1
- package/dist/vite/llms.d.ts +12 -0
- package/dist/vite/llms.js +66 -0
- package/dist/vite/llms.js.map +1 -0
- package/dist/vite/mdx/remark-inject-filepath.d.ts +3 -0
- package/dist/vite/mdx/remark-inject-filepath.js +6 -0
- package/dist/vite/mdx/remark-inject-filepath.js.map +1 -0
- package/dist/vite/mdx/remark-last-modified.d.ts +3 -0
- package/dist/vite/mdx/remark-last-modified.js +28 -0
- package/dist/vite/mdx/remark-last-modified.js.map +1 -0
- package/dist/vite/mdx/remark-link-rewrite.d.ts +2 -0
- package/dist/vite/mdx/remark-link-rewrite.js +20 -0
- package/dist/vite/mdx/remark-link-rewrite.js.map +1 -0
- package/dist/vite/mdx/remark-normalize-image-url.d.ts +2 -0
- package/dist/vite/mdx/remark-normalize-image-url.js +12 -0
- package/dist/vite/mdx/remark-normalize-image-url.js.map +1 -0
- package/dist/vite/{remarkStaticGeneration.d.ts → mdx/remark-static-generation.d.ts} +2 -2
- package/dist/vite/{remarkStaticGeneration.js → mdx/remark-static-generation.js} +2 -2
- package/dist/vite/mdx/remark-static-generation.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 +1 -1
- package/dist/vite/output.js +1 -1
- package/dist/vite/output.js.map +1 -1
- package/dist/vite/plugin-api-keys.d.ts +1 -1
- package/dist/vite/plugin-api-keys.js +1 -1
- package/dist/vite/plugin-api-keys.js.map +1 -1
- package/dist/vite/plugin-api.js +29 -28
- package/dist/vite/plugin-api.js.map +1 -1
- package/dist/vite/plugin-auth.d.ts +1 -1
- package/dist/vite/plugin-auth.js +1 -1
- package/dist/vite/plugin-auth.js.map +1 -1
- package/dist/vite/plugin-component.d.ts +1 -1
- package/dist/vite/plugin-config-reload.d.ts +1 -1
- package/dist/vite/plugin-config-reload.js +2 -0
- package/dist/vite/plugin-config-reload.js.map +1 -1
- package/dist/vite/plugin-config.d.ts +1 -1
- package/dist/vite/plugin-config.js +2 -1
- package/dist/vite/plugin-config.js.map +1 -1
- package/dist/vite/plugin-custom-pages.d.ts +1 -1
- package/dist/vite/plugin-custom-pages.js +3 -3
- package/dist/vite/plugin-custom-pages.js.map +1 -1
- package/dist/vite/plugin-docs.d.ts +9 -0
- package/dist/vite/plugin-docs.js +92 -62
- package/dist/vite/plugin-docs.js.map +1 -1
- package/dist/vite/plugin-frontmatter.js +7 -3
- package/dist/vite/plugin-frontmatter.js.map +1 -1
- package/dist/vite/plugin-markdown-export.d.ts +21 -0
- package/dist/vite/plugin-markdown-export.js +141 -0
- package/dist/vite/plugin-markdown-export.js.map +1 -0
- package/dist/vite/plugin-mdx.d.ts +2 -2
- package/dist/vite/plugin-mdx.js +57 -85
- package/dist/vite/plugin-mdx.js.map +1 -1
- package/dist/vite/plugin-metadata.d.ts +1 -1
- package/dist/vite/plugin-navigation.d.ts +4 -0
- package/dist/vite/plugin-navigation.js +67 -0
- package/dist/vite/plugin-navigation.js.map +1 -0
- package/dist/vite/plugin-redirect.d.ts +1 -1
- package/dist/vite/plugin-redirect.js +1 -1
- package/dist/vite/plugin-redirect.js.map +1 -1
- package/dist/vite/plugin-search.d.ts +1 -1
- package/dist/vite/plugin-search.js +1 -1
- package/dist/vite/plugin-search.js.map +1 -1
- package/dist/vite/plugin-shiki-register.js +1 -1
- package/dist/vite/plugin-shiki-register.js.map +1 -1
- package/dist/vite/plugin-theme.d.ts +8 -0
- package/dist/vite/plugin-theme.js +283 -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 +314 -0
- package/dist/vite/plugin-theme.test.js.map +1 -0
- package/dist/vite/plugin.d.ts +1 -1
- package/dist/vite/plugin.js +8 -8
- package/dist/vite/plugin.js.map +1 -1
- package/dist/vite/prerender/FileWritingResponse.js +5 -3
- package/dist/vite/prerender/FileWritingResponse.js.map +1 -1
- package/dist/vite/prerender/InMemoryResponse.js +3 -1
- package/dist/vite/prerender/InMemoryResponse.js.map +1 -1
- package/dist/vite/prerender/prerender.js +38 -5
- package/dist/vite/prerender/prerender.js.map +1 -1
- package/dist/vite/prerender/worker.d.ts +1 -1
- package/dist/vite/prerender/worker.js +5 -1
- package/dist/vite/prerender/worker.js.map +1 -1
- package/dist/vite/reporter.js +2 -2
- package/dist/vite/reporter.js.map +1 -1
- package/dist/vite/shadcn-registry.d.ts +20 -0
- package/dist/vite/shadcn-registry.js +29 -0
- package/dist/vite/shadcn-registry.js.map +1 -0
- package/dist/vite/sitemap.js +14 -13
- package/dist/vite/sitemap.js.map +1 -1
- package/dist/zuplo/enrich-with-zuplo-mcp.d.ts +4 -0
- package/dist/zuplo/enrich-with-zuplo-mcp.js +117 -0
- package/dist/zuplo/enrich-with-zuplo-mcp.js.map +1 -0
- package/dist/zuplo/enrich-with-zuplo.d.ts +1 -0
- package/dist/zuplo/enrich-with-zuplo.js +4 -4
- package/dist/zuplo/enrich-with-zuplo.js.map +1 -1
- package/dist/zuplo/policy-types.js +0 -1
- package/dist/zuplo/policy-types.js.map +1 -1
- package/dist/zuplo/with-zuplo-processors.js +2 -0
- package/dist/zuplo/with-zuplo-processors.js.map +1 -1
- package/dist/zuplo/with-zuplo.js +1 -1
- package/dist/zuplo/with-zuplo.js.map +1 -1
- package/lib/{Button-BE9IVkWV.js → Button-B3ucvvQw.js} +8 -7
- package/lib/Button-B3ucvvQw.js.map +1 -0
- package/lib/{Card-DPhGbYUM.js → Card-KFniaZn5.js} +3 -3
- package/lib/{Card-DPhGbYUM.js.map → Card-KFniaZn5.js.map} +1 -1
- package/lib/CategoryHeading-DhmodDcq.js +17 -0
- package/lib/CategoryHeading-DhmodDcq.js.map +1 -0
- package/lib/ClientOnly-E7hGysn1.js.map +1 -1
- package/lib/Command-CUcrW3qs.js +134 -0
- package/lib/Command-CUcrW3qs.js.map +1 -0
- package/lib/Dialog-BQciPiHN.js +144 -0
- package/lib/Dialog-BQciPiHN.js.map +1 -0
- package/lib/{Drawer-BzkOKwgC.js → Drawer-Ci7XwhqT.js} +87 -87
- package/lib/{Drawer-BzkOKwgC.js.map → Drawer-Ci7XwhqT.js.map} +1 -1
- package/lib/DropdownMenu-BZ2NKQ3K.js +126 -0
- package/lib/DropdownMenu-BZ2NKQ3K.js.map +1 -0
- package/lib/{Markdown-Cm4kj26S.js → ErrorAlert-_1Zmhr68.js} +3145 -3019
- package/lib/ErrorAlert-_1Zmhr68.js.map +1 -0
- package/lib/MdxPage-B2t1EShN.js +240 -0
- package/lib/MdxPage-B2t1EShN.js.map +1 -0
- package/lib/OAuthErrorPage-DnKnq4xK.js +150 -0
- package/lib/OAuthErrorPage-DnKnq4xK.js.map +1 -0
- package/lib/OasProvider-BhuIkD4Z.js +36 -0
- package/lib/OasProvider-BhuIkD4Z.js.map +1 -0
- package/lib/OperationList-D8EDc9v7.js +5688 -0
- package/lib/OperationList-D8EDc9v7.js.map +1 -0
- package/lib/Pagination-hk-llhpw.js +37 -0
- package/lib/Pagination-hk-llhpw.js.map +1 -0
- package/lib/RouteGuard-Brz95MSt.js +77 -0
- package/lib/RouteGuard-Brz95MSt.js.map +1 -0
- package/lib/RouterError-CMaIfdjb.js +42 -0
- package/lib/RouterError-CMaIfdjb.js.map +1 -0
- package/lib/{SchemaList-BWaNlmUJ.js → SchemaList-E6lF7dID.js} +31 -41
- package/lib/SchemaList-E6lF7dID.js.map +1 -0
- package/lib/SchemaView-CIv-OXgv.js +572 -0
- package/lib/SchemaView-CIv-OXgv.js.map +1 -0
- package/lib/Select-DFRCS31-.js +399 -0
- package/lib/Select-DFRCS31-.js.map +1 -0
- package/lib/SignUp-sGYAsj2K.js +50 -0
- package/lib/SignUp-sGYAsj2K.js.map +1 -0
- package/lib/{Spinner-mNLZ6awP.js → Spinner-CI6bRyZw.js} +2 -2
- package/lib/{Spinner-mNLZ6awP.js.map → Spinner-CI6bRyZw.js.map} +1 -1
- package/lib/{SyntaxHighlight-Cz6Me7-F.js → SyntaxHighlight-C19vH0V_.js} +1838 -1765
- package/lib/SyntaxHighlight-C19vH0V_.js.map +1 -0
- package/lib/{Toc-Qe7A4uj_.js → Toc-DbWS75JZ.js} +7 -7
- package/lib/Toc-DbWS75JZ.js.map +1 -0
- package/lib/ZudokuContext-BUZ5hkWB.js +1508 -0
- package/lib/ZudokuContext-BUZ5hkWB.js.map +1 -0
- package/lib/c-B-NUhs61.js +46 -0
- package/lib/c-B-NUhs61.js.map +1 -0
- package/lib/chunk-PVWAREVJ-BMhpCH5D.js +7965 -0
- package/lib/chunk-PVWAREVJ-BMhpCH5D.js.map +1 -0
- package/lib/{circular-w5eL5J8a.js → circular-BoYo7au5.js} +30 -30
- package/lib/{circular-w5eL5J8a.js.map → circular-BoYo7au5.js.map} +1 -1
- package/lib/{cn-wvCW-ho6.js → cn-dYga0KKN.js} +2 -2
- package/lib/cn-dYga0KKN.js.map +1 -0
- package/lib/commonlisp-De080z23.js +28 -0
- package/lib/commonlisp-De080z23.js.map +1 -0
- package/lib/cpp-79Paht7T.js +53 -0
- package/lib/cpp-79Paht7T.js.map +1 -0
- package/lib/{createServer-p3yUA8Bu.js → createServer-B_BZ7xX8.js} +5108 -4774
- package/lib/createServer-B_BZ7xX8.js.map +1 -0
- package/lib/csharp-D8MIL50B.js +53 -0
- package/lib/csharp-D8MIL50B.js.map +1 -0
- package/lib/css-Bt6hr1td.js +54 -0
- package/lib/css-Bt6hr1td.js.map +1 -0
- package/lib/dart-B0vy1jWB.js +60 -0
- package/lib/dart-B0vy1jWB.js.map +1 -0
- package/lib/elixir-Ds8r0sF8.js +25 -0
- package/lib/elixir-Ds8r0sF8.js.map +1 -0
- package/lib/errors-CD873hrG.js +45 -0
- package/lib/errors-CD873hrG.js.map +1 -0
- package/lib/go-D2VsmIOS.js +25 -0
- package/lib/go-D2VsmIOS.js.map +1 -0
- package/lib/graphql-BtA6M4m5.js +25 -0
- package/lib/graphql-BtA6M4m5.js.map +1 -0
- package/lib/hook-CMeoxziF.js +40 -0
- package/lib/hook-CMeoxziF.js.map +1 -0
- package/lib/html-MGnI2uzP.js +33 -0
- package/lib/html-MGnI2uzP.js.map +1 -0
- package/lib/{index-BvvmIczU.js → index-BK0jKRrX.js} +166 -50
- package/lib/index-BK0jKRrX.js.map +1 -0
- package/lib/index-CrcNWbel.js.map +1 -1
- package/lib/index-DI5SPFK9.js.map +1 -1
- package/lib/index-HNVs5cgX.js +3667 -0
- package/lib/index-HNVs5cgX.js.map +1 -0
- package/lib/{index-zddirpDj.js → index-nGbmHh_A.js} +227 -222
- package/lib/index-nGbmHh_A.js.map +1 -0
- package/lib/index-pMMX55GH.js +1059 -0
- package/lib/index-pMMX55GH.js.map +1 -0
- package/lib/index.esm-BYObtETB.js +1294 -0
- package/lib/index.esm-BYObtETB.js.map +1 -0
- package/lib/{index.esm-BFcSKCe-.js → index.esm-BnYHxCYC.js} +2 -2
- package/lib/{index.esm-BFcSKCe-.js.map → index.esm-BnYHxCYC.js.map} +1 -1
- package/lib/{invariant-DAFpPywt.js → invariant-Bm-FVUQE.js} +2 -6
- package/lib/invariant-Bm-FVUQE.js.map +1 -0
- package/lib/java-CVLzHfb1.js +53 -0
- package/lib/java-CVLzHfb1.js.map +1 -0
- package/lib/javascript-CcmIpL4G.js +10 -0
- package/lib/javascript-CcmIpL4G.js.map +1 -0
- package/lib/json-4AyP4uiY.js +25 -0
- package/lib/json-4AyP4uiY.js.map +1 -0
- package/lib/{jsx-runtime-C5mzlN2N.js → jsx-runtime-BzflLqGi.js} +110 -112
- package/lib/jsx-runtime-BzflLqGi.js.map +1 -0
- package/lib/kotlin-v2plddBQ.js +37 -0
- package/lib/kotlin-v2plddBQ.js.map +1 -0
- package/lib/markdown-DYGWCmGQ.js +25 -0
- package/lib/markdown-DYGWCmGQ.js.map +1 -0
- package/lib/mdx-CHwYvXd4.js +32 -0
- package/lib/mdx-CHwYvXd4.js.map +1 -0
- package/lib/{mutation-BSeQ8pEK.js → mutation-BSU0xu4m.js} +2 -2
- package/lib/{mutation-BSeQ8pEK.js.map → mutation-BSU0xu4m.js.map} +1 -1
- package/lib/objectivec-HZY8shkd.js +32 -0
- package/lib/objectivec-HZY8shkd.js.map +1 -0
- package/lib/ocaml-DqsdDdwb.js +52 -0
- package/lib/ocaml-DqsdDdwb.js.map +1 -0
- package/lib/php-rQXzo7K_.js +25 -0
- package/lib/php-rQXzo7K_.js.map +1 -0
- package/lib/powershell-CQje9pm1.js +39 -0
- package/lib/powershell-CQje9pm1.js.map +1 -0
- package/lib/processors/removeExtensions.js.map +1 -1
- package/lib/processors/removeParameters.js.map +1 -1
- package/lib/processors/removePaths.js.map +1 -1
- package/lib/processors/traverse.js.map +1 -1
- package/lib/python-QIQAE5Ei.js +32 -0
- package/lib/python-QIQAE5Ei.js.map +1 -0
- package/lib/react-DHpVpxRv.js +24 -0
- package/lib/react-DHpVpxRv.js.map +1 -0
- package/lib/ruby-B2dU8Ny5.js +25 -0
- package/lib/ruby-B2dU8Ny5.js.map +1 -0
- package/lib/rust-DYnLHAi2.js +25 -0
- package/lib/rust-DYnLHAi2.js.map +1 -0
- package/lib/scala-CeKInBR8.js +25 -0
- package/lib/scala-CeKInBR8.js.map +1 -0
- package/lib/shell-HUv9oVtp.js +25 -0
- package/lib/shell-HUv9oVtp.js.map +1 -0
- package/lib/swift-B4z6ig1Z.js +25 -0
- package/lib/swift-B4z6ig1Z.js.map +1 -0
- package/lib/toml-Co9mpdct.js +32 -0
- package/lib/toml-Co9mpdct.js.map +1 -0
- package/lib/typescript-C26xdBDC.js +32 -0
- package/lib/typescript-C26xdBDC.js.map +1 -0
- package/lib/ui/Accordion.js +2 -2
- package/lib/ui/Accordion.js.map +1 -1
- package/lib/ui/ActionButton.js +11 -11
- package/lib/ui/ActionButton.js.map +1 -1
- package/lib/ui/Alert.js +55 -39
- package/lib/ui/Alert.js.map +1 -1
- package/lib/ui/AlertDialog.js +2 -2
- package/lib/ui/AlertDialog.js.map +1 -1
- package/lib/ui/Badge.js +28 -14
- package/lib/ui/Badge.js.map +1 -1
- package/lib/ui/Breadcrumb.js +24 -23
- package/lib/ui/Breadcrumb.js.map +1 -1
- package/lib/ui/Button.js +7 -6
- package/lib/ui/Button.js.map +1 -1
- package/lib/ui/Callout.js +20 -20
- package/lib/ui/Callout.js.map +1 -1
- package/lib/ui/Card.js +2 -2
- package/lib/ui/Card.js.map +1 -1
- package/lib/ui/Carousel.js +2 -2
- package/lib/ui/Carousel.js.map +1 -1
- package/lib/ui/Checkbox.js +29 -26
- package/lib/ui/Checkbox.js.map +1 -1
- package/lib/ui/CodeBlock.js +203 -67
- package/lib/ui/CodeBlock.js.map +1 -1
- package/lib/ui/Collapsible.js +32 -5
- package/lib/ui/Collapsible.js.map +1 -1
- package/lib/ui/Command.js +22 -28
- package/lib/ui/Command.js.map +1 -1
- package/lib/ui/Dialog.js +140 -95
- package/lib/ui/Dialog.js.map +1 -1
- package/lib/ui/Drawer.js +3 -3
- package/lib/ui/DropdownMenu.js +2 -2
- package/lib/ui/DropdownMenu.js.map +1 -1
- package/lib/ui/EmbeddedCodeBlock.js +84 -0
- package/lib/ui/EmbeddedCodeBlock.js.map +1 -0
- package/lib/ui/Form.js +3 -3
- package/lib/ui/Form.js.map +1 -1
- package/lib/ui/Frame.js +81 -0
- package/lib/ui/Frame.js.map +1 -0
- package/lib/ui/HoverCard.js +2 -2
- package/lib/ui/HoverCard.js.map +1 -1
- package/lib/ui/Input.js +2 -2
- package/lib/ui/Input.js.map +1 -1
- package/lib/ui/Item.js +188 -0
- package/lib/ui/Item.js.map +1 -0
- package/lib/ui/Label.js +2 -2
- package/lib/ui/Label.js.map +1 -1
- package/lib/ui/NativeSelect.js +57 -0
- package/lib/ui/NativeSelect.js.map +1 -0
- package/lib/ui/Pagination.js +29 -30
- package/lib/ui/Pagination.js.map +1 -1
- package/lib/ui/Popover.js +2 -2
- 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 +2 -2
- package/lib/ui/RadioGroup.js.map +1 -1
- package/lib/ui/ReactComponentDoc.js +28 -0
- package/lib/ui/ReactComponentDoc.js.map +1 -0
- package/lib/ui/ScrollArea.js +2 -2
- package/lib/ui/ScrollArea.js.map +1 -1
- package/lib/ui/Secret.js +106 -0
- package/lib/ui/Secret.js.map +1 -0
- package/lib/ui/Select.js +166 -116
- package/lib/ui/Select.js.map +1 -1
- package/lib/ui/Separator.js +27 -0
- package/lib/ui/Separator.js.map +1 -0
- package/lib/ui/Skeleton.js +2 -2
- package/lib/ui/Skeleton.js.map +1 -1
- package/lib/ui/Slider.js +2 -2
- package/lib/ui/Slider.js.map +1 -1
- package/lib/ui/Stepper.js +1 -1
- package/lib/ui/Stepper.js.map +1 -1
- package/lib/ui/Switch.js +2 -2
- package/lib/ui/Switch.js.map +1 -1
- package/lib/ui/SyntaxHighlight.js +6 -5
- package/lib/ui/SyntaxHighlight.js.map +1 -1
- package/lib/ui/Tabs.js +12 -12
- package/lib/ui/Tabs.js.map +1 -1
- package/lib/ui/Textarea.js +2 -2
- package/lib/ui/Textarea.js.map +1 -1
- package/lib/ui/Toggle.js +2 -2
- 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 +55 -28
- package/lib/ui/Tooltip.js.map +1 -1
- package/lib/ui/Value.js +39 -0
- package/lib/ui/Value.js.map +1 -0
- package/lib/ui/util.js +1 -1
- package/lib/useCopyToClipboard-B_085nfO.js +14 -0
- package/lib/useCopyToClipboard-B_085nfO.js.map +1 -0
- package/lib/useExposedProps-U3pmsHaG.js +113 -0
- package/lib/useExposedProps-U3pmsHaG.js.map +1 -0
- package/lib/useLatest-hmRS46UF.js.map +1 -1
- package/lib/xml-BQOOC04j.js +25 -0
- package/lib/xml-BQOOC04j.js.map +1 -0
- package/lib/yaml-BGsJItKv.js +32 -0
- package/lib/yaml-BGsJItKv.js.map +1 -0
- package/lib/zig-CUV2sTct.js +35 -0
- package/lib/zig-CUV2sTct.js.map +1 -0
- package/lib/zudoku.__internal.js +3084 -0
- package/lib/zudoku.__internal.js.map +1 -0
- package/lib/zudoku.auth-auth0.js +23 -22
- package/lib/zudoku.auth-auth0.js.map +1 -1
- package/lib/zudoku.auth-azureb2c.js +136 -0
- package/lib/zudoku.auth-azureb2c.js.map +1 -0
- package/lib/zudoku.auth-clerk.js +59 -65
- package/lib/zudoku.auth-clerk.js.map +1 -1
- package/lib/zudoku.auth-openid.js +372 -383
- package/lib/zudoku.auth-openid.js.map +1 -1
- package/lib/zudoku.auth-supabase.js +154 -0
- package/lib/zudoku.auth-supabase.js.map +1 -0
- package/lib/zudoku.components.js +27 -4573
- package/lib/zudoku.components.js.map +1 -1
- package/lib/zudoku.hooks.js +13 -14
- package/lib/zudoku.hooks.js.map +1 -1
- package/lib/zudoku.icons.js +1 -1
- package/lib/zudoku.icons.js.map +1 -1
- package/lib/zudoku.plugin-api-catalog.js +62 -55
- package/lib/zudoku.plugin-api-catalog.js.map +1 -1
- package/lib/zudoku.plugin-api-keys.js +456 -328
- package/lib/zudoku.plugin-api-keys.js.map +1 -1
- package/lib/zudoku.plugin-custom-pages.js +15 -18
- package/lib/zudoku.plugin-custom-pages.js.map +1 -1
- package/lib/zudoku.plugin-markdown.js +21 -70
- package/lib/zudoku.plugin-markdown.js.map +1 -1
- package/lib/zudoku.plugin-openapi.js +7 -7
- package/lib/zudoku.plugin-redirect.js +1 -1
- package/lib/zudoku.plugin-redirect.js.map +1 -1
- package/lib/zudoku.plugin-search-inkeep.js +54 -57
- package/lib/zudoku.plugin-search-inkeep.js.map +1 -1
- package/lib/zudoku.plugin-search-pagefind.js +213 -119
- package/lib/zudoku.plugin-search-pagefind.js.map +1 -1
- package/lib/zudoku.plugins.js.map +1 -1
- package/lib/zudoku.router.js +2507 -0
- package/lib/zudoku.router.js.map +1 -0
- package/package.json +140 -110
- package/src/app/ZuploBuildConfig.ts +7 -7
- package/src/app/defaultTheme.css +68 -49
- package/src/app/demo.tsx +25 -7
- package/src/app/entry.client.tsx +7 -8
- package/src/app/entry.server.tsx +20 -12
- package/src/app/env.ts +10 -2
- package/src/app/main.css +59 -33
- package/src/app/main.tsx +46 -36
- package/src/app/standalone.tsx +14 -8
- package/src/lib/MissingIcon.tsx +1 -1
- package/src/lib/assets/language-icons/c.tsx +31 -0
- package/src/lib/assets/language-icons/commonlisp.tsx +22 -0
- package/src/lib/assets/language-icons/cpp.tsx +35 -0
- package/src/lib/assets/language-icons/csharp.tsx +35 -0
- package/src/lib/assets/language-icons/css.tsx +36 -0
- package/src/lib/assets/language-icons/dart.tsx +39 -0
- package/src/lib/assets/language-icons/elixir.tsx +19 -0
- package/src/lib/assets/language-icons/go.tsx +19 -0
- package/src/lib/assets/language-icons/graphql.tsx +19 -0
- package/src/lib/assets/language-icons/html.tsx +24 -0
- package/src/lib/assets/language-icons/java.tsx +35 -0
- package/src/lib/assets/language-icons/javascript.tsx +11 -0
- package/src/lib/assets/language-icons/json.tsx +19 -0
- package/src/lib/assets/language-icons/kotlin.tsx +30 -0
- package/src/lib/assets/language-icons/markdown.tsx +19 -0
- package/src/lib/assets/language-icons/mdx.tsx +23 -0
- package/src/lib/assets/language-icons/objectivec.tsx +23 -0
- package/src/lib/assets/language-icons/ocaml.tsx +34 -0
- package/src/lib/assets/language-icons/php.tsx +19 -0
- package/src/lib/assets/language-icons/powershell.tsx +27 -0
- package/src/lib/assets/language-icons/python.tsx +23 -0
- package/src/lib/assets/language-icons/react.tsx +21 -0
- package/src/lib/assets/language-icons/ruby.tsx +19 -0
- package/src/lib/assets/language-icons/rust.tsx +19 -0
- package/src/lib/assets/language-icons/scala.tsx +19 -0
- package/src/lib/assets/language-icons/shell.tsx +19 -0
- package/src/lib/assets/language-icons/swift.tsx +19 -0
- package/src/lib/assets/language-icons/toml.tsx +23 -0
- package/src/lib/assets/language-icons/typescript.tsx +23 -0
- package/src/lib/assets/language-icons/xml.tsx +19 -0
- package/src/lib/assets/language-icons/yaml.tsx +23 -0
- package/src/lib/assets/language-icons/zig.tsx +32 -0
- package/src/lib/auth/issuer.test.ts +121 -0
- package/src/lib/auth/issuer.ts +44 -0
- package/src/lib/authentication/AuthenticationPlugin.tsx +4 -4
- package/src/lib/authentication/authentication.ts +26 -8
- package/src/lib/authentication/components/CallbackHandler.tsx +23 -16
- package/src/lib/authentication/components/OAuthErrorPage.tsx +171 -0
- package/src/lib/authentication/components/SignIn.tsx +12 -17
- package/src/lib/authentication/components/SignOut.tsx +7 -6
- package/src/lib/authentication/components/SignUp.tsx +5 -8
- package/src/lib/authentication/errors.ts +27 -13
- package/src/lib/authentication/hook.ts +23 -10
- package/src/lib/authentication/providers/auth0.tsx +15 -10
- package/src/lib/authentication/providers/azureb2c.tsx +208 -0
- package/src/lib/authentication/providers/clerk.tsx +21 -20
- package/src/lib/authentication/providers/firebase.tsx +284 -0
- package/src/lib/authentication/providers/openid.tsx +95 -12
- package/src/lib/authentication/providers/supabase/SupabaseAuthUI.tsx +75 -0
- package/src/lib/authentication/providers/supabase.tsx +63 -58
- package/src/lib/authentication/state.ts +40 -30
- package/src/lib/authentication/ui/ZudokuAuthUi.tsx +335 -0
- package/src/lib/authentication/ui/icons/Apple.tsx +10 -0
- package/src/lib/authentication/ui/icons/Facebook.tsx +15 -0
- package/src/lib/authentication/ui/icons/Github.tsx +16 -0
- package/src/lib/authentication/ui/icons/Google.tsx +16 -0
- package/src/lib/authentication/ui/icons/Microsoft.tsx +12 -0
- package/src/lib/authentication/ui/icons/X.tsx +10 -0
- package/src/lib/authentication/use-broadcast/LICENSE.md +12 -3
- package/src/lib/authentication/use-broadcast/shared.ts +4 -4
- package/src/lib/authentication/use-broadcast/useBroadcast.ts +2 -2
- package/src/lib/components/AnchorLink.tsx +1 -1
- package/src/lib/components/Autocomplete.tsx +14 -4
- package/src/lib/components/Banner.tsx +1 -2
- package/src/lib/components/Bootstrap.tsx +3 -4
- package/src/lib/components/BuildCheck.tsx +26 -13
- package/src/lib/components/CategoryHeading.tsx +4 -1
- package/src/lib/components/ErrorPage.tsx +3 -3
- package/src/lib/components/Footer.tsx +1 -1
- package/src/lib/components/Framed.tsx +51 -0
- package/src/lib/components/Header.tsx +28 -25
- package/src/lib/components/Heading.tsx +11 -12
- package/src/lib/components/LanguageIcon.tsx +181 -0
- package/src/lib/components/Layout.tsx +6 -24
- package/src/lib/components/Main.tsx +10 -10
- package/src/lib/components/Markdown.tsx +11 -10
- package/src/lib/components/Meta.tsx +45 -0
- package/src/lib/components/MobileTopNavigation.tsx +70 -15
- package/src/lib/components/NotFoundPage.tsx +6 -5
- package/src/lib/components/PageProgress.tsx +28 -0
- package/src/lib/components/Pagination.tsx +5 -4
- package/src/lib/components/PathRenderer.tsx +2 -2
- package/src/lib/components/Search.tsx +1 -1
- package/src/lib/components/Slot.test.tsx +8 -8
- package/src/lib/components/Slot.tsx +2 -2
- package/src/lib/components/StatusPage.tsx +5 -0
- package/src/lib/components/TopNavigation.tsx +77 -70
- package/src/lib/components/Typography.tsx +14 -0
- package/src/lib/components/Zudoku.tsx +5 -5
- package/src/lib/components/cache.ts +9 -5
- package/src/lib/components/context/ComponentsContext.tsx +2 -2
- package/src/lib/components/context/RouterEventsEmitter.tsx +1 -1
- package/src/lib/components/context/SlotProvider.tsx +4 -4
- package/src/lib/components/context/ViewportAnchorContext.tsx +2 -2
- package/src/lib/components/context/ZudokuContext.ts +77 -43
- package/src/lib/components/context/ZudokuProvider.tsx +1 -1
- package/src/lib/components/index.ts +5 -19
- package/src/lib/components/navigation/{Sidebar.tsx → Navigation.tsx} +18 -16
- package/src/lib/components/navigation/{SidebarBadge.tsx → NavigationBadge.tsx} +1 -1
- package/src/lib/components/navigation/{SidebarCategory.tsx → NavigationCategory.tsx} +25 -16
- package/src/lib/components/navigation/{SidebarItem.tsx → NavigationItem.tsx} +44 -40
- package/src/lib/components/navigation/{SidebarWrapper.tsx → NavigationWrapper.tsx} +8 -5
- package/src/lib/components/navigation/Toc.tsx +5 -5
- package/src/lib/components/navigation/ZudokuLogo.tsx +1 -1
- package/src/lib/components/navigation/utils.ts +50 -46
- package/src/lib/core/RouteGuard.tsx +52 -32
- package/src/lib/core/ZudokuContext.ts +74 -23
- package/src/lib/core/__internal.tsx +30 -0
- package/src/lib/core/plugins.ts +4 -3
- package/src/lib/core/router.ts +1 -0
- package/src/lib/errors/ErrorAlert.tsx +8 -17
- package/src/lib/errors/RouterError.tsx +7 -2
- package/src/lib/errors/TopLevelError.tsx +2 -4
- package/src/lib/hooks/useEvent.test.tsx +9 -7
- package/src/lib/hooks/useHotkey.ts +70 -0
- package/src/lib/oas/graphql/circular.ts +3 -3
- package/src/lib/oas/graphql/index.ts +39 -3
- package/src/lib/oas/parser/dereference/index.ts +2 -1
- package/src/lib/oas/parser/dereference/resolveRef.ts +4 -4
- package/src/lib/oas/parser/index.ts +10 -5
- package/src/lib/oas/parser/upgrade/index.ts +2 -1
- package/src/lib/plugins/api-catalog/Catalog.tsx +8 -1
- package/src/lib/plugins/api-catalog/index.tsx +19 -19
- package/src/lib/plugins/api-keys/CreateApiKey.tsx +18 -4
- package/src/lib/plugins/api-keys/CreateApiKeyDialog.tsx +49 -0
- package/src/lib/plugins/api-keys/ProtectedRoute.tsx +11 -7
- package/src/lib/plugins/api-keys/SettingsApiKeys.tsx +65 -71
- package/src/lib/plugins/api-keys/index.tsx +50 -25
- package/src/lib/plugins/custom-pages/index.tsx +24 -16
- package/src/lib/plugins/markdown/MdxPage.tsx +204 -32
- package/src/lib/plugins/markdown/assets/ChatGPTLogo.tsx +11 -0
- package/src/lib/plugins/markdown/assets/ClaudeLogo.tsx +19 -0
- package/src/lib/plugins/markdown/index.tsx +27 -42
- package/src/lib/plugins/openapi/CollapsibleCode.tsx +5 -3
- package/src/lib/plugins/openapi/ColorizedParam.tsx +3 -1
- package/src/lib/plugins/openapi/Endpoint.tsx +2 -2
- package/src/lib/plugins/openapi/GeneratedExampleSidecarBox.tsx +52 -0
- package/src/lib/plugins/openapi/MCPEndpoint.tsx +273 -0
- package/src/lib/plugins/openapi/OasProvider.tsx +2 -1
- package/src/lib/plugins/openapi/OperationList.tsx +51 -31
- package/src/lib/plugins/openapi/OperationListItem.tsx +106 -79
- package/src/lib/plugins/openapi/ParamInfos.tsx +10 -9
- package/src/lib/plugins/openapi/ParameterList.tsx +40 -28
- package/src/lib/plugins/openapi/ParameterListItem.tsx +110 -59
- package/src/lib/plugins/openapi/PlaygroundDialogWrapper.tsx +8 -13
- package/src/lib/plugins/openapi/RequestBodySidecarBox.tsx +51 -9
- package/src/lib/plugins/openapi/ResponsesSidecarBox.tsx +75 -29
- package/src/lib/plugins/openapi/SchemaList.tsx +5 -11
- package/src/lib/plugins/openapi/Sidecar.tsx +138 -72
- package/src/lib/plugins/openapi/SidecarBox.tsx +26 -4
- package/src/lib/plugins/openapi/SidecarExamples.tsx +93 -87
- package/src/lib/plugins/openapi/StaggeredRender.tsx +1 -1
- package/src/lib/plugins/openapi/client/GraphQLContext.tsx +1 -1
- package/src/lib/plugins/openapi/client/createServer.ts +1 -2
- package/src/lib/plugins/openapi/client/useCreateQuery.ts +3 -2
- package/src/lib/plugins/openapi/components/ConstValue.tsx +1 -1
- package/src/lib/plugins/openapi/components/EnumValues.tsx +2 -2
- package/src/lib/plugins/openapi/components/NonHighlightedCode.tsx +22 -0
- package/src/lib/plugins/openapi/components/ResponseContent.tsx +63 -53
- package/src/lib/plugins/openapi/context.tsx +1 -1
- package/src/lib/plugins/openapi/graphql/fragment-masking.ts +1 -1
- package/src/lib/plugins/openapi/graphql/gql.ts +11 -11
- package/src/lib/plugins/openapi/graphql/graphql.ts +33 -9
- package/src/lib/plugins/openapi/index.tsx +90 -59
- package/src/lib/plugins/openapi/interfaces.ts +22 -7
- package/src/lib/plugins/openapi/playground/BodyPanel.tsx +257 -32
- package/src/lib/plugins/openapi/playground/CollapsibleHeader.tsx +51 -0
- package/src/lib/plugins/openapi/playground/ExamplesDropdown.tsx +11 -6
- package/src/lib/plugins/openapi/playground/Headers.tsx +158 -176
- package/src/lib/plugins/openapi/playground/IdentityDialog.tsx +4 -3
- package/src/lib/plugins/openapi/playground/IdentitySelector.tsx +8 -13
- package/src/lib/plugins/openapi/playground/ParamsGrid.tsx +34 -2
- package/src/lib/plugins/openapi/playground/PathParams.tsx +26 -35
- package/src/lib/plugins/openapi/playground/Playground.tsx +263 -159
- package/src/lib/plugins/openapi/playground/PlaygroundDialog.tsx +23 -33
- package/src/lib/plugins/openapi/playground/QueryParams.tsx +92 -100
- package/src/lib/plugins/openapi/playground/RequestLoginDialog.tsx +20 -1
- package/src/lib/plugins/openapi/playground/Spinner.tsx +87 -0
- package/src/lib/plugins/openapi/playground/fileUtils.ts +1 -1
- package/src/lib/plugins/openapi/playground/request-panel/MultipartField.tsx +91 -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/request-panel/fieldManager/useKeyValueFieldManager.test.tsx +872 -0
- package/src/lib/plugins/openapi/playground/request-panel/useKeyValueFieldManager.ts +349 -0
- package/src/lib/plugins/openapi/playground/result-panel/Highlight.tsx +26 -0
- package/src/lib/plugins/openapi/playground/result-panel/ResponseStatusBar.tsx +117 -0
- package/src/lib/plugins/openapi/playground/result-panel/ResponseTab.tsx +189 -115
- package/src/lib/plugins/openapi/playground/result-panel/ResultPanel.tsx +70 -94
- package/src/lib/plugins/openapi/playground/result-panel/convertToTypes.ts +1 -1
- package/src/lib/plugins/openapi/playground/useRememberSkipLoginDialog.tsx +3 -0
- package/src/lib/plugins/openapi/processors/removeExtensions.test.ts +1 -0
- package/src/lib/plugins/openapi/processors/removeParameters.test.ts +1 -0
- package/src/lib/plugins/openapi/processors/traverse.ts +1 -1
- package/src/lib/plugins/openapi/schema/SchemaExampleAndDefault.tsx +4 -4
- package/src/lib/plugins/openapi/schema/SchemaPropertyItem.tsx +94 -79
- package/src/lib/plugins/openapi/schema/SchemaView.tsx +89 -55
- package/src/lib/plugins/openapi/schema/UnionView.tsx +132 -0
- package/src/lib/plugins/openapi/schema/union-helpers.ts +123 -0
- package/src/lib/plugins/openapi/schema/utils.ts +3 -13
- package/src/lib/plugins/openapi/util/createHttpSnippet.ts +2 -2
- package/src/lib/plugins/openapi/util/{createSidebarCategory.tsx → createNavigationCategory.tsx} +7 -5
- package/src/lib/plugins/openapi/util/generateSchemaExample.ts +14 -15
- package/src/lib/plugins/openapi/util/getRoutes.tsx +4 -4
- package/src/lib/plugins/openapi/util/methodColorMap.tsx +1 -1
- package/src/lib/plugins/search-inkeep/index.tsx +54 -58
- package/src/lib/plugins/search-inkeep/inkeep.ts +19 -21
- package/src/lib/plugins/search-pagefind/PagefindSearch.tsx +3 -4
- package/src/lib/plugins/search-pagefind/ResultList.tsx +16 -8
- package/src/lib/plugins/search-pagefind/get-results.tsx +0 -1
- package/src/lib/shiki.ts +37 -8
- package/src/lib/ui/ActionButton.tsx +3 -1
- package/src/lib/ui/Alert.tsx +45 -39
- package/src/lib/ui/Badge.tsx +21 -12
- package/src/lib/ui/Breadcrumb.tsx +1 -0
- package/src/lib/ui/Button.tsx +1 -0
- package/src/lib/ui/Callout.tsx +10 -5
- package/src/lib/ui/Checkbox.tsx +23 -24
- package/src/lib/ui/CodeBlock.tsx +37 -61
- package/src/lib/ui/Collapsible.tsx +26 -4
- package/src/lib/ui/Command.tsx +2 -4
- package/src/lib/ui/Dialog.tsx +113 -99
- package/src/lib/ui/EmbeddedCodeBlock.tsx +99 -0
- package/src/lib/ui/Form.tsx +4 -4
- package/src/lib/ui/Frame.tsx +81 -0
- package/src/lib/ui/Item.tsx +192 -0
- package/src/lib/ui/NativeSelect.tsx +47 -0
- package/src/lib/ui/Pagination.tsx +1 -2
- package/src/lib/ui/ReactComponentDoc.tsx +68 -0
- package/src/lib/ui/Secret.tsx +123 -0
- package/src/lib/ui/Select.tsx +153 -126
- package/src/lib/ui/Separator.tsx +25 -0
- package/src/lib/ui/SyntaxHighlight.tsx +16 -3
- package/src/lib/ui/ToggleGroup.tsx +1 -1
- package/src/lib/ui/Tooltip.tsx +54 -32
- package/src/lib/ui/Value.tsx +42 -0
- package/src/lib/util/MdxComponents.tsx +24 -5
- package/src/lib/util/cn.ts +1 -1
- package/src/lib/util/createVariantComponent.tsx +33 -7
- package/src/lib/util/flattenAllOf.test.ts +637 -0
- package/src/lib/util/flattenAllOf.ts +101 -0
- package/src/lib/util/groupBy.ts +1 -0
- package/src/lib/util/humanFileSize.ts +2 -3
- package/src/lib/util/invariant.ts +8 -5
- package/src/lib/util/os.ts +18 -0
- package/src/lib/util/pastellize.ts +4 -4
- package/src/lib/util/syncZustandState.ts +22 -0
- package/src/lib/util/traverse.ts +36 -0
- package/src/lib/util/types.ts +1 -1
- package/src/lib/util/useCopyToClipboard.ts +17 -0
- package/src/lib/util/useIsomorphicLayoutEffect.ts +1 -0
- package/src/lib/util/useScrollToAnchor.ts +6 -4
- package/src/shiki/langs/hurl.js +1 -0
- package/src/shiki/langs/kdl.js +1 -0
- package/src/shiki/langs/pkl.js +1 -0
- package/src/shiki/langs/rosmsg.js +1 -0
- package/src/shiki/langs/vue-vine.js +1 -0
- package/dist/config/validators/InputSidebarSchema.d.ts +0 -217
- package/dist/config/validators/InputSidebarSchema.js +0 -62
- 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/ReactMarkdown.d.ts +0 -29
- package/dist/lib/components/ReactMarkdown.js +0 -182
- package/dist/lib/components/ReactMarkdown.js.map +0 -1
- package/dist/lib/components/navigation/Sidebar.d.ts +0 -5
- package/dist/lib/components/navigation/Sidebar.js +0 -10
- package/dist/lib/components/navigation/Sidebar.js.map +0 -1
- package/dist/lib/components/navigation/SidebarBadge.js.map +0 -1
- package/dist/lib/components/navigation/SidebarCategory.d.ts +0 -5
- package/dist/lib/components/navigation/SidebarCategory.js.map +0 -1
- package/dist/lib/components/navigation/SidebarItem.d.ts +0 -6
- package/dist/lib/components/navigation/SidebarItem.js +0 -45
- package/dist/lib/components/navigation/SidebarItem.js.map +0 -1
- package/dist/lib/components/navigation/SidebarWrapper.js.map +0 -1
- package/dist/lib/plugins/custom-pages/CustomPage.d.ts +0 -2
- package/dist/lib/plugins/custom-pages/CustomPage.js +0 -11
- package/dist/lib/plugins/custom-pages/CustomPage.js.map +0 -1
- package/dist/lib/plugins/markdown/resolver.d.ts +0 -32
- package/dist/lib/plugins/markdown/resolver.js +0 -46
- package/dist/lib/plugins/markdown/resolver.js.map +0 -1
- package/dist/lib/plugins/openapi/playground/InlineInput.d.ts +0 -4
- package/dist/lib/plugins/openapi/playground/InlineInput.js +0 -3
- package/dist/lib/plugins/openapi/playground/InlineInput.js.map +0 -1
- package/dist/lib/plugins/openapi/playground/UrlDisplay.d.ts +0 -4
- package/dist/lib/plugins/openapi/playground/UrlDisplay.js +0 -22
- package/dist/lib/plugins/openapi/playground/UrlDisplay.js.map +0 -1
- package/dist/lib/plugins/openapi/playground/result-panel/RequestTab.d.ts +0 -7
- package/dist/lib/plugins/openapi/playground/result-panel/RequestTab.js +0 -11
- package/dist/lib/plugins/openapi/playground/result-panel/RequestTab.js.map +0 -1
- package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.d.ts +0 -8
- package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.js +0 -14
- package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.js.map +0 -1
- package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupConnector.d.ts +0 -7
- package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupConnector.js +0 -17
- package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupConnector.js.map +0 -1
- package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupItem.d.ts +0 -6
- package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupItem.js +0 -10
- package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupItem.js.map +0 -1
- package/dist/lib/plugins/openapi/util/createSidebarCategory.d.ts +0 -9
- package/dist/lib/plugins/openapi/util/createSidebarCategory.js.map +0 -1
- package/dist/vite/plugin-configure-tailwind.d.ts +0 -2
- package/dist/vite/plugin-configure-tailwind.js +0 -38
- package/dist/vite/plugin-configure-tailwind.js.map +0 -1
- package/dist/vite/plugin-sidebar.d.ts +0 -4
- package/dist/vite/plugin-sidebar.js +0 -63
- package/dist/vite/plugin-sidebar.js.map +0 -1
- package/dist/vite/plugin-theme-css.d.ts +0 -5
- package/dist/vite/plugin-theme-css.js +0 -77
- package/dist/vite/plugin-theme-css.js.map +0 -1
- package/dist/vite/remarkStaticGeneration.js.map +0 -1
- package/lib/Button-BE9IVkWV.js.map +0 -1
- package/lib/Callout-CoVxYafP.js +0 -231
- package/lib/Callout-CoVxYafP.js.map +0 -1
- package/lib/CategoryHeading-Cu2RwgjC.js +0 -10
- package/lib/CategoryHeading-Cu2RwgjC.js.map +0 -1
- package/lib/Dialog-BxpuVLh9.js +0 -99
- package/lib/Dialog-BxpuVLh9.js.map +0 -1
- package/lib/Markdown-Cm4kj26S.js.map +0 -1
- package/lib/MdxPage-fDGQtB5w.js +0 -84
- package/lib/MdxPage-fDGQtB5w.js.map +0 -1
- package/lib/OasProvider-CFBvfR3r.js +0 -33
- package/lib/OasProvider-CFBvfR3r.js.map +0 -1
- package/lib/OperationList-Xs4KWmsh.js +0 -5153
- package/lib/OperationList-Xs4KWmsh.js.map +0 -1
- package/lib/Pagination-CCxhL836.js +0 -36
- package/lib/Pagination-CCxhL836.js.map +0 -1
- package/lib/RouteGuard-CZ_uLv3g.js +0 -55
- package/lib/RouteGuard-CZ_uLv3g.js.map +0 -1
- package/lib/SchemaList-BWaNlmUJ.js.map +0 -1
- package/lib/SchemaView-DdKJt2ln.js +0 -375
- package/lib/SchemaView-DdKJt2ln.js.map +0 -1
- package/lib/SignUp-B-1Pvc-8.js +0 -63
- package/lib/SignUp-B-1Pvc-8.js.map +0 -1
- package/lib/Slot-B99cbD-q.js +0 -160
- package/lib/Slot-B99cbD-q.js.map +0 -1
- package/lib/SyntaxHighlight-Cz6Me7-F.js.map +0 -1
- package/lib/Toc-Qe7A4uj_.js.map +0 -1
- package/lib/chunk-DQRVZFIR-BblmKnHy.js +0 -1839
- package/lib/chunk-DQRVZFIR-BblmKnHy.js.map +0 -1
- package/lib/cn-wvCW-ho6.js.map +0 -1
- package/lib/createServer-p3yUA8Bu.js.map +0 -1
- package/lib/hook-k7PfUIsj.js +0 -1465
- package/lib/hook-k7PfUIsj.js.map +0 -1
- package/lib/index--oeBayMa.js +0 -86
- package/lib/index--oeBayMa.js.map +0 -1
- package/lib/index-Bn6Lc9tq.js +0 -9
- package/lib/index-Bn6Lc9tq.js.map +0 -1
- package/lib/index-BvvmIczU.js.map +0 -1
- package/lib/index-QzXzw_ra.js +0 -24
- package/lib/index-QzXzw_ra.js.map +0 -1
- package/lib/index-yqBxBqxF.js +0 -3226
- package/lib/index-yqBxBqxF.js.map +0 -1
- package/lib/index-zddirpDj.js.map +0 -1
- package/lib/index.esm-Cp4wkyud.js +0 -1236
- package/lib/index.esm-Cp4wkyud.js.map +0 -1
- package/lib/invariant-DAFpPywt.js.map +0 -1
- package/lib/joinPath-B7kNnUX4.js +0 -8
- package/lib/joinPath-B7kNnUX4.js.map +0 -1
- package/lib/jsx-runtime-C5mzlN2N.js.map +0 -1
- package/lib/objectEntries-yMIkr2mI.js +0 -5
- package/lib/objectEntries-yMIkr2mI.js.map +0 -1
- package/lib/react-nprogress.esm-C2MPXjiJ.js +0 -389
- package/lib/react-nprogress.esm-C2MPXjiJ.js.map +0 -1
- package/lib/useExposedProps-BZQkZneR.js +0 -9
- package/lib/useExposedProps-BZQkZneR.js.map +0 -1
- package/lib/useMutation-CZSmsIGW.js +0 -97
- package/lib/useMutation-CZSmsIGW.js.map +0 -1
- package/src/lib/components/ReactMarkdown.license.txt +0 -21
- package/src/lib/components/ReactMarkdown.tsx +0 -264
- package/src/lib/plugins/custom-pages/CustomPage.tsx +0 -18
- package/src/lib/plugins/markdown/resolver.ts +0 -59
- package/src/lib/plugins/openapi/playground/InlineInput.tsx +0 -6
- package/src/lib/plugins/openapi/playground/UrlDisplay.tsx +0 -32
- package/src/lib/plugins/openapi/playground/result-panel/RequestTab.tsx +0 -73
- package/src/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.tsx +0 -40
- package/src/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupConnector.tsx +0 -57
- package/src/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupItem.tsx +0 -33
package/lib/hook-k7PfUIsj.js
DELETED
|
@@ -1,1465 +0,0 @@
|
|
|
1
|
-
import * as S from "react";
|
|
2
|
-
import Y, { createContext as Oe, useContext as Re } from "react";
|
|
3
|
-
import { j as Ee } from "./jsx-runtime-C5mzlN2N.js";
|
|
4
|
-
import { u as A, m as X } from "./chunk-DQRVZFIR-BblmKnHy.js";
|
|
5
|
-
import { c as Ce } from "./index-DI5SPFK9.js";
|
|
6
|
-
var G = class {
|
|
7
|
-
constructor() {
|
|
8
|
-
this.listeners = /* @__PURE__ */ new Set(), this.subscribe = this.subscribe.bind(this);
|
|
9
|
-
}
|
|
10
|
-
subscribe(e) {
|
|
11
|
-
return this.listeners.add(e), this.onSubscribe(), () => {
|
|
12
|
-
this.listeners.delete(e), this.onUnsubscribe();
|
|
13
|
-
};
|
|
14
|
-
}
|
|
15
|
-
hasListeners() {
|
|
16
|
-
return this.listeners.size > 0;
|
|
17
|
-
}
|
|
18
|
-
onSubscribe() {
|
|
19
|
-
}
|
|
20
|
-
onUnsubscribe() {
|
|
21
|
-
}
|
|
22
|
-
}, C = typeof window > "u" || "Deno" in globalThis;
|
|
23
|
-
function q() {
|
|
24
|
-
}
|
|
25
|
-
function bt(e, t) {
|
|
26
|
-
return typeof e == "function" ? e(t) : e;
|
|
27
|
-
}
|
|
28
|
-
function U(e) {
|
|
29
|
-
return typeof e == "number" && e >= 0 && e !== 1 / 0;
|
|
30
|
-
}
|
|
31
|
-
function oe(e, t) {
|
|
32
|
-
return Math.max(e + (t || 0) - Date.now(), 0);
|
|
33
|
-
}
|
|
34
|
-
function k(e, t) {
|
|
35
|
-
return typeof e == "function" ? e(t) : e;
|
|
36
|
-
}
|
|
37
|
-
function w(e, t) {
|
|
38
|
-
return typeof e == "function" ? e(t) : e;
|
|
39
|
-
}
|
|
40
|
-
function gt(e, t) {
|
|
41
|
-
const {
|
|
42
|
-
type: s = "all",
|
|
43
|
-
exact: r,
|
|
44
|
-
fetchStatus: n,
|
|
45
|
-
predicate: a,
|
|
46
|
-
queryKey: o,
|
|
47
|
-
stale: i
|
|
48
|
-
} = e;
|
|
49
|
-
if (o) {
|
|
50
|
-
if (r) {
|
|
51
|
-
if (t.queryHash !== Fe(o, t.options))
|
|
52
|
-
return !1;
|
|
53
|
-
} else if (!z(t.queryKey, o))
|
|
54
|
-
return !1;
|
|
55
|
-
}
|
|
56
|
-
if (s !== "all") {
|
|
57
|
-
const u = t.isActive();
|
|
58
|
-
if (s === "active" && !u || s === "inactive" && u)
|
|
59
|
-
return !1;
|
|
60
|
-
}
|
|
61
|
-
return !(typeof i == "boolean" && t.isStale() !== i || n && n !== t.state.fetchStatus || a && !a(t));
|
|
62
|
-
}
|
|
63
|
-
function St(e, t) {
|
|
64
|
-
const { exact: s, status: r, predicate: n, mutationKey: a } = e;
|
|
65
|
-
if (a) {
|
|
66
|
-
if (!t.options.mutationKey)
|
|
67
|
-
return !1;
|
|
68
|
-
if (s) {
|
|
69
|
-
if (Q(t.options.mutationKey) !== Q(a))
|
|
70
|
-
return !1;
|
|
71
|
-
} else if (!z(t.options.mutationKey, a))
|
|
72
|
-
return !1;
|
|
73
|
-
}
|
|
74
|
-
return !(r && t.state.status !== r || n && !n(t));
|
|
75
|
-
}
|
|
76
|
-
function Fe(e, t) {
|
|
77
|
-
return (t?.queryKeyHashFn || Q)(e);
|
|
78
|
-
}
|
|
79
|
-
function Q(e) {
|
|
80
|
-
return JSON.stringify(
|
|
81
|
-
e,
|
|
82
|
-
(t, s) => N(s) ? Object.keys(s).sort().reduce((r, n) => (r[n] = s[n], r), {}) : s
|
|
83
|
-
);
|
|
84
|
-
}
|
|
85
|
-
function z(e, t) {
|
|
86
|
-
return e === t ? !0 : typeof e != typeof t ? !1 : e && t && typeof e == "object" && typeof t == "object" ? Object.keys(t).every((s) => z(e[s], t[s])) : !1;
|
|
87
|
-
}
|
|
88
|
-
function L(e, t) {
|
|
89
|
-
if (e === t)
|
|
90
|
-
return e;
|
|
91
|
-
const s = ee(e) && ee(t);
|
|
92
|
-
if (s || N(e) && N(t)) {
|
|
93
|
-
const r = s ? e : Object.keys(e), n = r.length, a = s ? t : Object.keys(t), o = a.length, i = s ? [] : {};
|
|
94
|
-
let u = 0;
|
|
95
|
-
for (let l = 0; l < o; l++) {
|
|
96
|
-
const h = s ? l : a[l];
|
|
97
|
-
(!s && r.includes(h) || s) && e[h] === void 0 && t[h] === void 0 ? (i[h] = void 0, u++) : (i[h] = L(e[h], t[h]), i[h] === e[h] && e[h] !== void 0 && u++);
|
|
98
|
-
}
|
|
99
|
-
return n === o && u === n ? e : i;
|
|
100
|
-
}
|
|
101
|
-
return t;
|
|
102
|
-
}
|
|
103
|
-
function M(e, t) {
|
|
104
|
-
if (!t || Object.keys(e).length !== Object.keys(t).length)
|
|
105
|
-
return !1;
|
|
106
|
-
for (const s in e)
|
|
107
|
-
if (e[s] !== t[s])
|
|
108
|
-
return !1;
|
|
109
|
-
return !0;
|
|
110
|
-
}
|
|
111
|
-
function ee(e) {
|
|
112
|
-
return Array.isArray(e) && e.length === Object.keys(e).length;
|
|
113
|
-
}
|
|
114
|
-
function N(e) {
|
|
115
|
-
if (!te(e))
|
|
116
|
-
return !1;
|
|
117
|
-
const t = e.constructor;
|
|
118
|
-
if (t === void 0)
|
|
119
|
-
return !0;
|
|
120
|
-
const s = t.prototype;
|
|
121
|
-
return !(!te(s) || !s.hasOwnProperty("isPrototypeOf") || Object.getPrototypeOf(e) !== Object.prototype);
|
|
122
|
-
}
|
|
123
|
-
function te(e) {
|
|
124
|
-
return Object.prototype.toString.call(e) === "[object Object]";
|
|
125
|
-
}
|
|
126
|
-
function Ie(e) {
|
|
127
|
-
return new Promise((t) => {
|
|
128
|
-
setTimeout(t, e);
|
|
129
|
-
});
|
|
130
|
-
}
|
|
131
|
-
function _(e, t, s) {
|
|
132
|
-
if (typeof s.structuralSharing == "function")
|
|
133
|
-
return s.structuralSharing(e, t);
|
|
134
|
-
if (s.structuralSharing !== !1) {
|
|
135
|
-
if (process.env.NODE_ENV !== "production")
|
|
136
|
-
try {
|
|
137
|
-
return L(e, t);
|
|
138
|
-
} catch (r) {
|
|
139
|
-
throw console.error(
|
|
140
|
-
`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}`
|
|
141
|
-
), r;
|
|
142
|
-
}
|
|
143
|
-
return L(e, t);
|
|
144
|
-
}
|
|
145
|
-
return t;
|
|
146
|
-
}
|
|
147
|
-
function wt(e) {
|
|
148
|
-
return e;
|
|
149
|
-
}
|
|
150
|
-
function Ot(e, t, s = 0) {
|
|
151
|
-
const r = [...e, t];
|
|
152
|
-
return s && r.length > s ? r.slice(1) : r;
|
|
153
|
-
}
|
|
154
|
-
function Rt(e, t, s = 0) {
|
|
155
|
-
const r = [t, ...e];
|
|
156
|
-
return s && r.length > s ? r.slice(0, -1) : r;
|
|
157
|
-
}
|
|
158
|
-
var x = Symbol();
|
|
159
|
-
function Pe(e, t) {
|
|
160
|
-
return process.env.NODE_ENV !== "production" && e.queryFn === x && console.error(
|
|
161
|
-
`Attempted to invoke queryFn when set to skipToken. This is likely a configuration error. Query hash: '${e.queryHash}'`
|
|
162
|
-
), !e.queryFn && t?.initialPromise ? () => t.initialPromise : !e.queryFn || e.queryFn === x ? () => Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)) : e.queryFn;
|
|
163
|
-
}
|
|
164
|
-
var Te = class extends G {
|
|
165
|
-
#t;
|
|
166
|
-
#e;
|
|
167
|
-
#s;
|
|
168
|
-
constructor() {
|
|
169
|
-
super(), this.#s = (e) => {
|
|
170
|
-
if (!C && window.addEventListener) {
|
|
171
|
-
const t = () => e();
|
|
172
|
-
return window.addEventListener("visibilitychange", t, !1), () => {
|
|
173
|
-
window.removeEventListener("visibilitychange", t);
|
|
174
|
-
};
|
|
175
|
-
}
|
|
176
|
-
};
|
|
177
|
-
}
|
|
178
|
-
onSubscribe() {
|
|
179
|
-
this.#e || this.setEventListener(this.#s);
|
|
180
|
-
}
|
|
181
|
-
onUnsubscribe() {
|
|
182
|
-
this.hasListeners() || (this.#e?.(), this.#e = void 0);
|
|
183
|
-
}
|
|
184
|
-
setEventListener(e) {
|
|
185
|
-
this.#s = e, this.#e?.(), this.#e = e((t) => {
|
|
186
|
-
typeof t == "boolean" ? this.setFocused(t) : this.onFocus();
|
|
187
|
-
});
|
|
188
|
-
}
|
|
189
|
-
setFocused(e) {
|
|
190
|
-
this.#t !== e && (this.#t = e, this.onFocus());
|
|
191
|
-
}
|
|
192
|
-
onFocus() {
|
|
193
|
-
const e = this.isFocused();
|
|
194
|
-
this.listeners.forEach((t) => {
|
|
195
|
-
t(e);
|
|
196
|
-
});
|
|
197
|
-
}
|
|
198
|
-
isFocused() {
|
|
199
|
-
return typeof this.#t == "boolean" ? this.#t : globalThis.document?.visibilityState !== "hidden";
|
|
200
|
-
}
|
|
201
|
-
}, ue = new Te(), De = class extends G {
|
|
202
|
-
#t = !0;
|
|
203
|
-
#e;
|
|
204
|
-
#s;
|
|
205
|
-
constructor() {
|
|
206
|
-
super(), this.#s = (e) => {
|
|
207
|
-
if (!C && window.addEventListener) {
|
|
208
|
-
const t = () => e(!0), s = () => e(!1);
|
|
209
|
-
return window.addEventListener("online", t, !1), window.addEventListener("offline", s, !1), () => {
|
|
210
|
-
window.removeEventListener("online", t), window.removeEventListener("offline", s);
|
|
211
|
-
};
|
|
212
|
-
}
|
|
213
|
-
};
|
|
214
|
-
}
|
|
215
|
-
onSubscribe() {
|
|
216
|
-
this.#e || this.setEventListener(this.#s);
|
|
217
|
-
}
|
|
218
|
-
onUnsubscribe() {
|
|
219
|
-
this.hasListeners() || (this.#e?.(), this.#e = void 0);
|
|
220
|
-
}
|
|
221
|
-
setEventListener(e) {
|
|
222
|
-
this.#s = e, this.#e?.(), this.#e = e(this.setOnline.bind(this));
|
|
223
|
-
}
|
|
224
|
-
setOnline(e) {
|
|
225
|
-
this.#t !== e && (this.#t = e, this.listeners.forEach((s) => {
|
|
226
|
-
s(e);
|
|
227
|
-
}));
|
|
228
|
-
}
|
|
229
|
-
isOnline() {
|
|
230
|
-
return this.#t;
|
|
231
|
-
}
|
|
232
|
-
}, ce = new De();
|
|
233
|
-
function H() {
|
|
234
|
-
let e, t;
|
|
235
|
-
const s = new Promise((n, a) => {
|
|
236
|
-
e = n, t = a;
|
|
237
|
-
});
|
|
238
|
-
s.status = "pending", s.catch(() => {
|
|
239
|
-
});
|
|
240
|
-
function r(n) {
|
|
241
|
-
Object.assign(s, n), delete s.resolve, delete s.reject;
|
|
242
|
-
}
|
|
243
|
-
return s.resolve = (n) => {
|
|
244
|
-
r({
|
|
245
|
-
status: "fulfilled",
|
|
246
|
-
value: n
|
|
247
|
-
}), e(n);
|
|
248
|
-
}, s.reject = (n) => {
|
|
249
|
-
r({
|
|
250
|
-
status: "rejected",
|
|
251
|
-
reason: n
|
|
252
|
-
}), t(n);
|
|
253
|
-
}, s;
|
|
254
|
-
}
|
|
255
|
-
function ke(e) {
|
|
256
|
-
return Math.min(1e3 * 2 ** e, 3e4);
|
|
257
|
-
}
|
|
258
|
-
function he(e) {
|
|
259
|
-
return (e ?? "online") === "online" ? ce.isOnline() : !0;
|
|
260
|
-
}
|
|
261
|
-
var le = class extends Error {
|
|
262
|
-
constructor(e) {
|
|
263
|
-
super("CancelledError"), this.revert = e?.revert, this.silent = e?.silent;
|
|
264
|
-
}
|
|
265
|
-
};
|
|
266
|
-
function j(e) {
|
|
267
|
-
return e instanceof le;
|
|
268
|
-
}
|
|
269
|
-
function xe(e) {
|
|
270
|
-
let t = !1, s = 0, r = !1, n;
|
|
271
|
-
const a = H(), o = (c) => {
|
|
272
|
-
r || (d(new le(c)), e.abort?.());
|
|
273
|
-
}, i = () => {
|
|
274
|
-
t = !0;
|
|
275
|
-
}, u = () => {
|
|
276
|
-
t = !1;
|
|
277
|
-
}, l = () => ue.isFocused() && (e.networkMode === "always" || ce.isOnline()) && e.canRun(), h = () => he(e.networkMode) && e.canRun(), p = (c) => {
|
|
278
|
-
r || (r = !0, e.onSuccess?.(c), n?.(), a.resolve(c));
|
|
279
|
-
}, d = (c) => {
|
|
280
|
-
r || (r = !0, e.onError?.(c), n?.(), a.reject(c));
|
|
281
|
-
}, m = () => new Promise((c) => {
|
|
282
|
-
n = (b) => {
|
|
283
|
-
(r || l()) && c(b);
|
|
284
|
-
}, e.onPause?.();
|
|
285
|
-
}).then(() => {
|
|
286
|
-
n = void 0, r || e.onContinue?.();
|
|
287
|
-
}), R = () => {
|
|
288
|
-
if (r)
|
|
289
|
-
return;
|
|
290
|
-
let c;
|
|
291
|
-
const b = s === 0 ? e.initialPromise : void 0;
|
|
292
|
-
try {
|
|
293
|
-
c = b ?? e.fn();
|
|
294
|
-
} catch (v) {
|
|
295
|
-
c = Promise.reject(v);
|
|
296
|
-
}
|
|
297
|
-
Promise.resolve(c).then(p).catch((v) => {
|
|
298
|
-
if (r)
|
|
299
|
-
return;
|
|
300
|
-
const f = e.retry ?? (C ? 0 : 3), y = e.retryDelay ?? ke, E = typeof y == "function" ? y(s, v) : y, I = f === !0 || typeof f == "number" && s < f || typeof f == "function" && f(s, v);
|
|
301
|
-
if (t || !I) {
|
|
302
|
-
d(v);
|
|
303
|
-
return;
|
|
304
|
-
}
|
|
305
|
-
s++, e.onFail?.(s, v), Ie(E).then(() => l() ? void 0 : m()).then(() => {
|
|
306
|
-
t ? d(v) : R();
|
|
307
|
-
});
|
|
308
|
-
});
|
|
309
|
-
};
|
|
310
|
-
return {
|
|
311
|
-
promise: a,
|
|
312
|
-
cancel: o,
|
|
313
|
-
continue: () => (n?.(), a),
|
|
314
|
-
cancelRetry: i,
|
|
315
|
-
continueRetry: u,
|
|
316
|
-
canStart: h,
|
|
317
|
-
start: () => (h() ? R() : m().then(R), a)
|
|
318
|
-
};
|
|
319
|
-
}
|
|
320
|
-
var Ae = (e) => setTimeout(e, 0);
|
|
321
|
-
function je() {
|
|
322
|
-
let e = [], t = 0, s = (i) => {
|
|
323
|
-
i();
|
|
324
|
-
}, r = (i) => {
|
|
325
|
-
i();
|
|
326
|
-
}, n = Ae;
|
|
327
|
-
const a = (i) => {
|
|
328
|
-
t ? e.push(i) : n(() => {
|
|
329
|
-
s(i);
|
|
330
|
-
});
|
|
331
|
-
}, o = () => {
|
|
332
|
-
const i = e;
|
|
333
|
-
e = [], i.length && n(() => {
|
|
334
|
-
r(() => {
|
|
335
|
-
i.forEach((u) => {
|
|
336
|
-
s(u);
|
|
337
|
-
});
|
|
338
|
-
});
|
|
339
|
-
});
|
|
340
|
-
};
|
|
341
|
-
return {
|
|
342
|
-
batch: (i) => {
|
|
343
|
-
let u;
|
|
344
|
-
t++;
|
|
345
|
-
try {
|
|
346
|
-
u = i();
|
|
347
|
-
} finally {
|
|
348
|
-
t--, t || o();
|
|
349
|
-
}
|
|
350
|
-
return u;
|
|
351
|
-
},
|
|
352
|
-
/**
|
|
353
|
-
* All calls to the wrapped function will be batched.
|
|
354
|
-
*/
|
|
355
|
-
batchCalls: (i) => (...u) => {
|
|
356
|
-
a(() => {
|
|
357
|
-
i(...u);
|
|
358
|
-
});
|
|
359
|
-
},
|
|
360
|
-
schedule: a,
|
|
361
|
-
/**
|
|
362
|
-
* Use this method to set a custom notify function.
|
|
363
|
-
* This can be used to for example wrap notifications with `React.act` while running tests.
|
|
364
|
-
*/
|
|
365
|
-
setNotifyFunction: (i) => {
|
|
366
|
-
s = i;
|
|
367
|
-
},
|
|
368
|
-
/**
|
|
369
|
-
* Use this method to set a custom function to batch notifications together into a single tick.
|
|
370
|
-
* By default React Query will use the batch function provided by ReactDOM or React Native.
|
|
371
|
-
*/
|
|
372
|
-
setBatchNotifyFunction: (i) => {
|
|
373
|
-
r = i;
|
|
374
|
-
},
|
|
375
|
-
setScheduler: (i) => {
|
|
376
|
-
n = i;
|
|
377
|
-
}
|
|
378
|
-
};
|
|
379
|
-
}
|
|
380
|
-
var $ = je(), qe = class {
|
|
381
|
-
#t;
|
|
382
|
-
destroy() {
|
|
383
|
-
this.clearGcTimeout();
|
|
384
|
-
}
|
|
385
|
-
scheduleGc() {
|
|
386
|
-
this.clearGcTimeout(), U(this.gcTime) && (this.#t = setTimeout(() => {
|
|
387
|
-
this.optionalRemove();
|
|
388
|
-
}, this.gcTime));
|
|
389
|
-
}
|
|
390
|
-
updateGcTime(e) {
|
|
391
|
-
this.gcTime = Math.max(
|
|
392
|
-
this.gcTime || 0,
|
|
393
|
-
e ?? (C ? 1 / 0 : 5 * 60 * 1e3)
|
|
394
|
-
);
|
|
395
|
-
}
|
|
396
|
-
clearGcTimeout() {
|
|
397
|
-
this.#t && (clearTimeout(this.#t), this.#t = void 0);
|
|
398
|
-
}
|
|
399
|
-
}, Et = class extends qe {
|
|
400
|
-
#t;
|
|
401
|
-
#e;
|
|
402
|
-
#s;
|
|
403
|
-
#n;
|
|
404
|
-
#r;
|
|
405
|
-
#o;
|
|
406
|
-
#a;
|
|
407
|
-
constructor(e) {
|
|
408
|
-
super(), this.#a = !1, this.#o = e.defaultOptions, this.setOptions(e.options), this.observers = [], this.#n = e.client, this.#s = this.#n.getQueryCache(), this.queryKey = e.queryKey, this.queryHash = e.queryHash, this.#t = Ue(this.options), this.state = e.state ?? this.#t, this.scheduleGc();
|
|
409
|
-
}
|
|
410
|
-
get meta() {
|
|
411
|
-
return this.options.meta;
|
|
412
|
-
}
|
|
413
|
-
get promise() {
|
|
414
|
-
return this.#r?.promise;
|
|
415
|
-
}
|
|
416
|
-
setOptions(e) {
|
|
417
|
-
this.options = { ...this.#o, ...e }, this.updateGcTime(this.options.gcTime);
|
|
418
|
-
}
|
|
419
|
-
optionalRemove() {
|
|
420
|
-
!this.observers.length && this.state.fetchStatus === "idle" && this.#s.remove(this);
|
|
421
|
-
}
|
|
422
|
-
setData(e, t) {
|
|
423
|
-
const s = _(this.state.data, e, this.options);
|
|
424
|
-
return this.#i({
|
|
425
|
-
data: s,
|
|
426
|
-
type: "success",
|
|
427
|
-
dataUpdatedAt: t?.updatedAt,
|
|
428
|
-
manual: t?.manual
|
|
429
|
-
}), s;
|
|
430
|
-
}
|
|
431
|
-
setState(e, t) {
|
|
432
|
-
this.#i({ type: "setState", state: e, setStateOptions: t });
|
|
433
|
-
}
|
|
434
|
-
cancel(e) {
|
|
435
|
-
const t = this.#r?.promise;
|
|
436
|
-
return this.#r?.cancel(e), t ? t.then(q).catch(q) : Promise.resolve();
|
|
437
|
-
}
|
|
438
|
-
destroy() {
|
|
439
|
-
super.destroy(), this.cancel({ silent: !0 });
|
|
440
|
-
}
|
|
441
|
-
reset() {
|
|
442
|
-
this.destroy(), this.setState(this.#t);
|
|
443
|
-
}
|
|
444
|
-
isActive() {
|
|
445
|
-
return this.observers.some(
|
|
446
|
-
(e) => w(e.options.enabled, this) !== !1
|
|
447
|
-
);
|
|
448
|
-
}
|
|
449
|
-
isDisabled() {
|
|
450
|
-
return this.getObserversCount() > 0 ? !this.isActive() : this.options.queryFn === x || this.state.dataUpdateCount + this.state.errorUpdateCount === 0;
|
|
451
|
-
}
|
|
452
|
-
isStale() {
|
|
453
|
-
return this.state.isInvalidated ? !0 : this.getObserversCount() > 0 ? this.observers.some(
|
|
454
|
-
(e) => e.getCurrentResult().isStale
|
|
455
|
-
) : this.state.data === void 0;
|
|
456
|
-
}
|
|
457
|
-
isStaleByTime(e = 0) {
|
|
458
|
-
return this.state.isInvalidated || this.state.data === void 0 || !oe(this.state.dataUpdatedAt, e);
|
|
459
|
-
}
|
|
460
|
-
onFocus() {
|
|
461
|
-
this.observers.find((t) => t.shouldFetchOnWindowFocus())?.refetch({ cancelRefetch: !1 }), this.#r?.continue();
|
|
462
|
-
}
|
|
463
|
-
onOnline() {
|
|
464
|
-
this.observers.find((t) => t.shouldFetchOnReconnect())?.refetch({ cancelRefetch: !1 }), this.#r?.continue();
|
|
465
|
-
}
|
|
466
|
-
addObserver(e) {
|
|
467
|
-
this.observers.includes(e) || (this.observers.push(e), this.clearGcTimeout(), this.#s.notify({ type: "observerAdded", query: this, observer: e }));
|
|
468
|
-
}
|
|
469
|
-
removeObserver(e) {
|
|
470
|
-
this.observers.includes(e) && (this.observers = this.observers.filter((t) => t !== e), this.observers.length || (this.#r && (this.#a ? this.#r.cancel({ revert: !0 }) : this.#r.cancelRetry()), this.scheduleGc()), this.#s.notify({ type: "observerRemoved", query: this, observer: e }));
|
|
471
|
-
}
|
|
472
|
-
getObserversCount() {
|
|
473
|
-
return this.observers.length;
|
|
474
|
-
}
|
|
475
|
-
invalidate() {
|
|
476
|
-
this.state.isInvalidated || this.#i({ type: "invalidate" });
|
|
477
|
-
}
|
|
478
|
-
fetch(e, t) {
|
|
479
|
-
if (this.state.fetchStatus !== "idle") {
|
|
480
|
-
if (this.state.data !== void 0 && t?.cancelRefetch)
|
|
481
|
-
this.cancel({ silent: !0 });
|
|
482
|
-
else if (this.#r)
|
|
483
|
-
return this.#r.continueRetry(), this.#r.promise;
|
|
484
|
-
}
|
|
485
|
-
if (e && this.setOptions(e), !this.options.queryFn) {
|
|
486
|
-
const i = this.observers.find((u) => u.options.queryFn);
|
|
487
|
-
i && this.setOptions(i.options);
|
|
488
|
-
}
|
|
489
|
-
process.env.NODE_ENV !== "production" && (Array.isArray(this.options.queryKey) || console.error(
|
|
490
|
-
"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']"
|
|
491
|
-
));
|
|
492
|
-
const s = new AbortController(), r = (i) => {
|
|
493
|
-
Object.defineProperty(i, "signal", {
|
|
494
|
-
enumerable: !0,
|
|
495
|
-
get: () => (this.#a = !0, s.signal)
|
|
496
|
-
});
|
|
497
|
-
}, n = () => {
|
|
498
|
-
const i = Pe(this.options, t), u = {
|
|
499
|
-
client: this.#n,
|
|
500
|
-
queryKey: this.queryKey,
|
|
501
|
-
meta: this.meta
|
|
502
|
-
};
|
|
503
|
-
return r(u), this.#a = !1, this.options.persister ? this.options.persister(
|
|
504
|
-
i,
|
|
505
|
-
u,
|
|
506
|
-
this
|
|
507
|
-
) : i(u);
|
|
508
|
-
}, a = {
|
|
509
|
-
fetchOptions: t,
|
|
510
|
-
options: this.options,
|
|
511
|
-
queryKey: this.queryKey,
|
|
512
|
-
client: this.#n,
|
|
513
|
-
state: this.state,
|
|
514
|
-
fetchFn: n
|
|
515
|
-
};
|
|
516
|
-
r(a), this.options.behavior?.onFetch(
|
|
517
|
-
a,
|
|
518
|
-
this
|
|
519
|
-
), this.#e = this.state, (this.state.fetchStatus === "idle" || this.state.fetchMeta !== a.fetchOptions?.meta) && this.#i({ type: "fetch", meta: a.fetchOptions?.meta });
|
|
520
|
-
const o = (i) => {
|
|
521
|
-
j(i) && i.silent || this.#i({
|
|
522
|
-
type: "error",
|
|
523
|
-
error: i
|
|
524
|
-
}), j(i) || (this.#s.config.onError?.(
|
|
525
|
-
i,
|
|
526
|
-
this
|
|
527
|
-
), this.#s.config.onSettled?.(
|
|
528
|
-
this.state.data,
|
|
529
|
-
i,
|
|
530
|
-
this
|
|
531
|
-
)), this.scheduleGc();
|
|
532
|
-
};
|
|
533
|
-
return this.#r = xe({
|
|
534
|
-
initialPromise: t?.initialPromise,
|
|
535
|
-
fn: a.fetchFn,
|
|
536
|
-
abort: s.abort.bind(s),
|
|
537
|
-
onSuccess: (i) => {
|
|
538
|
-
if (i === void 0) {
|
|
539
|
-
process.env.NODE_ENV !== "production" && console.error(
|
|
540
|
-
`Query data cannot be undefined. Please make sure to return a value other than undefined from your query function. Affected query key: ${this.queryHash}`
|
|
541
|
-
), o(new Error(`${this.queryHash} data is undefined`));
|
|
542
|
-
return;
|
|
543
|
-
}
|
|
544
|
-
try {
|
|
545
|
-
this.setData(i);
|
|
546
|
-
} catch (u) {
|
|
547
|
-
o(u);
|
|
548
|
-
return;
|
|
549
|
-
}
|
|
550
|
-
this.#s.config.onSuccess?.(i, this), this.#s.config.onSettled?.(
|
|
551
|
-
i,
|
|
552
|
-
this.state.error,
|
|
553
|
-
this
|
|
554
|
-
), this.scheduleGc();
|
|
555
|
-
},
|
|
556
|
-
onError: o,
|
|
557
|
-
onFail: (i, u) => {
|
|
558
|
-
this.#i({ type: "failed", failureCount: i, error: u });
|
|
559
|
-
},
|
|
560
|
-
onPause: () => {
|
|
561
|
-
this.#i({ type: "pause" });
|
|
562
|
-
},
|
|
563
|
-
onContinue: () => {
|
|
564
|
-
this.#i({ type: "continue" });
|
|
565
|
-
},
|
|
566
|
-
retry: a.options.retry,
|
|
567
|
-
retryDelay: a.options.retryDelay,
|
|
568
|
-
networkMode: a.options.networkMode,
|
|
569
|
-
canRun: () => !0
|
|
570
|
-
}), this.#r.start();
|
|
571
|
-
}
|
|
572
|
-
#i(e) {
|
|
573
|
-
const t = (s) => {
|
|
574
|
-
switch (e.type) {
|
|
575
|
-
case "failed":
|
|
576
|
-
return {
|
|
577
|
-
...s,
|
|
578
|
-
fetchFailureCount: e.failureCount,
|
|
579
|
-
fetchFailureReason: e.error
|
|
580
|
-
};
|
|
581
|
-
case "pause":
|
|
582
|
-
return {
|
|
583
|
-
...s,
|
|
584
|
-
fetchStatus: "paused"
|
|
585
|
-
};
|
|
586
|
-
case "continue":
|
|
587
|
-
return {
|
|
588
|
-
...s,
|
|
589
|
-
fetchStatus: "fetching"
|
|
590
|
-
};
|
|
591
|
-
case "fetch":
|
|
592
|
-
return {
|
|
593
|
-
...s,
|
|
594
|
-
...de(s.data, this.options),
|
|
595
|
-
fetchMeta: e.meta ?? null
|
|
596
|
-
};
|
|
597
|
-
case "success":
|
|
598
|
-
return {
|
|
599
|
-
...s,
|
|
600
|
-
data: e.data,
|
|
601
|
-
dataUpdateCount: s.dataUpdateCount + 1,
|
|
602
|
-
dataUpdatedAt: e.dataUpdatedAt ?? Date.now(),
|
|
603
|
-
error: null,
|
|
604
|
-
isInvalidated: !1,
|
|
605
|
-
status: "success",
|
|
606
|
-
...!e.manual && {
|
|
607
|
-
fetchStatus: "idle",
|
|
608
|
-
fetchFailureCount: 0,
|
|
609
|
-
fetchFailureReason: null
|
|
610
|
-
}
|
|
611
|
-
};
|
|
612
|
-
case "error":
|
|
613
|
-
const r = e.error;
|
|
614
|
-
return j(r) && r.revert && this.#e ? { ...this.#e, fetchStatus: "idle" } : {
|
|
615
|
-
...s,
|
|
616
|
-
error: r,
|
|
617
|
-
errorUpdateCount: s.errorUpdateCount + 1,
|
|
618
|
-
errorUpdatedAt: Date.now(),
|
|
619
|
-
fetchFailureCount: s.fetchFailureCount + 1,
|
|
620
|
-
fetchFailureReason: r,
|
|
621
|
-
fetchStatus: "idle",
|
|
622
|
-
status: "error"
|
|
623
|
-
};
|
|
624
|
-
case "invalidate":
|
|
625
|
-
return {
|
|
626
|
-
...s,
|
|
627
|
-
isInvalidated: !0
|
|
628
|
-
};
|
|
629
|
-
case "setState":
|
|
630
|
-
return {
|
|
631
|
-
...s,
|
|
632
|
-
...e.state
|
|
633
|
-
};
|
|
634
|
-
}
|
|
635
|
-
};
|
|
636
|
-
this.state = t(this.state), $.batch(() => {
|
|
637
|
-
this.observers.forEach((s) => {
|
|
638
|
-
s.onQueryUpdate();
|
|
639
|
-
}), this.#s.notify({ query: this, type: "updated", action: e });
|
|
640
|
-
});
|
|
641
|
-
}
|
|
642
|
-
};
|
|
643
|
-
function de(e, t) {
|
|
644
|
-
return {
|
|
645
|
-
fetchFailureCount: 0,
|
|
646
|
-
fetchFailureReason: null,
|
|
647
|
-
fetchStatus: he(t.networkMode) ? "fetching" : "paused",
|
|
648
|
-
...e === void 0 && {
|
|
649
|
-
error: null,
|
|
650
|
-
status: "pending"
|
|
651
|
-
}
|
|
652
|
-
};
|
|
653
|
-
}
|
|
654
|
-
function Ue(e) {
|
|
655
|
-
const t = typeof e.initialData == "function" ? e.initialData() : e.initialData, s = t !== void 0, r = s ? typeof e.initialDataUpdatedAt == "function" ? e.initialDataUpdatedAt() : e.initialDataUpdatedAt : 0;
|
|
656
|
-
return {
|
|
657
|
-
data: t,
|
|
658
|
-
dataUpdateCount: 0,
|
|
659
|
-
dataUpdatedAt: s ? r ?? Date.now() : 0,
|
|
660
|
-
error: null,
|
|
661
|
-
errorUpdateCount: 0,
|
|
662
|
-
errorUpdatedAt: 0,
|
|
663
|
-
fetchFailureCount: 0,
|
|
664
|
-
fetchFailureReason: null,
|
|
665
|
-
fetchMeta: null,
|
|
666
|
-
isInvalidated: !1,
|
|
667
|
-
status: s ? "success" : "pending",
|
|
668
|
-
fetchStatus: "idle"
|
|
669
|
-
};
|
|
670
|
-
}
|
|
671
|
-
var fe = class extends G {
|
|
672
|
-
constructor(e, t) {
|
|
673
|
-
super(), this.options = t, this.#t = e, this.#i = null, this.#a = H(), this.options.experimental_prefetchInRender || this.#a.reject(
|
|
674
|
-
new Error("experimental_prefetchInRender feature flag is not enabled")
|
|
675
|
-
), this.bindMethods(), this.setOptions(t);
|
|
676
|
-
}
|
|
677
|
-
#t;
|
|
678
|
-
#e = void 0;
|
|
679
|
-
#s = void 0;
|
|
680
|
-
#n = void 0;
|
|
681
|
-
#r;
|
|
682
|
-
#o;
|
|
683
|
-
#a;
|
|
684
|
-
#i;
|
|
685
|
-
#y;
|
|
686
|
-
#d;
|
|
687
|
-
// This property keeps track of the last query with defined data.
|
|
688
|
-
// It will be used to pass the previous data and query to the placeholder function between renders.
|
|
689
|
-
#f;
|
|
690
|
-
#c;
|
|
691
|
-
#h;
|
|
692
|
-
#u;
|
|
693
|
-
#p = /* @__PURE__ */ new Set();
|
|
694
|
-
bindMethods() {
|
|
695
|
-
this.refetch = this.refetch.bind(this);
|
|
696
|
-
}
|
|
697
|
-
onSubscribe() {
|
|
698
|
-
this.listeners.size === 1 && (this.#e.addObserver(this), se(this.#e, this.options) ? this.#l() : this.updateResult(), this.#g());
|
|
699
|
-
}
|
|
700
|
-
onUnsubscribe() {
|
|
701
|
-
this.hasListeners() || this.destroy();
|
|
702
|
-
}
|
|
703
|
-
shouldFetchOnReconnect() {
|
|
704
|
-
return K(
|
|
705
|
-
this.#e,
|
|
706
|
-
this.options,
|
|
707
|
-
this.options.refetchOnReconnect
|
|
708
|
-
);
|
|
709
|
-
}
|
|
710
|
-
shouldFetchOnWindowFocus() {
|
|
711
|
-
return K(
|
|
712
|
-
this.#e,
|
|
713
|
-
this.options,
|
|
714
|
-
this.options.refetchOnWindowFocus
|
|
715
|
-
);
|
|
716
|
-
}
|
|
717
|
-
destroy() {
|
|
718
|
-
this.listeners = /* @__PURE__ */ new Set(), this.#S(), this.#w(), this.#e.removeObserver(this);
|
|
719
|
-
}
|
|
720
|
-
setOptions(e) {
|
|
721
|
-
const t = this.options, s = this.#e;
|
|
722
|
-
if (this.options = this.#t.defaultQueryOptions(e), this.options.enabled !== void 0 && typeof this.options.enabled != "boolean" && typeof this.options.enabled != "function" && typeof w(this.options.enabled, this.#e) != "boolean")
|
|
723
|
-
throw new Error(
|
|
724
|
-
"Expected enabled to be a boolean or a callback that returns a boolean"
|
|
725
|
-
);
|
|
726
|
-
this.#O(), this.#e.setOptions(this.options), t._defaulted && !M(this.options, t) && this.#t.getQueryCache().notify({
|
|
727
|
-
type: "observerOptionsUpdated",
|
|
728
|
-
query: this.#e,
|
|
729
|
-
observer: this
|
|
730
|
-
});
|
|
731
|
-
const r = this.hasListeners();
|
|
732
|
-
r && re(
|
|
733
|
-
this.#e,
|
|
734
|
-
s,
|
|
735
|
-
this.options,
|
|
736
|
-
t
|
|
737
|
-
) && this.#l(), this.updateResult(), r && (this.#e !== s || w(this.options.enabled, this.#e) !== w(t.enabled, this.#e) || k(this.options.staleTime, this.#e) !== k(t.staleTime, this.#e)) && this.#v();
|
|
738
|
-
const n = this.#m();
|
|
739
|
-
r && (this.#e !== s || w(this.options.enabled, this.#e) !== w(t.enabled, this.#e) || n !== this.#u) && this.#b(n);
|
|
740
|
-
}
|
|
741
|
-
getOptimisticResult(e) {
|
|
742
|
-
const t = this.#t.getQueryCache().build(this.#t, e), s = this.createResult(t, e);
|
|
743
|
-
return Le(this, s) && (this.#n = s, this.#o = this.options, this.#r = this.#e.state), s;
|
|
744
|
-
}
|
|
745
|
-
getCurrentResult() {
|
|
746
|
-
return this.#n;
|
|
747
|
-
}
|
|
748
|
-
trackResult(e, t) {
|
|
749
|
-
const s = {};
|
|
750
|
-
return Object.keys(e).forEach((r) => {
|
|
751
|
-
Object.defineProperty(s, r, {
|
|
752
|
-
configurable: !1,
|
|
753
|
-
enumerable: !0,
|
|
754
|
-
get: () => (this.trackProp(r), t?.(r), e[r])
|
|
755
|
-
});
|
|
756
|
-
}), s;
|
|
757
|
-
}
|
|
758
|
-
trackProp(e) {
|
|
759
|
-
this.#p.add(e);
|
|
760
|
-
}
|
|
761
|
-
getCurrentQuery() {
|
|
762
|
-
return this.#e;
|
|
763
|
-
}
|
|
764
|
-
refetch({ ...e } = {}) {
|
|
765
|
-
return this.fetch({
|
|
766
|
-
...e
|
|
767
|
-
});
|
|
768
|
-
}
|
|
769
|
-
fetchOptimistic(e) {
|
|
770
|
-
const t = this.#t.defaultQueryOptions(e), s = this.#t.getQueryCache().build(this.#t, t);
|
|
771
|
-
return s.fetch().then(() => this.createResult(s, t));
|
|
772
|
-
}
|
|
773
|
-
fetch(e) {
|
|
774
|
-
return this.#l({
|
|
775
|
-
...e,
|
|
776
|
-
cancelRefetch: e.cancelRefetch ?? !0
|
|
777
|
-
}).then(() => (this.updateResult(), this.#n));
|
|
778
|
-
}
|
|
779
|
-
#l(e) {
|
|
780
|
-
this.#O();
|
|
781
|
-
let t = this.#e.fetch(
|
|
782
|
-
this.options,
|
|
783
|
-
e
|
|
784
|
-
);
|
|
785
|
-
return e?.throwOnError || (t = t.catch(q)), t;
|
|
786
|
-
}
|
|
787
|
-
#v() {
|
|
788
|
-
this.#S();
|
|
789
|
-
const e = k(
|
|
790
|
-
this.options.staleTime,
|
|
791
|
-
this.#e
|
|
792
|
-
);
|
|
793
|
-
if (C || this.#n.isStale || !U(e))
|
|
794
|
-
return;
|
|
795
|
-
const s = oe(this.#n.dataUpdatedAt, e) + 1;
|
|
796
|
-
this.#c = setTimeout(() => {
|
|
797
|
-
this.#n.isStale || this.updateResult();
|
|
798
|
-
}, s);
|
|
799
|
-
}
|
|
800
|
-
#m() {
|
|
801
|
-
return (typeof this.options.refetchInterval == "function" ? this.options.refetchInterval(this.#e) : this.options.refetchInterval) ?? !1;
|
|
802
|
-
}
|
|
803
|
-
#b(e) {
|
|
804
|
-
this.#w(), this.#u = e, !(C || w(this.options.enabled, this.#e) === !1 || !U(this.#u) || this.#u === 0) && (this.#h = setInterval(() => {
|
|
805
|
-
(this.options.refetchIntervalInBackground || ue.isFocused()) && this.#l();
|
|
806
|
-
}, this.#u));
|
|
807
|
-
}
|
|
808
|
-
#g() {
|
|
809
|
-
this.#v(), this.#b(this.#m());
|
|
810
|
-
}
|
|
811
|
-
#S() {
|
|
812
|
-
this.#c && (clearTimeout(this.#c), this.#c = void 0);
|
|
813
|
-
}
|
|
814
|
-
#w() {
|
|
815
|
-
this.#h && (clearInterval(this.#h), this.#h = void 0);
|
|
816
|
-
}
|
|
817
|
-
createResult(e, t) {
|
|
818
|
-
const s = this.#e, r = this.options, n = this.#n, a = this.#r, o = this.#o, u = e !== s ? e.state : this.#s, { state: l } = e;
|
|
819
|
-
let h = { ...l }, p = !1, d;
|
|
820
|
-
if (t._optimisticResults) {
|
|
821
|
-
const g = this.hasListeners(), T = !g && se(e, t), P = g && re(e, s, t, r);
|
|
822
|
-
(T || P) && (h = {
|
|
823
|
-
...h,
|
|
824
|
-
...de(l.data, e.options)
|
|
825
|
-
}), t._optimisticResults === "isRestoring" && (h.fetchStatus = "idle");
|
|
826
|
-
}
|
|
827
|
-
let { error: m, errorUpdatedAt: R, status: c } = h;
|
|
828
|
-
d = h.data;
|
|
829
|
-
let b = !1;
|
|
830
|
-
if (t.placeholderData !== void 0 && d === void 0 && c === "pending") {
|
|
831
|
-
let g;
|
|
832
|
-
n?.isPlaceholderData && t.placeholderData === o?.placeholderData ? (g = n.data, b = !0) : g = typeof t.placeholderData == "function" ? t.placeholderData(
|
|
833
|
-
this.#f?.state.data,
|
|
834
|
-
this.#f
|
|
835
|
-
) : t.placeholderData, g !== void 0 && (c = "success", d = _(
|
|
836
|
-
n?.data,
|
|
837
|
-
g,
|
|
838
|
-
t
|
|
839
|
-
), p = !0);
|
|
840
|
-
}
|
|
841
|
-
if (t.select && d !== void 0 && !b)
|
|
842
|
-
if (n && d === a?.data && t.select === this.#y)
|
|
843
|
-
d = this.#d;
|
|
844
|
-
else
|
|
845
|
-
try {
|
|
846
|
-
this.#y = t.select, d = t.select(d), d = _(n?.data, d, t), this.#d = d, this.#i = null;
|
|
847
|
-
} catch (g) {
|
|
848
|
-
this.#i = g;
|
|
849
|
-
}
|
|
850
|
-
this.#i && (m = this.#i, d = this.#d, R = Date.now(), c = "error");
|
|
851
|
-
const v = h.fetchStatus === "fetching", f = c === "pending", y = c === "error", E = f && v, I = d !== void 0, O = {
|
|
852
|
-
status: c,
|
|
853
|
-
fetchStatus: h.fetchStatus,
|
|
854
|
-
isPending: f,
|
|
855
|
-
isSuccess: c === "success",
|
|
856
|
-
isError: y,
|
|
857
|
-
isInitialLoading: E,
|
|
858
|
-
isLoading: E,
|
|
859
|
-
data: d,
|
|
860
|
-
dataUpdatedAt: h.dataUpdatedAt,
|
|
861
|
-
error: m,
|
|
862
|
-
errorUpdatedAt: R,
|
|
863
|
-
failureCount: h.fetchFailureCount,
|
|
864
|
-
failureReason: h.fetchFailureReason,
|
|
865
|
-
errorUpdateCount: h.errorUpdateCount,
|
|
866
|
-
isFetched: h.dataUpdateCount > 0 || h.errorUpdateCount > 0,
|
|
867
|
-
isFetchedAfterMount: h.dataUpdateCount > u.dataUpdateCount || h.errorUpdateCount > u.errorUpdateCount,
|
|
868
|
-
isFetching: v,
|
|
869
|
-
isRefetching: v && !f,
|
|
870
|
-
isLoadingError: y && !I,
|
|
871
|
-
isPaused: h.fetchStatus === "paused",
|
|
872
|
-
isPlaceholderData: p,
|
|
873
|
-
isRefetchError: y && I,
|
|
874
|
-
isStale: V(e, t),
|
|
875
|
-
refetch: this.refetch,
|
|
876
|
-
promise: this.#a
|
|
877
|
-
};
|
|
878
|
-
if (this.options.experimental_prefetchInRender) {
|
|
879
|
-
const g = (D) => {
|
|
880
|
-
O.status === "error" ? D.reject(O.error) : O.data !== void 0 && D.resolve(O.data);
|
|
881
|
-
}, T = () => {
|
|
882
|
-
const D = this.#a = O.promise = H();
|
|
883
|
-
g(D);
|
|
884
|
-
}, P = this.#a;
|
|
885
|
-
switch (P.status) {
|
|
886
|
-
case "pending":
|
|
887
|
-
e.queryHash === s.queryHash && g(P);
|
|
888
|
-
break;
|
|
889
|
-
case "fulfilled":
|
|
890
|
-
(O.status === "error" || O.data !== P.value) && T();
|
|
891
|
-
break;
|
|
892
|
-
case "rejected":
|
|
893
|
-
(O.status !== "error" || O.error !== P.reason) && T();
|
|
894
|
-
break;
|
|
895
|
-
}
|
|
896
|
-
}
|
|
897
|
-
return O;
|
|
898
|
-
}
|
|
899
|
-
updateResult() {
|
|
900
|
-
const e = this.#n, t = this.createResult(this.#e, this.options);
|
|
901
|
-
if (this.#r = this.#e.state, this.#o = this.options, this.#r.data !== void 0 && (this.#f = this.#e), M(t, e))
|
|
902
|
-
return;
|
|
903
|
-
this.#n = t;
|
|
904
|
-
const s = () => {
|
|
905
|
-
if (!e)
|
|
906
|
-
return !0;
|
|
907
|
-
const { notifyOnChangeProps: r } = this.options, n = typeof r == "function" ? r() : r;
|
|
908
|
-
if (n === "all" || !n && !this.#p.size)
|
|
909
|
-
return !0;
|
|
910
|
-
const a = new Set(
|
|
911
|
-
n ?? this.#p
|
|
912
|
-
);
|
|
913
|
-
return this.options.throwOnError && a.add("error"), Object.keys(this.#n).some((o) => {
|
|
914
|
-
const i = o;
|
|
915
|
-
return this.#n[i] !== e[i] && a.has(i);
|
|
916
|
-
});
|
|
917
|
-
};
|
|
918
|
-
this.#R({ listeners: s() });
|
|
919
|
-
}
|
|
920
|
-
#O() {
|
|
921
|
-
const e = this.#t.getQueryCache().build(this.#t, this.options);
|
|
922
|
-
if (e === this.#e)
|
|
923
|
-
return;
|
|
924
|
-
const t = this.#e;
|
|
925
|
-
this.#e = e, this.#s = e.state, this.hasListeners() && (t?.removeObserver(this), e.addObserver(this));
|
|
926
|
-
}
|
|
927
|
-
onQueryUpdate() {
|
|
928
|
-
this.updateResult(), this.hasListeners() && this.#g();
|
|
929
|
-
}
|
|
930
|
-
#R(e) {
|
|
931
|
-
$.batch(() => {
|
|
932
|
-
e.listeners && this.listeners.forEach((t) => {
|
|
933
|
-
t(this.#n);
|
|
934
|
-
}), this.#t.getQueryCache().notify({
|
|
935
|
-
query: this.#e,
|
|
936
|
-
type: "observerResultsUpdated"
|
|
937
|
-
});
|
|
938
|
-
});
|
|
939
|
-
}
|
|
940
|
-
};
|
|
941
|
-
function Qe(e, t) {
|
|
942
|
-
return w(t.enabled, e) !== !1 && e.state.data === void 0 && !(e.state.status === "error" && t.retryOnMount === !1);
|
|
943
|
-
}
|
|
944
|
-
function se(e, t) {
|
|
945
|
-
return Qe(e, t) || e.state.data !== void 0 && K(e, t, t.refetchOnMount);
|
|
946
|
-
}
|
|
947
|
-
function K(e, t, s) {
|
|
948
|
-
if (w(t.enabled, e) !== !1) {
|
|
949
|
-
const r = typeof s == "function" ? s(e) : s;
|
|
950
|
-
return r === "always" || r !== !1 && V(e, t);
|
|
951
|
-
}
|
|
952
|
-
return !1;
|
|
953
|
-
}
|
|
954
|
-
function re(e, t, s, r) {
|
|
955
|
-
return (e !== t || w(r.enabled, e) === !1) && (!s.suspense || e.state.status !== "error") && V(e, s);
|
|
956
|
-
}
|
|
957
|
-
function V(e, t) {
|
|
958
|
-
return w(t.enabled, e) !== !1 && e.isStaleByTime(k(t.staleTime, e));
|
|
959
|
-
}
|
|
960
|
-
function Le(e, t) {
|
|
961
|
-
return !M(e.getCurrentResult(), t);
|
|
962
|
-
}
|
|
963
|
-
var pe = S.createContext(
|
|
964
|
-
void 0
|
|
965
|
-
), ye = (e) => {
|
|
966
|
-
const t = S.useContext(pe);
|
|
967
|
-
if (e)
|
|
968
|
-
return e;
|
|
969
|
-
if (!t)
|
|
970
|
-
throw new Error("No QueryClient set, use QueryClientProvider to set one");
|
|
971
|
-
return t;
|
|
972
|
-
}, Ct = ({
|
|
973
|
-
client: e,
|
|
974
|
-
children: t
|
|
975
|
-
}) => (S.useEffect(() => (e.mount(), () => {
|
|
976
|
-
e.unmount();
|
|
977
|
-
}), [e]), /* @__PURE__ */ Ee.jsx(pe.Provider, { value: e, children: t })), ve = S.createContext(!1), Me = () => S.useContext(ve);
|
|
978
|
-
ve.Provider;
|
|
979
|
-
function Ne() {
|
|
980
|
-
let e = !1;
|
|
981
|
-
return {
|
|
982
|
-
clearReset: () => {
|
|
983
|
-
e = !1;
|
|
984
|
-
},
|
|
985
|
-
reset: () => {
|
|
986
|
-
e = !0;
|
|
987
|
-
},
|
|
988
|
-
isReset: () => e
|
|
989
|
-
};
|
|
990
|
-
}
|
|
991
|
-
var _e = S.createContext(Ne()), He = () => S.useContext(_e);
|
|
992
|
-
function Ke(e, t) {
|
|
993
|
-
return typeof e == "function" ? e(...t) : !!e;
|
|
994
|
-
}
|
|
995
|
-
function ne() {
|
|
996
|
-
}
|
|
997
|
-
var Be = (e, t) => {
|
|
998
|
-
(e.suspense || e.throwOnError || e.experimental_prefetchInRender) && (t.isReset() || (e.retryOnMount = !1));
|
|
999
|
-
}, Ge = (e) => {
|
|
1000
|
-
S.useEffect(() => {
|
|
1001
|
-
e.clearReset();
|
|
1002
|
-
}, [e]);
|
|
1003
|
-
}, ze = ({
|
|
1004
|
-
result: e,
|
|
1005
|
-
errorResetBoundary: t,
|
|
1006
|
-
throwOnError: s,
|
|
1007
|
-
query: r,
|
|
1008
|
-
suspense: n
|
|
1009
|
-
}) => e.isError && !t.isReset() && !e.isFetching && r && (n && e.data === void 0 || Ke(s, [e.error, r])), $e = (e, t) => t.state.data === void 0, Ve = (e) => {
|
|
1010
|
-
const t = e.staleTime;
|
|
1011
|
-
e.suspense && (e.staleTime = typeof t == "function" ? (...s) => Math.max(t(...s), 1e3) : Math.max(t ?? 1e3, 1e3), typeof e.gcTime == "number" && (e.gcTime = Math.max(e.gcTime, 1e3)));
|
|
1012
|
-
}, Je = (e, t) => e.isLoading && e.isFetching && !t, Ze = (e, t) => e?.suspense && t.isPending, ie = (e, t, s) => t.fetchOptimistic(e).catch(() => {
|
|
1013
|
-
s.clearReset();
|
|
1014
|
-
});
|
|
1015
|
-
function me(e, t, s) {
|
|
1016
|
-
if (process.env.NODE_ENV !== "production" && (typeof e != "object" || Array.isArray(e)))
|
|
1017
|
-
throw new Error(
|
|
1018
|
-
'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'
|
|
1019
|
-
);
|
|
1020
|
-
const r = ye(s), n = Me(), a = He(), o = r.defaultQueryOptions(e);
|
|
1021
|
-
r.getDefaultOptions().queries?._experimental_beforeQuery?.(
|
|
1022
|
-
o
|
|
1023
|
-
), process.env.NODE_ENV !== "production" && (o.queryFn || console.error(
|
|
1024
|
-
`[${o.queryHash}]: No queryFn was passed as an option, and no default queryFn was found. The queryFn parameter is only optional when using a default queryFn. More info here: https://tanstack.com/query/latest/docs/framework/react/guides/default-query-function`
|
|
1025
|
-
)), o._optimisticResults = n ? "isRestoring" : "optimistic", Ve(o), Be(o, a), Ge(a);
|
|
1026
|
-
const i = !r.getQueryCache().get(o.queryHash), [u] = S.useState(
|
|
1027
|
-
() => new t(
|
|
1028
|
-
r,
|
|
1029
|
-
o
|
|
1030
|
-
)
|
|
1031
|
-
), l = u.getOptimisticResult(o), h = !n && e.subscribed !== !1;
|
|
1032
|
-
if (S.useSyncExternalStore(
|
|
1033
|
-
S.useCallback(
|
|
1034
|
-
(p) => {
|
|
1035
|
-
const d = h ? u.subscribe($.batchCalls(p)) : ne;
|
|
1036
|
-
return u.updateResult(), d;
|
|
1037
|
-
},
|
|
1038
|
-
[u, h]
|
|
1039
|
-
),
|
|
1040
|
-
() => u.getCurrentResult(),
|
|
1041
|
-
() => u.getCurrentResult()
|
|
1042
|
-
), S.useEffect(() => {
|
|
1043
|
-
u.setOptions(o);
|
|
1044
|
-
}, [o, u]), Ze(o, l))
|
|
1045
|
-
throw ie(o, u, a);
|
|
1046
|
-
if (ze({
|
|
1047
|
-
result: l,
|
|
1048
|
-
errorResetBoundary: a,
|
|
1049
|
-
throwOnError: o.throwOnError,
|
|
1050
|
-
query: r.getQueryCache().get(o.queryHash),
|
|
1051
|
-
suspense: o.suspense
|
|
1052
|
-
}))
|
|
1053
|
-
throw l.error;
|
|
1054
|
-
return r.getDefaultOptions().queries?._experimental_afterQuery?.(
|
|
1055
|
-
o,
|
|
1056
|
-
l
|
|
1057
|
-
), o.experimental_prefetchInRender && !C && Je(l, n) && (i ? (
|
|
1058
|
-
// Fetch immediately on render in order to ensure `.promise` is resolved even if the component is unmounted
|
|
1059
|
-
ie(o, u, a)
|
|
1060
|
-
) : (
|
|
1061
|
-
// subscribe to the "cache promise" so that we can finalize the currentThenable once data comes in
|
|
1062
|
-
r.getQueryCache().get(o.queryHash)?.promise
|
|
1063
|
-
))?.catch(ne).finally(() => {
|
|
1064
|
-
u.updateResult();
|
|
1065
|
-
}), o.notifyOnChangeProps ? l : u.trackResult(l);
|
|
1066
|
-
}
|
|
1067
|
-
function We(e, t) {
|
|
1068
|
-
return me(e, fe, t);
|
|
1069
|
-
}
|
|
1070
|
-
function Ye(e, t) {
|
|
1071
|
-
return process.env.NODE_ENV !== "production" && e.queryFn === x && console.error("skipToken is not allowed for useSuspenseQuery"), me(
|
|
1072
|
-
{
|
|
1073
|
-
...e,
|
|
1074
|
-
enabled: !0,
|
|
1075
|
-
suspense: !0,
|
|
1076
|
-
throwOnError: $e,
|
|
1077
|
-
placeholderData: void 0
|
|
1078
|
-
},
|
|
1079
|
-
fe,
|
|
1080
|
-
t
|
|
1081
|
-
);
|
|
1082
|
-
}
|
|
1083
|
-
const Xe = /^(\w+:\/\/[^/?]+)?([^?]*)(\?.*)?$/, et = (e) => e.filter(
|
|
1084
|
-
(t) => t != null && t !== !1 && (typeof t == "string" || typeof t == "number")
|
|
1085
|
-
).map((t) => `${t}`).filter((t) => t), tt = (e) => {
|
|
1086
|
-
const t = e.join("/"), [, s = "", r = ""] = t.match(Xe) ?? [];
|
|
1087
|
-
return {
|
|
1088
|
-
prefix: s,
|
|
1089
|
-
pathname: r.split("/").filter((n) => n !== "")
|
|
1090
|
-
};
|
|
1091
|
-
}, st = (e) => {
|
|
1092
|
-
const { prefix: t, pathname: s } = e;
|
|
1093
|
-
let r = t;
|
|
1094
|
-
return s.length > 0 ? (r ? r += "/" : r = "/", r += s.join("/")) : r || (r = "/"), r;
|
|
1095
|
-
}, F = (...e) => {
|
|
1096
|
-
const t = et(e), s = tt(t);
|
|
1097
|
-
return st(s);
|
|
1098
|
-
}, be = Object.freeze({
|
|
1099
|
-
API_IDENTITIES: ["api-identities"]
|
|
1100
|
-
}), Ft = () => {
|
|
1101
|
-
const e = ye();
|
|
1102
|
-
return {
|
|
1103
|
-
invalidateCache: async (t) => {
|
|
1104
|
-
await e.invalidateQueries({ queryKey: be[t] });
|
|
1105
|
-
}
|
|
1106
|
-
};
|
|
1107
|
-
}, It = "no-dehydrate", J = (e, t) => {
|
|
1108
|
-
for (const s of e) {
|
|
1109
|
-
const r = Z(s, t);
|
|
1110
|
-
if (r !== void 0) return r;
|
|
1111
|
-
}
|
|
1112
|
-
}, Z = (e, t, s = []) => {
|
|
1113
|
-
const r = t(e, s);
|
|
1114
|
-
if (r !== void 0) return r;
|
|
1115
|
-
if (e.type === "category")
|
|
1116
|
-
for (const n of e.items) {
|
|
1117
|
-
const a = Z(n, t, [
|
|
1118
|
-
...s,
|
|
1119
|
-
e
|
|
1120
|
-
]);
|
|
1121
|
-
if (a !== void 0) return a;
|
|
1122
|
-
}
|
|
1123
|
-
}, Pt = () => {
|
|
1124
|
-
const e = A(), s = ge().sidebar;
|
|
1125
|
-
return J(s, (r) => {
|
|
1126
|
-
if (r.type === "doc" && F(r.id) === e.pathname)
|
|
1127
|
-
return r;
|
|
1128
|
-
});
|
|
1129
|
-
}, Tt = (e) => {
|
|
1130
|
-
const t = A();
|
|
1131
|
-
return Z(e, (s) => {
|
|
1132
|
-
if (s.type === "category" && s.link && F(s.link.id) === t.pathname || s.type === "doc" && F(s.id) === t.pathname)
|
|
1133
|
-
return !0;
|
|
1134
|
-
});
|
|
1135
|
-
}, Dt = () => {
|
|
1136
|
-
const e = A().pathname, s = ge().sidebar;
|
|
1137
|
-
let r, n, a = !1;
|
|
1138
|
-
return J(s, (o) => {
|
|
1139
|
-
const i = o.type === "doc" ? F(o.id) : o.type === "category" && o.link ? F(o.link.id) : void 0;
|
|
1140
|
-
if (i) {
|
|
1141
|
-
if (a)
|
|
1142
|
-
return n = { label: o.label, id: i }, !0;
|
|
1143
|
-
e === i ? a = !0 : r = { label: o.label, id: i };
|
|
1144
|
-
}
|
|
1145
|
-
}), { prev: r, next: n };
|
|
1146
|
-
}, kt = Ce(
|
|
1147
|
-
"relative flex items-center gap-2 px-(--padding-nav-item) my-0.5 py-1.5 rounded-lg hover:bg-accent tabular-nums",
|
|
1148
|
-
{
|
|
1149
|
-
variants: {
|
|
1150
|
-
isActive: {
|
|
1151
|
-
true: "bg-accent font-medium",
|
|
1152
|
-
false: "text-foreground/80"
|
|
1153
|
-
},
|
|
1154
|
-
isMuted: {
|
|
1155
|
-
true: "text-foreground/30",
|
|
1156
|
-
false: ""
|
|
1157
|
-
},
|
|
1158
|
-
isPending: {
|
|
1159
|
-
true: "bg-accent animate-pulse",
|
|
1160
|
-
false: ""
|
|
1161
|
-
}
|
|
1162
|
-
},
|
|
1163
|
-
defaultVariants: {
|
|
1164
|
-
isActive: !1
|
|
1165
|
-
}
|
|
1166
|
-
}
|
|
1167
|
-
), xt = (e) => (t) => t.display === "hide" ? !1 : t.display === "auth" && e || t.display === "anon" && !e || !t.display || t.display === "always", rt = Oe(
|
|
1168
|
-
void 0
|
|
1169
|
-
), W = () => {
|
|
1170
|
-
const e = Re(rt);
|
|
1171
|
-
if (!e)
|
|
1172
|
-
throw new Error("useZudoku must be used within a ZudokuProvider.");
|
|
1173
|
-
return e;
|
|
1174
|
-
}, At = () => {
|
|
1175
|
-
const { getApiIdentities: e } = W();
|
|
1176
|
-
return We({
|
|
1177
|
-
queryFn: e,
|
|
1178
|
-
queryKey: be.API_IDENTITIES
|
|
1179
|
-
});
|
|
1180
|
-
}, ge = () => {
|
|
1181
|
-
const { getPluginSidebar: e, sidebars: t, topNavigation: s, options: r } = W(), n = A(), a = dt(), o = r.protectedRoutes?.some(
|
|
1182
|
-
(p) => X(p, n.pathname)
|
|
1183
|
-
);
|
|
1184
|
-
let i = Object.entries(t).find(([, p]) => J(p, (d) => {
|
|
1185
|
-
if ((d.type === "doc" ? F(d.id) : d.type === "category" && d.link ? F(d.link.id) : void 0) === n.pathname)
|
|
1186
|
-
return d;
|
|
1187
|
-
}));
|
|
1188
|
-
const u = s.find((p) => p.id === i?.[0]) ?? s.find((p) => X(p.id, n.pathname));
|
|
1189
|
-
u && !i && u.id in t && (i = ["", t[u.id]]);
|
|
1190
|
-
const { data: l } = Ye({
|
|
1191
|
-
queryFn: () => e(n.pathname),
|
|
1192
|
-
queryKey: ["plugin-sidebar", n.pathname]
|
|
1193
|
-
});
|
|
1194
|
-
return {
|
|
1195
|
-
sidebar: a.isAuthEnabled && !a.isAuthenticated && o ? [] : [...i ? i[1] : [], ...l],
|
|
1196
|
-
topNavItem: u
|
|
1197
|
-
};
|
|
1198
|
-
}, ae = (e) => {
|
|
1199
|
-
let t;
|
|
1200
|
-
const s = /* @__PURE__ */ new Set(), r = (l, h) => {
|
|
1201
|
-
const p = typeof l == "function" ? l(t) : l;
|
|
1202
|
-
if (!Object.is(p, t)) {
|
|
1203
|
-
const d = t;
|
|
1204
|
-
t = h ?? (typeof p != "object" || p === null) ? p : Object.assign({}, t, p), s.forEach((m) => m(t, d));
|
|
1205
|
-
}
|
|
1206
|
-
}, n = () => t, i = { setState: r, getState: n, getInitialState: () => u, subscribe: (l) => (s.add(l), () => s.delete(l)) }, u = t = e(r, n, i);
|
|
1207
|
-
return i;
|
|
1208
|
-
}, nt = (e) => e ? ae(e) : ae, it = (e) => e;
|
|
1209
|
-
function at(e, t = it) {
|
|
1210
|
-
const s = Y.useSyncExternalStore(
|
|
1211
|
-
e.subscribe,
|
|
1212
|
-
() => t(e.getState()),
|
|
1213
|
-
() => t(e.getInitialState())
|
|
1214
|
-
);
|
|
1215
|
-
return Y.useDebugValue(s), s;
|
|
1216
|
-
}
|
|
1217
|
-
const ot = (e) => {
|
|
1218
|
-
const t = nt(e), s = (r) => at(t, r);
|
|
1219
|
-
return Object.assign(s, t), s;
|
|
1220
|
-
}, ut = (e) => ot;
|
|
1221
|
-
function Se(e, t) {
|
|
1222
|
-
let s;
|
|
1223
|
-
try {
|
|
1224
|
-
s = e();
|
|
1225
|
-
} catch {
|
|
1226
|
-
return;
|
|
1227
|
-
}
|
|
1228
|
-
return {
|
|
1229
|
-
getItem: (n) => {
|
|
1230
|
-
var a;
|
|
1231
|
-
const o = (u) => u === null ? null : JSON.parse(u, void 0), i = (a = s.getItem(n)) != null ? a : null;
|
|
1232
|
-
return i instanceof Promise ? i.then(o) : o(i);
|
|
1233
|
-
},
|
|
1234
|
-
setItem: (n, a) => s.setItem(
|
|
1235
|
-
n,
|
|
1236
|
-
JSON.stringify(a, void 0)
|
|
1237
|
-
),
|
|
1238
|
-
removeItem: (n) => s.removeItem(n)
|
|
1239
|
-
};
|
|
1240
|
-
}
|
|
1241
|
-
const B = (e) => (t) => {
|
|
1242
|
-
try {
|
|
1243
|
-
const s = e(t);
|
|
1244
|
-
return s instanceof Promise ? s : {
|
|
1245
|
-
then(r) {
|
|
1246
|
-
return B(r)(s);
|
|
1247
|
-
},
|
|
1248
|
-
catch(r) {
|
|
1249
|
-
return this;
|
|
1250
|
-
}
|
|
1251
|
-
};
|
|
1252
|
-
} catch (s) {
|
|
1253
|
-
return {
|
|
1254
|
-
then(r) {
|
|
1255
|
-
return this;
|
|
1256
|
-
},
|
|
1257
|
-
catch(r) {
|
|
1258
|
-
return B(r)(s);
|
|
1259
|
-
}
|
|
1260
|
-
};
|
|
1261
|
-
}
|
|
1262
|
-
}, ct = (e, t) => (s, r, n) => {
|
|
1263
|
-
let a = {
|
|
1264
|
-
storage: Se(() => localStorage),
|
|
1265
|
-
partialize: (c) => c,
|
|
1266
|
-
version: 0,
|
|
1267
|
-
merge: (c, b) => ({
|
|
1268
|
-
...b,
|
|
1269
|
-
...c
|
|
1270
|
-
}),
|
|
1271
|
-
...t
|
|
1272
|
-
}, o = !1;
|
|
1273
|
-
const i = /* @__PURE__ */ new Set(), u = /* @__PURE__ */ new Set();
|
|
1274
|
-
let l = a.storage;
|
|
1275
|
-
if (!l)
|
|
1276
|
-
return e(
|
|
1277
|
-
(...c) => {
|
|
1278
|
-
console.warn(
|
|
1279
|
-
`[zustand persist middleware] Unable to update item '${a.name}', the given storage is currently unavailable.`
|
|
1280
|
-
), s(...c);
|
|
1281
|
-
},
|
|
1282
|
-
r,
|
|
1283
|
-
n
|
|
1284
|
-
);
|
|
1285
|
-
const h = () => {
|
|
1286
|
-
const c = a.partialize({ ...r() });
|
|
1287
|
-
return l.setItem(a.name, {
|
|
1288
|
-
state: c,
|
|
1289
|
-
version: a.version
|
|
1290
|
-
});
|
|
1291
|
-
}, p = n.setState;
|
|
1292
|
-
n.setState = (c, b) => {
|
|
1293
|
-
p(c, b), h();
|
|
1294
|
-
};
|
|
1295
|
-
const d = e(
|
|
1296
|
-
(...c) => {
|
|
1297
|
-
s(...c), h();
|
|
1298
|
-
},
|
|
1299
|
-
r,
|
|
1300
|
-
n
|
|
1301
|
-
);
|
|
1302
|
-
n.getInitialState = () => d;
|
|
1303
|
-
let m;
|
|
1304
|
-
const R = () => {
|
|
1305
|
-
var c, b;
|
|
1306
|
-
if (!l) return;
|
|
1307
|
-
o = !1, i.forEach((f) => {
|
|
1308
|
-
var y;
|
|
1309
|
-
return f((y = r()) != null ? y : d);
|
|
1310
|
-
});
|
|
1311
|
-
const v = ((b = a.onRehydrateStorage) == null ? void 0 : b.call(a, (c = r()) != null ? c : d)) || void 0;
|
|
1312
|
-
return B(l.getItem.bind(l))(a.name).then((f) => {
|
|
1313
|
-
if (f)
|
|
1314
|
-
if (typeof f.version == "number" && f.version !== a.version) {
|
|
1315
|
-
if (a.migrate) {
|
|
1316
|
-
const y = a.migrate(
|
|
1317
|
-
f.state,
|
|
1318
|
-
f.version
|
|
1319
|
-
);
|
|
1320
|
-
return y instanceof Promise ? y.then((E) => [!0, E]) : [!0, y];
|
|
1321
|
-
}
|
|
1322
|
-
console.error(
|
|
1323
|
-
"State loaded from storage couldn't be migrated since no migrate function was provided"
|
|
1324
|
-
);
|
|
1325
|
-
} else
|
|
1326
|
-
return [!1, f.state];
|
|
1327
|
-
return [!1, void 0];
|
|
1328
|
-
}).then((f) => {
|
|
1329
|
-
var y;
|
|
1330
|
-
const [E, I] = f;
|
|
1331
|
-
if (m = a.merge(
|
|
1332
|
-
I,
|
|
1333
|
-
(y = r()) != null ? y : d
|
|
1334
|
-
), s(m, !0), E)
|
|
1335
|
-
return h();
|
|
1336
|
-
}).then(() => {
|
|
1337
|
-
v?.(m, void 0), m = r(), o = !0, u.forEach((f) => f(m));
|
|
1338
|
-
}).catch((f) => {
|
|
1339
|
-
v?.(void 0, f);
|
|
1340
|
-
});
|
|
1341
|
-
};
|
|
1342
|
-
return n.persist = {
|
|
1343
|
-
setOptions: (c) => {
|
|
1344
|
-
a = {
|
|
1345
|
-
...a,
|
|
1346
|
-
...c
|
|
1347
|
-
}, c.storage && (l = c.storage);
|
|
1348
|
-
},
|
|
1349
|
-
clearStorage: () => {
|
|
1350
|
-
l?.removeItem(a.name);
|
|
1351
|
-
},
|
|
1352
|
-
getOptions: () => a,
|
|
1353
|
-
rehydrate: () => R(),
|
|
1354
|
-
hasHydrated: () => o,
|
|
1355
|
-
onHydrate: (c) => (i.add(c), () => {
|
|
1356
|
-
i.delete(c);
|
|
1357
|
-
}),
|
|
1358
|
-
onFinishHydration: (c) => (u.add(c), () => {
|
|
1359
|
-
u.delete(c);
|
|
1360
|
-
})
|
|
1361
|
-
}, a.skipHydration || R(), m || d;
|
|
1362
|
-
}, ht = ct, lt = (e) => {
|
|
1363
|
-
const t = (s) => {
|
|
1364
|
-
s.key === e.persist.getOptions().name && s.newValue && e.persist.rehydrate();
|
|
1365
|
-
};
|
|
1366
|
-
return window.addEventListener("storage", t), () => {
|
|
1367
|
-
window.removeEventListener("storage", t);
|
|
1368
|
-
};
|
|
1369
|
-
}, we = ut()(
|
|
1370
|
-
ht(
|
|
1371
|
-
(e) => ({
|
|
1372
|
-
isAuthenticated: !1,
|
|
1373
|
-
isPending: !0,
|
|
1374
|
-
profile: null,
|
|
1375
|
-
providerData: null
|
|
1376
|
-
}),
|
|
1377
|
-
{
|
|
1378
|
-
merge: (e, t) => ({
|
|
1379
|
-
...t,
|
|
1380
|
-
isPending: !1,
|
|
1381
|
-
...typeof e == "object" ? e : {}
|
|
1382
|
-
}),
|
|
1383
|
-
name: "auth-state",
|
|
1384
|
-
storage: Se(() => localStorage)
|
|
1385
|
-
}
|
|
1386
|
-
)
|
|
1387
|
-
);
|
|
1388
|
-
typeof window < "u" && lt(we);
|
|
1389
|
-
const dt = () => {
|
|
1390
|
-
const { authentication: e } = W(), t = we(), s = typeof e < "u";
|
|
1391
|
-
return {
|
|
1392
|
-
isAuthEnabled: s,
|
|
1393
|
-
...t,
|
|
1394
|
-
login: async () => {
|
|
1395
|
-
if (!s)
|
|
1396
|
-
throw new Error("Authentication is not enabled.");
|
|
1397
|
-
await e.signIn({
|
|
1398
|
-
redirectTo: window.location.href
|
|
1399
|
-
});
|
|
1400
|
-
},
|
|
1401
|
-
logout: async () => {
|
|
1402
|
-
if (!s)
|
|
1403
|
-
throw new Error("Authentication is not enabled.");
|
|
1404
|
-
await e.signOut(), window.location.href = "/";
|
|
1405
|
-
},
|
|
1406
|
-
signup: async () => {
|
|
1407
|
-
if (!s)
|
|
1408
|
-
throw new Error("Authentication is not enabled.");
|
|
1409
|
-
await e.signUp({
|
|
1410
|
-
redirectTo: window.location.href
|
|
1411
|
-
});
|
|
1412
|
-
}
|
|
1413
|
-
};
|
|
1414
|
-
};
|
|
1415
|
-
export {
|
|
1416
|
-
ue as A,
|
|
1417
|
-
ce as B,
|
|
1418
|
-
be as C,
|
|
1419
|
-
k as D,
|
|
1420
|
-
bt as E,
|
|
1421
|
-
z as F,
|
|
1422
|
-
x as G,
|
|
1423
|
-
Ct as H,
|
|
1424
|
-
xt as I,
|
|
1425
|
-
ge as J,
|
|
1426
|
-
J as K,
|
|
1427
|
-
ut as L,
|
|
1428
|
-
ht as M,
|
|
1429
|
-
It as N,
|
|
1430
|
-
Se as O,
|
|
1431
|
-
At as P,
|
|
1432
|
-
Et as Q,
|
|
1433
|
-
qe as R,
|
|
1434
|
-
G as S,
|
|
1435
|
-
Tt as T,
|
|
1436
|
-
kt as U,
|
|
1437
|
-
rt as Z,
|
|
1438
|
-
Pt as a,
|
|
1439
|
-
Dt as b,
|
|
1440
|
-
xe as c,
|
|
1441
|
-
Ye as d,
|
|
1442
|
-
ye as e,
|
|
1443
|
-
ne as f,
|
|
1444
|
-
Ke as g,
|
|
1445
|
-
Q as h,
|
|
1446
|
-
dt as i,
|
|
1447
|
-
F as j,
|
|
1448
|
-
W as k,
|
|
1449
|
-
We as l,
|
|
1450
|
-
Ft as m,
|
|
1451
|
-
$ as n,
|
|
1452
|
-
wt as o,
|
|
1453
|
-
nt as p,
|
|
1454
|
-
at as q,
|
|
1455
|
-
Fe as r,
|
|
1456
|
-
M as s,
|
|
1457
|
-
gt as t,
|
|
1458
|
-
we as u,
|
|
1459
|
-
St as v,
|
|
1460
|
-
q as w,
|
|
1461
|
-
Pe as x,
|
|
1462
|
-
Rt as y,
|
|
1463
|
-
Ot as z
|
|
1464
|
-
};
|
|
1465
|
-
//# sourceMappingURL=hook-k7PfUIsj.js.map
|