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/Drawer-kDAfOq_2.js
DELETED
|
@@ -1,1133 +0,0 @@
|
|
|
1
|
-
import { j as X } from "./jsx-runtime-CYK1ROHF.js";
|
|
2
|
-
import * as mt from "react";
|
|
3
|
-
import r, { useMemo as ye, useLayoutEffect as be, useEffect as Se } from "react";
|
|
4
|
-
import * as Z from "@radix-ui/react-dialog";
|
|
5
|
-
import { c as ot } from "./cn-qaFjX9_3.js";
|
|
6
|
-
function De(t) {
|
|
7
|
-
if (typeof document > "u") return;
|
|
8
|
-
let n = document.head || document.getElementsByTagName("head")[0], e = document.createElement("style");
|
|
9
|
-
e.type = "text/css", n.appendChild(e), e.styleSheet ? e.styleSheet.cssText = t : e.appendChild(document.createTextNode(t));
|
|
10
|
-
}
|
|
11
|
-
const qt = r.createContext({
|
|
12
|
-
drawerRef: {
|
|
13
|
-
current: null
|
|
14
|
-
},
|
|
15
|
-
overlayRef: {
|
|
16
|
-
current: null
|
|
17
|
-
},
|
|
18
|
-
onPress: () => {
|
|
19
|
-
},
|
|
20
|
-
onRelease: () => {
|
|
21
|
-
},
|
|
22
|
-
onDrag: () => {
|
|
23
|
-
},
|
|
24
|
-
onNestedDrag: () => {
|
|
25
|
-
},
|
|
26
|
-
onNestedOpenChange: () => {
|
|
27
|
-
},
|
|
28
|
-
onNestedRelease: () => {
|
|
29
|
-
},
|
|
30
|
-
openProp: void 0,
|
|
31
|
-
dismissible: !1,
|
|
32
|
-
isOpen: !1,
|
|
33
|
-
isDragging: !1,
|
|
34
|
-
keyboardIsOpen: {
|
|
35
|
-
current: !1
|
|
36
|
-
},
|
|
37
|
-
snapPointsOffset: null,
|
|
38
|
-
snapPoints: null,
|
|
39
|
-
handleOnly: !1,
|
|
40
|
-
modal: !1,
|
|
41
|
-
shouldFade: !1,
|
|
42
|
-
activeSnapPoint: null,
|
|
43
|
-
onOpenChange: () => {
|
|
44
|
-
},
|
|
45
|
-
setActiveSnapPoint: () => {
|
|
46
|
-
},
|
|
47
|
-
closeDrawer: () => {
|
|
48
|
-
},
|
|
49
|
-
direction: "bottom",
|
|
50
|
-
shouldAnimate: {
|
|
51
|
-
current: !0
|
|
52
|
-
},
|
|
53
|
-
shouldScaleBackground: !1,
|
|
54
|
-
setBackgroundColorOnScale: !0,
|
|
55
|
-
noBodyStyles: !1,
|
|
56
|
-
container: null,
|
|
57
|
-
autoFocus: !1
|
|
58
|
-
}), pt = () => {
|
|
59
|
-
const t = r.useContext(qt);
|
|
60
|
-
if (!t)
|
|
61
|
-
throw new Error("useDrawerContext must be used within a Drawer.Root");
|
|
62
|
-
return t;
|
|
63
|
-
};
|
|
64
|
-
De(`[data-vaul-drawer]{touch-action:none;will-change:transform;transition:transform .5s cubic-bezier(.32, .72, 0, 1);animation-duration:.5s;animation-timing-function:cubic-bezier(0.32,0.72,0,1)}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=bottom][data-state=open]{animation-name:slideFromBottom}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=bottom][data-state=closed]{animation-name:slideToBottom}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=top][data-state=open]{animation-name:slideFromTop}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=top][data-state=closed]{animation-name:slideToTop}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=left][data-state=open]{animation-name:slideFromLeft}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=left][data-state=closed]{animation-name:slideToLeft}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=right][data-state=open]{animation-name:slideFromRight}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=right][data-state=closed]{animation-name:slideToRight}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=bottom]{transform:translate3d(0,var(--initial-transform,100%),0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=top]{transform:translate3d(0,calc(var(--initial-transform,100%) * -1),0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=left]{transform:translate3d(calc(var(--initial-transform,100%) * -1),0,0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=right]{transform:translate3d(var(--initial-transform,100%),0,0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=top]{transform:translate3d(0,var(--snap-point-height,0),0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=bottom]{transform:translate3d(0,var(--snap-point-height,0),0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=left]{transform:translate3d(var(--snap-point-height,0),0,0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=right]{transform:translate3d(var(--snap-point-height,0),0,0)}[data-vaul-overlay][data-vaul-snap-points=false]{animation-duration:.5s;animation-timing-function:cubic-bezier(0.32,0.72,0,1)}[data-vaul-overlay][data-vaul-snap-points=false][data-state=open]{animation-name:fadeIn}[data-vaul-overlay][data-state=closed]{animation-name:fadeOut}[data-vaul-animate=false]{animation:none!important}[data-vaul-overlay][data-vaul-snap-points=true]{opacity:0;transition:opacity .5s cubic-bezier(.32, .72, 0, 1)}[data-vaul-overlay][data-vaul-snap-points=true]{opacity:1}[data-vaul-drawer]:not([data-vaul-custom-container=true])::after{content:'';position:absolute;background:inherit;background-color:inherit}[data-vaul-drawer][data-vaul-drawer-direction=top]::after{top:initial;bottom:100%;left:0;right:0;height:200%}[data-vaul-drawer][data-vaul-drawer-direction=bottom]::after{top:100%;bottom:initial;left:0;right:0;height:200%}[data-vaul-drawer][data-vaul-drawer-direction=left]::after{left:initial;right:100%;top:0;bottom:0;width:200%}[data-vaul-drawer][data-vaul-drawer-direction=right]::after{left:100%;right:initial;top:0;bottom:0;width:200%}[data-vaul-overlay][data-vaul-snap-points=true]:not([data-vaul-snap-points-overlay=true]):not(
|
|
65
|
-
[data-state=closed]
|
|
66
|
-
){opacity:0}[data-vaul-overlay][data-vaul-snap-points-overlay=true]{opacity:1}[data-vaul-handle]{display:block;position:relative;opacity:.7;background:#e2e2e4;margin-left:auto;margin-right:auto;height:5px;width:32px;border-radius:1rem;touch-action:pan-y}[data-vaul-handle]:active,[data-vaul-handle]:hover{opacity:1}[data-vaul-handle-hitarea]{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:max(100%,2.75rem);height:max(100%,2.75rem);touch-action:inherit}@media (hover:hover) and (pointer:fine){[data-vaul-drawer]{user-select:none}}@media (pointer:fine){[data-vaul-handle-hitarea]:{width:100%;height:100%}}@keyframes fadeIn{from{opacity:0}to{opacity:1}}@keyframes fadeOut{to{opacity:0}}@keyframes slideFromBottom{from{transform:translate3d(0,var(--initial-transform,100%),0)}to{transform:translate3d(0,0,0)}}@keyframes slideToBottom{to{transform:translate3d(0,var(--initial-transform,100%),0)}}@keyframes slideFromTop{from{transform:translate3d(0,calc(var(--initial-transform,100%) * -1),0)}to{transform:translate3d(0,0,0)}}@keyframes slideToTop{to{transform:translate3d(0,calc(var(--initial-transform,100%) * -1),0)}}@keyframes slideFromLeft{from{transform:translate3d(calc(var(--initial-transform,100%) * -1),0,0)}to{transform:translate3d(0,0,0)}}@keyframes slideToLeft{to{transform:translate3d(calc(var(--initial-transform,100%) * -1),0,0)}}@keyframes slideFromRight{from{transform:translate3d(var(--initial-transform,100%),0,0)}to{transform:translate3d(0,0,0)}}@keyframes slideToRight{to{transform:translate3d(var(--initial-transform,100%),0,0)}}`);
|
|
67
|
-
function Te() {
|
|
68
|
-
const t = navigator.userAgent;
|
|
69
|
-
return typeof window < "u" && (/Firefox/.test(t) && /Mobile/.test(t) || // Android Firefox
|
|
70
|
-
/FxiOS/.test(t));
|
|
71
|
-
}
|
|
72
|
-
function Re() {
|
|
73
|
-
return Nt(/^Mac/);
|
|
74
|
-
}
|
|
75
|
-
function Ee() {
|
|
76
|
-
return Nt(/^iPhone/);
|
|
77
|
-
}
|
|
78
|
-
function Wt() {
|
|
79
|
-
return /^((?!chrome|android).)*safari/i.test(navigator.userAgent);
|
|
80
|
-
}
|
|
81
|
-
function xe() {
|
|
82
|
-
return Nt(/^iPad/) || // iPadOS 13 lies and says it's a Mac, but we can distinguish by detecting touch support.
|
|
83
|
-
Re() && navigator.maxTouchPoints > 1;
|
|
84
|
-
}
|
|
85
|
-
function Xt() {
|
|
86
|
-
return Ee() || xe();
|
|
87
|
-
}
|
|
88
|
-
function Nt(t) {
|
|
89
|
-
return typeof window < "u" && window.navigator != null ? t.test(window.navigator.platform) : void 0;
|
|
90
|
-
}
|
|
91
|
-
const Oe = 24, Ce = typeof window < "u" ? be : Se;
|
|
92
|
-
function zt(...t) {
|
|
93
|
-
return (...n) => {
|
|
94
|
-
for (let e of t)
|
|
95
|
-
typeof e == "function" && e(...n);
|
|
96
|
-
};
|
|
97
|
-
}
|
|
98
|
-
const xt = typeof document < "u" && window.visualViewport;
|
|
99
|
-
function Vt(t) {
|
|
100
|
-
let n = window.getComputedStyle(t);
|
|
101
|
-
return /(auto|scroll)/.test(n.overflow + n.overflowX + n.overflowY);
|
|
102
|
-
}
|
|
103
|
-
function Kt(t) {
|
|
104
|
-
for (Vt(t) && (t = t.parentElement); t && !Vt(t); )
|
|
105
|
-
t = t.parentElement;
|
|
106
|
-
return t || document.scrollingElement || document.documentElement;
|
|
107
|
-
}
|
|
108
|
-
const $e = /* @__PURE__ */ new Set([
|
|
109
|
-
"checkbox",
|
|
110
|
-
"radio",
|
|
111
|
-
"range",
|
|
112
|
-
"color",
|
|
113
|
-
"file",
|
|
114
|
-
"image",
|
|
115
|
-
"button",
|
|
116
|
-
"submit",
|
|
117
|
-
"reset"
|
|
118
|
-
]);
|
|
119
|
-
let vt = 0, Ot;
|
|
120
|
-
function Ae(t = {}) {
|
|
121
|
-
let { isDisabled: n } = t;
|
|
122
|
-
Ce(() => {
|
|
123
|
-
if (!n)
|
|
124
|
-
return vt++, vt === 1 && Xt() && (Ot = Me()), () => {
|
|
125
|
-
vt--, vt === 0 && (Ot == null || Ot());
|
|
126
|
-
};
|
|
127
|
-
}, [
|
|
128
|
-
n
|
|
129
|
-
]);
|
|
130
|
-
}
|
|
131
|
-
function Me() {
|
|
132
|
-
let t, n = 0, e = (f) => {
|
|
133
|
-
t = Kt(f.target), !(t === document.documentElement && t === document.body) && (n = f.changedTouches[0].pageY);
|
|
134
|
-
}, a = (f) => {
|
|
135
|
-
if (!t || t === document.documentElement || t === document.body) {
|
|
136
|
-
f.preventDefault();
|
|
137
|
-
return;
|
|
138
|
-
}
|
|
139
|
-
let m = f.changedTouches[0].pageY, B = t.scrollTop, k = t.scrollHeight - t.clientHeight;
|
|
140
|
-
k !== 0 && ((B <= 0 && m > n || B >= k && m < n) && f.preventDefault(), n = m);
|
|
141
|
-
}, i = (f) => {
|
|
142
|
-
let m = f.target;
|
|
143
|
-
At(m) && m !== document.activeElement && (f.preventDefault(), m.style.transform = "translateY(-2000px)", m.focus(), requestAnimationFrame(() => {
|
|
144
|
-
m.style.transform = "";
|
|
145
|
-
}));
|
|
146
|
-
}, o = (f) => {
|
|
147
|
-
let m = f.target;
|
|
148
|
-
At(m) && (m.style.transform = "translateY(-2000px)", requestAnimationFrame(() => {
|
|
149
|
-
m.style.transform = "", xt && (xt.height < window.innerHeight ? requestAnimationFrame(() => {
|
|
150
|
-
Yt(m);
|
|
151
|
-
}) : xt.addEventListener("resize", () => Yt(m), {
|
|
152
|
-
once: !0
|
|
153
|
-
}));
|
|
154
|
-
}));
|
|
155
|
-
}, v = () => {
|
|
156
|
-
window.scrollTo(0, 0);
|
|
157
|
-
}, w = window.pageXOffset, D = window.pageYOffset, R = zt(Ne(document.documentElement, "paddingRight", `${window.innerWidth - document.documentElement.clientWidth}px`));
|
|
158
|
-
window.scrollTo(0, 0);
|
|
159
|
-
let h = zt(dt(document, "touchstart", e, {
|
|
160
|
-
passive: !1,
|
|
161
|
-
capture: !0
|
|
162
|
-
}), dt(document, "touchmove", a, {
|
|
163
|
-
passive: !1,
|
|
164
|
-
capture: !0
|
|
165
|
-
}), dt(document, "touchend", i, {
|
|
166
|
-
passive: !1,
|
|
167
|
-
capture: !0
|
|
168
|
-
}), dt(document, "focus", o, !0), dt(window, "scroll", v));
|
|
169
|
-
return () => {
|
|
170
|
-
R(), h(), window.scrollTo(w, D);
|
|
171
|
-
};
|
|
172
|
-
}
|
|
173
|
-
function Ne(t, n, e) {
|
|
174
|
-
let a = t.style[n];
|
|
175
|
-
return t.style[n] = e, () => {
|
|
176
|
-
t.style[n] = a;
|
|
177
|
-
};
|
|
178
|
-
}
|
|
179
|
-
function dt(t, n, e, a) {
|
|
180
|
-
return t.addEventListener(n, e, a), () => {
|
|
181
|
-
t.removeEventListener(n, e, a);
|
|
182
|
-
};
|
|
183
|
-
}
|
|
184
|
-
function Yt(t) {
|
|
185
|
-
let n = document.scrollingElement || document.documentElement;
|
|
186
|
-
for (; t && t !== n; ) {
|
|
187
|
-
let e = Kt(t);
|
|
188
|
-
if (e !== document.documentElement && e !== document.body && e !== t) {
|
|
189
|
-
let a = e.getBoundingClientRect().top, i = t.getBoundingClientRect().top, o = t.getBoundingClientRect().bottom;
|
|
190
|
-
const v = e.getBoundingClientRect().bottom + Oe;
|
|
191
|
-
o > v && (e.scrollTop += i - a);
|
|
192
|
-
}
|
|
193
|
-
t = e.parentElement;
|
|
194
|
-
}
|
|
195
|
-
}
|
|
196
|
-
function At(t) {
|
|
197
|
-
return t instanceof HTMLInputElement && !$e.has(t.type) || t instanceof HTMLTextAreaElement || t instanceof HTMLElement && t.isContentEditable;
|
|
198
|
-
}
|
|
199
|
-
function Pe(t, n) {
|
|
200
|
-
typeof t == "function" ? t(n) : t != null && (t.current = n);
|
|
201
|
-
}
|
|
202
|
-
function Ie(...t) {
|
|
203
|
-
return (n) => t.forEach((e) => Pe(e, n));
|
|
204
|
-
}
|
|
205
|
-
function Gt(...t) {
|
|
206
|
-
return mt.useCallback(Ie(...t), t);
|
|
207
|
-
}
|
|
208
|
-
const Jt = /* @__PURE__ */ new WeakMap();
|
|
209
|
-
function $(t, n, e = !1) {
|
|
210
|
-
if (!t || !(t instanceof HTMLElement)) return;
|
|
211
|
-
let a = {};
|
|
212
|
-
Object.entries(n).forEach(([i, o]) => {
|
|
213
|
-
if (i.startsWith("--")) {
|
|
214
|
-
t.style.setProperty(i, o);
|
|
215
|
-
return;
|
|
216
|
-
}
|
|
217
|
-
a[i] = t.style[i], t.style[i] = o;
|
|
218
|
-
}), !e && Jt.set(t, a);
|
|
219
|
-
}
|
|
220
|
-
function _e(t, n) {
|
|
221
|
-
if (!t || !(t instanceof HTMLElement)) return;
|
|
222
|
-
let e = Jt.get(t);
|
|
223
|
-
e && (t.style[n] = e[n]);
|
|
224
|
-
}
|
|
225
|
-
const C = (t) => {
|
|
226
|
-
switch (t) {
|
|
227
|
-
case "top":
|
|
228
|
-
case "bottom":
|
|
229
|
-
return !0;
|
|
230
|
-
case "left":
|
|
231
|
-
case "right":
|
|
232
|
-
return !1;
|
|
233
|
-
default:
|
|
234
|
-
return t;
|
|
235
|
-
}
|
|
236
|
-
};
|
|
237
|
-
function yt(t, n) {
|
|
238
|
-
if (!t)
|
|
239
|
-
return null;
|
|
240
|
-
const e = window.getComputedStyle(t), a = (
|
|
241
|
-
// @ts-ignore
|
|
242
|
-
e.transform || e.webkitTransform || e.mozTransform
|
|
243
|
-
);
|
|
244
|
-
let i = a.match(/^matrix3d\((.+)\)$/);
|
|
245
|
-
return i ? parseFloat(i[1].split(", ")[C(n) ? 13 : 12]) : (i = a.match(/^matrix\((.+)\)$/), i ? parseFloat(i[1].split(", ")[C(n) ? 5 : 4]) : null);
|
|
246
|
-
}
|
|
247
|
-
function He(t) {
|
|
248
|
-
return 8 * (Math.log(t + 1) - 2);
|
|
249
|
-
}
|
|
250
|
-
function Ct(t, n) {
|
|
251
|
-
if (!t) return () => {
|
|
252
|
-
};
|
|
253
|
-
const e = t.style.cssText;
|
|
254
|
-
return Object.assign(t.style, n), () => {
|
|
255
|
-
t.style.cssText = e;
|
|
256
|
-
};
|
|
257
|
-
}
|
|
258
|
-
function ke(...t) {
|
|
259
|
-
return (...n) => {
|
|
260
|
-
for (const e of t)
|
|
261
|
-
typeof e == "function" && e(...n);
|
|
262
|
-
};
|
|
263
|
-
}
|
|
264
|
-
const x = {
|
|
265
|
-
DURATION: 0.5,
|
|
266
|
-
EASE: [
|
|
267
|
-
0.32,
|
|
268
|
-
0.72,
|
|
269
|
-
0,
|
|
270
|
-
1
|
|
271
|
-
]
|
|
272
|
-
}, Qt = 0.4, Le = 0.25, Be = 100, Zt = 8, bt = 16, Mt = 26, $t = "vaul-dragging";
|
|
273
|
-
function te(t) {
|
|
274
|
-
const n = r.useRef(t);
|
|
275
|
-
return r.useEffect(() => {
|
|
276
|
-
n.current = t;
|
|
277
|
-
}), r.useMemo(() => (...e) => n.current == null ? void 0 : n.current.call(n, ...e), []);
|
|
278
|
-
}
|
|
279
|
-
function Fe({ defaultProp: t, onChange: n }) {
|
|
280
|
-
const e = r.useState(t), [a] = e, i = r.useRef(a), o = te(n);
|
|
281
|
-
return r.useEffect(() => {
|
|
282
|
-
i.current !== a && (o(a), i.current = a);
|
|
283
|
-
}, [
|
|
284
|
-
a,
|
|
285
|
-
i,
|
|
286
|
-
o
|
|
287
|
-
]), e;
|
|
288
|
-
}
|
|
289
|
-
function ee({ prop: t, defaultProp: n, onChange: e = () => {
|
|
290
|
-
} }) {
|
|
291
|
-
const [a, i] = Fe({
|
|
292
|
-
defaultProp: n,
|
|
293
|
-
onChange: e
|
|
294
|
-
}), o = t !== void 0, v = o ? t : a, w = te(e), D = r.useCallback((R) => {
|
|
295
|
-
if (o) {
|
|
296
|
-
const f = typeof R == "function" ? R(t) : R;
|
|
297
|
-
f !== t && w(f);
|
|
298
|
-
} else
|
|
299
|
-
i(R);
|
|
300
|
-
}, [
|
|
301
|
-
o,
|
|
302
|
-
t,
|
|
303
|
-
i,
|
|
304
|
-
w
|
|
305
|
-
]);
|
|
306
|
-
return [
|
|
307
|
-
v,
|
|
308
|
-
D
|
|
309
|
-
];
|
|
310
|
-
}
|
|
311
|
-
function Ue({ activeSnapPointProp: t, setActiveSnapPointProp: n, snapPoints: e, drawerRef: a, overlayRef: i, fadeFromIndex: o, onSnapPointChange: v, direction: w = "bottom", container: D, snapToSequentialPoint: R }) {
|
|
312
|
-
const [h, f] = ee({
|
|
313
|
-
prop: t,
|
|
314
|
-
defaultProp: e == null ? void 0 : e[0],
|
|
315
|
-
onChange: n
|
|
316
|
-
}), [m, B] = r.useState(typeof window < "u" ? {
|
|
317
|
-
innerWidth: window.innerWidth,
|
|
318
|
-
innerHeight: window.innerHeight
|
|
319
|
-
} : void 0);
|
|
320
|
-
r.useEffect(() => {
|
|
321
|
-
function u() {
|
|
322
|
-
B({
|
|
323
|
-
innerWidth: window.innerWidth,
|
|
324
|
-
innerHeight: window.innerHeight
|
|
325
|
-
});
|
|
326
|
-
}
|
|
327
|
-
return window.addEventListener("resize", u), () => window.removeEventListener("resize", u);
|
|
328
|
-
}, []);
|
|
329
|
-
const k = r.useMemo(() => h === (e == null ? void 0 : e[e.length - 1]) || null, [
|
|
330
|
-
e,
|
|
331
|
-
h
|
|
332
|
-
]), E = r.useMemo(() => {
|
|
333
|
-
var u;
|
|
334
|
-
return (u = e == null ? void 0 : e.findIndex((b) => b === h)) != null ? u : null;
|
|
335
|
-
}, [
|
|
336
|
-
e,
|
|
337
|
-
h
|
|
338
|
-
]), F = e && e.length > 0 && (o || o === 0) && !Number.isNaN(o) && e[o] === h || !e, p = r.useMemo(() => {
|
|
339
|
-
const u = D ? {
|
|
340
|
-
width: D.getBoundingClientRect().width,
|
|
341
|
-
height: D.getBoundingClientRect().height
|
|
342
|
-
} : typeof window < "u" ? {
|
|
343
|
-
width: window.innerWidth,
|
|
344
|
-
height: window.innerHeight
|
|
345
|
-
} : {
|
|
346
|
-
width: 0,
|
|
347
|
-
height: 0
|
|
348
|
-
};
|
|
349
|
-
var b;
|
|
350
|
-
return (b = e == null ? void 0 : e.map((y) => {
|
|
351
|
-
const I = typeof y == "string";
|
|
352
|
-
let N = 0;
|
|
353
|
-
if (I && (N = parseInt(y, 10)), C(w)) {
|
|
354
|
-
const l = I ? N : m ? y * u.height : 0;
|
|
355
|
-
return m ? w === "bottom" ? u.height - l : -u.height + l : l;
|
|
356
|
-
}
|
|
357
|
-
const j = I ? N : m ? y * u.width : 0;
|
|
358
|
-
return m ? w === "right" ? u.width - j : -u.width + j : j;
|
|
359
|
-
})) != null ? b : [];
|
|
360
|
-
}, [
|
|
361
|
-
e,
|
|
362
|
-
m,
|
|
363
|
-
D
|
|
364
|
-
]), M = r.useMemo(() => E !== null ? p == null ? void 0 : p[E] : null, [
|
|
365
|
-
p,
|
|
366
|
-
E
|
|
367
|
-
]), A = r.useCallback((u) => {
|
|
368
|
-
var b;
|
|
369
|
-
const y = (b = p == null ? void 0 : p.findIndex((I) => I === u)) != null ? b : null;
|
|
370
|
-
v(y), $(a.current, {
|
|
371
|
-
transition: `transform ${x.DURATION}s cubic-bezier(${x.EASE.join(",")})`,
|
|
372
|
-
transform: C(w) ? `translate3d(0, ${u}px, 0)` : `translate3d(${u}px, 0, 0)`
|
|
373
|
-
}), p && y !== p.length - 1 && o !== void 0 && y !== o && y < o ? $(i.current, {
|
|
374
|
-
transition: `opacity ${x.DURATION}s cubic-bezier(${x.EASE.join(",")})`,
|
|
375
|
-
opacity: "0"
|
|
376
|
-
}) : $(i.current, {
|
|
377
|
-
transition: `opacity ${x.DURATION}s cubic-bezier(${x.EASE.join(",")})`,
|
|
378
|
-
opacity: "1"
|
|
379
|
-
}), f(e == null ? void 0 : e[Math.max(y, 0)]);
|
|
380
|
-
}, [
|
|
381
|
-
a.current,
|
|
382
|
-
e,
|
|
383
|
-
p,
|
|
384
|
-
o,
|
|
385
|
-
i,
|
|
386
|
-
f
|
|
387
|
-
]);
|
|
388
|
-
r.useEffect(() => {
|
|
389
|
-
if (h || t) {
|
|
390
|
-
var u;
|
|
391
|
-
const b = (u = e == null ? void 0 : e.findIndex((y) => y === t || y === h)) != null ? u : -1;
|
|
392
|
-
p && b !== -1 && typeof p[b] == "number" && A(p[b]);
|
|
393
|
-
}
|
|
394
|
-
}, [
|
|
395
|
-
h,
|
|
396
|
-
t,
|
|
397
|
-
e,
|
|
398
|
-
p,
|
|
399
|
-
A
|
|
400
|
-
]);
|
|
401
|
-
function c({ draggedDistance: u, closeDrawer: b, velocity: y, dismissible: I }) {
|
|
402
|
-
if (o === void 0) return;
|
|
403
|
-
const N = w === "bottom" || w === "right" ? (M ?? 0) - u : (M ?? 0) + u, j = E === o - 1, l = E === 0, U = u > 0;
|
|
404
|
-
if (j && $(i.current, {
|
|
405
|
-
transition: `opacity ${x.DURATION}s cubic-bezier(${x.EASE.join(",")})`
|
|
406
|
-
}), !R && y > 2 && !U) {
|
|
407
|
-
I ? b() : A(p[0]);
|
|
408
|
-
return;
|
|
409
|
-
}
|
|
410
|
-
if (!R && y > 2 && U && p && e) {
|
|
411
|
-
A(p[e.length - 1]);
|
|
412
|
-
return;
|
|
413
|
-
}
|
|
414
|
-
const _ = p == null ? void 0 : p.reduce((P, K) => typeof P != "number" || typeof K != "number" ? P : Math.abs(K - N) < Math.abs(P - N) ? K : P), W = C(w) ? window.innerHeight : window.innerWidth;
|
|
415
|
-
if (y > Qt && Math.abs(u) < W * 0.4) {
|
|
416
|
-
const P = U ? 1 : -1;
|
|
417
|
-
if (P > 0 && k && e) {
|
|
418
|
-
A(p[e.length - 1]);
|
|
419
|
-
return;
|
|
420
|
-
}
|
|
421
|
-
if (l && P < 0 && I && b(), E === null) return;
|
|
422
|
-
A(p[E + P]);
|
|
423
|
-
return;
|
|
424
|
-
}
|
|
425
|
-
A(_);
|
|
426
|
-
}
|
|
427
|
-
function Y({ draggedDistance: u }) {
|
|
428
|
-
if (M === null) return;
|
|
429
|
-
const b = w === "bottom" || w === "right" ? M - u : M + u;
|
|
430
|
-
(w === "bottom" || w === "right") && b < p[p.length - 1] || (w === "top" || w === "left") && b > p[p.length - 1] || $(a.current, {
|
|
431
|
-
transform: C(w) ? `translate3d(0, ${b}px, 0)` : `translate3d(${b}px, 0, 0)`
|
|
432
|
-
});
|
|
433
|
-
}
|
|
434
|
-
function tt(u, b) {
|
|
435
|
-
if (!e || typeof E != "number" || !p || o === void 0) return null;
|
|
436
|
-
const y = E === o - 1;
|
|
437
|
-
if (E >= o && b)
|
|
438
|
-
return 0;
|
|
439
|
-
if (y && !b) return 1;
|
|
440
|
-
if (!F && !y) return null;
|
|
441
|
-
const N = y ? E + 1 : E - 1, j = y ? p[N] - p[N - 1] : p[N + 1] - p[N], l = u / Math.abs(j);
|
|
442
|
-
return y ? 1 - l : l;
|
|
443
|
-
}
|
|
444
|
-
return {
|
|
445
|
-
isLastSnapPoint: k,
|
|
446
|
-
activeSnapPoint: h,
|
|
447
|
-
shouldFade: F,
|
|
448
|
-
getPercentageDragged: tt,
|
|
449
|
-
setActiveSnapPoint: f,
|
|
450
|
-
activeSnapPointIndex: E,
|
|
451
|
-
onRelease: c,
|
|
452
|
-
onDrag: Y,
|
|
453
|
-
snapPointsOffset: p
|
|
454
|
-
};
|
|
455
|
-
}
|
|
456
|
-
const je = () => () => {
|
|
457
|
-
};
|
|
458
|
-
function We() {
|
|
459
|
-
const { direction: t, isOpen: n, shouldScaleBackground: e, setBackgroundColorOnScale: a, noBodyStyles: i } = pt(), o = r.useRef(null), v = ye(() => document.body.style.backgroundColor, []);
|
|
460
|
-
function w() {
|
|
461
|
-
return (window.innerWidth - Mt) / window.innerWidth;
|
|
462
|
-
}
|
|
463
|
-
r.useEffect(() => {
|
|
464
|
-
if (n && e) {
|
|
465
|
-
o.current && clearTimeout(o.current);
|
|
466
|
-
const D = document.querySelector("[data-vaul-drawer-wrapper]") || document.querySelector("[vaul-drawer-wrapper]");
|
|
467
|
-
if (!D) return;
|
|
468
|
-
ke(a && !i ? Ct(document.body, {
|
|
469
|
-
background: "black"
|
|
470
|
-
}) : je, Ct(D, {
|
|
471
|
-
transformOrigin: C(t) ? "top" : "left",
|
|
472
|
-
transitionProperty: "transform, border-radius",
|
|
473
|
-
transitionDuration: `${x.DURATION}s`,
|
|
474
|
-
transitionTimingFunction: `cubic-bezier(${x.EASE.join(",")})`
|
|
475
|
-
}));
|
|
476
|
-
const R = Ct(D, {
|
|
477
|
-
borderRadius: `${Zt}px`,
|
|
478
|
-
overflow: "hidden",
|
|
479
|
-
...C(t) ? {
|
|
480
|
-
transform: `scale(${w()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`
|
|
481
|
-
} : {
|
|
482
|
-
transform: `scale(${w()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`
|
|
483
|
-
}
|
|
484
|
-
});
|
|
485
|
-
return () => {
|
|
486
|
-
R(), o.current = window.setTimeout(() => {
|
|
487
|
-
v ? document.body.style.background = v : document.body.style.removeProperty("background");
|
|
488
|
-
}, x.DURATION * 1e3);
|
|
489
|
-
};
|
|
490
|
-
}
|
|
491
|
-
}, [
|
|
492
|
-
n,
|
|
493
|
-
e,
|
|
494
|
-
v
|
|
495
|
-
]);
|
|
496
|
-
}
|
|
497
|
-
let ft = null;
|
|
498
|
-
function ze({ isOpen: t, modal: n, nested: e, hasBeenOpened: a, preventScrollRestoration: i, noBodyStyles: o }) {
|
|
499
|
-
const [v, w] = r.useState(() => typeof window < "u" ? window.location.href : ""), D = r.useRef(0), R = r.useCallback(() => {
|
|
500
|
-
if (Wt() && ft === null && t && !o) {
|
|
501
|
-
ft = {
|
|
502
|
-
position: document.body.style.position,
|
|
503
|
-
top: document.body.style.top,
|
|
504
|
-
left: document.body.style.left,
|
|
505
|
-
height: document.body.style.height,
|
|
506
|
-
right: "unset"
|
|
507
|
-
};
|
|
508
|
-
const { scrollX: f, innerHeight: m } = window;
|
|
509
|
-
document.body.style.setProperty("position", "fixed", "important"), Object.assign(document.body.style, {
|
|
510
|
-
top: `${-D.current}px`,
|
|
511
|
-
left: `${-f}px`,
|
|
512
|
-
right: "0px",
|
|
513
|
-
height: "auto"
|
|
514
|
-
}), window.setTimeout(() => window.requestAnimationFrame(() => {
|
|
515
|
-
const B = m - window.innerHeight;
|
|
516
|
-
B && D.current >= m && (document.body.style.top = `${-(D.current + B)}px`);
|
|
517
|
-
}), 300);
|
|
518
|
-
}
|
|
519
|
-
}, [
|
|
520
|
-
t
|
|
521
|
-
]), h = r.useCallback(() => {
|
|
522
|
-
if (Wt() && ft !== null && !o) {
|
|
523
|
-
const f = -parseInt(document.body.style.top, 10), m = -parseInt(document.body.style.left, 10);
|
|
524
|
-
Object.assign(document.body.style, ft), window.requestAnimationFrame(() => {
|
|
525
|
-
if (i && v !== window.location.href) {
|
|
526
|
-
w(window.location.href);
|
|
527
|
-
return;
|
|
528
|
-
}
|
|
529
|
-
window.scrollTo(m, f);
|
|
530
|
-
}), ft = null;
|
|
531
|
-
}
|
|
532
|
-
}, [
|
|
533
|
-
v
|
|
534
|
-
]);
|
|
535
|
-
return r.useEffect(() => {
|
|
536
|
-
function f() {
|
|
537
|
-
D.current = window.scrollY;
|
|
538
|
-
}
|
|
539
|
-
return f(), window.addEventListener("scroll", f), () => {
|
|
540
|
-
window.removeEventListener("scroll", f);
|
|
541
|
-
};
|
|
542
|
-
}, []), r.useEffect(() => {
|
|
543
|
-
if (n)
|
|
544
|
-
return () => {
|
|
545
|
-
typeof document > "u" || document.querySelector("[data-vaul-drawer]") || h();
|
|
546
|
-
};
|
|
547
|
-
}, [
|
|
548
|
-
n,
|
|
549
|
-
h
|
|
550
|
-
]), r.useEffect(() => {
|
|
551
|
-
e || !a || (t ? (!window.matchMedia("(display-mode: standalone)").matches && R(), n || window.setTimeout(() => {
|
|
552
|
-
h();
|
|
553
|
-
}, 500)) : h());
|
|
554
|
-
}, [
|
|
555
|
-
t,
|
|
556
|
-
a,
|
|
557
|
-
v,
|
|
558
|
-
n,
|
|
559
|
-
e,
|
|
560
|
-
R,
|
|
561
|
-
h
|
|
562
|
-
]), {
|
|
563
|
-
restorePositionSetting: h
|
|
564
|
-
};
|
|
565
|
-
}
|
|
566
|
-
function Ve({ open: t, onOpenChange: n, children: e, onDrag: a, onRelease: i, snapPoints: o, shouldScaleBackground: v = !1, setBackgroundColorOnScale: w = !0, closeThreshold: D = Le, scrollLockTimeout: R = Be, dismissible: h = !0, handleOnly: f = !1, fadeFromIndex: m = o && o.length - 1, activeSnapPoint: B, setActiveSnapPoint: k, fixed: E, modal: F = !0, onClose: p, nested: M, noBodyStyles: A = !1, direction: c = "bottom", defaultOpen: Y = !1, disablePreventScroll: tt = !0, snapToSequentialPoint: u = !1, preventScrollRestoration: b = !1, repositionInputs: y = !0, onAnimationEnd: I, container: N, autoFocus: j = !1 }) {
|
|
567
|
-
var l, U;
|
|
568
|
-
const [_ = !1, W] = ee({
|
|
569
|
-
defaultProp: Y,
|
|
570
|
-
prop: t,
|
|
571
|
-
onChange: (s) => {
|
|
572
|
-
n == null || n(s), !s && !M && de(), setTimeout(() => {
|
|
573
|
-
I == null || I(s);
|
|
574
|
-
}, x.DURATION * 1e3), s && !F && typeof window < "u" && window.requestAnimationFrame(() => {
|
|
575
|
-
document.body.style.pointerEvents = "auto";
|
|
576
|
-
}), s || (document.body.style.pointerEvents = "auto");
|
|
577
|
-
}
|
|
578
|
-
}), [P, K] = r.useState(!1), [G, it] = r.useState(!1), [oe, Pt] = r.useState(!1), nt = r.useRef(null), wt = r.useRef(null), St = r.useRef(null), Dt = r.useRef(null), st = r.useRef(null), lt = r.useRef(!1), Tt = r.useRef(null), Rt = r.useRef(0), rt = r.useRef(!1), It = r.useRef(!Y), _t = r.useRef(0), d = r.useRef(null), Ht = r.useRef(((l = d.current) == null ? void 0 : l.getBoundingClientRect().height) || 0), kt = r.useRef(((U = d.current) == null ? void 0 : U.getBoundingClientRect().width) || 0), Et = r.useRef(0), ie = r.useCallback((s) => {
|
|
579
|
-
o && s === ut.length - 1 && (wt.current = /* @__PURE__ */ new Date());
|
|
580
|
-
}, []), { activeSnapPoint: se, activeSnapPointIndex: at, setActiveSnapPoint: Lt, onRelease: le, snapPointsOffset: ut, onDrag: ue, shouldFade: Bt, getPercentageDragged: ce } = Ue({
|
|
581
|
-
snapPoints: o,
|
|
582
|
-
activeSnapPointProp: B,
|
|
583
|
-
setActiveSnapPointProp: k,
|
|
584
|
-
drawerRef: d,
|
|
585
|
-
fadeFromIndex: m,
|
|
586
|
-
overlayRef: nt,
|
|
587
|
-
onSnapPointChange: ie,
|
|
588
|
-
direction: c,
|
|
589
|
-
container: N,
|
|
590
|
-
snapToSequentialPoint: u
|
|
591
|
-
});
|
|
592
|
-
Ae({
|
|
593
|
-
isDisabled: !_ || G || !F || oe || !P || !y || !tt
|
|
594
|
-
});
|
|
595
|
-
const { restorePositionSetting: de } = ze({
|
|
596
|
-
isOpen: _,
|
|
597
|
-
modal: F,
|
|
598
|
-
nested: M ?? !1,
|
|
599
|
-
hasBeenOpened: P,
|
|
600
|
-
preventScrollRestoration: b,
|
|
601
|
-
noBodyStyles: A
|
|
602
|
-
});
|
|
603
|
-
function ht() {
|
|
604
|
-
return (window.innerWidth - Mt) / window.innerWidth;
|
|
605
|
-
}
|
|
606
|
-
function fe(s) {
|
|
607
|
-
var S, T;
|
|
608
|
-
!h && !o || d.current && !d.current.contains(s.target) || (Ht.current = ((S = d.current) == null ? void 0 : S.getBoundingClientRect().height) || 0, kt.current = ((T = d.current) == null ? void 0 : T.getBoundingClientRect().width) || 0, it(!0), St.current = /* @__PURE__ */ new Date(), Xt() && window.addEventListener("touchend", () => lt.current = !1, {
|
|
609
|
-
once: !0
|
|
610
|
-
}), s.target.setPointerCapture(s.pointerId), Rt.current = C(c) ? s.pageY : s.pageX);
|
|
611
|
-
}
|
|
612
|
-
function Ft(s, S) {
|
|
613
|
-
var T;
|
|
614
|
-
let g = s;
|
|
615
|
-
const O = (T = window.getSelection()) == null ? void 0 : T.toString(), L = d.current ? yt(d.current, c) : null, H = /* @__PURE__ */ new Date();
|
|
616
|
-
if (g.tagName === "SELECT" || g.hasAttribute("data-vaul-no-drag") || g.closest("[data-vaul-no-drag]"))
|
|
617
|
-
return !1;
|
|
618
|
-
if (c === "right" || c === "left")
|
|
619
|
-
return !0;
|
|
620
|
-
if (wt.current && H.getTime() - wt.current.getTime() < 500)
|
|
621
|
-
return !1;
|
|
622
|
-
if (L !== null && (c === "bottom" ? L > 0 : L < 0))
|
|
623
|
-
return !0;
|
|
624
|
-
if (O && O.length > 0)
|
|
625
|
-
return !1;
|
|
626
|
-
if (st.current && H.getTime() - st.current.getTime() < R && L === 0 || S)
|
|
627
|
-
return st.current = H, !1;
|
|
628
|
-
for (; g; ) {
|
|
629
|
-
if (g.scrollHeight > g.clientHeight) {
|
|
630
|
-
if (g.scrollTop !== 0)
|
|
631
|
-
return st.current = /* @__PURE__ */ new Date(), !1;
|
|
632
|
-
if (g.getAttribute("role") === "dialog")
|
|
633
|
-
return !0;
|
|
634
|
-
}
|
|
635
|
-
g = g.parentNode;
|
|
636
|
-
}
|
|
637
|
-
return !0;
|
|
638
|
-
}
|
|
639
|
-
function me(s) {
|
|
640
|
-
if (d.current && G) {
|
|
641
|
-
const S = c === "bottom" || c === "right" ? 1 : -1, T = (Rt.current - (C(c) ? s.pageY : s.pageX)) * S, g = T > 0, O = o && !h && !g;
|
|
642
|
-
if (O && at === 0) return;
|
|
643
|
-
const L = Math.abs(T), H = document.querySelector("[data-vaul-drawer-wrapper]"), J = c === "bottom" || c === "top" ? Ht.current : kt.current;
|
|
644
|
-
let z = L / J;
|
|
645
|
-
const et = ce(L, g);
|
|
646
|
-
if (et !== null && (z = et), O && z >= 1 || !lt.current && !Ft(s.target, g)) return;
|
|
647
|
-
if (d.current.classList.add($t), lt.current = !0, $(d.current, {
|
|
648
|
-
transition: "none"
|
|
649
|
-
}), $(nt.current, {
|
|
650
|
-
transition: "none"
|
|
651
|
-
}), o && ue({
|
|
652
|
-
draggedDistance: T
|
|
653
|
-
}), g && !o) {
|
|
654
|
-
const q = He(T), gt = Math.min(q * -1, 0) * S;
|
|
655
|
-
$(d.current, {
|
|
656
|
-
transform: C(c) ? `translate3d(0, ${gt}px, 0)` : `translate3d(${gt}px, 0, 0)`
|
|
657
|
-
});
|
|
658
|
-
return;
|
|
659
|
-
}
|
|
660
|
-
const Q = 1 - z;
|
|
661
|
-
if ((Bt || m && at === m - 1) && (a == null || a(s, z), $(nt.current, {
|
|
662
|
-
opacity: `${Q}`,
|
|
663
|
-
transition: "none"
|
|
664
|
-
}, !0)), H && nt.current && v) {
|
|
665
|
-
const q = Math.min(ht() + z * (1 - ht()), 1), gt = 8 - z * 8, jt = Math.max(0, 14 - z * 14);
|
|
666
|
-
$(H, {
|
|
667
|
-
borderRadius: `${gt}px`,
|
|
668
|
-
transform: C(c) ? `scale(${q}) translate3d(0, ${jt}px, 0)` : `scale(${q}) translate3d(${jt}px, 0, 0)`,
|
|
669
|
-
transition: "none"
|
|
670
|
-
}, !0);
|
|
671
|
-
}
|
|
672
|
-
if (!o) {
|
|
673
|
-
const q = L * S;
|
|
674
|
-
$(d.current, {
|
|
675
|
-
transform: C(c) ? `translate3d(0, ${q}px, 0)` : `translate3d(${q}px, 0, 0)`
|
|
676
|
-
});
|
|
677
|
-
}
|
|
678
|
-
}
|
|
679
|
-
}
|
|
680
|
-
r.useEffect(() => {
|
|
681
|
-
window.requestAnimationFrame(() => {
|
|
682
|
-
It.current = !0;
|
|
683
|
-
});
|
|
684
|
-
}, []), r.useEffect(() => {
|
|
685
|
-
var s;
|
|
686
|
-
function S() {
|
|
687
|
-
if (!d.current || !y) return;
|
|
688
|
-
const T = document.activeElement;
|
|
689
|
-
if (At(T) || rt.current) {
|
|
690
|
-
var g;
|
|
691
|
-
const O = ((g = window.visualViewport) == null ? void 0 : g.height) || 0, L = window.innerHeight;
|
|
692
|
-
let H = L - O;
|
|
693
|
-
const J = d.current.getBoundingClientRect().height || 0, z = J > L * 0.8;
|
|
694
|
-
Et.current || (Et.current = J);
|
|
695
|
-
const et = d.current.getBoundingClientRect().top;
|
|
696
|
-
if (Math.abs(_t.current - H) > 60 && (rt.current = !rt.current), o && o.length > 0 && ut && at) {
|
|
697
|
-
const Q = ut[at] || 0;
|
|
698
|
-
H += Q;
|
|
699
|
-
}
|
|
700
|
-
if (_t.current = H, J > O || rt.current) {
|
|
701
|
-
const Q = d.current.getBoundingClientRect().height;
|
|
702
|
-
let q = Q;
|
|
703
|
-
Q > O && (q = O - (z ? et : Mt)), E ? d.current.style.height = `${Q - Math.max(H, 0)}px` : d.current.style.height = `${Math.max(q, O - et)}px`;
|
|
704
|
-
} else Te() || (d.current.style.height = `${Et.current}px`);
|
|
705
|
-
o && o.length > 0 && !rt.current ? d.current.style.bottom = "0px" : d.current.style.bottom = `${Math.max(H, 0)}px`;
|
|
706
|
-
}
|
|
707
|
-
}
|
|
708
|
-
return (s = window.visualViewport) == null || s.addEventListener("resize", S), () => {
|
|
709
|
-
var T;
|
|
710
|
-
return (T = window.visualViewport) == null ? void 0 : T.removeEventListener("resize", S);
|
|
711
|
-
};
|
|
712
|
-
}, [
|
|
713
|
-
at,
|
|
714
|
-
o,
|
|
715
|
-
ut
|
|
716
|
-
]);
|
|
717
|
-
function ct(s) {
|
|
718
|
-
pe(), p == null || p(), s || W(!1), setTimeout(() => {
|
|
719
|
-
o && Lt(o[0]);
|
|
720
|
-
}, x.DURATION * 1e3);
|
|
721
|
-
}
|
|
722
|
-
function Ut() {
|
|
723
|
-
if (!d.current) return;
|
|
724
|
-
const s = document.querySelector("[data-vaul-drawer-wrapper]"), S = yt(d.current, c);
|
|
725
|
-
$(d.current, {
|
|
726
|
-
transform: "translate3d(0, 0, 0)",
|
|
727
|
-
transition: `transform ${x.DURATION}s cubic-bezier(${x.EASE.join(",")})`
|
|
728
|
-
}), $(nt.current, {
|
|
729
|
-
transition: `opacity ${x.DURATION}s cubic-bezier(${x.EASE.join(",")})`,
|
|
730
|
-
opacity: "1"
|
|
731
|
-
}), v && S && S > 0 && _ && $(s, {
|
|
732
|
-
borderRadius: `${Zt}px`,
|
|
733
|
-
overflow: "hidden",
|
|
734
|
-
...C(c) ? {
|
|
735
|
-
transform: `scale(${ht()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`,
|
|
736
|
-
transformOrigin: "top"
|
|
737
|
-
} : {
|
|
738
|
-
transform: `scale(${ht()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`,
|
|
739
|
-
transformOrigin: "left"
|
|
740
|
-
},
|
|
741
|
-
transitionProperty: "transform, border-radius",
|
|
742
|
-
transitionDuration: `${x.DURATION}s`,
|
|
743
|
-
transitionTimingFunction: `cubic-bezier(${x.EASE.join(",")})`
|
|
744
|
-
}, !0);
|
|
745
|
-
}
|
|
746
|
-
function pe() {
|
|
747
|
-
!G || !d.current || (d.current.classList.remove($t), lt.current = !1, it(!1), Dt.current = /* @__PURE__ */ new Date());
|
|
748
|
-
}
|
|
749
|
-
function we(s) {
|
|
750
|
-
if (!G || !d.current) return;
|
|
751
|
-
d.current.classList.remove($t), lt.current = !1, it(!1), Dt.current = /* @__PURE__ */ new Date();
|
|
752
|
-
const S = yt(d.current, c);
|
|
753
|
-
if (!s || !Ft(s.target, !1) || !S || Number.isNaN(S) || St.current === null) return;
|
|
754
|
-
const T = Dt.current.getTime() - St.current.getTime(), g = Rt.current - (C(c) ? s.pageY : s.pageX), O = Math.abs(g) / T;
|
|
755
|
-
if (O > 0.05 && (Pt(!0), setTimeout(() => {
|
|
756
|
-
Pt(!1);
|
|
757
|
-
}, 200)), o) {
|
|
758
|
-
le({
|
|
759
|
-
draggedDistance: g * (c === "bottom" || c === "right" ? 1 : -1),
|
|
760
|
-
closeDrawer: ct,
|
|
761
|
-
velocity: O,
|
|
762
|
-
dismissible: h
|
|
763
|
-
}), i == null || i(s, !0);
|
|
764
|
-
return;
|
|
765
|
-
}
|
|
766
|
-
if (c === "bottom" || c === "right" ? g > 0 : g < 0) {
|
|
767
|
-
Ut(), i == null || i(s, !0);
|
|
768
|
-
return;
|
|
769
|
-
}
|
|
770
|
-
if (O > Qt) {
|
|
771
|
-
ct(), i == null || i(s, !1);
|
|
772
|
-
return;
|
|
773
|
-
}
|
|
774
|
-
var L;
|
|
775
|
-
const H = Math.min((L = d.current.getBoundingClientRect().height) != null ? L : 0, window.innerHeight);
|
|
776
|
-
var J;
|
|
777
|
-
const z = Math.min((J = d.current.getBoundingClientRect().width) != null ? J : 0, window.innerWidth), et = c === "left" || c === "right";
|
|
778
|
-
if (Math.abs(S) >= (et ? z : H) * D) {
|
|
779
|
-
ct(), i == null || i(s, !1);
|
|
780
|
-
return;
|
|
781
|
-
}
|
|
782
|
-
i == null || i(s, !0), Ut();
|
|
783
|
-
}
|
|
784
|
-
r.useEffect(() => (_ && ($(document.documentElement, {
|
|
785
|
-
scrollBehavior: "auto"
|
|
786
|
-
}), wt.current = /* @__PURE__ */ new Date()), () => {
|
|
787
|
-
_e(document.documentElement, "scrollBehavior");
|
|
788
|
-
}), [
|
|
789
|
-
_
|
|
790
|
-
]);
|
|
791
|
-
function he(s) {
|
|
792
|
-
const S = s ? (window.innerWidth - bt) / window.innerWidth : 1, T = s ? -16 : 0;
|
|
793
|
-
Tt.current && window.clearTimeout(Tt.current), $(d.current, {
|
|
794
|
-
transition: `transform ${x.DURATION}s cubic-bezier(${x.EASE.join(",")})`,
|
|
795
|
-
transform: C(c) ? `scale(${S}) translate3d(0, ${T}px, 0)` : `scale(${S}) translate3d(${T}px, 0, 0)`
|
|
796
|
-
}), !s && d.current && (Tt.current = setTimeout(() => {
|
|
797
|
-
const g = yt(d.current, c);
|
|
798
|
-
$(d.current, {
|
|
799
|
-
transition: "none",
|
|
800
|
-
transform: C(c) ? `translate3d(0, ${g}px, 0)` : `translate3d(${g}px, 0, 0)`
|
|
801
|
-
});
|
|
802
|
-
}, 500));
|
|
803
|
-
}
|
|
804
|
-
function ge(s, S) {
|
|
805
|
-
if (S < 0) return;
|
|
806
|
-
const T = (window.innerWidth - bt) / window.innerWidth, g = T + S * (1 - T), O = -16 + S * bt;
|
|
807
|
-
$(d.current, {
|
|
808
|
-
transform: C(c) ? `scale(${g}) translate3d(0, ${O}px, 0)` : `scale(${g}) translate3d(${O}px, 0, 0)`,
|
|
809
|
-
transition: "none"
|
|
810
|
-
});
|
|
811
|
-
}
|
|
812
|
-
function ve(s, S) {
|
|
813
|
-
const T = C(c) ? window.innerHeight : window.innerWidth, g = S ? (T - bt) / T : 1, O = S ? -16 : 0;
|
|
814
|
-
S && $(d.current, {
|
|
815
|
-
transition: `transform ${x.DURATION}s cubic-bezier(${x.EASE.join(",")})`,
|
|
816
|
-
transform: C(c) ? `scale(${g}) translate3d(0, ${O}px, 0)` : `scale(${g}) translate3d(${O}px, 0, 0)`
|
|
817
|
-
});
|
|
818
|
-
}
|
|
819
|
-
return r.useEffect(() => {
|
|
820
|
-
F || window.requestAnimationFrame(() => {
|
|
821
|
-
document.body.style.pointerEvents = "auto";
|
|
822
|
-
});
|
|
823
|
-
}, [
|
|
824
|
-
F
|
|
825
|
-
]), /* @__PURE__ */ r.createElement(Z.Root, {
|
|
826
|
-
defaultOpen: Y,
|
|
827
|
-
onOpenChange: (s) => {
|
|
828
|
-
!h && !s || (s ? K(!0) : ct(!0), W(s));
|
|
829
|
-
},
|
|
830
|
-
open: _
|
|
831
|
-
}, /* @__PURE__ */ r.createElement(qt.Provider, {
|
|
832
|
-
value: {
|
|
833
|
-
activeSnapPoint: se,
|
|
834
|
-
snapPoints: o,
|
|
835
|
-
setActiveSnapPoint: Lt,
|
|
836
|
-
drawerRef: d,
|
|
837
|
-
overlayRef: nt,
|
|
838
|
-
onOpenChange: n,
|
|
839
|
-
onPress: fe,
|
|
840
|
-
onRelease: we,
|
|
841
|
-
onDrag: me,
|
|
842
|
-
dismissible: h,
|
|
843
|
-
shouldAnimate: It,
|
|
844
|
-
handleOnly: f,
|
|
845
|
-
isOpen: _,
|
|
846
|
-
isDragging: G,
|
|
847
|
-
shouldFade: Bt,
|
|
848
|
-
closeDrawer: ct,
|
|
849
|
-
onNestedDrag: ge,
|
|
850
|
-
onNestedOpenChange: he,
|
|
851
|
-
onNestedRelease: ve,
|
|
852
|
-
keyboardIsOpen: rt,
|
|
853
|
-
modal: F,
|
|
854
|
-
snapPointsOffset: ut,
|
|
855
|
-
activeSnapPointIndex: at,
|
|
856
|
-
direction: c,
|
|
857
|
-
shouldScaleBackground: v,
|
|
858
|
-
setBackgroundColorOnScale: w,
|
|
859
|
-
noBodyStyles: A,
|
|
860
|
-
container: N,
|
|
861
|
-
autoFocus: j
|
|
862
|
-
}
|
|
863
|
-
}, e));
|
|
864
|
-
}
|
|
865
|
-
const ne = /* @__PURE__ */ r.forwardRef(function({ ...t }, n) {
|
|
866
|
-
const { overlayRef: e, snapPoints: a, onRelease: i, shouldFade: o, isOpen: v, modal: w, shouldAnimate: D } = pt(), R = Gt(n, e), h = a && a.length > 0;
|
|
867
|
-
if (!w)
|
|
868
|
-
return null;
|
|
869
|
-
const f = r.useCallback((m) => i(m), [
|
|
870
|
-
i
|
|
871
|
-
]);
|
|
872
|
-
return /* @__PURE__ */ r.createElement(Z.Overlay, {
|
|
873
|
-
onMouseUp: f,
|
|
874
|
-
ref: R,
|
|
875
|
-
"data-vaul-overlay": "",
|
|
876
|
-
"data-vaul-snap-points": v && h ? "true" : "false",
|
|
877
|
-
"data-vaul-snap-points-overlay": v && o ? "true" : "false",
|
|
878
|
-
"data-vaul-animate": D != null && D.current ? "true" : "false",
|
|
879
|
-
...t
|
|
880
|
-
});
|
|
881
|
-
});
|
|
882
|
-
ne.displayName = "Drawer.Overlay";
|
|
883
|
-
const re = /* @__PURE__ */ r.forwardRef(function({ onPointerDownOutside: t, style: n, onOpenAutoFocus: e, ...a }, i) {
|
|
884
|
-
const { drawerRef: o, onPress: v, onRelease: w, onDrag: D, keyboardIsOpen: R, snapPointsOffset: h, activeSnapPointIndex: f, modal: m, isOpen: B, direction: k, snapPoints: E, container: F, handleOnly: p, shouldAnimate: M, autoFocus: A } = pt(), [c, Y] = r.useState(!1), tt = Gt(i, o), u = r.useRef(null), b = r.useRef(null), y = r.useRef(!1), I = E && E.length > 0;
|
|
885
|
-
We();
|
|
886
|
-
const N = (l, U, _ = 0) => {
|
|
887
|
-
if (y.current) return !0;
|
|
888
|
-
const W = Math.abs(l.y), P = Math.abs(l.x), K = P > W, G = [
|
|
889
|
-
"bottom",
|
|
890
|
-
"right"
|
|
891
|
-
].includes(U) ? 1 : -1;
|
|
892
|
-
if (U === "left" || U === "right") {
|
|
893
|
-
if (!(l.x * G < 0) && P >= 0 && P <= _)
|
|
894
|
-
return K;
|
|
895
|
-
} else if (!(l.y * G < 0) && W >= 0 && W <= _)
|
|
896
|
-
return !K;
|
|
897
|
-
return y.current = !0, !0;
|
|
898
|
-
};
|
|
899
|
-
r.useEffect(() => {
|
|
900
|
-
I && window.requestAnimationFrame(() => {
|
|
901
|
-
Y(!0);
|
|
902
|
-
});
|
|
903
|
-
}, []);
|
|
904
|
-
function j(l) {
|
|
905
|
-
u.current = null, y.current = !1, w(l);
|
|
906
|
-
}
|
|
907
|
-
return /* @__PURE__ */ r.createElement(Z.Content, {
|
|
908
|
-
"data-vaul-drawer-direction": k,
|
|
909
|
-
"data-vaul-drawer": "",
|
|
910
|
-
"data-vaul-delayed-snap-points": c ? "true" : "false",
|
|
911
|
-
"data-vaul-snap-points": B && I ? "true" : "false",
|
|
912
|
-
"data-vaul-custom-container": F ? "true" : "false",
|
|
913
|
-
"data-vaul-animate": M != null && M.current ? "true" : "false",
|
|
914
|
-
...a,
|
|
915
|
-
ref: tt,
|
|
916
|
-
style: h && h.length > 0 ? {
|
|
917
|
-
"--snap-point-height": `${h[f ?? 0]}px`,
|
|
918
|
-
...n
|
|
919
|
-
} : n,
|
|
920
|
-
onPointerDown: (l) => {
|
|
921
|
-
p || (a.onPointerDown == null || a.onPointerDown.call(a, l), u.current = {
|
|
922
|
-
x: l.pageX,
|
|
923
|
-
y: l.pageY
|
|
924
|
-
}, v(l));
|
|
925
|
-
},
|
|
926
|
-
onOpenAutoFocus: (l) => {
|
|
927
|
-
e == null || e(l), A || l.preventDefault();
|
|
928
|
-
},
|
|
929
|
-
onPointerDownOutside: (l) => {
|
|
930
|
-
if (t == null || t(l), !m || l.defaultPrevented) {
|
|
931
|
-
l.preventDefault();
|
|
932
|
-
return;
|
|
933
|
-
}
|
|
934
|
-
R.current && (R.current = !1);
|
|
935
|
-
},
|
|
936
|
-
onFocusOutside: (l) => {
|
|
937
|
-
if (!m) {
|
|
938
|
-
l.preventDefault();
|
|
939
|
-
return;
|
|
940
|
-
}
|
|
941
|
-
},
|
|
942
|
-
onPointerMove: (l) => {
|
|
943
|
-
if (b.current = l, p || (a.onPointerMove == null || a.onPointerMove.call(a, l), !u.current)) return;
|
|
944
|
-
const U = l.pageY - u.current.y, _ = l.pageX - u.current.x, W = l.pointerType === "touch" ? 10 : 2;
|
|
945
|
-
N({
|
|
946
|
-
x: _,
|
|
947
|
-
y: U
|
|
948
|
-
}, k, W) ? D(l) : (Math.abs(_) > W || Math.abs(U) > W) && (u.current = null);
|
|
949
|
-
},
|
|
950
|
-
onPointerUp: (l) => {
|
|
951
|
-
a.onPointerUp == null || a.onPointerUp.call(a, l), u.current = null, y.current = !1, w(l);
|
|
952
|
-
},
|
|
953
|
-
onPointerOut: (l) => {
|
|
954
|
-
a.onPointerOut == null || a.onPointerOut.call(a, l), j(b.current);
|
|
955
|
-
},
|
|
956
|
-
onContextMenu: (l) => {
|
|
957
|
-
a.onContextMenu == null || a.onContextMenu.call(a, l), b.current && j(b.current);
|
|
958
|
-
}
|
|
959
|
-
});
|
|
960
|
-
});
|
|
961
|
-
re.displayName = "Drawer.Content";
|
|
962
|
-
const Ye = 250, qe = 120, Xe = /* @__PURE__ */ r.forwardRef(function({ preventCycle: t = !1, children: n, ...e }, a) {
|
|
963
|
-
const { closeDrawer: i, isDragging: o, snapPoints: v, activeSnapPoint: w, setActiveSnapPoint: D, dismissible: R, handleOnly: h, isOpen: f, onPress: m, onDrag: B } = pt(), k = r.useRef(null), E = r.useRef(!1);
|
|
964
|
-
function F() {
|
|
965
|
-
if (E.current) {
|
|
966
|
-
A();
|
|
967
|
-
return;
|
|
968
|
-
}
|
|
969
|
-
window.setTimeout(() => {
|
|
970
|
-
p();
|
|
971
|
-
}, qe);
|
|
972
|
-
}
|
|
973
|
-
function p() {
|
|
974
|
-
if (o || t || E.current) {
|
|
975
|
-
A();
|
|
976
|
-
return;
|
|
977
|
-
}
|
|
978
|
-
if (A(), !v || v.length === 0) {
|
|
979
|
-
R || i();
|
|
980
|
-
return;
|
|
981
|
-
}
|
|
982
|
-
if (w === v[v.length - 1] && R) {
|
|
983
|
-
i();
|
|
984
|
-
return;
|
|
985
|
-
}
|
|
986
|
-
const Y = v.findIndex((u) => u === w);
|
|
987
|
-
if (Y === -1) return;
|
|
988
|
-
const tt = v[Y + 1];
|
|
989
|
-
D(tt);
|
|
990
|
-
}
|
|
991
|
-
function M() {
|
|
992
|
-
k.current = window.setTimeout(() => {
|
|
993
|
-
E.current = !0;
|
|
994
|
-
}, Ye);
|
|
995
|
-
}
|
|
996
|
-
function A() {
|
|
997
|
-
k.current && window.clearTimeout(k.current), E.current = !1;
|
|
998
|
-
}
|
|
999
|
-
return /* @__PURE__ */ r.createElement("div", {
|
|
1000
|
-
onClick: F,
|
|
1001
|
-
onPointerCancel: A,
|
|
1002
|
-
onPointerDown: (c) => {
|
|
1003
|
-
h && m(c), M();
|
|
1004
|
-
},
|
|
1005
|
-
onPointerMove: (c) => {
|
|
1006
|
-
h && B(c);
|
|
1007
|
-
},
|
|
1008
|
-
// onPointerUp is already handled by the content component
|
|
1009
|
-
ref: a,
|
|
1010
|
-
"data-vaul-drawer-visible": f ? "true" : "false",
|
|
1011
|
-
"data-vaul-handle": "",
|
|
1012
|
-
"aria-hidden": "true",
|
|
1013
|
-
...e
|
|
1014
|
-
}, /* @__PURE__ */ r.createElement("span", {
|
|
1015
|
-
"data-vaul-handle-hitarea": "",
|
|
1016
|
-
"aria-hidden": "true"
|
|
1017
|
-
}, n));
|
|
1018
|
-
});
|
|
1019
|
-
Xe.displayName = "Drawer.Handle";
|
|
1020
|
-
function Ke(t) {
|
|
1021
|
-
const n = pt(), { container: e = n.container, ...a } = t;
|
|
1022
|
-
return /* @__PURE__ */ r.createElement(Z.Portal, {
|
|
1023
|
-
container: e,
|
|
1024
|
-
...a
|
|
1025
|
-
});
|
|
1026
|
-
}
|
|
1027
|
-
const V = {
|
|
1028
|
-
Root: Ve,
|
|
1029
|
-
Content: re,
|
|
1030
|
-
Overlay: ne,
|
|
1031
|
-
Trigger: Z.Trigger,
|
|
1032
|
-
Portal: Ke,
|
|
1033
|
-
Close: Z.Close,
|
|
1034
|
-
Title: Z.Title,
|
|
1035
|
-
Description: Z.Description
|
|
1036
|
-
}, Ge = ({
|
|
1037
|
-
shouldScaleBackground: t = !0,
|
|
1038
|
-
...n
|
|
1039
|
-
}) => /* @__PURE__ */ X.jsx(
|
|
1040
|
-
V.Root,
|
|
1041
|
-
{
|
|
1042
|
-
shouldScaleBackground: t,
|
|
1043
|
-
...n
|
|
1044
|
-
}
|
|
1045
|
-
);
|
|
1046
|
-
Ge.displayName = "Drawer";
|
|
1047
|
-
const sn = V.Trigger, Je = V.Portal, ln = V.Close, ae = mt.forwardRef(({ className: t, ...n }, e) => /* @__PURE__ */ X.jsx(
|
|
1048
|
-
V.Overlay,
|
|
1049
|
-
{
|
|
1050
|
-
ref: e,
|
|
1051
|
-
className: ot("fixed inset-0 z-50 bg-black/80", t),
|
|
1052
|
-
...n
|
|
1053
|
-
}
|
|
1054
|
-
));
|
|
1055
|
-
ae.displayName = V.Overlay.displayName;
|
|
1056
|
-
const Qe = mt.forwardRef(
|
|
1057
|
-
({ className: t, children: n, hideBar: e = !0, ...a }, i) => /* @__PURE__ */ X.jsxs(Je, { children: [
|
|
1058
|
-
/* @__PURE__ */ X.jsx(ae, {}),
|
|
1059
|
-
/* @__PURE__ */ X.jsxs(
|
|
1060
|
-
V.Content,
|
|
1061
|
-
{
|
|
1062
|
-
ref: i,
|
|
1063
|
-
className: ot(
|
|
1064
|
-
"fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto flex-col rounded-t-[10px] border bg-background",
|
|
1065
|
-
t
|
|
1066
|
-
),
|
|
1067
|
-
...a,
|
|
1068
|
-
children: [
|
|
1069
|
-
!e && /* @__PURE__ */ X.jsx("div", { className: "mx-auto mt-4 h-2 w-[100px] rounded-full bg-muted" }),
|
|
1070
|
-
n
|
|
1071
|
-
]
|
|
1072
|
-
}
|
|
1073
|
-
)
|
|
1074
|
-
] })
|
|
1075
|
-
);
|
|
1076
|
-
Qe.displayName = "DrawerContent";
|
|
1077
|
-
const Ze = ({
|
|
1078
|
-
className: t,
|
|
1079
|
-
...n
|
|
1080
|
-
}) => /* @__PURE__ */ X.jsx(
|
|
1081
|
-
"div",
|
|
1082
|
-
{
|
|
1083
|
-
className: ot("grid gap-1.5 p-4 text-center sm:text-left", t),
|
|
1084
|
-
...n
|
|
1085
|
-
}
|
|
1086
|
-
);
|
|
1087
|
-
Ze.displayName = "DrawerHeader";
|
|
1088
|
-
const tn = ({
|
|
1089
|
-
className: t,
|
|
1090
|
-
...n
|
|
1091
|
-
}) => /* @__PURE__ */ X.jsx(
|
|
1092
|
-
"div",
|
|
1093
|
-
{
|
|
1094
|
-
className: ot("mt-auto flex flex-col gap-2 p-4", t),
|
|
1095
|
-
...n
|
|
1096
|
-
}
|
|
1097
|
-
);
|
|
1098
|
-
tn.displayName = "DrawerFooter";
|
|
1099
|
-
const en = mt.forwardRef(({ className: t, ...n }, e) => /* @__PURE__ */ X.jsx(
|
|
1100
|
-
V.Title,
|
|
1101
|
-
{
|
|
1102
|
-
ref: e,
|
|
1103
|
-
className: ot(
|
|
1104
|
-
"text-lg font-semibold leading-none tracking-tight",
|
|
1105
|
-
t
|
|
1106
|
-
),
|
|
1107
|
-
...n
|
|
1108
|
-
}
|
|
1109
|
-
));
|
|
1110
|
-
en.displayName = V.Title.displayName;
|
|
1111
|
-
const nn = mt.forwardRef(({ className: t, ...n }, e) => /* @__PURE__ */ X.jsx(
|
|
1112
|
-
V.Description,
|
|
1113
|
-
{
|
|
1114
|
-
ref: e,
|
|
1115
|
-
className: ot("text-sm text-muted-foreground", t),
|
|
1116
|
-
...n
|
|
1117
|
-
}
|
|
1118
|
-
));
|
|
1119
|
-
nn.displayName = V.Description.displayName;
|
|
1120
|
-
export {
|
|
1121
|
-
Ge as D,
|
|
1122
|
-
sn as a,
|
|
1123
|
-
Qe as b,
|
|
1124
|
-
en as c,
|
|
1125
|
-
V as d,
|
|
1126
|
-
ln as e,
|
|
1127
|
-
nn as f,
|
|
1128
|
-
tn as g,
|
|
1129
|
-
Ze as h,
|
|
1130
|
-
ae as i,
|
|
1131
|
-
Je as j
|
|
1132
|
-
};
|
|
1133
|
-
//# sourceMappingURL=Drawer-kDAfOq_2.js.map
|