zudoku 0.0.0-feda542 → 0.0.0-ff27e7ea
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 +9 -2
- package/dist/app/ZuploBuildConfig.d.ts +45 -0
- package/dist/app/ZuploBuildConfig.js +29 -0
- package/dist/app/ZuploBuildConfig.js.map +1 -0
- package/dist/app/demo.js +22 -6
- package/dist/app/demo.js.map +1 -1
- package/dist/app/entry.client.d.ts +0 -2
- package/dist/app/entry.client.js +39 -4
- 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 +33 -0
- package/dist/app/env.js +37 -0
- package/dist/app/env.js.map +1 -0
- package/dist/app/main.d.ts +93 -2
- package/dist/app/main.js +45 -47
- 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 +17 -11
- 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 -1
- 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 +18 -32
- package/dist/config/file-exists.d.ts +1 -0
- package/dist/config/file-exists.js +5 -0
- package/dist/config/file-exists.js.map +1 -0
- package/dist/config/loader.d.ts +18 -18
- package/dist/config/loader.js +95 -103
- package/dist/config/loader.js.map +1 -1
- package/dist/config/validators/BuildSchema.d.ts +31 -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.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 +775 -2744
- package/dist/config/validators/validate.js +501 -18
- 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 +183 -0
- package/dist/config/validators/validate.test.js.map +1 -0
- package/dist/flat-config.d.ts +379 -0
- package/dist/index.d.ts +9 -5
- package/dist/index.js +4 -0
- 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 +2 -2
- package/dist/lib/authentication/AuthenticationPlugin.js +1 -1
- package/dist/lib/authentication/AuthenticationPlugin.js.map +1 -1
- package/dist/lib/authentication/authentication.d.ts +20 -14
- package/dist/lib/authentication/components/CallbackHandler.js +16 -10
- package/dist/lib/authentication/components/CallbackHandler.js.map +1 -1
- package/dist/lib/authentication/components/OAuthErrorPage.d.ts +3 -0
- package/dist/lib/authentication/components/OAuthErrorPage.js +99 -0
- package/dist/lib/authentication/components/OAuthErrorPage.js.map +1 -0
- package/dist/lib/authentication/components/SignIn.d.ts +1 -1
- package/dist/lib/authentication/components/SignIn.js +11 -6
- 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.d.ts +1 -1
- package/dist/lib/authentication/components/SignUp.js +8 -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 +16 -7
- 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 +80 -60
- 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 +20 -23
- package/dist/lib/authentication/providers/openid.js +76 -45
- 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 +35 -44
- 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 +8 -4
- 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.js.map +1 -1
- package/dist/lib/components/BuildCheck.d.ts +5 -0
- package/dist/lib/components/BuildCheck.js +45 -0
- package/dist/lib/components/BuildCheck.js.map +1 -0
- package/dist/lib/components/CategoryHeading.js +1 -1
- package/dist/lib/components/CategoryHeading.js.map +1 -1
- package/dist/lib/components/ErrorPage.js +2 -2
- package/dist/lib/components/ErrorPage.js.map +1 -1
- package/dist/lib/components/Footer.js +6 -6
- 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 +25 -18
- package/dist/lib/components/Header.js.map +1 -1
- package/dist/lib/components/Heading.d.ts +9 -5
- package/dist/lib/components/Heading.js +4 -3
- package/dist/lib/components/Heading.js.map +1 -1
- package/dist/lib/components/InlineCode.js +1 -1
- package/dist/lib/components/InlineCode.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 +6 -8
- package/dist/lib/components/Layout.js.map +1 -1
- package/dist/lib/components/Main.js +7 -6
- package/dist/lib/components/Main.js.map +1 -1
- package/dist/lib/components/Markdown.d.ts +3 -2
- package/dist/lib/components/Markdown.js +14 -16
- 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 -6
- 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 +2 -2
- 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 +3 -3
- package/dist/lib/components/Search.js.map +1 -1
- package/dist/lib/components/Slot.d.ts +17 -0
- package/dist/lib/components/Slot.js +24 -0
- package/dist/lib/components/Slot.js.map +1 -0
- package/dist/lib/components/Slot.test.d.ts +1 -0
- package/dist/lib/components/Slot.test.js +172 -0
- package/dist/lib/components/Slot.test.js.map +1 -0
- 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 -6
- package/dist/lib/components/TopNavigation.js +53 -55
- 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 +8 -10
- 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.d.ts +26 -0
- package/dist/lib/components/context/SlotProvider.js +83 -0
- package/dist/lib/components/context/SlotProvider.js.map +1 -0
- package/dist/lib/components/context/ViewportAnchorContext.js +9 -10
- 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 -33
- package/dist/lib/components/context/ZudokuContext.js.map +1 -1
- package/dist/lib/components/context/ZudokuProvider.d.ts +1 -1
- package/dist/lib/components/context/ZudokuProvider.js +2 -1
- package/dist/lib/components/context/ZudokuProvider.js.map +1 -1
- package/dist/lib/components/index.d.ts +51 -47
- package/dist/lib/components/index.js +17 -20
- package/dist/lib/components/index.js.map +1 -1
- package/dist/lib/components/navigation/Navigation.d.ts +5 -0
- package/dist/lib/components/navigation/Navigation.js +12 -0
- package/dist/lib/components/navigation/Navigation.js.map +1 -0
- package/dist/lib/components/navigation/NavigationBadge.d.ts +26 -0
- package/dist/lib/components/navigation/NavigationBadge.js +26 -0
- package/dist/lib/components/navigation/NavigationBadge.js.map +1 -0
- package/dist/lib/components/navigation/NavigationCategory.d.ts +5 -0
- package/dist/lib/components/navigation/NavigationCategory.js +66 -0
- package/dist/lib/components/navigation/NavigationCategory.js.map +1 -0
- package/dist/lib/components/navigation/NavigationItem.d.ts +6 -0
- package/dist/lib/components/navigation/NavigationItem.js +55 -0
- package/dist/lib/components/navigation/NavigationItem.js.map +1 -0
- package/dist/lib/components/navigation/NavigationWrapper.d.ts +7 -0
- package/dist/lib/components/navigation/NavigationWrapper.js +21 -0
- package/dist/lib/components/navigation/NavigationWrapper.js.map +1 -0
- package/dist/lib/components/navigation/PoweredByZudoku.js +2 -1
- package/dist/lib/components/navigation/PoweredByZudoku.js.map +1 -1
- package/dist/lib/components/navigation/Toc.js +2 -2
- 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/ZuploLogo.d.ts +3 -0
- package/dist/lib/components/navigation/ZuploLogo.js +4 -0
- package/dist/lib/components/navigation/ZuploLogo.js.map +1 -0
- package/dist/lib/components/navigation/utils.d.ts +16 -8
- package/dist/lib/components/navigation/utils.js +58 -27
- 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 +38 -21
- package/dist/lib/core/ZudokuContext.js +51 -14
- 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 +8 -4
- package/dist/lib/core/plugins.js +1 -0
- 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 +25 -0
- package/dist/lib/hooks/index.js +11 -0
- package/dist/lib/hooks/index.js.map +1 -1
- package/dist/lib/hooks/useEvent.test.js +5 -3
- package/dist/lib/hooks/useEvent.test.js.map +1 -1
- package/dist/lib/hooks/useHotkey.d.ts +4 -0
- package/dist/lib/hooks/useHotkey.js +58 -0
- package/dist/lib/hooks/useHotkey.js.map +1 -0
- package/dist/lib/oas/graphql/circular.js +24 -19
- 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.d.ts +3 -0
- package/dist/lib/oas/parser/index.js +12 -2
- package/dist/lib/oas/parser/index.js.map +1 -1
- package/dist/lib/oas/parser/upgrade/index.d.ts +1 -0
- package/dist/lib/oas/parser/upgrade/index.js +79 -26
- 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 +8 -2
- 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 +3 -2
- package/dist/lib/plugins/api-keys/CreateApiKey.js +18 -4
- 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 +146 -27
- package/dist/lib/plugins/api-keys/SettingsApiKeys.js.map +1 -1
- package/dist/lib/plugins/api-keys/index.d.ts +29 -15
- package/dist/lib/plugins/api-keys/index.js +63 -33
- package/dist/lib/plugins/api-keys/index.js.map +1 -1
- package/dist/lib/plugins/custom-pages/index.d.ts +4 -6
- package/dist/lib/plugins/custom-pages/index.js +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 +14 -4
- package/dist/lib/plugins/markdown/index.js +9 -26
- package/dist/lib/plugins/markdown/index.js.map +1 -1
- package/dist/lib/plugins/openapi/CollapsibleCode.d.ts +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 +5 -2
- 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 +1 -3
- package/dist/lib/plugins/openapi/OperationList.js +39 -13
- 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 +16 -7
- 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 +15 -10
- 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 +25 -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 +8 -6
- 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 +5 -6
- package/dist/lib/plugins/openapi/ResponsesSidecarBox.js +25 -7
- package/dist/lib/plugins/openapi/ResponsesSidecarBox.js.map +1 -1
- package/dist/lib/plugins/openapi/SchemaList.js +7 -7
- 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 +64 -88
- 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 +32 -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.d.ts +5 -0
- package/dist/lib/plugins/openapi/client/useCreateQuery.js +10 -4
- package/dist/lib/plugins/openapi/client/useCreateQuery.js.map +1 -1
- package/dist/lib/plugins/openapi/components/ConstValue.d.ts +5 -0
- package/dist/lib/plugins/openapi/components/ConstValue.js +6 -0
- package/dist/lib/plugins/openapi/components/ConstValue.js.map +1 -0
- package/dist/lib/plugins/openapi/components/EnumValues.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.d.ts +12 -0
- package/dist/lib/plugins/openapi/components/ResponseContent.js +20 -0
- package/dist/lib/plugins/openapi/components/ResponseContent.js.map +1 -0
- 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 -6
- package/dist/lib/plugins/openapi/index.js +61 -31
- package/dist/lib/plugins/openapi/index.js.map +1 -1
- package/dist/lib/plugins/openapi/interfaces.d.ts +22 -7
- package/dist/lib/plugins/openapi/playground/BodyPanel.d.ts +5 -0
- package/dist/lib/plugins/openapi/playground/BodyPanel.js +78 -0
- package/dist/lib/plugins/openapi/playground/BodyPanel.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/CollapsibleHeader.d.ts +8 -0
- package/dist/lib/plugins/openapi/playground/CollapsibleHeader.js +11 -0
- package/dist/lib/plugins/openapi/playground/CollapsibleHeader.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/ExamplesDropdown.d.ts +3 -3
- package/dist/lib/plugins/openapi/playground/ExamplesDropdown.js +2 -1
- 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 -4
- 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 +12 -10
- package/dist/lib/plugins/openapi/playground/Playground.js +166 -106
- 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 +4 -4
- 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.d.ts +2 -0
- package/dist/lib/plugins/openapi/playground/fileUtils.js +22 -0
- package/dist/lib/plugins/openapi/playground/fileUtils.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/rememberedIdentity.d.ts +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 +10 -4
- package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.js +55 -39
- 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 +18 -0
- package/dist/lib/plugins/openapi/playground/useRememberSkipLoginDialog.js +12 -0
- package/dist/lib/plugins/openapi/playground/useRememberSkipLoginDialog.js.map +1 -0
- package/dist/lib/plugins/openapi/processors/removeExtensions.d.ts +3 -2
- package/dist/lib/plugins/openapi/processors/removeExtensions.js +1 -1
- package/dist/lib/plugins/openapi/processors/removeExtensions.js.map +1 -1
- package/dist/lib/plugins/openapi/processors/removeExtensions.test.js +27 -6
- package/dist/lib/plugins/openapi/processors/removeExtensions.test.js.map +1 -1
- package/dist/lib/plugins/openapi/processors/removeParameters.d.ts +3 -1
- package/dist/lib/plugins/openapi/processors/removeParameters.js +1 -1
- package/dist/lib/plugins/openapi/processors/removeParameters.js.map +1 -1
- package/dist/lib/plugins/openapi/processors/removeParameters.test.js +54 -25
- package/dist/lib/plugins/openapi/processors/removeParameters.test.js.map +1 -1
- package/dist/lib/plugins/openapi/processors/removePaths.d.ts +3 -1
- package/dist/lib/plugins/openapi/processors/removePaths.js +1 -1
- package/dist/lib/plugins/openapi/processors/removePaths.js.map +1 -1
- package/dist/lib/plugins/openapi/processors/removePaths.test.js +75 -35
- package/dist/lib/plugins/openapi/processors/removePaths.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 +5 -2
- 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 +29 -26
- package/dist/lib/plugins/openapi/schema/SchemaPropertyItem.js.map +1 -1
- package/dist/lib/plugins/openapi/schema/SchemaView.d.ts +4 -2
- package/dist/lib/plugins/openapi/schema/SchemaView.js +33 -19
- 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 +6 -8
- package/dist/lib/plugins/openapi/schema/utils.js +15 -13
- 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 +11 -0
- package/dist/lib/plugins/openapi/util/createHttpSnippet.js +89 -0
- package/dist/lib/plugins/openapi/util/createHttpSnippet.js.map +1 -0
- package/dist/lib/plugins/openapi/util/createNavigationCategory.d.ts +9 -0
- package/dist/lib/plugins/openapi/util/createNavigationCategory.js +25 -0
- package/dist/lib/plugins/openapi/util/createNavigationCategory.js.map +1 -0
- package/dist/lib/plugins/openapi/util/generateSchemaExample.d.ts +2 -2
- package/dist/lib/plugins/openapi/util/generateSchemaExample.js +43 -2
- package/dist/lib/plugins/openapi/util/generateSchemaExample.js.map +1 -1
- package/dist/lib/plugins/openapi/util/getRoutes.js +52 -15
- 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/redirect/index.d.ts +1 -1
- package/dist/lib/plugins/search-inkeep/index.d.ts +5 -22
- package/dist/lib/plugins/search-inkeep/index.js +35 -29
- package/dist/lib/plugins/search-inkeep/index.js.map +1 -1
- package/dist/lib/plugins/search-inkeep/inkeep.d.ts +5 -21
- package/dist/lib/plugins/search-inkeep/inkeep.js +10 -19
- package/dist/lib/plugins/search-inkeep/inkeep.js.map +1 -1
- package/dist/lib/plugins/search-pagefind/PagefindSearch.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 +32 -0
- package/dist/lib/shiki.js +124 -0
- package/dist/lib/shiki.js.map +1 -0
- package/dist/lib/ui/ActionButton.js +1 -1
- package/dist/lib/ui/ActionButton.js.map +1 -1
- package/dist/lib/ui/Alert.d.ts +6 -5
- package/dist/lib/ui/Alert.js +12 -10
- package/dist/lib/ui/Alert.js.map +1 -1
- package/dist/lib/ui/Badge.d.ts +5 -5
- 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 +9 -6
- package/dist/lib/ui/Button.js.map +1 -1
- package/dist/lib/ui/Callout.d.ts +5 -5
- package/dist/lib/ui/Callout.js +6 -6
- package/dist/lib/ui/Callout.js.map +1 -1
- package/dist/lib/ui/Card.js +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 +14 -0
- package/dist/lib/ui/CodeBlock.js +18 -0
- package/dist/lib/ui/CodeBlock.js.map +1 -0
- 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 +3 -7
- package/dist/lib/ui/Command.js.map +1 -1
- package/dist/lib/ui/Dialog.d.ts +13 -17
- package/dist/lib/ui/Dialog.js +31 -18
- package/dist/lib/ui/Dialog.js.map +1 -1
- package/dist/lib/ui/DropdownMenu.js +4 -4
- package/dist/lib/ui/DropdownMenu.js.map +1 -1
- package/dist/lib/ui/EmbeddedCodeBlock.d.ts +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 +3 -3
- 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/HoverCard.js +1 -1
- package/dist/lib/ui/HoverCard.js.map +1 -1
- package/dist/lib/ui/Input.js +1 -1
- package/dist/lib/ui/Input.js.map +1 -1
- 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/Popover.js +1 -1
- package/dist/lib/ui/Popover.js.map +1 -1
- package/dist/lib/ui/RadioGroup.js +1 -1
- package/dist/lib/ui/RadioGroup.js.map +1 -1
- package/dist/lib/ui/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/Slider.js +1 -1
- package/dist/lib/ui/Slider.js.map +1 -1
- package/dist/lib/ui/Switch.js +1 -1
- package/dist/lib/ui/Switch.js.map +1 -1
- package/dist/lib/ui/SyntaxHighlight.d.ts +13 -15
- package/dist/lib/ui/SyntaxHighlight.js +13 -60
- package/dist/lib/ui/SyntaxHighlight.js.map +1 -1
- package/dist/lib/ui/Tabs.js +2 -2
- package/dist/lib/ui/Tabs.js.map +1 -1
- package/dist/lib/ui/Textarea.js +1 -1
- package/dist/lib/ui/Textarea.js.map +1 -1
- package/dist/lib/ui/Toggle.js +1 -1
- package/dist/lib/ui/Toggle.js.map +1 -1
- package/dist/lib/ui/ToggleGroup.d.ts +1 -1
- package/dist/lib/ui/Tooltip.d.ts +7 -6
- package/dist/lib/ui/Tooltip.js +16 -9
- 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 +19 -4
- package/dist/lib/util/MdxComponents.js +16 -12
- 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/ensureArray.d.ts +1 -0
- package/dist/lib/util/ensureArray.js +2 -0
- package/dist/lib/util/ensureArray.js.map +1 -0
- package/dist/lib/util/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.d.ts +6 -0
- package/dist/lib/util/humanFileSize.js +14 -0
- package/dist/lib/util/humanFileSize.js.map +1 -0
- package/dist/lib/util/humanFileSize.test.d.ts +1 -0
- package/dist/lib/util/humanFileSize.test.js +22 -0
- package/dist/lib/util/humanFileSize.test.js.map +1 -0
- package/dist/lib/util/invariant.d.ts +6 -5
- package/dist/lib/util/invariant.js +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 +2 -1
- package/dist/lib/util/traverse.js +31 -5
- package/dist/lib/util/traverse.js.map +1 -1
- package/dist/lib/util/url.d.ts +4 -0
- package/dist/lib/util/url.js +13 -0
- package/dist/lib/util/url.js.map +1 -0
- package/dist/lib/util/url.test.d.ts +1 -0
- package/dist/lib/util/url.test.js +26 -0
- package/dist/lib/util/url.test.js.map +1 -0
- package/dist/lib/util/useCopyToClipboard.d.ts +1 -0
- package/dist/lib/util/useCopyToClipboard.js +11 -0
- package/dist/lib/util/useCopyToClipboard.js.map +1 -0
- package/dist/lib/util/useExposedProps.d.ts +8 -1
- package/dist/lib/util/useExposedProps.js.map +1 -1
- package/dist/lib/util/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.js +3 -3
- package/dist/ts.js.map +1 -1
- package/dist/vite/api/SchemaManager.d.ts +38 -0
- package/dist/vite/api/SchemaManager.js +152 -0
- package/dist/vite/api/SchemaManager.js.map +1 -0
- package/dist/vite/api/SchemaManager.test.d.ts +1 -0
- package/dist/vite/api/SchemaManager.test.js +106 -0
- package/dist/vite/api/SchemaManager.test.js.map +1 -0
- package/dist/vite/api/schema-codegen.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 +22 -7
- package/dist/vite/build.js.map +1 -1
- package/dist/vite/config.d.ts +2 -9
- package/dist/vite/config.js +61 -97
- package/dist/vite/config.js.map +1 -1
- package/dist/vite/config.test.js +1 -1
- package/dist/vite/config.test.js.map +1 -1
- package/dist/vite/css/plugin.d.ts +1 -2
- package/dist/vite/css/plugin.js +14 -2
- package/dist/vite/css/plugin.js.map +1 -1
- package/dist/vite/dev-server.d.ts +0 -1
- package/dist/vite/dev-server.js +25 -16
- 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/html.d.ts +7 -3
- package/dist/vite/html.js +15 -9
- package/dist/vite/html.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 +82 -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/mdx/remark-static-generation.d.ts +3 -0
- package/dist/vite/mdx/remark-static-generation.js +125 -0
- 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 +2 -3
- package/dist/vite/plugin-api-keys.js +10 -4
- package/dist/vite/plugin-api-keys.js.map +1 -1
- package/dist/vite/plugin-api.d.ts +1 -2
- package/dist/vite/plugin-api.js +59 -135
- package/dist/vite/plugin-api.js.map +1 -1
- package/dist/vite/plugin-auth.d.ts +2 -3
- package/dist/vite/plugin-auth.js +4 -3
- package/dist/vite/plugin-auth.js.map +1 -1
- package/dist/vite/plugin-component.d.ts +2 -3
- package/dist/vite/plugin-component.js +3 -2
- package/dist/vite/plugin-component.js.map +1 -1
- package/dist/vite/plugin-config-reload.d.ts +2 -3
- package/dist/vite/plugin-config-reload.js +23 -22
- package/dist/vite/plugin-config-reload.js.map +1 -1
- package/dist/vite/plugin-config.d.ts +2 -3
- package/dist/vite/plugin-config.js +6 -4
- package/dist/vite/plugin-config.js.map +1 -1
- package/dist/vite/plugin-custom-pages.d.ts +2 -3
- package/dist/vite/plugin-custom-pages.js +6 -5
- package/dist/vite/plugin-custom-pages.js.map +1 -1
- package/dist/vite/plugin-docs.d.ts +10 -2
- package/dist/vite/plugin-docs.js +95 -64
- package/dist/vite/plugin-docs.js.map +1 -1
- package/dist/vite/plugin-frontmatter.d.ts +1 -2
- package/dist/vite/plugin-frontmatter.js +10 -5
- 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 -3
- package/dist/vite/plugin-mdx.js +60 -94
- 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 +2 -3
- package/dist/vite/plugin-redirect.js +4 -3
- package/dist/vite/plugin-redirect.js.map +1 -1
- package/dist/vite/plugin-search.d.ts +2 -3
- package/dist/vite/plugin-search.js +4 -3
- package/dist/vite/plugin-search.js.map +1 -1
- package/dist/vite/plugin-shiki-register.d.ts +2 -0
- package/dist/vite/plugin-shiki-register.js +39 -0
- package/dist/vite/plugin-shiki-register.js.map +1 -0
- package/dist/vite/plugin-theme.d.ts +8 -0
- package/dist/vite/plugin-theme.js +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 +2 -3
- package/dist/vite/plugin.js +26 -23
- 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.d.ts +1 -1
- 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 +4 -3
- package/dist/zuplo/enrich-with-zuplo.js +22 -21
- 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.d.ts +2 -2
- package/dist/zuplo/with-zuplo-processors.js +6 -4
- package/dist/zuplo/with-zuplo-processors.js.map +1 -1
- package/dist/zuplo/with-zuplo.d.ts +5 -2
- package/dist/zuplo/with-zuplo.js +6 -9
- package/dist/zuplo/with-zuplo.js.map +1 -1
- package/lib/Button-B3ucvvQw.js +52 -0
- package/lib/Button-B3ucvvQw.js.map +1 -0
- package/lib/Card-KFniaZn5.js +61 -0
- package/lib/Card-KFniaZn5.js.map +1 -0
- 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-Ci7XwhqT.js +1133 -0
- package/lib/Drawer-Ci7XwhqT.js.map +1 -0
- package/lib/DropdownMenu-BZ2NKQ3K.js +126 -0
- package/lib/DropdownMenu-BZ2NKQ3K.js.map +1 -0
- package/lib/ErrorAlert-_1Zmhr68.js +15475 -0
- 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-Df8i4LN9.js +36 -0
- package/lib/OasProvider-Df8i4LN9.js.map +1 -0
- package/lib/OperationList-BGhUll5h.js +5688 -0
- package/lib/OperationList-BGhUll5h.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-1BwTDYj4.js +150 -0
- package/lib/SchemaList-1BwTDYj4.js.map +1 -0
- package/lib/SchemaView-iAxsr0Pr.js +572 -0
- package/lib/SchemaView-iAxsr0Pr.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-CI6bRyZw.js +7 -0
- package/lib/Spinner-CI6bRyZw.js.map +1 -0
- package/lib/SyntaxHighlight-C19vH0V_.js +10352 -0
- package/lib/SyntaxHighlight-C19vH0V_.js.map +1 -0
- package/lib/Toc-DbWS75JZ.js +92 -0
- 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-KI-MGwIg.js +15341 -0
- package/lib/circular-KI-MGwIg.js.map +1 -0
- package/lib/clsx-OuTLNxxd.js +17 -0
- package/lib/clsx-OuTLNxxd.js.map +1 -0
- package/lib/cn-dYga0KKN.js +2731 -0
- package/lib/cn-dYga0KKN.js.map +1 -0
- package/lib/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-CBgHAqRV.js +13018 -0
- package/lib/createServer-CBgHAqRV.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-BK0jKRrX.js +2210 -0
- package/lib/index-BK0jKRrX.js.map +1 -0
- package/lib/index-CrcNWbel.js +316 -0
- package/lib/index-CrcNWbel.js.map +1 -0
- package/lib/index-CscynaXA.js +3680 -0
- package/lib/index-CscynaXA.js.map +1 -0
- package/lib/index-DI5SPFK9.js +36 -0
- package/lib/index-DI5SPFK9.js.map +1 -0
- package/lib/index-nGbmHh_A.js +4827 -0
- 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-BnYHxCYC.js +683 -0
- package/lib/index.esm-BnYHxCYC.js.map +1 -0
- package/lib/invariant-Bm-FVUQE.js +44 -0
- 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-BzflLqGi.js +283 -0
- 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-BSU0xu4m.js +196 -0
- package/lib/mutation-BSU0xu4m.js.map +1 -0
- 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 +1 -1
- package/lib/processors/removeExtensions.js.map +1 -1
- package/lib/processors/removeParameters.js +27 -28
- package/lib/processors/removeParameters.js.map +1 -1
- package/lib/processors/removePaths.js +17 -17
- package/lib/processors/removePaths.js.map +1 -1
- package/lib/processors/traverse.js +9 -7
- 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 +20 -17
- package/lib/ui/Button.js.map +1 -1
- package/lib/ui/Callout.js +18 -17
- package/lib/ui/Callout.js.map +1 -1
- package/lib/ui/Card.js +9 -9
- package/lib/ui/Card.js.map +1 -1
- package/lib/ui/Carousel.js +348 -348
- 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 +220 -0
- package/lib/ui/CodeBlock.js.map +1 -0
- package/lib/ui/Collapsible.js +32 -5
- package/lib/ui/Collapsible.js.map +1 -1
- package/lib/ui/Command.js +67 -73
- 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 +35 -35
- 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 +6 -6
- package/lib/ui/HoverCard.js.map +1 -1
- package/lib/ui/Input.js +3 -3
- package/lib/ui/Input.js.map +1 -1
- package/lib/ui/Item.js +188 -0
- package/lib/ui/Item.js.map +1 -0
- package/lib/ui/Label.js +3 -3
- 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 +3 -3
- package/lib/ui/Popover.js.map +1 -1
- package/lib/ui/Progress.js +2 -2
- package/lib/ui/Progress.js.map +1 -1
- package/lib/ui/RadioGroup.js +11 -11
- package/lib/ui/RadioGroup.js.map +1 -1
- package/lib/ui/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 +6 -6
- 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 +6 -6
- package/lib/ui/Switch.js.map +1 -1
- package/lib/ui/SyntaxHighlight.js +6 -6
- package/lib/ui/Tabs.js +12 -12
- package/lib/ui/Tabs.js.map +1 -1
- package/lib/ui/Textarea.js +6 -6
- package/lib/ui/Textarea.js.map +1 -1
- package/lib/ui/Toggle.js +8 -8
- package/lib/ui/Toggle.js.map +1 -1
- package/lib/ui/ToggleGroup.js +2 -2
- package/lib/ui/ToggleGroup.js.map +1 -1
- package/lib/ui/Tooltip.js +55 -21
- 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 +36 -38
- 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 +94 -89
- package/lib/zudoku.auth-clerk.js.map +1 -1
- package/lib/zudoku.auth-openid.js +558 -549
- 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 +24 -29
- package/lib/zudoku.hooks.js +21 -13
- 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 +74 -67
- package/lib/zudoku.plugin-api-catalog.js.map +1 -1
- package/lib/zudoku.plugin-api-keys.js +632 -193
- 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 -73
- package/lib/zudoku.plugin-markdown.js.map +1 -1
- package/lib/zudoku.plugin-openapi.js +7 -6
- package/lib/zudoku.plugin-redirect.js +1 -1
- package/lib/zudoku.plugin-redirect.js.map +1 -1
- package/lib/zudoku.plugin-search-inkeep.js +55 -59
- package/lib/zudoku.plugin-search-inkeep.js.map +1 -1
- package/lib/zudoku.plugin-search-pagefind.js +216 -125
- package/lib/zudoku.plugin-search-pagefind.js.map +1 -1
- package/lib/zudoku.plugins.js +7 -6
- 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 +156 -115
- package/src/app/ZuploBuildConfig.ts +33 -0
- package/src/app/defaultTheme.css +73 -0
- package/src/app/demo.html +1 -1
- package/src/app/demo.tsx +25 -7
- package/src/app/entry.client.tsx +47 -5
- package/src/app/entry.server.tsx +20 -12
- package/src/app/env.ts +43 -0
- package/src/app/font.geist.css +73 -0
- package/src/app/main.css +186 -152
- package/src/app/main.tsx +67 -58
- 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 +2 -2
- package/src/lib/authentication/authentication.ts +26 -11
- package/src/lib/authentication/components/CallbackHandler.tsx +28 -11
- package/src/lib/authentication/components/OAuthErrorPage.tsx +171 -0
- package/src/lib/authentication/components/SignIn.tsx +34 -6
- package/src/lib/authentication/components/SignOut.tsx +7 -6
- package/src/lib/authentication/components/SignUp.tsx +36 -5
- package/src/lib/authentication/errors.ts +27 -13
- package/src/lib/authentication/hook.ts +23 -10
- package/src/lib/authentication/providers/auth0.tsx +26 -10
- package/src/lib/authentication/providers/azureb2c.tsx +208 -0
- package/src/lib/authentication/providers/clerk.tsx +100 -71
- package/src/lib/authentication/providers/firebase.tsx +284 -0
- package/src/lib/authentication/providers/openid.tsx +127 -58
- package/src/lib/authentication/providers/supabase/SupabaseAuthUI.tsx +75 -0
- package/src/lib/authentication/providers/supabase.tsx +68 -63
- 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 +15 -5
- package/src/lib/components/Banner.tsx +3 -4
- package/src/lib/components/Bootstrap.tsx +1 -0
- package/src/lib/components/BuildCheck.tsx +88 -0
- package/src/lib/components/CategoryHeading.tsx +4 -1
- package/src/lib/components/ErrorPage.tsx +3 -3
- package/src/lib/components/Footer.tsx +8 -11
- package/src/lib/components/Framed.tsx +51 -0
- package/src/lib/components/Header.tsx +46 -43
- package/src/lib/components/Heading.tsx +14 -11
- package/src/lib/components/InlineCode.tsx +1 -1
- package/src/lib/components/LanguageIcon.tsx +181 -0
- package/src/lib/components/Layout.tsx +10 -31
- package/src/lib/components/Main.tsx +15 -14
- package/src/lib/components/Markdown.tsx +43 -27
- package/src/lib/components/Meta.tsx +45 -0
- package/src/lib/components/MobileTopNavigation.tsx +72 -16
- package/src/lib/components/NotFoundPage.tsx +6 -5
- package/src/lib/components/PageProgress.tsx +28 -0
- package/src/lib/components/Pagination.tsx +6 -11
- package/src/lib/components/PathRenderer.tsx +2 -2
- package/src/lib/components/Search.tsx +3 -3
- package/src/lib/components/Slot.test.tsx +465 -0
- package/src/lib/components/Slot.tsx +64 -0
- package/src/lib/components/StatusPage.tsx +5 -0
- package/src/lib/components/TopNavigation.tsx +81 -86
- package/src/lib/components/Typography.tsx +14 -0
- package/src/lib/components/Zudoku.tsx +15 -17
- 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 +149 -0
- package/src/lib/components/context/ViewportAnchorContext.tsx +10 -17
- package/src/lib/components/context/ZudokuContext.ts +77 -44
- package/src/lib/components/context/ZudokuProvider.tsx +3 -2
- package/src/lib/components/index.ts +18 -26
- package/src/lib/components/navigation/Navigation.tsx +50 -0
- package/src/lib/components/navigation/NavigationBadge.tsx +48 -0
- package/src/lib/components/navigation/NavigationCategory.tsx +153 -0
- package/src/lib/components/navigation/NavigationItem.tsx +148 -0
- package/src/lib/components/navigation/NavigationWrapper.tsx +49 -0
- package/src/lib/components/navigation/PoweredByZudoku.tsx +15 -5
- package/src/lib/components/navigation/Toc.tsx +8 -8
- package/src/lib/components/navigation/ZudokuLogo.tsx +1 -1
- package/src/lib/components/navigation/ZuploLogo.tsx +14 -0
- package/src/lib/components/navigation/utils.ts +82 -42
- package/src/lib/core/RouteGuard.tsx +52 -32
- package/src/lib/core/ZudokuContext.ts +99 -30
- package/src/lib/core/__internal.tsx +30 -0
- package/src/lib/core/plugins.ts +13 -4
- 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/index.ts +11 -0
- package/src/lib/hooks/useEvent.test.tsx +9 -7
- package/src/lib/hooks/useHotkey.ts +70 -0
- package/src/lib/oas/graphql/circular.ts +28 -20
- 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 +14 -3
- package/src/lib/oas/parser/upgrade/index.ts +100 -29
- package/src/lib/plugins/api-catalog/Catalog.tsx +9 -2
- package/src/lib/plugins/api-catalog/index.tsx +19 -19
- package/src/lib/plugins/api-keys/CreateApiKey.tsx +70 -44
- 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 +441 -122
- package/src/lib/plugins/api-keys/index.tsx +143 -65
- package/src/lib/plugins/custom-pages/index.tsx +24 -16
- package/src/lib/plugins/markdown/MdxPage.tsx +205 -33
- 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 +28 -43
- package/src/lib/plugins/openapi/CollapsibleCode.tsx +12 -7
- package/src/lib/plugins/openapi/ColorizedParam.tsx +5 -3
- 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 +68 -36
- package/src/lib/plugins/openapi/OperationListItem.tsx +113 -105
- package/src/lib/plugins/openapi/ParamInfos.tsx +14 -10
- package/src/lib/plugins/openapi/ParameterList.tsx +40 -28
- package/src/lib/plugins/openapi/ParameterListItem.tsx +128 -47
- package/src/lib/plugins/openapi/PlaygroundDialogWrapper.tsx +15 -14
- package/src/lib/plugins/openapi/RequestBodySidecarBox.tsx +51 -9
- package/src/lib/plugins/openapi/ResponsesSidecarBox.tsx +76 -41
- package/src/lib/plugins/openapi/SchemaList.tsx +25 -19
- package/src/lib/plugins/openapi/Sidecar.tsx +145 -132
- package/src/lib/plugins/openapi/SidecarBox.tsx +26 -4
- package/src/lib/plugins/openapi/SidecarExamples.tsx +99 -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 +24 -4
- package/src/lib/plugins/openapi/components/ConstValue.tsx +24 -0
- package/src/lib/plugins/openapi/components/EnumValues.tsx +3 -3
- package/src/lib/plugins/openapi/components/NonHighlightedCode.tsx +22 -0
- package/src/lib/plugins/openapi/components/ResponseContent.tsx +114 -0
- 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 +94 -62
- package/src/lib/plugins/openapi/interfaces.ts +23 -7
- package/src/lib/plugins/openapi/playground/BodyPanel.tsx +271 -0
- package/src/lib/plugins/openapi/playground/CollapsibleHeader.tsx +51 -0
- package/src/lib/plugins/openapi/playground/ExamplesDropdown.tsx +12 -4
- package/src/lib/plugins/openapi/playground/Headers.tsx +158 -172
- package/src/lib/plugins/openapi/playground/IdentityDialog.tsx +4 -3
- package/src/lib/plugins/openapi/playground/IdentitySelector.tsx +20 -36
- 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 +327 -301
- package/src/lib/plugins/openapi/playground/PlaygroundDialog.tsx +23 -32
- 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 +32 -0
- 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 +228 -119
- package/src/lib/plugins/openapi/playground/result-panel/ResultPanel.tsx +70 -91
- package/src/lib/plugins/openapi/playground/result-panel/convertToTypes.ts +1 -1
- package/src/lib/plugins/openapi/playground/useRememberSkipLoginDialog.tsx +23 -0
- package/src/lib/plugins/openapi/processors/removeExtensions.test.ts +30 -9
- package/src/lib/plugins/openapi/processors/removeExtensions.ts +5 -3
- package/src/lib/plugins/openapi/processors/removeParameters.test.ts +68 -33
- package/src/lib/plugins/openapi/processors/removeParameters.ts +5 -3
- package/src/lib/plugins/openapi/processors/removePaths.test.ts +85 -44
- package/src/lib/plugins/openapi/processors/removePaths.ts +5 -3
- package/src/lib/plugins/openapi/processors/traverse.ts +1 -1
- package/src/lib/plugins/openapi/schema/SchemaExampleAndDefault.tsx +11 -8
- package/src/lib/plugins/openapi/schema/SchemaPropertyItem.tsx +114 -87
- package/src/lib/plugins/openapi/schema/SchemaView.tsx +113 -64
- 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 +24 -17
- package/src/lib/plugins/openapi/util/createHttpSnippet.ts +107 -0
- package/src/lib/plugins/openapi/util/createNavigationCategory.tsx +39 -0
- package/src/lib/plugins/openapi/util/generateSchemaExample.ts +54 -5
- package/src/lib/plugins/openapi/util/getRoutes.tsx +87 -15
- package/src/lib/plugins/openapi/util/methodColorMap.tsx +1 -1
- package/src/lib/plugins/redirect/index.tsx +1 -1
- package/src/lib/plugins/search-inkeep/index.tsx +54 -58
- package/src/lib/plugins/search-inkeep/inkeep.ts +19 -21
- package/src/lib/plugins/search-pagefind/PagefindSearch.tsx +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 +161 -0
- package/src/lib/ui/ActionButton.tsx +3 -1
- package/src/lib/ui/Alert.tsx +45 -39
- package/src/lib/ui/Badge.tsx +22 -13
- package/src/lib/ui/Breadcrumb.tsx +1 -0
- package/src/lib/ui/Button.tsx +10 -6
- package/src/lib/ui/Callout.tsx +12 -6
- package/src/lib/ui/Card.tsx +1 -1
- package/src/lib/ui/Checkbox.tsx +23 -24
- package/src/lib/ui/CodeBlock.tsx +79 -0
- package/src/lib/ui/Collapsible.tsx +26 -4
- package/src/lib/ui/Command.tsx +6 -8
- package/src/lib/ui/Dialog.tsx +114 -96
- package/src/lib/ui/DropdownMenu.tsx +4 -4
- 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/HoverCard.tsx +1 -1
- package/src/lib/ui/Input.tsx +1 -1
- 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/Popover.tsx +1 -1
- package/src/lib/ui/RadioGroup.tsx +1 -1
- 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/Slider.tsx +1 -1
- package/src/lib/ui/Switch.tsx +1 -1
- package/src/lib/ui/SyntaxHighlight.tsx +33 -179
- package/src/lib/ui/Tabs.tsx +2 -2
- package/src/lib/ui/Textarea.tsx +1 -1
- package/src/lib/ui/Toggle.tsx +1 -1
- package/src/lib/ui/ToggleGroup.tsx +1 -1
- package/src/lib/ui/Tooltip.tsx +59 -22
- package/src/lib/ui/Value.tsx +42 -0
- package/src/lib/util/MdxComponents.tsx +49 -17
- package/src/lib/util/cn.ts +1 -1
- package/src/lib/util/createVariantComponent.tsx +33 -7
- package/src/lib/util/ensureArray.ts +3 -0
- 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.test.ts +24 -0
- package/src/lib/util/humanFileSize.ts +15 -0
- 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 +44 -5
- package/src/lib/util/types.ts +1 -1
- package/src/lib/util/url.test.ts +51 -0
- package/src/lib/util/url.ts +18 -0
- package/src/lib/util/useCopyToClipboard.ts +17 -0
- package/src/lib/util/useExposedProps.tsx +12 -1
- package/src/lib/util/useIsomorphicLayoutEffect.ts +1 -0
- package/src/lib/util/useScrollToAnchor.ts +6 -4
- package/src/shiki/langs/abap.js +1 -0
- package/src/shiki/langs/actionscript-3.js +1 -0
- package/src/shiki/langs/ada.js +1 -0
- package/src/shiki/langs/angular-expression.js +1 -0
- package/src/shiki/langs/angular-html.js +1 -0
- package/src/shiki/langs/angular-inline-style.js +1 -0
- package/src/shiki/langs/angular-inline-template.js +1 -0
- package/src/shiki/langs/angular-let-declaration.js +1 -0
- package/src/shiki/langs/angular-template-blocks.js +1 -0
- package/src/shiki/langs/angular-template.js +1 -0
- package/src/shiki/langs/angular-ts.js +1 -0
- package/src/shiki/langs/apache.js +1 -0
- package/src/shiki/langs/apex.js +1 -0
- package/src/shiki/langs/apl.js +1 -0
- package/src/shiki/langs/applescript.js +1 -0
- package/src/shiki/langs/ara.js +1 -0
- package/src/shiki/langs/asciidoc.js +1 -0
- package/src/shiki/langs/asm.js +1 -0
- package/src/shiki/langs/astro.js +1 -0
- package/src/shiki/langs/awk.js +1 -0
- package/src/shiki/langs/ballerina.js +1 -0
- package/src/shiki/langs/bat.js +1 -0
- package/src/shiki/langs/beancount.js +1 -0
- package/src/shiki/langs/berry.js +1 -0
- package/src/shiki/langs/bibtex.js +1 -0
- package/src/shiki/langs/bicep.js +1 -0
- package/src/shiki/langs/blade.js +1 -0
- package/src/shiki/langs/bsl.js +1 -0
- package/src/shiki/langs/c.js +1 -0
- package/src/shiki/langs/cadence.js +1 -0
- package/src/shiki/langs/cairo.js +1 -0
- package/src/shiki/langs/clarity.js +1 -0
- package/src/shiki/langs/clojure.js +1 -0
- package/src/shiki/langs/cmake.js +1 -0
- package/src/shiki/langs/cobol.js +1 -0
- package/src/shiki/langs/codeowners.js +1 -0
- package/src/shiki/langs/codeql.js +1 -0
- package/src/shiki/langs/coffee.js +1 -0
- package/src/shiki/langs/common-lisp.js +1 -0
- package/src/shiki/langs/coq.js +1 -0
- package/src/shiki/langs/cpp-macro.js +1 -0
- package/src/shiki/langs/cpp.js +1 -0
- package/src/shiki/langs/crystal.js +1 -0
- package/src/shiki/langs/csharp.js +1 -0
- package/src/shiki/langs/css.js +1 -0
- package/src/shiki/langs/csv.js +1 -0
- package/src/shiki/langs/cue.js +1 -0
- package/src/shiki/langs/cypher.js +1 -0
- package/src/shiki/langs/d.js +1 -0
- package/src/shiki/langs/dart.js +1 -0
- package/src/shiki/langs/dax.js +1 -0
- package/src/shiki/langs/desktop.js +1 -0
- package/src/shiki/langs/diff.js +1 -0
- package/src/shiki/langs/docker.js +1 -0
- package/src/shiki/langs/dotenv.js +1 -0
- package/src/shiki/langs/dream-maker.js +1 -0
- package/src/shiki/langs/edge.js +1 -0
- package/src/shiki/langs/elixir.js +1 -0
- package/src/shiki/langs/elm.js +1 -0
- package/src/shiki/langs/emacs-lisp.js +1 -0
- package/src/shiki/langs/erb.js +1 -0
- package/src/shiki/langs/erlang.js +1 -0
- package/src/shiki/langs/es-tag-css.js +1 -0
- package/src/shiki/langs/es-tag-glsl.js +1 -0
- package/src/shiki/langs/es-tag-html.js +1 -0
- package/src/shiki/langs/es-tag-sql.js +1 -0
- package/src/shiki/langs/es-tag-xml.js +1 -0
- package/src/shiki/langs/fennel.js +1 -0
- package/src/shiki/langs/fish.js +1 -0
- package/src/shiki/langs/fluent.js +1 -0
- package/src/shiki/langs/fortran-fixed-form.js +1 -0
- package/src/shiki/langs/fortran-free-form.js +1 -0
- package/src/shiki/langs/fsharp.js +1 -0
- package/src/shiki/langs/gdresource.js +1 -0
- package/src/shiki/langs/gdscript.js +1 -0
- package/src/shiki/langs/gdshader.js +1 -0
- package/src/shiki/langs/genie.js +1 -0
- package/src/shiki/langs/gherkin.js +1 -0
- package/src/shiki/langs/git-commit.js +1 -0
- package/src/shiki/langs/git-rebase.js +1 -0
- package/src/shiki/langs/gleam.js +1 -0
- package/src/shiki/langs/glimmer-js.js +1 -0
- package/src/shiki/langs/glimmer-ts.js +1 -0
- package/src/shiki/langs/glsl.js +1 -0
- package/src/shiki/langs/gnuplot.js +1 -0
- package/src/shiki/langs/go.js +1 -0
- package/src/shiki/langs/graphql.js +1 -0
- package/src/shiki/langs/groovy.js +1 -0
- package/src/shiki/langs/hack.js +1 -0
- package/src/shiki/langs/haml.js +1 -0
- package/src/shiki/langs/handlebars.js +1 -0
- package/src/shiki/langs/haskell.js +1 -0
- package/src/shiki/langs/haxe.js +1 -0
- package/src/shiki/langs/hcl.js +1 -0
- package/src/shiki/langs/hjson.js +1 -0
- package/src/shiki/langs/hlsl.js +1 -0
- package/src/shiki/langs/html-derivative.js +1 -0
- package/src/shiki/langs/html.js +1 -0
- package/src/shiki/langs/http.js +1 -0
- package/src/shiki/langs/hurl.js +1 -0
- package/src/shiki/langs/hxml.js +1 -0
- package/src/shiki/langs/hy.js +1 -0
- package/src/shiki/langs/imba.js +1 -0
- package/src/shiki/langs/ini.js +1 -0
- package/src/shiki/langs/java.js +1 -0
- package/src/shiki/langs/javascript.js +1 -0
- package/src/shiki/langs/jinja-html.js +1 -0
- package/src/shiki/langs/jinja.js +1 -0
- package/src/shiki/langs/jison.js +1 -0
- package/src/shiki/langs/json.js +1 -0
- package/src/shiki/langs/json5.js +1 -0
- package/src/shiki/langs/jsonc.js +1 -0
- package/src/shiki/langs/jsonl.js +1 -0
- package/src/shiki/langs/jsonnet.js +1 -0
- package/src/shiki/langs/jssm.js +1 -0
- package/src/shiki/langs/jsx.js +1 -0
- package/src/shiki/langs/julia.js +1 -0
- package/src/shiki/langs/kdl.js +1 -0
- package/src/shiki/langs/kotlin.js +1 -0
- package/src/shiki/langs/kusto.js +1 -0
- package/src/shiki/langs/latex.js +1 -0
- package/src/shiki/langs/lean.js +1 -0
- package/src/shiki/langs/less.js +1 -0
- package/src/shiki/langs/liquid.js +1 -0
- package/src/shiki/langs/llvm.js +1 -0
- package/src/shiki/langs/log.js +1 -0
- package/src/shiki/langs/logo.js +1 -0
- package/src/shiki/langs/lua.js +1 -0
- package/src/shiki/langs/luau.js +1 -0
- package/src/shiki/langs/make.js +1 -0
- package/src/shiki/langs/markdown-vue.js +1 -0
- package/src/shiki/langs/markdown.js +1 -0
- package/src/shiki/langs/marko.js +1 -0
- package/src/shiki/langs/matlab.js +1 -0
- package/src/shiki/langs/mdc.js +1 -0
- package/src/shiki/langs/mdx.js +1 -0
- package/src/shiki/langs/mermaid.js +1 -0
- package/src/shiki/langs/mipsasm.js +1 -0
- package/src/shiki/langs/mojo.js +1 -0
- package/src/shiki/langs/move.js +1 -0
- package/src/shiki/langs/narrat.js +1 -0
- package/src/shiki/langs/nextflow.js +1 -0
- package/src/shiki/langs/nginx.js +1 -0
- package/src/shiki/langs/nim.js +1 -0
- package/src/shiki/langs/nix.js +1 -0
- package/src/shiki/langs/nushell.js +1 -0
- package/src/shiki/langs/objective-c.js +1 -0
- package/src/shiki/langs/objective-cpp.js +1 -0
- package/src/shiki/langs/ocaml.js +1 -0
- package/src/shiki/langs/pascal.js +1 -0
- package/src/shiki/langs/perl.js +1 -0
- package/src/shiki/langs/php.js +1 -0
- package/src/shiki/langs/pkl.js +1 -0
- package/src/shiki/langs/plsql.js +1 -0
- package/src/shiki/langs/po.js +1 -0
- package/src/shiki/langs/polar.js +1 -0
- package/src/shiki/langs/postcss.js +1 -0
- package/src/shiki/langs/powerquery.js +1 -0
- package/src/shiki/langs/powershell.js +1 -0
- package/src/shiki/langs/prisma.js +1 -0
- package/src/shiki/langs/prolog.js +1 -0
- package/src/shiki/langs/proto.js +1 -0
- package/src/shiki/langs/pug.js +1 -0
- package/src/shiki/langs/puppet.js +1 -0
- package/src/shiki/langs/purescript.js +1 -0
- package/src/shiki/langs/python.js +1 -0
- package/src/shiki/langs/qml.js +1 -0
- package/src/shiki/langs/qmldir.js +1 -0
- package/src/shiki/langs/qss.js +1 -0
- package/src/shiki/langs/r.js +1 -0
- package/src/shiki/langs/racket.js +1 -0
- package/src/shiki/langs/raku.js +1 -0
- package/src/shiki/langs/razor.js +1 -0
- package/src/shiki/langs/reg.js +1 -0
- package/src/shiki/langs/regexp.js +1 -0
- package/src/shiki/langs/rel.js +1 -0
- package/src/shiki/langs/riscv.js +1 -0
- package/src/shiki/langs/rosmsg.js +1 -0
- package/src/shiki/langs/rst.js +1 -0
- package/src/shiki/langs/ruby.js +1 -0
- package/src/shiki/langs/rust.js +1 -0
- package/src/shiki/langs/sas.js +1 -0
- package/src/shiki/langs/sass.js +1 -0
- package/src/shiki/langs/scala.js +1 -0
- package/src/shiki/langs/scheme.js +1 -0
- package/src/shiki/langs/scss.js +1 -0
- package/src/shiki/langs/sdbl.js +1 -0
- package/src/shiki/langs/shaderlab.js +1 -0
- package/src/shiki/langs/shellscript.js +1 -0
- package/src/shiki/langs/shellsession.js +1 -0
- package/src/shiki/langs/smalltalk.js +1 -0
- package/src/shiki/langs/solidity.js +1 -0
- package/src/shiki/langs/soy.js +1 -0
- package/src/shiki/langs/sparql.js +1 -0
- package/src/shiki/langs/splunk.js +1 -0
- package/src/shiki/langs/sql.js +1 -0
- package/src/shiki/langs/ssh-config.js +1 -0
- package/src/shiki/langs/stata.js +1 -0
- package/src/shiki/langs/stylus.js +1 -0
- package/src/shiki/langs/svelte.js +1 -0
- package/src/shiki/langs/swift.js +1 -0
- package/src/shiki/langs/system-verilog.js +1 -0
- package/src/shiki/langs/systemd.js +1 -0
- package/src/shiki/langs/talonscript.js +1 -0
- package/src/shiki/langs/tasl.js +1 -0
- package/src/shiki/langs/tcl.js +1 -0
- package/src/shiki/langs/templ.js +1 -0
- package/src/shiki/langs/terraform.js +1 -0
- package/src/shiki/langs/tex.js +1 -0
- package/src/shiki/langs/toml.js +1 -0
- package/src/shiki/langs/ts-tags.js +1 -0
- package/src/shiki/langs/tsv.js +1 -0
- package/src/shiki/langs/tsx.js +1 -0
- package/src/shiki/langs/turtle.js +1 -0
- package/src/shiki/langs/twig.js +1 -0
- package/src/shiki/langs/typescript.js +1 -0
- package/src/shiki/langs/typespec.js +1 -0
- package/src/shiki/langs/typst.js +1 -0
- package/src/shiki/langs/v.js +1 -0
- package/src/shiki/langs/vala.js +1 -0
- package/src/shiki/langs/vb.js +1 -0
- package/src/shiki/langs/verilog.js +1 -0
- package/src/shiki/langs/vhdl.js +1 -0
- package/src/shiki/langs/viml.js +1 -0
- package/src/shiki/langs/vue-directives.js +1 -0
- package/src/shiki/langs/vue-html.js +1 -0
- package/src/shiki/langs/vue-interpolations.js +1 -0
- package/src/shiki/langs/vue-sfc-style-variable-injection.js +1 -0
- package/src/shiki/langs/vue-vine.js +1 -0
- package/src/shiki/langs/vue.js +1 -0
- package/src/shiki/langs/vyper.js +1 -0
- package/src/shiki/langs/wasm.js +1 -0
- package/src/shiki/langs/wenyan.js +1 -0
- package/src/shiki/langs/wgsl.js +1 -0
- package/src/shiki/langs/wikitext.js +1 -0
- package/src/shiki/langs/wit.js +1 -0
- package/src/shiki/langs/wolfram.js +1 -0
- package/src/shiki/langs/xml.js +1 -0
- package/src/shiki/langs/xsl.js +1 -0
- package/src/shiki/langs/yaml.js +1 -0
- package/src/shiki/langs/zenscript.js +1 -0
- package/src/shiki/langs/zig.js +1 -0
- package/src/shiki/themes/andromeeda.js +1 -0
- package/src/shiki/themes/aurora-x.js +1 -0
- package/src/shiki/themes/ayu-dark.js +1 -0
- package/src/shiki/themes/catppuccin-frappe.js +1 -0
- package/src/shiki/themes/catppuccin-latte.js +1 -0
- package/src/shiki/themes/catppuccin-macchiato.js +1 -0
- package/src/shiki/themes/catppuccin-mocha.js +1 -0
- package/src/shiki/themes/dark-plus.js +1 -0
- package/src/shiki/themes/dracula-soft.js +1 -0
- package/src/shiki/themes/dracula.js +1 -0
- package/src/shiki/themes/everforest-dark.js +1 -0
- package/src/shiki/themes/everforest-light.js +1 -0
- package/src/shiki/themes/github-dark-default.js +1 -0
- package/src/shiki/themes/github-dark-dimmed.js +1 -0
- package/src/shiki/themes/github-dark-high-contrast.js +1 -0
- package/src/shiki/themes/github-dark.js +1 -0
- package/src/shiki/themes/github-light-default.js +1 -0
- package/src/shiki/themes/github-light-high-contrast.js +1 -0
- package/src/shiki/themes/github-light.js +1 -0
- package/src/shiki/themes/gruvbox-dark-hard.js +1 -0
- package/src/shiki/themes/gruvbox-dark-medium.js +1 -0
- package/src/shiki/themes/gruvbox-dark-soft.js +1 -0
- package/src/shiki/themes/gruvbox-light-hard.js +1 -0
- package/src/shiki/themes/gruvbox-light-medium.js +1 -0
- package/src/shiki/themes/gruvbox-light-soft.js +1 -0
- package/src/shiki/themes/houston.js +1 -0
- package/src/shiki/themes/kanagawa-dragon.js +1 -0
- package/src/shiki/themes/kanagawa-lotus.js +1 -0
- package/src/shiki/themes/kanagawa-wave.js +1 -0
- package/src/shiki/themes/laserwave.js +1 -0
- package/src/shiki/themes/light-plus.js +1 -0
- package/src/shiki/themes/material-theme-darker.js +1 -0
- package/src/shiki/themes/material-theme-lighter.js +1 -0
- package/src/shiki/themes/material-theme-ocean.js +1 -0
- package/src/shiki/themes/material-theme-palenight.js +1 -0
- package/src/shiki/themes/material-theme.js +1 -0
- package/src/shiki/themes/min-dark.js +1 -0
- package/src/shiki/themes/min-light.js +1 -0
- package/src/shiki/themes/monokai.js +1 -0
- package/src/shiki/themes/night-owl.js +1 -0
- package/src/shiki/themes/nord.js +1 -0
- package/src/shiki/themes/one-dark-pro.js +1 -0
- package/src/shiki/themes/one-light.js +1 -0
- package/src/shiki/themes/plastic.js +1 -0
- package/src/shiki/themes/poimandres.js +1 -0
- package/src/shiki/themes/red.js +1 -0
- package/src/shiki/themes/rose-pine-dawn.js +1 -0
- package/src/shiki/themes/rose-pine-moon.js +1 -0
- package/src/shiki/themes/rose-pine.js +1 -0
- package/src/shiki/themes/slack-dark.js +1 -0
- package/src/shiki/themes/slack-ochin.js +1 -0
- package/src/shiki/themes/snazzy-light.js +1 -0
- package/src/shiki/themes/solarized-dark.js +1 -0
- package/src/shiki/themes/solarized-light.js +1 -0
- package/src/shiki/themes/synthwave-84.js +1 -0
- package/src/shiki/themes/tokyo-night.js +1 -0
- package/src/shiki/themes/vesper.js +1 -0
- package/src/shiki/themes/vitesse-black.js +1 -0
- package/src/shiki/themes/vitesse-dark.js +1 -0
- package/src/shiki/themes/vitesse-light.js +1 -0
- package/dist/app/tailwind.d.ts +0 -4
- package/dist/app/tailwind.js +0 -97
- package/dist/app/tailwind.js.map +0 -1
- package/dist/config/common.d.ts +0 -10
- package/dist/config/common.js +0 -2
- package/dist/config/common.js.map +0 -1
- 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/config/validators/common.d.ts +0 -7670
- package/dist/config/validators/common.js +0 -402
- package/dist/config/validators/common.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/SlotletProvider.d.ts +0 -17
- package/dist/lib/components/SlotletProvider.js +0 -18
- package/dist/lib/components/SlotletProvider.js.map +0 -1
- package/dist/lib/components/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.d.ts +0 -26
- package/dist/lib/components/navigation/SidebarBadge.js +0 -26
- package/dist/lib/components/navigation/SidebarBadge.js.map +0 -1
- package/dist/lib/components/navigation/SidebarCategory.d.ts +0 -5
- package/dist/lib/components/navigation/SidebarCategory.js +0 -55
- package/dist/lib/components/navigation/SidebarCategory.js.map +0 -1
- package/dist/lib/components/navigation/SidebarItem.d.ts +0 -11
- package/dist/lib/components/navigation/SidebarItem.js +0 -50
- package/dist/lib/components/navigation/SidebarItem.js.map +0 -1
- package/dist/lib/components/navigation/SidebarWrapper.d.ts +0 -7
- package/dist/lib/components/navigation/SidebarWrapper.js +0 -21
- 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/SubmitButton.d.ts +0 -7
- package/dist/lib/plugins/openapi/playground/SubmitButton.js +0 -22
- package/dist/lib/plugins/openapi/playground/SubmitButton.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 +0 -23
- package/dist/lib/plugins/openapi/util/createSidebarCategory.js.map +0 -1
- package/dist/vite/plugin-docs.test.js +0 -22
- package/dist/vite/plugin-docs.test.js.map +0 -1
- package/dist/vite/plugin-sidebar.d.ts +0 -3
- package/dist/vite/plugin-sidebar.js +0 -56
- package/dist/vite/plugin-sidebar.js.map +0 -1
- package/dist/vite/plugin-theme-css.d.ts +0 -6
- package/dist/vite/plugin-theme-css.js +0 -117
- package/dist/vite/plugin-theme-css.js.map +0 -1
- package/dist/vite/remarkStaticGeneration.d.ts +0 -3
- package/dist/vite/remarkStaticGeneration.js +0 -125
- package/dist/vite/remarkStaticGeneration.js.map +0 -1
- package/dist/zuplo/env.d.ts +0 -7
- package/dist/zuplo/env.js +0 -12
- package/dist/zuplo/env.js.map +0 -1
- package/lib/AuthenticationPlugin-foqdvvkf.js +0 -58
- package/lib/AuthenticationPlugin-foqdvvkf.js.map +0 -1
- package/lib/Button-Fp19CMUr.js +0 -49
- package/lib/Button-Fp19CMUr.js.map +0 -1
- package/lib/Callout-Boqdgl-z.js +0 -230
- package/lib/Callout-Boqdgl-z.js.map +0 -1
- package/lib/CategoryHeading-DpB47wvk.js +0 -10
- package/lib/CategoryHeading-DpB47wvk.js.map +0 -1
- package/lib/Dialog-sbgekbjb.js +0 -98
- package/lib/Dialog-sbgekbjb.js.map +0 -1
- package/lib/Drawer-kDAfOq_2.js +0 -1133
- package/lib/Drawer-kDAfOq_2.js.map +0 -1
- package/lib/Markdown-CKXePgqR.js +0 -16962
- package/lib/Markdown-CKXePgqR.js.map +0 -1
- package/lib/MdxPage-DzpRK-fu.js +0 -85
- package/lib/MdxPage-DzpRK-fu.js.map +0 -1
- package/lib/OasProvider-Dw2mP5VZ.js +0 -34
- package/lib/OasProvider-Dw2mP5VZ.js.map +0 -1
- package/lib/OperationList-Cr_NA4e2.js +0 -5069
- package/lib/OperationList-Cr_NA4e2.js.map +0 -1
- package/lib/Pagination-DT6eKg_U.js +0 -48
- package/lib/Pagination-DT6eKg_U.js.map +0 -1
- package/lib/RouteGuard-CqZPoZYJ.js +0 -744
- package/lib/RouteGuard-CqZPoZYJ.js.map +0 -1
- package/lib/SchemaList-DNvUJgwI.js +0 -148
- package/lib/SchemaList-DNvUJgwI.js.map +0 -1
- package/lib/SchemaView-Cxh_msLc.js +0 -357
- package/lib/SchemaView-Cxh_msLc.js.map +0 -1
- package/lib/Select-DVFRKf1R.js +0 -223
- package/lib/Select-DVFRKf1R.js.map +0 -1
- package/lib/SlotletProvider-BV1xrg-l.js +0 -338
- package/lib/SlotletProvider-BV1xrg-l.js.map +0 -1
- package/lib/Spinner-CE68iCm0.js +0 -7
- package/lib/Spinner-CE68iCm0.js.map +0 -1
- package/lib/SyntaxHighlight-BEoSoPEo.js +0 -2890
- package/lib/SyntaxHighlight-BEoSoPEo.js.map +0 -1
- package/lib/Toc-D40bDl5J.js +0 -92
- package/lib/Toc-D40bDl5J.js.map +0 -1
- package/lib/_commonjsHelpers-BkfeUUK-.js +0 -29
- package/lib/_commonjsHelpers-BkfeUUK-.js.map +0 -1
- package/lib/chunk-HA7DTUK3-C4gP41vD.js +0 -1821
- package/lib/chunk-HA7DTUK3-C4gP41vD.js.map +0 -1
- package/lib/circular-ByJI6Mci.js +0 -15877
- package/lib/circular-ByJI6Mci.js.map +0 -1
- package/lib/cn-qaFjX9_3.js +0 -2279
- package/lib/cn-qaFjX9_3.js.map +0 -1
- package/lib/context-DLCwaMXN.js +0 -22
- package/lib/context-DLCwaMXN.js.map +0 -1
- package/lib/createServer-Cq73y9Kv.js +0 -12454
- package/lib/createServer-Cq73y9Kv.js.map +0 -1
- package/lib/hook-CqpVYDqN.js +0 -1483
- package/lib/hook-CqpVYDqN.js.map +0 -1
- package/lib/index-Bn6Lc9tq.js +0 -9
- package/lib/index-Bn6Lc9tq.js.map +0 -1
- package/lib/index-CN3TIw7H.js +0 -2009
- package/lib/index-CN3TIw7H.js.map +0 -1
- package/lib/index-CPNSgwSb.js +0 -36
- package/lib/index-CPNSgwSb.js.map +0 -1
- package/lib/index-Dl3Yl0yb.js +0 -4837
- package/lib/index-Dl3Yl0yb.js.map +0 -1
- package/lib/index-DwT-v3zK.js +0 -86
- package/lib/index-DwT-v3zK.js.map +0 -1
- package/lib/index-LNp6rxyU.js +0 -2094
- package/lib/index-LNp6rxyU.js.map +0 -1
- package/lib/index-dQecW8K5.js +0 -2227
- package/lib/index-dQecW8K5.js.map +0 -1
- package/lib/index-gQD2h1wX.js +0 -447
- package/lib/index-gQD2h1wX.js.map +0 -1
- package/lib/index.esm--gIChbWs.js +0 -1207
- package/lib/index.esm--gIChbWs.js.map +0 -1
- package/lib/invariant-Caa8-XvF.js +0 -26
- package/lib/invariant-Caa8-XvF.js.map +0 -1
- package/lib/jsx-runtime-CYK1ROHF.js +0 -446
- package/lib/jsx-runtime-CYK1ROHF.js.map +0 -1
- package/lib/mutation-8LjrN7uz.js +0 -208
- package/lib/mutation-8LjrN7uz.js.map +0 -1
- package/lib/objectEntries-yMIkr2mI.js +0 -5
- package/lib/objectEntries-yMIkr2mI.js.map +0 -1
- package/lib/prism-bash.min-HHIMdNJ_.js +0 -7
- package/lib/prism-bash.min-HHIMdNJ_.js.map +0 -1
- package/lib/prism-csharp.min-bQAo2pmx.js +0 -63
- package/lib/prism-csharp.min-bQAo2pmx.js.map +0 -1
- package/lib/prism-java.min-BpvsOuIa.js +0 -35
- package/lib/prism-java.min-BpvsOuIa.js.map +0 -1
- package/lib/prism-javascript.min-CEqHqgbm.js +0 -9
- package/lib/prism-javascript.min-CEqHqgbm.js.map +0 -1
- package/lib/prism-json.min-B1GJqK1k.js +0 -2
- package/lib/prism-json.min-B1GJqK1k.js.map +0 -1
- package/lib/prism-jsstacktrace.min-BfobCF2F.js +0 -2
- package/lib/prism-jsstacktrace.min-BfobCF2F.js.map +0 -1
- package/lib/prism-markdown.min-C0Qn0m-5.js +0 -61
- package/lib/prism-markdown.min-C0Qn0m-5.js.map +0 -1
- package/lib/prism-markup-BNGj0Tvm.js +0 -174
- package/lib/prism-markup-BNGj0Tvm.js.map +0 -1
- package/lib/prism-objectivec.min-BXSWqpJJ.js +0 -2
- package/lib/prism-objectivec.min-BXSWqpJJ.js.map +0 -1
- package/lib/prism-ruby.min-Dx9KO9ds.js +0 -38
- package/lib/prism-ruby.min-Dx9KO9ds.js.map +0 -1
- package/lib/prism-typescript.min-CD7H2IYQ.js +0 -34
- package/lib/prism-typescript.min-CD7H2IYQ.js.map +0 -1
- package/lib/useExposedProps-B9qXJedG.js +0 -9
- package/lib/useExposedProps-B9qXJedG.js.map +0 -1
- package/src/app/tailwind.ts +0 -103
- package/src/lib/components/ReactMarkdown.license.txt +0 -21
- package/src/lib/components/ReactMarkdown.tsx +0 -264
- package/src/lib/components/SlotletProvider.tsx +0 -55
- package/src/lib/components/navigation/Sidebar.tsx +0 -48
- package/src/lib/components/navigation/SidebarBadge.tsx +0 -48
- package/src/lib/components/navigation/SidebarCategory.tsx +0 -140
- package/src/lib/components/navigation/SidebarItem.tsx +0 -118
- package/src/lib/components/navigation/SidebarWrapper.tsx +0 -46
- package/src/lib/plugins/custom-pages/CustomPage.tsx +0 -18
- package/src/lib/plugins/markdown/resolver.ts +0 -57
- package/src/lib/plugins/openapi/playground/InlineInput.tsx +0 -6
- package/src/lib/plugins/openapi/playground/SubmitButton.tsx +0 -75
- 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/src/lib/plugins/openapi/util/createSidebarCategory.tsx +0 -37
- /package/dist/{vite/plugin-docs.test.d.ts → config/validators/InputNavigationSchema.test-d.d.ts} +0 -0
package/lib/hook-CqpVYDqN.js
DELETED
|
@@ -1,1483 +0,0 @@
|
|
|
1
|
-
var $e = (t) => {
|
|
2
|
-
throw TypeError(t);
|
|
3
|
-
};
|
|
4
|
-
var me = (t, e, s) => e.has(t) || $e("Cannot " + s);
|
|
5
|
-
var n = (t, e, s) => (me(t, e, "read from private field"), s ? s.call(t) : e.get(t)), g = (t, e, s) => e.has(t) ? $e("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, s), d = (t, e, s, r) => (me(t, e, "write to private field"), r ? r.call(t, s) : e.set(t, s), s), w = (t, e, s) => (me(t, e, "access private method"), s);
|
|
6
|
-
import * as j from "react";
|
|
7
|
-
import Ge, { createContext as Et, useContext as Ct } from "react";
|
|
8
|
-
import { j as Ot } from "./jsx-runtime-CYK1ROHF.js";
|
|
9
|
-
import { u as ve, m as ze } from "./chunk-HA7DTUK3-C4gP41vD.js";
|
|
10
|
-
var qe = class {
|
|
11
|
-
constructor() {
|
|
12
|
-
this.listeners = /* @__PURE__ */ new Set(), this.subscribe = this.subscribe.bind(this);
|
|
13
|
-
}
|
|
14
|
-
subscribe(t) {
|
|
15
|
-
return this.listeners.add(t), this.onSubscribe(), () => {
|
|
16
|
-
this.listeners.delete(t), this.onUnsubscribe();
|
|
17
|
-
};
|
|
18
|
-
}
|
|
19
|
-
hasListeners() {
|
|
20
|
-
return this.listeners.size > 0;
|
|
21
|
-
}
|
|
22
|
-
onSubscribe() {
|
|
23
|
-
}
|
|
24
|
-
onUnsubscribe() {
|
|
25
|
-
}
|
|
26
|
-
}, V = typeof window > "u" || "Deno" in globalThis;
|
|
27
|
-
function Se() {
|
|
28
|
-
}
|
|
29
|
-
function bs(t, e) {
|
|
30
|
-
return typeof t == "function" ? t(e) : t;
|
|
31
|
-
}
|
|
32
|
-
function we(t) {
|
|
33
|
-
return typeof t == "number" && t >= 0 && t !== 1 / 0;
|
|
34
|
-
}
|
|
35
|
-
function ot(t, e) {
|
|
36
|
-
return Math.max(t + (e || 0) - Date.now(), 0);
|
|
37
|
-
}
|
|
38
|
-
function ye(t, e) {
|
|
39
|
-
return typeof t == "function" ? t(e) : t;
|
|
40
|
-
}
|
|
41
|
-
function x(t, e) {
|
|
42
|
-
return typeof t == "function" ? t(e) : t;
|
|
43
|
-
}
|
|
44
|
-
function ms(t, e) {
|
|
45
|
-
const {
|
|
46
|
-
type: s = "all",
|
|
47
|
-
exact: r,
|
|
48
|
-
fetchStatus: i,
|
|
49
|
-
predicate: a,
|
|
50
|
-
queryKey: u,
|
|
51
|
-
stale: o
|
|
52
|
-
} = t;
|
|
53
|
-
if (u) {
|
|
54
|
-
if (r) {
|
|
55
|
-
if (e.queryHash !== It(u, e.options))
|
|
56
|
-
return !1;
|
|
57
|
-
} else if (!Le(e.queryKey, u))
|
|
58
|
-
return !1;
|
|
59
|
-
}
|
|
60
|
-
if (s !== "all") {
|
|
61
|
-
const l = e.isActive();
|
|
62
|
-
if (s === "active" && !l || s === "inactive" && l)
|
|
63
|
-
return !1;
|
|
64
|
-
}
|
|
65
|
-
return !(typeof o == "boolean" && e.isStale() !== o || i && i !== e.state.fetchStatus || a && !a(e));
|
|
66
|
-
}
|
|
67
|
-
function gs(t, e) {
|
|
68
|
-
const { exact: s, status: r, predicate: i, mutationKey: a } = t;
|
|
69
|
-
if (a) {
|
|
70
|
-
if (!e.options.mutationKey)
|
|
71
|
-
return !1;
|
|
72
|
-
if (s) {
|
|
73
|
-
if (Re(e.options.mutationKey) !== Re(a))
|
|
74
|
-
return !1;
|
|
75
|
-
} else if (!Le(e.options.mutationKey, a))
|
|
76
|
-
return !1;
|
|
77
|
-
}
|
|
78
|
-
return !(r && e.state.status !== r || i && !i(e));
|
|
79
|
-
}
|
|
80
|
-
function It(t, e) {
|
|
81
|
-
return ((e == null ? void 0 : e.queryKeyHashFn) || Re)(t);
|
|
82
|
-
}
|
|
83
|
-
function Re(t) {
|
|
84
|
-
return JSON.stringify(
|
|
85
|
-
t,
|
|
86
|
-
(e, s) => Oe(s) ? Object.keys(s).sort().reduce((r, i) => (r[i] = s[i], r), {}) : s
|
|
87
|
-
);
|
|
88
|
-
}
|
|
89
|
-
function Le(t, e) {
|
|
90
|
-
return t === e ? !0 : typeof t != typeof e ? !1 : t && e && typeof t == "object" && typeof e == "object" ? !Object.keys(e).some((s) => !Le(t[s], e[s])) : !1;
|
|
91
|
-
}
|
|
92
|
-
function Ee(t, e) {
|
|
93
|
-
if (t === e)
|
|
94
|
-
return t;
|
|
95
|
-
const s = Je(t) && Je(e);
|
|
96
|
-
if (s || Oe(t) && Oe(e)) {
|
|
97
|
-
const r = s ? t : Object.keys(t), i = r.length, a = s ? e : Object.keys(e), u = a.length, o = s ? [] : {};
|
|
98
|
-
let l = 0;
|
|
99
|
-
for (let f = 0; f < u; f++) {
|
|
100
|
-
const m = s ? f : a[f];
|
|
101
|
-
(!s && r.includes(m) || s) && t[m] === void 0 && e[m] === void 0 ? (o[m] = void 0, l++) : (o[m] = Ee(t[m], e[m]), o[m] === t[m] && t[m] !== void 0 && l++);
|
|
102
|
-
}
|
|
103
|
-
return i === u && l === i ? t : o;
|
|
104
|
-
}
|
|
105
|
-
return e;
|
|
106
|
-
}
|
|
107
|
-
function Ce(t, e) {
|
|
108
|
-
if (!e || Object.keys(t).length !== Object.keys(e).length)
|
|
109
|
-
return !1;
|
|
110
|
-
for (const s in t)
|
|
111
|
-
if (t[s] !== e[s])
|
|
112
|
-
return !1;
|
|
113
|
-
return !0;
|
|
114
|
-
}
|
|
115
|
-
function Je(t) {
|
|
116
|
-
return Array.isArray(t) && t.length === Object.keys(t).length;
|
|
117
|
-
}
|
|
118
|
-
function Oe(t) {
|
|
119
|
-
if (!Ve(t))
|
|
120
|
-
return !1;
|
|
121
|
-
const e = t.constructor;
|
|
122
|
-
if (e === void 0)
|
|
123
|
-
return !0;
|
|
124
|
-
const s = e.prototype;
|
|
125
|
-
return !(!Ve(s) || !s.hasOwnProperty("isPrototypeOf") || Object.getPrototypeOf(t) !== Object.prototype);
|
|
126
|
-
}
|
|
127
|
-
function Ve(t) {
|
|
128
|
-
return Object.prototype.toString.call(t) === "[object Object]";
|
|
129
|
-
}
|
|
130
|
-
function Ft(t) {
|
|
131
|
-
return new Promise((e) => {
|
|
132
|
-
setTimeout(e, t);
|
|
133
|
-
});
|
|
134
|
-
}
|
|
135
|
-
function Ie(t, e, s) {
|
|
136
|
-
if (typeof s.structuralSharing == "function")
|
|
137
|
-
return s.structuralSharing(t, e);
|
|
138
|
-
if (s.structuralSharing !== !1) {
|
|
139
|
-
if (process.env.NODE_ENV !== "production")
|
|
140
|
-
try {
|
|
141
|
-
return Ee(t, e);
|
|
142
|
-
} catch (r) {
|
|
143
|
-
console.error(
|
|
144
|
-
`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}`
|
|
145
|
-
);
|
|
146
|
-
}
|
|
147
|
-
return Ee(t, e);
|
|
148
|
-
}
|
|
149
|
-
return e;
|
|
150
|
-
}
|
|
151
|
-
function Ss(t) {
|
|
152
|
-
return t;
|
|
153
|
-
}
|
|
154
|
-
function ws(t, e, s = 0) {
|
|
155
|
-
const r = [...t, e];
|
|
156
|
-
return s && r.length > s ? r.slice(1) : r;
|
|
157
|
-
}
|
|
158
|
-
function Rs(t, e, s = 0) {
|
|
159
|
-
const r = [e, ...t];
|
|
160
|
-
return s && r.length > s ? r.slice(0, -1) : r;
|
|
161
|
-
}
|
|
162
|
-
var pe = Symbol();
|
|
163
|
-
function Pt(t, e) {
|
|
164
|
-
return process.env.NODE_ENV !== "production" && t.queryFn === pe && console.error(
|
|
165
|
-
`Attempted to invoke queryFn when set to skipToken. This is likely a configuration error. Query hash: '${t.queryHash}'`
|
|
166
|
-
), !t.queryFn && (e != null && e.initialPromise) ? () => e.initialPromise : !t.queryFn || t.queryFn === pe ? () => Promise.reject(new Error(`Missing queryFn: '${t.queryHash}'`)) : t.queryFn;
|
|
167
|
-
}
|
|
168
|
-
var H, L, X, st, Tt = (st = class extends qe {
|
|
169
|
-
constructor() {
|
|
170
|
-
super();
|
|
171
|
-
g(this, H);
|
|
172
|
-
g(this, L);
|
|
173
|
-
g(this, X);
|
|
174
|
-
d(this, X, (e) => {
|
|
175
|
-
if (!V && window.addEventListener) {
|
|
176
|
-
const s = () => e();
|
|
177
|
-
return window.addEventListener("visibilitychange", s, !1), () => {
|
|
178
|
-
window.removeEventListener("visibilitychange", s);
|
|
179
|
-
};
|
|
180
|
-
}
|
|
181
|
-
});
|
|
182
|
-
}
|
|
183
|
-
onSubscribe() {
|
|
184
|
-
n(this, L) || this.setEventListener(n(this, X));
|
|
185
|
-
}
|
|
186
|
-
onUnsubscribe() {
|
|
187
|
-
var e;
|
|
188
|
-
this.hasListeners() || ((e = n(this, L)) == null || e.call(this), d(this, L, void 0));
|
|
189
|
-
}
|
|
190
|
-
setEventListener(e) {
|
|
191
|
-
var s;
|
|
192
|
-
d(this, X, e), (s = n(this, L)) == null || s.call(this), d(this, L, e((r) => {
|
|
193
|
-
typeof r == "boolean" ? this.setFocused(r) : this.onFocus();
|
|
194
|
-
}));
|
|
195
|
-
}
|
|
196
|
-
setFocused(e) {
|
|
197
|
-
n(this, H) !== e && (d(this, H, e), this.onFocus());
|
|
198
|
-
}
|
|
199
|
-
onFocus() {
|
|
200
|
-
const e = this.isFocused();
|
|
201
|
-
this.listeners.forEach((s) => {
|
|
202
|
-
s(e);
|
|
203
|
-
});
|
|
204
|
-
}
|
|
205
|
-
isFocused() {
|
|
206
|
-
var e;
|
|
207
|
-
return typeof n(this, H) == "boolean" ? n(this, H) : ((e = globalThis.document) == null ? void 0 : e.visibilityState) !== "hidden";
|
|
208
|
-
}
|
|
209
|
-
}, H = new WeakMap(), L = new WeakMap(), X = new WeakMap(), st), ut = new Tt(), ee, M, te, rt, Dt = (rt = class extends qe {
|
|
210
|
-
constructor() {
|
|
211
|
-
super();
|
|
212
|
-
g(this, ee, !0);
|
|
213
|
-
g(this, M);
|
|
214
|
-
g(this, te);
|
|
215
|
-
d(this, te, (e) => {
|
|
216
|
-
if (!V && window.addEventListener) {
|
|
217
|
-
const s = () => e(!0), r = () => e(!1);
|
|
218
|
-
return window.addEventListener("online", s, !1), window.addEventListener("offline", r, !1), () => {
|
|
219
|
-
window.removeEventListener("online", s), window.removeEventListener("offline", r);
|
|
220
|
-
};
|
|
221
|
-
}
|
|
222
|
-
});
|
|
223
|
-
}
|
|
224
|
-
onSubscribe() {
|
|
225
|
-
n(this, M) || this.setEventListener(n(this, te));
|
|
226
|
-
}
|
|
227
|
-
onUnsubscribe() {
|
|
228
|
-
var e;
|
|
229
|
-
this.hasListeners() || ((e = n(this, M)) == null || e.call(this), d(this, M, void 0));
|
|
230
|
-
}
|
|
231
|
-
setEventListener(e) {
|
|
232
|
-
var s;
|
|
233
|
-
d(this, te, e), (s = n(this, M)) == null || s.call(this), d(this, M, e(this.setOnline.bind(this)));
|
|
234
|
-
}
|
|
235
|
-
setOnline(e) {
|
|
236
|
-
n(this, ee) !== e && (d(this, ee, e), this.listeners.forEach((r) => {
|
|
237
|
-
r(e);
|
|
238
|
-
}));
|
|
239
|
-
}
|
|
240
|
-
isOnline() {
|
|
241
|
-
return n(this, ee);
|
|
242
|
-
}
|
|
243
|
-
}, ee = new WeakMap(), M = new WeakMap(), te = new WeakMap(), rt), ct = new Dt();
|
|
244
|
-
function Fe() {
|
|
245
|
-
let t, e;
|
|
246
|
-
const s = new Promise((i, a) => {
|
|
247
|
-
t = i, e = a;
|
|
248
|
-
});
|
|
249
|
-
s.status = "pending", s.catch(() => {
|
|
250
|
-
});
|
|
251
|
-
function r(i) {
|
|
252
|
-
Object.assign(s, i), delete s.resolve, delete s.reject;
|
|
253
|
-
}
|
|
254
|
-
return s.resolve = (i) => {
|
|
255
|
-
r({
|
|
256
|
-
status: "fulfilled",
|
|
257
|
-
value: i
|
|
258
|
-
}), t(i);
|
|
259
|
-
}, s.reject = (i) => {
|
|
260
|
-
r({
|
|
261
|
-
status: "rejected",
|
|
262
|
-
reason: i
|
|
263
|
-
}), e(i);
|
|
264
|
-
}, s;
|
|
265
|
-
}
|
|
266
|
-
function jt(t) {
|
|
267
|
-
return Math.min(1e3 * 2 ** t, 3e4);
|
|
268
|
-
}
|
|
269
|
-
function ht(t) {
|
|
270
|
-
return (t ?? "online") === "online" ? ct.isOnline() : !0;
|
|
271
|
-
}
|
|
272
|
-
var lt = class extends Error {
|
|
273
|
-
constructor(t) {
|
|
274
|
-
super("CancelledError"), this.revert = t == null ? void 0 : t.revert, this.silent = t == null ? void 0 : t.silent;
|
|
275
|
-
}
|
|
276
|
-
};
|
|
277
|
-
function ge(t) {
|
|
278
|
-
return t instanceof lt;
|
|
279
|
-
}
|
|
280
|
-
function At(t) {
|
|
281
|
-
let e = !1, s = 0, r = !1, i;
|
|
282
|
-
const a = Fe(), u = (h) => {
|
|
283
|
-
var v;
|
|
284
|
-
r || (p(new lt(h)), (v = t.abort) == null || v.call(t));
|
|
285
|
-
}, o = () => {
|
|
286
|
-
e = !0;
|
|
287
|
-
}, l = () => {
|
|
288
|
-
e = !1;
|
|
289
|
-
}, f = () => ut.isFocused() && (t.networkMode === "always" || ct.isOnline()) && t.canRun(), m = () => ht(t.networkMode) && t.canRun(), c = (h) => {
|
|
290
|
-
var v;
|
|
291
|
-
r || (r = !0, (v = t.onSuccess) == null || v.call(t, h), i == null || i(), a.resolve(h));
|
|
292
|
-
}, p = (h) => {
|
|
293
|
-
var v;
|
|
294
|
-
r || (r = !0, (v = t.onError) == null || v.call(t, h), i == null || i(), a.reject(h));
|
|
295
|
-
}, y = () => new Promise((h) => {
|
|
296
|
-
var v;
|
|
297
|
-
i = (E) => {
|
|
298
|
-
(r || f()) && h(E);
|
|
299
|
-
}, (v = t.onPause) == null || v.call(t);
|
|
300
|
-
}).then(() => {
|
|
301
|
-
var h;
|
|
302
|
-
i = void 0, r || (h = t.onContinue) == null || h.call(t);
|
|
303
|
-
}), C = () => {
|
|
304
|
-
if (r)
|
|
305
|
-
return;
|
|
306
|
-
let h;
|
|
307
|
-
const v = s === 0 ? t.initialPromise : void 0;
|
|
308
|
-
try {
|
|
309
|
-
h = v ?? t.fn();
|
|
310
|
-
} catch (E) {
|
|
311
|
-
h = Promise.reject(E);
|
|
312
|
-
}
|
|
313
|
-
Promise.resolve(h).then(c).catch((E) => {
|
|
314
|
-
var be;
|
|
315
|
-
if (r)
|
|
316
|
-
return;
|
|
317
|
-
const R = t.retry ?? (V ? 0 : 3), O = t.retryDelay ?? jt, q = typeof O == "function" ? O(s, E) : O, Z = R === !0 || typeof R == "number" && s < R || typeof R == "function" && R(s, E);
|
|
318
|
-
if (e || !Z) {
|
|
319
|
-
p(E);
|
|
320
|
-
return;
|
|
321
|
-
}
|
|
322
|
-
s++, (be = t.onFail) == null || be.call(t, s, E), Ft(q).then(() => f() ? void 0 : y()).then(() => {
|
|
323
|
-
e ? p(E) : C();
|
|
324
|
-
});
|
|
325
|
-
});
|
|
326
|
-
};
|
|
327
|
-
return {
|
|
328
|
-
promise: a,
|
|
329
|
-
cancel: u,
|
|
330
|
-
continue: () => (i == null || i(), a),
|
|
331
|
-
cancelRetry: o,
|
|
332
|
-
continueRetry: l,
|
|
333
|
-
canStart: m,
|
|
334
|
-
start: () => (m() ? C() : y().then(C), a)
|
|
335
|
-
};
|
|
336
|
-
}
|
|
337
|
-
function xt() {
|
|
338
|
-
let t = [], e = 0, s = (o) => {
|
|
339
|
-
o();
|
|
340
|
-
}, r = (o) => {
|
|
341
|
-
o();
|
|
342
|
-
}, i = (o) => setTimeout(o, 0);
|
|
343
|
-
const a = (o) => {
|
|
344
|
-
e ? t.push(o) : i(() => {
|
|
345
|
-
s(o);
|
|
346
|
-
});
|
|
347
|
-
}, u = () => {
|
|
348
|
-
const o = t;
|
|
349
|
-
t = [], o.length && i(() => {
|
|
350
|
-
r(() => {
|
|
351
|
-
o.forEach((l) => {
|
|
352
|
-
s(l);
|
|
353
|
-
});
|
|
354
|
-
});
|
|
355
|
-
});
|
|
356
|
-
};
|
|
357
|
-
return {
|
|
358
|
-
batch: (o) => {
|
|
359
|
-
let l;
|
|
360
|
-
e++;
|
|
361
|
-
try {
|
|
362
|
-
l = o();
|
|
363
|
-
} finally {
|
|
364
|
-
e--, e || u();
|
|
365
|
-
}
|
|
366
|
-
return l;
|
|
367
|
-
},
|
|
368
|
-
/**
|
|
369
|
-
* All calls to the wrapped function will be batched.
|
|
370
|
-
*/
|
|
371
|
-
batchCalls: (o) => (...l) => {
|
|
372
|
-
a(() => {
|
|
373
|
-
o(...l);
|
|
374
|
-
});
|
|
375
|
-
},
|
|
376
|
-
schedule: a,
|
|
377
|
-
/**
|
|
378
|
-
* Use this method to set a custom notify function.
|
|
379
|
-
* This can be used to for example wrap notifications with `React.act` while running tests.
|
|
380
|
-
*/
|
|
381
|
-
setNotifyFunction: (o) => {
|
|
382
|
-
s = o;
|
|
383
|
-
},
|
|
384
|
-
/**
|
|
385
|
-
* Use this method to set a custom function to batch notifications together into a single tick.
|
|
386
|
-
* By default React Query will use the batch function provided by ReactDOM or React Native.
|
|
387
|
-
*/
|
|
388
|
-
setBatchNotifyFunction: (o) => {
|
|
389
|
-
r = o;
|
|
390
|
-
},
|
|
391
|
-
setScheduler: (o) => {
|
|
392
|
-
i = o;
|
|
393
|
-
}
|
|
394
|
-
};
|
|
395
|
-
}
|
|
396
|
-
var Me = xt(), K, nt, kt = (nt = class {
|
|
397
|
-
constructor() {
|
|
398
|
-
g(this, K);
|
|
399
|
-
}
|
|
400
|
-
destroy() {
|
|
401
|
-
this.clearGcTimeout();
|
|
402
|
-
}
|
|
403
|
-
scheduleGc() {
|
|
404
|
-
this.clearGcTimeout(), we(this.gcTime) && d(this, K, setTimeout(() => {
|
|
405
|
-
this.optionalRemove();
|
|
406
|
-
}, this.gcTime));
|
|
407
|
-
}
|
|
408
|
-
updateGcTime(t) {
|
|
409
|
-
this.gcTime = Math.max(
|
|
410
|
-
this.gcTime || 0,
|
|
411
|
-
t ?? (V ? 1 / 0 : 5 * 60 * 1e3)
|
|
412
|
-
);
|
|
413
|
-
}
|
|
414
|
-
clearGcTimeout() {
|
|
415
|
-
n(this, K) && (clearTimeout(n(this, K)), d(this, K, void 0));
|
|
416
|
-
}
|
|
417
|
-
}, K = new WeakMap(), nt), se, re, D, B, I, he, $, A, Q, it, Es = (it = class extends kt {
|
|
418
|
-
constructor(e) {
|
|
419
|
-
super();
|
|
420
|
-
g(this, A);
|
|
421
|
-
g(this, se);
|
|
422
|
-
g(this, re);
|
|
423
|
-
g(this, D);
|
|
424
|
-
g(this, B);
|
|
425
|
-
g(this, I);
|
|
426
|
-
g(this, he);
|
|
427
|
-
g(this, $);
|
|
428
|
-
d(this, $, !1), d(this, he, e.defaultOptions), this.setOptions(e.options), this.observers = [], d(this, B, e.client), d(this, D, n(this, B).getQueryCache()), this.queryKey = e.queryKey, this.queryHash = e.queryHash, d(this, se, Ut(this.options)), this.state = e.state ?? n(this, se), this.scheduleGc();
|
|
429
|
-
}
|
|
430
|
-
get meta() {
|
|
431
|
-
return this.options.meta;
|
|
432
|
-
}
|
|
433
|
-
get promise() {
|
|
434
|
-
var e;
|
|
435
|
-
return (e = n(this, I)) == null ? void 0 : e.promise;
|
|
436
|
-
}
|
|
437
|
-
setOptions(e) {
|
|
438
|
-
this.options = { ...n(this, he), ...e }, this.updateGcTime(this.options.gcTime);
|
|
439
|
-
}
|
|
440
|
-
optionalRemove() {
|
|
441
|
-
!this.observers.length && this.state.fetchStatus === "idle" && n(this, D).remove(this);
|
|
442
|
-
}
|
|
443
|
-
setData(e, s) {
|
|
444
|
-
const r = Ie(this.state.data, e, this.options);
|
|
445
|
-
return w(this, A, Q).call(this, {
|
|
446
|
-
data: r,
|
|
447
|
-
type: "success",
|
|
448
|
-
dataUpdatedAt: s == null ? void 0 : s.updatedAt,
|
|
449
|
-
manual: s == null ? void 0 : s.manual
|
|
450
|
-
}), r;
|
|
451
|
-
}
|
|
452
|
-
setState(e, s) {
|
|
453
|
-
w(this, A, Q).call(this, { type: "setState", state: e, setStateOptions: s });
|
|
454
|
-
}
|
|
455
|
-
cancel(e) {
|
|
456
|
-
var r, i;
|
|
457
|
-
const s = (r = n(this, I)) == null ? void 0 : r.promise;
|
|
458
|
-
return (i = n(this, I)) == null || i.cancel(e), s ? s.then(Se).catch(Se) : Promise.resolve();
|
|
459
|
-
}
|
|
460
|
-
destroy() {
|
|
461
|
-
super.destroy(), this.cancel({ silent: !0 });
|
|
462
|
-
}
|
|
463
|
-
reset() {
|
|
464
|
-
this.destroy(), this.setState(n(this, se));
|
|
465
|
-
}
|
|
466
|
-
isActive() {
|
|
467
|
-
return this.observers.some(
|
|
468
|
-
(e) => x(e.options.enabled, this) !== !1
|
|
469
|
-
);
|
|
470
|
-
}
|
|
471
|
-
isDisabled() {
|
|
472
|
-
return this.getObserversCount() > 0 ? !this.isActive() : this.options.queryFn === pe || this.state.dataUpdateCount + this.state.errorUpdateCount === 0;
|
|
473
|
-
}
|
|
474
|
-
isStale() {
|
|
475
|
-
return this.state.isInvalidated ? !0 : this.getObserversCount() > 0 ? this.observers.some(
|
|
476
|
-
(e) => e.getCurrentResult().isStale
|
|
477
|
-
) : this.state.data === void 0;
|
|
478
|
-
}
|
|
479
|
-
isStaleByTime(e = 0) {
|
|
480
|
-
return this.state.isInvalidated || this.state.data === void 0 || !ot(this.state.dataUpdatedAt, e);
|
|
481
|
-
}
|
|
482
|
-
onFocus() {
|
|
483
|
-
var s;
|
|
484
|
-
const e = this.observers.find((r) => r.shouldFetchOnWindowFocus());
|
|
485
|
-
e == null || e.refetch({ cancelRefetch: !1 }), (s = n(this, I)) == null || s.continue();
|
|
486
|
-
}
|
|
487
|
-
onOnline() {
|
|
488
|
-
var s;
|
|
489
|
-
const e = this.observers.find((r) => r.shouldFetchOnReconnect());
|
|
490
|
-
e == null || e.refetch({ cancelRefetch: !1 }), (s = n(this, I)) == null || s.continue();
|
|
491
|
-
}
|
|
492
|
-
addObserver(e) {
|
|
493
|
-
this.observers.includes(e) || (this.observers.push(e), this.clearGcTimeout(), n(this, D).notify({ type: "observerAdded", query: this, observer: e }));
|
|
494
|
-
}
|
|
495
|
-
removeObserver(e) {
|
|
496
|
-
this.observers.includes(e) && (this.observers = this.observers.filter((s) => s !== e), this.observers.length || (n(this, I) && (n(this, $) ? n(this, I).cancel({ revert: !0 }) : n(this, I).cancelRetry()), this.scheduleGc()), n(this, D).notify({ type: "observerRemoved", query: this, observer: e }));
|
|
497
|
-
}
|
|
498
|
-
getObserversCount() {
|
|
499
|
-
return this.observers.length;
|
|
500
|
-
}
|
|
501
|
-
invalidate() {
|
|
502
|
-
this.state.isInvalidated || w(this, A, Q).call(this, { type: "invalidate" });
|
|
503
|
-
}
|
|
504
|
-
fetch(e, s) {
|
|
505
|
-
var l, f, m;
|
|
506
|
-
if (this.state.fetchStatus !== "idle") {
|
|
507
|
-
if (this.state.data !== void 0 && (s != null && s.cancelRefetch))
|
|
508
|
-
this.cancel({ silent: !0 });
|
|
509
|
-
else if (n(this, I))
|
|
510
|
-
return n(this, I).continueRetry(), n(this, I).promise;
|
|
511
|
-
}
|
|
512
|
-
if (e && this.setOptions(e), !this.options.queryFn) {
|
|
513
|
-
const c = this.observers.find((p) => p.options.queryFn);
|
|
514
|
-
c && this.setOptions(c.options);
|
|
515
|
-
}
|
|
516
|
-
process.env.NODE_ENV !== "production" && (Array.isArray(this.options.queryKey) || console.error(
|
|
517
|
-
"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']"
|
|
518
|
-
));
|
|
519
|
-
const r = new AbortController(), i = (c) => {
|
|
520
|
-
Object.defineProperty(c, "signal", {
|
|
521
|
-
enumerable: !0,
|
|
522
|
-
get: () => (d(this, $, !0), r.signal)
|
|
523
|
-
});
|
|
524
|
-
}, a = () => {
|
|
525
|
-
const c = Pt(this.options, s), p = {
|
|
526
|
-
client: n(this, B),
|
|
527
|
-
queryKey: this.queryKey,
|
|
528
|
-
meta: this.meta
|
|
529
|
-
};
|
|
530
|
-
return i(p), d(this, $, !1), this.options.persister ? this.options.persister(
|
|
531
|
-
c,
|
|
532
|
-
p,
|
|
533
|
-
this
|
|
534
|
-
) : c(p);
|
|
535
|
-
}, u = {
|
|
536
|
-
fetchOptions: s,
|
|
537
|
-
options: this.options,
|
|
538
|
-
queryKey: this.queryKey,
|
|
539
|
-
client: n(this, B),
|
|
540
|
-
state: this.state,
|
|
541
|
-
fetchFn: a
|
|
542
|
-
};
|
|
543
|
-
i(u), (l = this.options.behavior) == null || l.onFetch(
|
|
544
|
-
u,
|
|
545
|
-
this
|
|
546
|
-
), d(this, re, this.state), (this.state.fetchStatus === "idle" || this.state.fetchMeta !== ((f = u.fetchOptions) == null ? void 0 : f.meta)) && w(this, A, Q).call(this, { type: "fetch", meta: (m = u.fetchOptions) == null ? void 0 : m.meta });
|
|
547
|
-
const o = (c) => {
|
|
548
|
-
var p, y, C, h;
|
|
549
|
-
ge(c) && c.silent || w(this, A, Q).call(this, {
|
|
550
|
-
type: "error",
|
|
551
|
-
error: c
|
|
552
|
-
}), ge(c) || ((y = (p = n(this, D).config).onError) == null || y.call(
|
|
553
|
-
p,
|
|
554
|
-
c,
|
|
555
|
-
this
|
|
556
|
-
), (h = (C = n(this, D).config).onSettled) == null || h.call(
|
|
557
|
-
C,
|
|
558
|
-
this.state.data,
|
|
559
|
-
c,
|
|
560
|
-
this
|
|
561
|
-
)), this.scheduleGc();
|
|
562
|
-
};
|
|
563
|
-
return d(this, I, At({
|
|
564
|
-
initialPromise: s == null ? void 0 : s.initialPromise,
|
|
565
|
-
fn: u.fetchFn,
|
|
566
|
-
abort: r.abort.bind(r),
|
|
567
|
-
onSuccess: (c) => {
|
|
568
|
-
var p, y, C, h;
|
|
569
|
-
if (c === void 0) {
|
|
570
|
-
process.env.NODE_ENV !== "production" && console.error(
|
|
571
|
-
`Query data cannot be undefined. Please make sure to return a value other than undefined from your query function. Affected query key: ${this.queryHash}`
|
|
572
|
-
), o(new Error(`${this.queryHash} data is undefined`));
|
|
573
|
-
return;
|
|
574
|
-
}
|
|
575
|
-
try {
|
|
576
|
-
this.setData(c);
|
|
577
|
-
} catch (v) {
|
|
578
|
-
o(v);
|
|
579
|
-
return;
|
|
580
|
-
}
|
|
581
|
-
(y = (p = n(this, D).config).onSuccess) == null || y.call(p, c, this), (h = (C = n(this, D).config).onSettled) == null || h.call(
|
|
582
|
-
C,
|
|
583
|
-
c,
|
|
584
|
-
this.state.error,
|
|
585
|
-
this
|
|
586
|
-
), this.scheduleGc();
|
|
587
|
-
},
|
|
588
|
-
onError: o,
|
|
589
|
-
onFail: (c, p) => {
|
|
590
|
-
w(this, A, Q).call(this, { type: "failed", failureCount: c, error: p });
|
|
591
|
-
},
|
|
592
|
-
onPause: () => {
|
|
593
|
-
w(this, A, Q).call(this, { type: "pause" });
|
|
594
|
-
},
|
|
595
|
-
onContinue: () => {
|
|
596
|
-
w(this, A, Q).call(this, { type: "continue" });
|
|
597
|
-
},
|
|
598
|
-
retry: u.options.retry,
|
|
599
|
-
retryDelay: u.options.retryDelay,
|
|
600
|
-
networkMode: u.options.networkMode,
|
|
601
|
-
canRun: () => !0
|
|
602
|
-
})), n(this, I).start();
|
|
603
|
-
}
|
|
604
|
-
}, se = new WeakMap(), re = new WeakMap(), D = new WeakMap(), B = new WeakMap(), I = new WeakMap(), he = new WeakMap(), $ = new WeakMap(), A = new WeakSet(), Q = function(e) {
|
|
605
|
-
const s = (r) => {
|
|
606
|
-
switch (e.type) {
|
|
607
|
-
case "failed":
|
|
608
|
-
return {
|
|
609
|
-
...r,
|
|
610
|
-
fetchFailureCount: e.failureCount,
|
|
611
|
-
fetchFailureReason: e.error
|
|
612
|
-
};
|
|
613
|
-
case "pause":
|
|
614
|
-
return {
|
|
615
|
-
...r,
|
|
616
|
-
fetchStatus: "paused"
|
|
617
|
-
};
|
|
618
|
-
case "continue":
|
|
619
|
-
return {
|
|
620
|
-
...r,
|
|
621
|
-
fetchStatus: "fetching"
|
|
622
|
-
};
|
|
623
|
-
case "fetch":
|
|
624
|
-
return {
|
|
625
|
-
...r,
|
|
626
|
-
...dt(r.data, this.options),
|
|
627
|
-
fetchMeta: e.meta ?? null
|
|
628
|
-
};
|
|
629
|
-
case "success":
|
|
630
|
-
return {
|
|
631
|
-
...r,
|
|
632
|
-
data: e.data,
|
|
633
|
-
dataUpdateCount: r.dataUpdateCount + 1,
|
|
634
|
-
dataUpdatedAt: e.dataUpdatedAt ?? Date.now(),
|
|
635
|
-
error: null,
|
|
636
|
-
isInvalidated: !1,
|
|
637
|
-
status: "success",
|
|
638
|
-
...!e.manual && {
|
|
639
|
-
fetchStatus: "idle",
|
|
640
|
-
fetchFailureCount: 0,
|
|
641
|
-
fetchFailureReason: null
|
|
642
|
-
}
|
|
643
|
-
};
|
|
644
|
-
case "error":
|
|
645
|
-
const i = e.error;
|
|
646
|
-
return ge(i) && i.revert && n(this, re) ? { ...n(this, re), fetchStatus: "idle" } : {
|
|
647
|
-
...r,
|
|
648
|
-
error: i,
|
|
649
|
-
errorUpdateCount: r.errorUpdateCount + 1,
|
|
650
|
-
errorUpdatedAt: Date.now(),
|
|
651
|
-
fetchFailureCount: r.fetchFailureCount + 1,
|
|
652
|
-
fetchFailureReason: i,
|
|
653
|
-
fetchStatus: "idle",
|
|
654
|
-
status: "error"
|
|
655
|
-
};
|
|
656
|
-
case "invalidate":
|
|
657
|
-
return {
|
|
658
|
-
...r,
|
|
659
|
-
isInvalidated: !0
|
|
660
|
-
};
|
|
661
|
-
case "setState":
|
|
662
|
-
return {
|
|
663
|
-
...r,
|
|
664
|
-
...e.state
|
|
665
|
-
};
|
|
666
|
-
}
|
|
667
|
-
};
|
|
668
|
-
this.state = s(this.state), Me.batch(() => {
|
|
669
|
-
this.observers.forEach((r) => {
|
|
670
|
-
r.onQueryUpdate();
|
|
671
|
-
}), n(this, D).notify({ query: this, type: "updated", action: e });
|
|
672
|
-
});
|
|
673
|
-
}, it);
|
|
674
|
-
function dt(t, e) {
|
|
675
|
-
return {
|
|
676
|
-
fetchFailureCount: 0,
|
|
677
|
-
fetchFailureReason: null,
|
|
678
|
-
fetchStatus: ht(e.networkMode) ? "fetching" : "paused",
|
|
679
|
-
...t === void 0 && {
|
|
680
|
-
error: null,
|
|
681
|
-
status: "pending"
|
|
682
|
-
}
|
|
683
|
-
};
|
|
684
|
-
}
|
|
685
|
-
function Ut(t) {
|
|
686
|
-
const e = typeof t.initialData == "function" ? t.initialData() : t.initialData, s = e !== void 0, r = s ? typeof t.initialDataUpdatedAt == "function" ? t.initialDataUpdatedAt() : t.initialDataUpdatedAt : 0;
|
|
687
|
-
return {
|
|
688
|
-
data: e,
|
|
689
|
-
dataUpdateCount: 0,
|
|
690
|
-
dataUpdatedAt: s ? r ?? Date.now() : 0,
|
|
691
|
-
error: null,
|
|
692
|
-
errorUpdateCount: 0,
|
|
693
|
-
errorUpdatedAt: 0,
|
|
694
|
-
fetchFailureCount: 0,
|
|
695
|
-
fetchFailureReason: null,
|
|
696
|
-
fetchMeta: null,
|
|
697
|
-
isInvalidated: !1,
|
|
698
|
-
status: s ? "success" : "pending",
|
|
699
|
-
fetchStatus: "idle"
|
|
700
|
-
};
|
|
701
|
-
}
|
|
702
|
-
var T, b, le, P, G, ne, N, U, de, ie, ae, z, J, _, oe, S, ue, Pe, Te, De, je, Ae, xe, ke, yt, at, ft = (at = class extends qe {
|
|
703
|
-
constructor(e, s) {
|
|
704
|
-
super();
|
|
705
|
-
g(this, S);
|
|
706
|
-
g(this, T);
|
|
707
|
-
g(this, b);
|
|
708
|
-
g(this, le);
|
|
709
|
-
g(this, P);
|
|
710
|
-
g(this, G);
|
|
711
|
-
g(this, ne);
|
|
712
|
-
g(this, N);
|
|
713
|
-
g(this, U);
|
|
714
|
-
g(this, de);
|
|
715
|
-
g(this, ie);
|
|
716
|
-
// This property keeps track of the last query with defined data.
|
|
717
|
-
// It will be used to pass the previous data and query to the placeholder function between renders.
|
|
718
|
-
g(this, ae);
|
|
719
|
-
g(this, z);
|
|
720
|
-
g(this, J);
|
|
721
|
-
g(this, _);
|
|
722
|
-
g(this, oe, /* @__PURE__ */ new Set());
|
|
723
|
-
this.options = s, d(this, T, e), d(this, U, null), d(this, N, Fe()), this.options.experimental_prefetchInRender || n(this, N).reject(
|
|
724
|
-
new Error("experimental_prefetchInRender feature flag is not enabled")
|
|
725
|
-
), this.bindMethods(), this.setOptions(s);
|
|
726
|
-
}
|
|
727
|
-
bindMethods() {
|
|
728
|
-
this.refetch = this.refetch.bind(this);
|
|
729
|
-
}
|
|
730
|
-
onSubscribe() {
|
|
731
|
-
this.listeners.size === 1 && (n(this, b).addObserver(this), Ze(n(this, b), this.options) ? w(this, S, ue).call(this) : this.updateResult(), w(this, S, je).call(this));
|
|
732
|
-
}
|
|
733
|
-
onUnsubscribe() {
|
|
734
|
-
this.hasListeners() || this.destroy();
|
|
735
|
-
}
|
|
736
|
-
shouldFetchOnReconnect() {
|
|
737
|
-
return Ue(
|
|
738
|
-
n(this, b),
|
|
739
|
-
this.options,
|
|
740
|
-
this.options.refetchOnReconnect
|
|
741
|
-
);
|
|
742
|
-
}
|
|
743
|
-
shouldFetchOnWindowFocus() {
|
|
744
|
-
return Ue(
|
|
745
|
-
n(this, b),
|
|
746
|
-
this.options,
|
|
747
|
-
this.options.refetchOnWindowFocus
|
|
748
|
-
);
|
|
749
|
-
}
|
|
750
|
-
destroy() {
|
|
751
|
-
this.listeners = /* @__PURE__ */ new Set(), w(this, S, Ae).call(this), w(this, S, xe).call(this), n(this, b).removeObserver(this);
|
|
752
|
-
}
|
|
753
|
-
setOptions(e, s) {
|
|
754
|
-
const r = this.options, i = n(this, b);
|
|
755
|
-
if (this.options = n(this, T).defaultQueryOptions(e), this.options.enabled !== void 0 && typeof this.options.enabled != "boolean" && typeof this.options.enabled != "function" && typeof x(this.options.enabled, n(this, b)) != "boolean")
|
|
756
|
-
throw new Error(
|
|
757
|
-
"Expected enabled to be a boolean or a callback that returns a boolean"
|
|
758
|
-
);
|
|
759
|
-
w(this, S, ke).call(this), n(this, b).setOptions(this.options), r._defaulted && !Ce(this.options, r) && n(this, T).getQueryCache().notify({
|
|
760
|
-
type: "observerOptionsUpdated",
|
|
761
|
-
query: n(this, b),
|
|
762
|
-
observer: this
|
|
763
|
-
});
|
|
764
|
-
const a = this.hasListeners();
|
|
765
|
-
a && We(
|
|
766
|
-
n(this, b),
|
|
767
|
-
i,
|
|
768
|
-
this.options,
|
|
769
|
-
r
|
|
770
|
-
) && w(this, S, ue).call(this), this.updateResult(s), a && (n(this, b) !== i || x(this.options.enabled, n(this, b)) !== x(r.enabled, n(this, b)) || ye(this.options.staleTime, n(this, b)) !== ye(r.staleTime, n(this, b))) && w(this, S, Pe).call(this);
|
|
771
|
-
const u = w(this, S, Te).call(this);
|
|
772
|
-
a && (n(this, b) !== i || x(this.options.enabled, n(this, b)) !== x(r.enabled, n(this, b)) || u !== n(this, _)) && w(this, S, De).call(this, u);
|
|
773
|
-
}
|
|
774
|
-
getOptimisticResult(e) {
|
|
775
|
-
const s = n(this, T).getQueryCache().build(n(this, T), e), r = this.createResult(s, e);
|
|
776
|
-
return qt(this, r) && (d(this, P, r), d(this, ne, this.options), d(this, G, n(this, b).state)), r;
|
|
777
|
-
}
|
|
778
|
-
getCurrentResult() {
|
|
779
|
-
return n(this, P);
|
|
780
|
-
}
|
|
781
|
-
trackResult(e, s) {
|
|
782
|
-
const r = {};
|
|
783
|
-
return Object.keys(e).forEach((i) => {
|
|
784
|
-
Object.defineProperty(r, i, {
|
|
785
|
-
configurable: !1,
|
|
786
|
-
enumerable: !0,
|
|
787
|
-
get: () => (this.trackProp(i), s == null || s(i), e[i])
|
|
788
|
-
});
|
|
789
|
-
}), r;
|
|
790
|
-
}
|
|
791
|
-
trackProp(e) {
|
|
792
|
-
n(this, oe).add(e);
|
|
793
|
-
}
|
|
794
|
-
getCurrentQuery() {
|
|
795
|
-
return n(this, b);
|
|
796
|
-
}
|
|
797
|
-
refetch({ ...e } = {}) {
|
|
798
|
-
return this.fetch({
|
|
799
|
-
...e
|
|
800
|
-
});
|
|
801
|
-
}
|
|
802
|
-
fetchOptimistic(e) {
|
|
803
|
-
const s = n(this, T).defaultQueryOptions(e), r = n(this, T).getQueryCache().build(n(this, T), s);
|
|
804
|
-
return r.fetch().then(() => this.createResult(r, s));
|
|
805
|
-
}
|
|
806
|
-
fetch(e) {
|
|
807
|
-
return w(this, S, ue).call(this, {
|
|
808
|
-
...e,
|
|
809
|
-
cancelRefetch: e.cancelRefetch ?? !0
|
|
810
|
-
}).then(() => (this.updateResult(), n(this, P)));
|
|
811
|
-
}
|
|
812
|
-
createResult(e, s) {
|
|
813
|
-
var Be;
|
|
814
|
-
const r = n(this, b), i = this.options, a = n(this, P), u = n(this, G), o = n(this, ne), f = e !== r ? e.state : n(this, le), { state: m } = e;
|
|
815
|
-
let c = { ...m }, p = !1, y;
|
|
816
|
-
if (s._optimisticResults) {
|
|
817
|
-
const F = this.hasListeners(), W = !F && Ze(e, s), Y = F && We(e, r, s, i);
|
|
818
|
-
(W || Y) && (c = {
|
|
819
|
-
...c,
|
|
820
|
-
...dt(m.data, e.options)
|
|
821
|
-
}), s._optimisticResults === "isRestoring" && (c.fetchStatus = "idle");
|
|
822
|
-
}
|
|
823
|
-
let { error: C, errorUpdatedAt: h, status: v } = c;
|
|
824
|
-
if (s.select && c.data !== void 0)
|
|
825
|
-
if (a && c.data === (u == null ? void 0 : u.data) && s.select === n(this, de))
|
|
826
|
-
y = n(this, ie);
|
|
827
|
-
else
|
|
828
|
-
try {
|
|
829
|
-
d(this, de, s.select), y = s.select(c.data), y = Ie(a == null ? void 0 : a.data, y, s), d(this, ie, y), d(this, U, null);
|
|
830
|
-
} catch (F) {
|
|
831
|
-
d(this, U, F);
|
|
832
|
-
}
|
|
833
|
-
else
|
|
834
|
-
y = c.data;
|
|
835
|
-
if (s.placeholderData !== void 0 && y === void 0 && v === "pending") {
|
|
836
|
-
let F;
|
|
837
|
-
if (a != null && a.isPlaceholderData && s.placeholderData === (o == null ? void 0 : o.placeholderData))
|
|
838
|
-
F = a.data;
|
|
839
|
-
else if (F = typeof s.placeholderData == "function" ? s.placeholderData(
|
|
840
|
-
(Be = n(this, ae)) == null ? void 0 : Be.state.data,
|
|
841
|
-
n(this, ae)
|
|
842
|
-
) : s.placeholderData, s.select && F !== void 0)
|
|
843
|
-
try {
|
|
844
|
-
F = s.select(F), d(this, U, null);
|
|
845
|
-
} catch (W) {
|
|
846
|
-
d(this, U, W);
|
|
847
|
-
}
|
|
848
|
-
F !== void 0 && (v = "success", y = Ie(
|
|
849
|
-
a == null ? void 0 : a.data,
|
|
850
|
-
F,
|
|
851
|
-
s
|
|
852
|
-
), p = !0);
|
|
853
|
-
}
|
|
854
|
-
n(this, U) && (C = n(this, U), y = n(this, ie), h = Date.now(), v = "error");
|
|
855
|
-
const E = c.fetchStatus === "fetching", R = v === "pending", O = v === "error", q = R && E, Z = y !== void 0, k = {
|
|
856
|
-
status: v,
|
|
857
|
-
fetchStatus: c.fetchStatus,
|
|
858
|
-
isPending: R,
|
|
859
|
-
isSuccess: v === "success",
|
|
860
|
-
isError: O,
|
|
861
|
-
isInitialLoading: q,
|
|
862
|
-
isLoading: q,
|
|
863
|
-
data: y,
|
|
864
|
-
dataUpdatedAt: c.dataUpdatedAt,
|
|
865
|
-
error: C,
|
|
866
|
-
errorUpdatedAt: h,
|
|
867
|
-
failureCount: c.fetchFailureCount,
|
|
868
|
-
failureReason: c.fetchFailureReason,
|
|
869
|
-
errorUpdateCount: c.errorUpdateCount,
|
|
870
|
-
isFetched: c.dataUpdateCount > 0 || c.errorUpdateCount > 0,
|
|
871
|
-
isFetchedAfterMount: c.dataUpdateCount > f.dataUpdateCount || c.errorUpdateCount > f.errorUpdateCount,
|
|
872
|
-
isFetching: E,
|
|
873
|
-
isRefetching: E && !R,
|
|
874
|
-
isLoadingError: O && !Z,
|
|
875
|
-
isPaused: c.fetchStatus === "paused",
|
|
876
|
-
isPlaceholderData: p,
|
|
877
|
-
isRefetchError: O && Z,
|
|
878
|
-
isStale: Ne(e, s),
|
|
879
|
-
refetch: this.refetch,
|
|
880
|
-
promise: n(this, N)
|
|
881
|
-
};
|
|
882
|
-
if (this.options.experimental_prefetchInRender) {
|
|
883
|
-
const F = (fe) => {
|
|
884
|
-
k.status === "error" ? fe.reject(k.error) : k.data !== void 0 && fe.resolve(k.data);
|
|
885
|
-
}, W = () => {
|
|
886
|
-
const fe = d(this, N, k.promise = Fe());
|
|
887
|
-
F(fe);
|
|
888
|
-
}, Y = n(this, N);
|
|
889
|
-
switch (Y.status) {
|
|
890
|
-
case "pending":
|
|
891
|
-
e.queryHash === r.queryHash && F(Y);
|
|
892
|
-
break;
|
|
893
|
-
case "fulfilled":
|
|
894
|
-
(k.status === "error" || k.data !== Y.value) && W();
|
|
895
|
-
break;
|
|
896
|
-
case "rejected":
|
|
897
|
-
(k.status !== "error" || k.error !== Y.reason) && W();
|
|
898
|
-
break;
|
|
899
|
-
}
|
|
900
|
-
}
|
|
901
|
-
return k;
|
|
902
|
-
}
|
|
903
|
-
updateResult(e) {
|
|
904
|
-
const s = n(this, P), r = this.createResult(n(this, b), this.options);
|
|
905
|
-
if (d(this, G, n(this, b).state), d(this, ne, this.options), n(this, G).data !== void 0 && d(this, ae, n(this, b)), Ce(r, s))
|
|
906
|
-
return;
|
|
907
|
-
d(this, P, r);
|
|
908
|
-
const i = {}, a = () => {
|
|
909
|
-
if (!s)
|
|
910
|
-
return !0;
|
|
911
|
-
const { notifyOnChangeProps: u } = this.options, o = typeof u == "function" ? u() : u;
|
|
912
|
-
if (o === "all" || !o && !n(this, oe).size)
|
|
913
|
-
return !0;
|
|
914
|
-
const l = new Set(
|
|
915
|
-
o ?? n(this, oe)
|
|
916
|
-
);
|
|
917
|
-
return this.options.throwOnError && l.add("error"), Object.keys(n(this, P)).some((f) => {
|
|
918
|
-
const m = f;
|
|
919
|
-
return n(this, P)[m] !== s[m] && l.has(m);
|
|
920
|
-
});
|
|
921
|
-
};
|
|
922
|
-
(e == null ? void 0 : e.listeners) !== !1 && a() && (i.listeners = !0), w(this, S, yt).call(this, { ...i, ...e });
|
|
923
|
-
}
|
|
924
|
-
onQueryUpdate() {
|
|
925
|
-
this.updateResult(), this.hasListeners() && w(this, S, je).call(this);
|
|
926
|
-
}
|
|
927
|
-
}, T = new WeakMap(), b = new WeakMap(), le = new WeakMap(), P = new WeakMap(), G = new WeakMap(), ne = new WeakMap(), N = new WeakMap(), U = new WeakMap(), de = new WeakMap(), ie = new WeakMap(), ae = new WeakMap(), z = new WeakMap(), J = new WeakMap(), _ = new WeakMap(), oe = new WeakMap(), S = new WeakSet(), ue = function(e) {
|
|
928
|
-
w(this, S, ke).call(this);
|
|
929
|
-
let s = n(this, b).fetch(
|
|
930
|
-
this.options,
|
|
931
|
-
e
|
|
932
|
-
);
|
|
933
|
-
return e != null && e.throwOnError || (s = s.catch(Se)), s;
|
|
934
|
-
}, Pe = function() {
|
|
935
|
-
w(this, S, Ae).call(this);
|
|
936
|
-
const e = ye(
|
|
937
|
-
this.options.staleTime,
|
|
938
|
-
n(this, b)
|
|
939
|
-
);
|
|
940
|
-
if (V || n(this, P).isStale || !we(e))
|
|
941
|
-
return;
|
|
942
|
-
const r = ot(n(this, P).dataUpdatedAt, e) + 1;
|
|
943
|
-
d(this, z, setTimeout(() => {
|
|
944
|
-
n(this, P).isStale || this.updateResult();
|
|
945
|
-
}, r));
|
|
946
|
-
}, Te = function() {
|
|
947
|
-
return (typeof this.options.refetchInterval == "function" ? this.options.refetchInterval(n(this, b)) : this.options.refetchInterval) ?? !1;
|
|
948
|
-
}, De = function(e) {
|
|
949
|
-
w(this, S, xe).call(this), d(this, _, e), !(V || x(this.options.enabled, n(this, b)) === !1 || !we(n(this, _)) || n(this, _) === 0) && d(this, J, setInterval(() => {
|
|
950
|
-
(this.options.refetchIntervalInBackground || ut.isFocused()) && w(this, S, ue).call(this);
|
|
951
|
-
}, n(this, _)));
|
|
952
|
-
}, je = function() {
|
|
953
|
-
w(this, S, Pe).call(this), w(this, S, De).call(this, w(this, S, Te).call(this));
|
|
954
|
-
}, Ae = function() {
|
|
955
|
-
n(this, z) && (clearTimeout(n(this, z)), d(this, z, void 0));
|
|
956
|
-
}, xe = function() {
|
|
957
|
-
n(this, J) && (clearInterval(n(this, J)), d(this, J, void 0));
|
|
958
|
-
}, ke = function() {
|
|
959
|
-
const e = n(this, T).getQueryCache().build(n(this, T), this.options);
|
|
960
|
-
if (e === n(this, b))
|
|
961
|
-
return;
|
|
962
|
-
const s = n(this, b);
|
|
963
|
-
d(this, b, e), d(this, le, e.state), this.hasListeners() && (s == null || s.removeObserver(this), e.addObserver(this));
|
|
964
|
-
}, yt = function(e) {
|
|
965
|
-
Me.batch(() => {
|
|
966
|
-
e.listeners && this.listeners.forEach((s) => {
|
|
967
|
-
s(n(this, P));
|
|
968
|
-
}), n(this, T).getQueryCache().notify({
|
|
969
|
-
query: n(this, b),
|
|
970
|
-
type: "observerResultsUpdated"
|
|
971
|
-
});
|
|
972
|
-
});
|
|
973
|
-
}, at);
|
|
974
|
-
function Qt(t, e) {
|
|
975
|
-
return x(e.enabled, t) !== !1 && t.state.data === void 0 && !(t.state.status === "error" && e.retryOnMount === !1);
|
|
976
|
-
}
|
|
977
|
-
function Ze(t, e) {
|
|
978
|
-
return Qt(t, e) || t.state.data !== void 0 && Ue(t, e, e.refetchOnMount);
|
|
979
|
-
}
|
|
980
|
-
function Ue(t, e, s) {
|
|
981
|
-
if (x(e.enabled, t) !== !1) {
|
|
982
|
-
const r = typeof s == "function" ? s(t) : s;
|
|
983
|
-
return r === "always" || r !== !1 && Ne(t, e);
|
|
984
|
-
}
|
|
985
|
-
return !1;
|
|
986
|
-
}
|
|
987
|
-
function We(t, e, s, r) {
|
|
988
|
-
return (t !== e || x(r.enabled, t) === !1) && (!s.suspense || t.state.status !== "error") && Ne(t, s);
|
|
989
|
-
}
|
|
990
|
-
function Ne(t, e) {
|
|
991
|
-
return x(e.enabled, t) !== !1 && t.isStaleByTime(ye(e.staleTime, t));
|
|
992
|
-
}
|
|
993
|
-
function qt(t, e) {
|
|
994
|
-
return !Ce(t.getCurrentResult(), e);
|
|
995
|
-
}
|
|
996
|
-
var pt = j.createContext(
|
|
997
|
-
void 0
|
|
998
|
-
), vt = (t) => {
|
|
999
|
-
const e = j.useContext(pt);
|
|
1000
|
-
if (t)
|
|
1001
|
-
return t;
|
|
1002
|
-
if (!e)
|
|
1003
|
-
throw new Error("No QueryClient set, use QueryClientProvider to set one");
|
|
1004
|
-
return e;
|
|
1005
|
-
}, Cs = ({
|
|
1006
|
-
client: t,
|
|
1007
|
-
children: e
|
|
1008
|
-
}) => (j.useEffect(() => (t.mount(), () => {
|
|
1009
|
-
t.unmount();
|
|
1010
|
-
}), [t]), /* @__PURE__ */ Ot.jsx(pt.Provider, { value: t, children: e })), bt = j.createContext(!1), Lt = () => j.useContext(bt);
|
|
1011
|
-
bt.Provider;
|
|
1012
|
-
function Mt() {
|
|
1013
|
-
let t = !1;
|
|
1014
|
-
return {
|
|
1015
|
-
clearReset: () => {
|
|
1016
|
-
t = !1;
|
|
1017
|
-
},
|
|
1018
|
-
reset: () => {
|
|
1019
|
-
t = !0;
|
|
1020
|
-
},
|
|
1021
|
-
isReset: () => t
|
|
1022
|
-
};
|
|
1023
|
-
}
|
|
1024
|
-
var Nt = j.createContext(Mt()), _t = () => j.useContext(Nt);
|
|
1025
|
-
function Ht(t, e) {
|
|
1026
|
-
return typeof t == "function" ? t(...e) : !!t;
|
|
1027
|
-
}
|
|
1028
|
-
function Ye() {
|
|
1029
|
-
}
|
|
1030
|
-
var Kt = (t, e) => {
|
|
1031
|
-
(t.suspense || t.throwOnError || t.experimental_prefetchInRender) && (e.isReset() || (t.retryOnMount = !1));
|
|
1032
|
-
}, Bt = (t) => {
|
|
1033
|
-
j.useEffect(() => {
|
|
1034
|
-
t.clearReset();
|
|
1035
|
-
}, [t]);
|
|
1036
|
-
}, $t = ({
|
|
1037
|
-
result: t,
|
|
1038
|
-
errorResetBoundary: e,
|
|
1039
|
-
throwOnError: s,
|
|
1040
|
-
query: r,
|
|
1041
|
-
suspense: i
|
|
1042
|
-
}) => t.isError && !e.isReset() && !t.isFetching && r && (i && t.data === void 0 || Ht(s, [t.error, r])), Gt = (t, e) => e.state.data === void 0, zt = (t) => {
|
|
1043
|
-
const e = t.staleTime;
|
|
1044
|
-
t.suspense && (t.staleTime = typeof e == "function" ? (...s) => Math.max(e(...s), 1e3) : Math.max(e ?? 1e3, 1e3), typeof t.gcTime == "number" && (t.gcTime = Math.max(t.gcTime, 1e3)));
|
|
1045
|
-
}, Jt = (t, e) => t.isLoading && t.isFetching && !e, Vt = (t, e) => (t == null ? void 0 : t.suspense) && e.isPending, Xe = (t, e, s) => e.fetchOptimistic(t).catch(() => {
|
|
1046
|
-
s.clearReset();
|
|
1047
|
-
});
|
|
1048
|
-
function mt(t, e, s) {
|
|
1049
|
-
var c, p, y, C, h;
|
|
1050
|
-
if (process.env.NODE_ENV !== "production" && (typeof t != "object" || Array.isArray(t)))
|
|
1051
|
-
throw new Error(
|
|
1052
|
-
'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'
|
|
1053
|
-
);
|
|
1054
|
-
const r = vt(s), i = Lt(), a = _t(), u = r.defaultQueryOptions(t);
|
|
1055
|
-
(p = (c = r.getDefaultOptions().queries) == null ? void 0 : c._experimental_beforeQuery) == null || p.call(
|
|
1056
|
-
c,
|
|
1057
|
-
u
|
|
1058
|
-
), u._optimisticResults = i ? "isRestoring" : "optimistic", zt(u), Kt(u, a), Bt(a);
|
|
1059
|
-
const o = !r.getQueryCache().get(u.queryHash), [l] = j.useState(
|
|
1060
|
-
() => new e(
|
|
1061
|
-
r,
|
|
1062
|
-
u
|
|
1063
|
-
)
|
|
1064
|
-
), f = l.getOptimisticResult(u), m = !i && t.subscribed !== !1;
|
|
1065
|
-
if (j.useSyncExternalStore(
|
|
1066
|
-
j.useCallback(
|
|
1067
|
-
(v) => {
|
|
1068
|
-
const E = m ? l.subscribe(Me.batchCalls(v)) : Ye;
|
|
1069
|
-
return l.updateResult(), E;
|
|
1070
|
-
},
|
|
1071
|
-
[l, m]
|
|
1072
|
-
),
|
|
1073
|
-
() => l.getCurrentResult(),
|
|
1074
|
-
() => l.getCurrentResult()
|
|
1075
|
-
), j.useEffect(() => {
|
|
1076
|
-
l.setOptions(u, { listeners: !1 });
|
|
1077
|
-
}, [u, l]), Vt(u, f))
|
|
1078
|
-
throw Xe(u, l, a);
|
|
1079
|
-
if ($t({
|
|
1080
|
-
result: f,
|
|
1081
|
-
errorResetBoundary: a,
|
|
1082
|
-
throwOnError: u.throwOnError,
|
|
1083
|
-
query: r.getQueryCache().get(u.queryHash),
|
|
1084
|
-
suspense: u.suspense
|
|
1085
|
-
}))
|
|
1086
|
-
throw f.error;
|
|
1087
|
-
if ((C = (y = r.getDefaultOptions().queries) == null ? void 0 : y._experimental_afterQuery) == null || C.call(
|
|
1088
|
-
y,
|
|
1089
|
-
u,
|
|
1090
|
-
f
|
|
1091
|
-
), u.experimental_prefetchInRender && !V && Jt(f, i)) {
|
|
1092
|
-
const v = o ? (
|
|
1093
|
-
// Fetch immediately on render in order to ensure `.promise` is resolved even if the component is unmounted
|
|
1094
|
-
Xe(u, l, a)
|
|
1095
|
-
) : (
|
|
1096
|
-
// subscribe to the "cache promise" so that we can finalize the currentThenable once data comes in
|
|
1097
|
-
(h = r.getQueryCache().get(u.queryHash)) == null ? void 0 : h.promise
|
|
1098
|
-
);
|
|
1099
|
-
v == null || v.catch(Ye).finally(() => {
|
|
1100
|
-
l.updateResult();
|
|
1101
|
-
});
|
|
1102
|
-
}
|
|
1103
|
-
return u.notifyOnChangeProps ? f : l.trackResult(f);
|
|
1104
|
-
}
|
|
1105
|
-
function Zt(t, e) {
|
|
1106
|
-
return mt(t, ft, e);
|
|
1107
|
-
}
|
|
1108
|
-
function Wt(t, e) {
|
|
1109
|
-
return process.env.NODE_ENV !== "production" && t.queryFn === pe && console.error("skipToken is not allowed for useSuspenseQuery"), mt(
|
|
1110
|
-
{
|
|
1111
|
-
...t,
|
|
1112
|
-
enabled: !0,
|
|
1113
|
-
suspense: !0,
|
|
1114
|
-
throwOnError: Gt,
|
|
1115
|
-
placeholderData: void 0
|
|
1116
|
-
},
|
|
1117
|
-
ft,
|
|
1118
|
-
e
|
|
1119
|
-
);
|
|
1120
|
-
}
|
|
1121
|
-
const Yt = /^(\w+:\/\/[^/?]+)?([^?]*)(\?.*)?$/, Xt = (t) => t.filter(
|
|
1122
|
-
(e) => e != null && e !== !1 && (typeof e == "string" || typeof e == "number")
|
|
1123
|
-
).map((e) => `${e}`).filter((e) => e), es = (t) => {
|
|
1124
|
-
const e = t.join("/"), [, s = "", r = ""] = e.match(Yt) ?? [];
|
|
1125
|
-
return {
|
|
1126
|
-
prefix: s,
|
|
1127
|
-
pathname: r.split("/").filter((i) => i !== "")
|
|
1128
|
-
};
|
|
1129
|
-
}, ts = (t) => {
|
|
1130
|
-
const { prefix: e, pathname: s } = t;
|
|
1131
|
-
let r = e;
|
|
1132
|
-
return s.length > 0 ? (r ? r += "/" : r = "/", r += s.join("/")) : r || (r = "/"), r;
|
|
1133
|
-
}, et = (...t) => {
|
|
1134
|
-
const e = Xt(t), s = es(e);
|
|
1135
|
-
return ts(s);
|
|
1136
|
-
}, gt = Object.freeze({
|
|
1137
|
-
API_IDENTITIES: ["api-identities"]
|
|
1138
|
-
}), Os = () => {
|
|
1139
|
-
const t = vt();
|
|
1140
|
-
return {
|
|
1141
|
-
invalidateCache: async (e) => {
|
|
1142
|
-
await t.invalidateQueries({ queryKey: gt[e] });
|
|
1143
|
-
}
|
|
1144
|
-
};
|
|
1145
|
-
}, ss = "no-dehydrate", ce = (...t) => {
|
|
1146
|
-
const e = t.filter((s) => !!s).map((s) => s.replace(/(^\/+|\/+$)/g, "")).join("/").replace(/(^\/+|\/+$)/g, "");
|
|
1147
|
-
return e ? `/${e}` : "/";
|
|
1148
|
-
}, _e = (t, e) => {
|
|
1149
|
-
for (const s of t) {
|
|
1150
|
-
const r = He(s, e);
|
|
1151
|
-
if (r !== void 0) return r;
|
|
1152
|
-
}
|
|
1153
|
-
}, He = (t, e, s = []) => {
|
|
1154
|
-
const r = e(t, s);
|
|
1155
|
-
if (r !== void 0) return r;
|
|
1156
|
-
if (t.type === "category")
|
|
1157
|
-
for (const i of t.items) {
|
|
1158
|
-
const a = He(i, e, [
|
|
1159
|
-
...s,
|
|
1160
|
-
t
|
|
1161
|
-
]);
|
|
1162
|
-
if (a !== void 0) return a;
|
|
1163
|
-
}
|
|
1164
|
-
}, Is = () => {
|
|
1165
|
-
const t = ve(), s = St().sidebar;
|
|
1166
|
-
return _e(s, (r) => {
|
|
1167
|
-
if (r.type === "doc" && ce(r.id) === t.pathname)
|
|
1168
|
-
return r;
|
|
1169
|
-
});
|
|
1170
|
-
}, Fs = (t) => {
|
|
1171
|
-
const e = ve();
|
|
1172
|
-
return He(t, (s) => {
|
|
1173
|
-
if (s.type === "category" && s.link && ce(s.link.id) === e.pathname || s.type === "doc" && ce(s.id) === e.pathname)
|
|
1174
|
-
return !0;
|
|
1175
|
-
});
|
|
1176
|
-
}, Ps = () => {
|
|
1177
|
-
const t = ve().pathname, s = St().sidebar;
|
|
1178
|
-
let r, i, a = !1;
|
|
1179
|
-
return _e(s, (u) => {
|
|
1180
|
-
const o = u.type === "doc" ? ce(u.id) : u.type === "category" && u.link ? ce(u.link.id) : void 0;
|
|
1181
|
-
if (o) {
|
|
1182
|
-
if (a)
|
|
1183
|
-
return i = { label: u.label, id: o }, !0;
|
|
1184
|
-
t === o ? a = !0 : r = { label: u.label, id: o };
|
|
1185
|
-
}
|
|
1186
|
-
}), { prev: r, next: i };
|
|
1187
|
-
}, rs = Et(
|
|
1188
|
-
void 0
|
|
1189
|
-
), Ke = () => {
|
|
1190
|
-
const t = Ct(rs);
|
|
1191
|
-
if (!t)
|
|
1192
|
-
throw new Error("useZudoku must be used within a ZudokuProvider.");
|
|
1193
|
-
return t;
|
|
1194
|
-
}, Ts = () => {
|
|
1195
|
-
const { getApiIdentities: t } = Ke();
|
|
1196
|
-
return Zt({
|
|
1197
|
-
queryFn: t,
|
|
1198
|
-
queryKey: gt.API_IDENTITIES
|
|
1199
|
-
});
|
|
1200
|
-
}, St = () => {
|
|
1201
|
-
var c;
|
|
1202
|
-
const { getPluginSidebar: t, sidebars: e, topNavigation: s, options: r } = Ke(), i = ve(), a = ds(), u = (c = r.protectedRoutes) == null ? void 0 : c.some(
|
|
1203
|
-
(p) => ze(p, i.pathname)
|
|
1204
|
-
);
|
|
1205
|
-
let o = Object.entries(e).find(([, p]) => _e(p, (y) => {
|
|
1206
|
-
if ((y.type === "doc" ? et(y.id) : y.type === "category" && y.link ? et(y.link.id) : void 0) === i.pathname)
|
|
1207
|
-
return y;
|
|
1208
|
-
}));
|
|
1209
|
-
const l = s.find((p) => p.id === (o == null ? void 0 : o[0])) ?? s.find((p) => ze(p.id, i.pathname));
|
|
1210
|
-
l && !o && l.id in e && (o = ["", e[l.id]]);
|
|
1211
|
-
const { data: f } = Wt({
|
|
1212
|
-
queryFn: () => t(i.pathname),
|
|
1213
|
-
// We just want to suspend here and don't store in SSR dehydrated state
|
|
1214
|
-
queryKey: ["plugin-sidebar", ss, i.pathname]
|
|
1215
|
-
});
|
|
1216
|
-
return {
|
|
1217
|
-
sidebar: a.isAuthEnabled && !a.isAuthenticated && u ? [] : [...o ? o[1] : [], ...f],
|
|
1218
|
-
topNavItem: l
|
|
1219
|
-
};
|
|
1220
|
-
}, tt = (t) => {
|
|
1221
|
-
let e;
|
|
1222
|
-
const s = /* @__PURE__ */ new Set(), r = (f, m) => {
|
|
1223
|
-
const c = typeof f == "function" ? f(e) : f;
|
|
1224
|
-
if (!Object.is(c, e)) {
|
|
1225
|
-
const p = e;
|
|
1226
|
-
e = m ?? (typeof c != "object" || c === null) ? c : Object.assign({}, e, c), s.forEach((y) => y(e, p));
|
|
1227
|
-
}
|
|
1228
|
-
}, i = () => e, o = { setState: r, getState: i, getInitialState: () => l, subscribe: (f) => (s.add(f), () => s.delete(f)) }, l = e = t(r, i, o);
|
|
1229
|
-
return o;
|
|
1230
|
-
}, ns = (t) => t ? tt(t) : tt, is = (t) => t;
|
|
1231
|
-
function as(t, e = is) {
|
|
1232
|
-
const s = Ge.useSyncExternalStore(
|
|
1233
|
-
t.subscribe,
|
|
1234
|
-
() => e(t.getState()),
|
|
1235
|
-
() => e(t.getInitialState())
|
|
1236
|
-
);
|
|
1237
|
-
return Ge.useDebugValue(s), s;
|
|
1238
|
-
}
|
|
1239
|
-
const os = (t) => {
|
|
1240
|
-
const e = ns(t), s = (r) => as(e, r);
|
|
1241
|
-
return Object.assign(s, e), s;
|
|
1242
|
-
}, us = (t) => os;
|
|
1243
|
-
function wt(t, e) {
|
|
1244
|
-
let s;
|
|
1245
|
-
try {
|
|
1246
|
-
s = t();
|
|
1247
|
-
} catch {
|
|
1248
|
-
return;
|
|
1249
|
-
}
|
|
1250
|
-
return {
|
|
1251
|
-
getItem: (i) => {
|
|
1252
|
-
var a;
|
|
1253
|
-
const u = (l) => l === null ? null : JSON.parse(l, void 0), o = (a = s.getItem(i)) != null ? a : null;
|
|
1254
|
-
return o instanceof Promise ? o.then(u) : u(o);
|
|
1255
|
-
},
|
|
1256
|
-
setItem: (i, a) => s.setItem(
|
|
1257
|
-
i,
|
|
1258
|
-
JSON.stringify(a, void 0)
|
|
1259
|
-
),
|
|
1260
|
-
removeItem: (i) => s.removeItem(i)
|
|
1261
|
-
};
|
|
1262
|
-
}
|
|
1263
|
-
const Qe = (t) => (e) => {
|
|
1264
|
-
try {
|
|
1265
|
-
const s = t(e);
|
|
1266
|
-
return s instanceof Promise ? s : {
|
|
1267
|
-
then(r) {
|
|
1268
|
-
return Qe(r)(s);
|
|
1269
|
-
},
|
|
1270
|
-
catch(r) {
|
|
1271
|
-
return this;
|
|
1272
|
-
}
|
|
1273
|
-
};
|
|
1274
|
-
} catch (s) {
|
|
1275
|
-
return {
|
|
1276
|
-
then(r) {
|
|
1277
|
-
return this;
|
|
1278
|
-
},
|
|
1279
|
-
catch(r) {
|
|
1280
|
-
return Qe(r)(s);
|
|
1281
|
-
}
|
|
1282
|
-
};
|
|
1283
|
-
}
|
|
1284
|
-
}, cs = (t, e) => (s, r, i) => {
|
|
1285
|
-
let a = {
|
|
1286
|
-
storage: wt(() => localStorage),
|
|
1287
|
-
partialize: (h) => h,
|
|
1288
|
-
version: 0,
|
|
1289
|
-
merge: (h, v) => ({
|
|
1290
|
-
...v,
|
|
1291
|
-
...h
|
|
1292
|
-
}),
|
|
1293
|
-
...e
|
|
1294
|
-
}, u = !1;
|
|
1295
|
-
const o = /* @__PURE__ */ new Set(), l = /* @__PURE__ */ new Set();
|
|
1296
|
-
let f = a.storage;
|
|
1297
|
-
if (!f)
|
|
1298
|
-
return t(
|
|
1299
|
-
(...h) => {
|
|
1300
|
-
console.warn(
|
|
1301
|
-
`[zustand persist middleware] Unable to update item '${a.name}', the given storage is currently unavailable.`
|
|
1302
|
-
), s(...h);
|
|
1303
|
-
},
|
|
1304
|
-
r,
|
|
1305
|
-
i
|
|
1306
|
-
);
|
|
1307
|
-
const m = () => {
|
|
1308
|
-
const h = a.partialize({ ...r() });
|
|
1309
|
-
return f.setItem(a.name, {
|
|
1310
|
-
state: h,
|
|
1311
|
-
version: a.version
|
|
1312
|
-
});
|
|
1313
|
-
}, c = i.setState;
|
|
1314
|
-
i.setState = (h, v) => {
|
|
1315
|
-
c(h, v), m();
|
|
1316
|
-
};
|
|
1317
|
-
const p = t(
|
|
1318
|
-
(...h) => {
|
|
1319
|
-
s(...h), m();
|
|
1320
|
-
},
|
|
1321
|
-
r,
|
|
1322
|
-
i
|
|
1323
|
-
);
|
|
1324
|
-
i.getInitialState = () => p;
|
|
1325
|
-
let y;
|
|
1326
|
-
const C = () => {
|
|
1327
|
-
var h, v;
|
|
1328
|
-
if (!f) return;
|
|
1329
|
-
u = !1, o.forEach((R) => {
|
|
1330
|
-
var O;
|
|
1331
|
-
return R((O = r()) != null ? O : p);
|
|
1332
|
-
});
|
|
1333
|
-
const E = ((v = a.onRehydrateStorage) == null ? void 0 : v.call(a, (h = r()) != null ? h : p)) || void 0;
|
|
1334
|
-
return Qe(f.getItem.bind(f))(a.name).then((R) => {
|
|
1335
|
-
if (R)
|
|
1336
|
-
if (typeof R.version == "number" && R.version !== a.version) {
|
|
1337
|
-
if (a.migrate) {
|
|
1338
|
-
const O = a.migrate(
|
|
1339
|
-
R.state,
|
|
1340
|
-
R.version
|
|
1341
|
-
);
|
|
1342
|
-
return O instanceof Promise ? O.then((q) => [!0, q]) : [!0, O];
|
|
1343
|
-
}
|
|
1344
|
-
console.error(
|
|
1345
|
-
"State loaded from storage couldn't be migrated since no migrate function was provided"
|
|
1346
|
-
);
|
|
1347
|
-
} else
|
|
1348
|
-
return [!1, R.state];
|
|
1349
|
-
return [!1, void 0];
|
|
1350
|
-
}).then((R) => {
|
|
1351
|
-
var O;
|
|
1352
|
-
const [q, Z] = R;
|
|
1353
|
-
if (y = a.merge(
|
|
1354
|
-
Z,
|
|
1355
|
-
(O = r()) != null ? O : p
|
|
1356
|
-
), s(y, !0), q)
|
|
1357
|
-
return m();
|
|
1358
|
-
}).then(() => {
|
|
1359
|
-
E == null || E(y, void 0), y = r(), u = !0, l.forEach((R) => R(y));
|
|
1360
|
-
}).catch((R) => {
|
|
1361
|
-
E == null || E(void 0, R);
|
|
1362
|
-
});
|
|
1363
|
-
};
|
|
1364
|
-
return i.persist = {
|
|
1365
|
-
setOptions: (h) => {
|
|
1366
|
-
a = {
|
|
1367
|
-
...a,
|
|
1368
|
-
...h
|
|
1369
|
-
}, h.storage && (f = h.storage);
|
|
1370
|
-
},
|
|
1371
|
-
clearStorage: () => {
|
|
1372
|
-
f == null || f.removeItem(a.name);
|
|
1373
|
-
},
|
|
1374
|
-
getOptions: () => a,
|
|
1375
|
-
rehydrate: () => C(),
|
|
1376
|
-
hasHydrated: () => u,
|
|
1377
|
-
onHydrate: (h) => (o.add(h), () => {
|
|
1378
|
-
o.delete(h);
|
|
1379
|
-
}),
|
|
1380
|
-
onFinishHydration: (h) => (l.add(h), () => {
|
|
1381
|
-
l.delete(h);
|
|
1382
|
-
})
|
|
1383
|
-
}, a.skipHydration || C(), y || p;
|
|
1384
|
-
}, hs = cs, ls = (t) => {
|
|
1385
|
-
const e = (s) => {
|
|
1386
|
-
s.key === t.persist.getOptions().name && s.newValue && t.persist.rehydrate();
|
|
1387
|
-
};
|
|
1388
|
-
return window.addEventListener("storage", e), () => {
|
|
1389
|
-
window.removeEventListener("storage", e);
|
|
1390
|
-
};
|
|
1391
|
-
}, Rt = us()(
|
|
1392
|
-
hs(
|
|
1393
|
-
(t) => ({
|
|
1394
|
-
isAuthenticated: !1,
|
|
1395
|
-
isPending: !0,
|
|
1396
|
-
profile: null,
|
|
1397
|
-
providerData: null
|
|
1398
|
-
}),
|
|
1399
|
-
{
|
|
1400
|
-
merge: (t, e) => ({
|
|
1401
|
-
...e,
|
|
1402
|
-
isPending: !1,
|
|
1403
|
-
...typeof t == "object" ? t : {}
|
|
1404
|
-
}),
|
|
1405
|
-
name: "auth-state",
|
|
1406
|
-
storage: wt(() => localStorage)
|
|
1407
|
-
}
|
|
1408
|
-
)
|
|
1409
|
-
);
|
|
1410
|
-
typeof window < "u" && ls(Rt);
|
|
1411
|
-
const ds = () => {
|
|
1412
|
-
const { authentication: t } = Ke(), e = Rt(), s = typeof t < "u";
|
|
1413
|
-
return {
|
|
1414
|
-
isAuthEnabled: s,
|
|
1415
|
-
...e,
|
|
1416
|
-
login: async () => {
|
|
1417
|
-
if (!s)
|
|
1418
|
-
throw new Error("Authentication is not enabled.");
|
|
1419
|
-
await t.signIn({
|
|
1420
|
-
redirectTo: window.location.href
|
|
1421
|
-
});
|
|
1422
|
-
},
|
|
1423
|
-
logout: async () => {
|
|
1424
|
-
if (!s)
|
|
1425
|
-
throw new Error("Authentication is not enabled.");
|
|
1426
|
-
await t.signOut(), window.location.href = "/";
|
|
1427
|
-
},
|
|
1428
|
-
signup: async () => {
|
|
1429
|
-
if (!s)
|
|
1430
|
-
throw new Error("Authentication is not enabled.");
|
|
1431
|
-
await t.signUp({
|
|
1432
|
-
redirectTo: window.location.href
|
|
1433
|
-
});
|
|
1434
|
-
}
|
|
1435
|
-
};
|
|
1436
|
-
};
|
|
1437
|
-
export {
|
|
1438
|
-
Rs as A,
|
|
1439
|
-
ws as B,
|
|
1440
|
-
ut as C,
|
|
1441
|
-
ct as D,
|
|
1442
|
-
ye as E,
|
|
1443
|
-
bs as F,
|
|
1444
|
-
Le as G,
|
|
1445
|
-
pe as H,
|
|
1446
|
-
Cs as I,
|
|
1447
|
-
St as J,
|
|
1448
|
-
_e as K,
|
|
1449
|
-
Os as L,
|
|
1450
|
-
gt as M,
|
|
1451
|
-
Fs as N,
|
|
1452
|
-
Es as Q,
|
|
1453
|
-
kt as R,
|
|
1454
|
-
qe as S,
|
|
1455
|
-
rs as Z,
|
|
1456
|
-
Is as a,
|
|
1457
|
-
Ps as b,
|
|
1458
|
-
At as c,
|
|
1459
|
-
Wt as d,
|
|
1460
|
-
Ke as e,
|
|
1461
|
-
et as f,
|
|
1462
|
-
vt as g,
|
|
1463
|
-
Re as h,
|
|
1464
|
-
Ye as i,
|
|
1465
|
-
ce as j,
|
|
1466
|
-
Ht as k,
|
|
1467
|
-
ds as l,
|
|
1468
|
-
Zt as m,
|
|
1469
|
-
Me as n,
|
|
1470
|
-
Ss as o,
|
|
1471
|
-
us as p,
|
|
1472
|
-
hs as q,
|
|
1473
|
-
wt as r,
|
|
1474
|
-
Ce as s,
|
|
1475
|
-
Ts as t,
|
|
1476
|
-
Rt as u,
|
|
1477
|
-
It as v,
|
|
1478
|
-
ms as w,
|
|
1479
|
-
gs as x,
|
|
1480
|
-
Se as y,
|
|
1481
|
-
Pt as z
|
|
1482
|
-
};
|
|
1483
|
-
//# sourceMappingURL=hook-CqpVYDqN.js.map
|