zudoku 0.0.0-feat-bundled-types.9aa135e → 0.0.0-feat-openapi-docs-redesign.dab3fc6a
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +33 -13
- package/cli.js +1 -0
- package/client.d.ts +8 -0
- package/dist/app/ZuploBuildConfig.d.ts +10 -120
- package/dist/app/ZuploBuildConfig.js +7 -7
- package/dist/app/ZuploBuildConfig.js.map +1 -1
- package/dist/app/demo.js +22 -6
- package/dist/app/demo.js.map +1 -1
- package/dist/app/entry.client.d.ts +0 -2
- package/dist/app/entry.client.js +6 -7
- package/dist/app/entry.client.js.map +1 -1
- package/dist/app/entry.server.d.ts +0 -2
- package/dist/app/entry.server.js +17 -6
- package/dist/app/entry.server.js.map +1 -1
- package/dist/app/env.d.ts +7 -7
- package/dist/app/env.js +10 -2
- package/dist/app/env.js.map +1 -1
- package/dist/app/main.d.ts +93 -2
- package/dist/app/main.js +31 -26
- package/dist/app/main.js.map +1 -1
- package/dist/app/standalone.js +11 -7
- package/dist/app/standalone.js.map +1 -1
- package/dist/cli/build/handler.js +9 -1
- package/dist/cli/build/handler.js.map +1 -1
- package/dist/cli/cli.d.ts +9 -0
- package/dist/cli/cli.js +5 -10
- package/dist/cli/cli.js.map +1 -1
- package/dist/cli/cmds/build.d.ts +1 -1
- package/dist/cli/cmds/dev.d.ts +1 -1
- package/dist/cli/cmds/preview.d.ts +1 -1
- package/dist/cli/common/analytics/lib.js +1 -1
- package/dist/cli/common/analytics/lib.js.map +1 -1
- package/dist/cli/common/logger.js +0 -1
- package/dist/cli/common/logger.js.map +1 -1
- package/dist/cli/common/machine-id/lib.js +3 -2
- package/dist/cli/common/machine-id/lib.js.map +1 -1
- package/dist/cli/common/outdated.js +2 -1
- package/dist/cli/common/outdated.js.map +1 -1
- package/dist/cli/common/output.js +2 -3
- package/dist/cli/common/output.js.map +1 -1
- package/dist/cli/common/utils/box.js +2 -2
- package/dist/cli/common/utils/box.js.map +1 -1
- package/dist/cli/common/validators/lib.js +1 -1
- package/dist/cli/common/validators/lib.js.map +1 -1
- package/dist/cli/common/version-check.d.ts +2 -0
- package/dist/cli/common/version-check.js +58 -0
- package/dist/cli/common/version-check.js.map +1 -0
- package/dist/cli/dev/handler.js +0 -4
- package/dist/cli/dev/handler.js.map +1 -1
- package/dist/codegen.js +2 -2
- package/dist/codegen.js.map +1 -1
- package/dist/config/config.d.ts +16 -30
- package/dist/config/loader.js +4 -8
- package/dist/config/loader.js.map +1 -1
- package/dist/config/validators/BuildSchema.d.ts +30 -46
- package/dist/config/validators/BuildSchema.js +29 -18
- package/dist/config/validators/BuildSchema.js.map +1 -1
- package/dist/config/validators/InputNavigationSchema.d.ts +7646 -0
- package/dist/config/validators/InputNavigationSchema.js +78 -0
- package/dist/config/validators/InputNavigationSchema.js.map +1 -0
- package/dist/config/validators/InputNavigationSchema.test-d.d.ts +1 -0
- package/dist/config/validators/InputNavigationSchema.test-d.js +146 -0
- package/dist/config/validators/InputNavigationSchema.test-d.js.map +1 -0
- package/dist/config/validators/NavigationSchema.d.ts +44 -0
- package/dist/config/validators/NavigationSchema.js +98 -0
- package/dist/config/validators/NavigationSchema.js.map +1 -0
- package/dist/config/validators/ProtectedRoutesSchema.d.ts +13 -0
- package/dist/config/validators/ProtectedRoutesSchema.js +10 -0
- package/dist/config/validators/ProtectedRoutesSchema.js.map +1 -0
- package/dist/config/validators/auth.d.ts +2 -2
- package/dist/config/validators/auth.js +1 -1
- package/dist/config/validators/auth.js.map +1 -1
- package/dist/config/validators/icon-types.d.ts +2 -1
- package/dist/config/validators/icon-types.js +1872 -1
- package/dist/config/validators/icon-types.js.map +1 -1
- package/dist/config/validators/validate.d.ts +672 -5561
- package/dist/config/validators/validate.js +182 -85
- package/dist/config/validators/validate.js.map +1 -1
- package/dist/config/validators/validate.test.d.ts +1 -0
- package/dist/config/validators/validate.test.js +140 -0
- package/dist/config/validators/validate.test.js.map +1 -0
- package/dist/flat-config.d.ts +378 -0
- package/dist/index.d.ts +12 -6264
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/dist/lib/MissingIcon.d.ts +1 -1
- package/dist/lib/MissingIcon.js.map +1 -1
- package/dist/lib/assets/language-icons/c.d.ts +3 -0
- package/dist/lib/assets/language-icons/c.js +4 -0
- package/dist/lib/assets/language-icons/c.js.map +1 -0
- package/dist/lib/assets/language-icons/commonlisp.d.ts +3 -0
- package/dist/lib/assets/language-icons/commonlisp.js +4 -0
- package/dist/lib/assets/language-icons/commonlisp.js.map +1 -0
- package/dist/lib/assets/language-icons/cpp.d.ts +3 -0
- package/dist/lib/assets/language-icons/cpp.js +4 -0
- package/dist/lib/assets/language-icons/cpp.js.map +1 -0
- package/dist/lib/assets/language-icons/csharp.d.ts +3 -0
- package/dist/lib/assets/language-icons/csharp.js +4 -0
- package/dist/lib/assets/language-icons/csharp.js.map +1 -0
- package/dist/lib/assets/language-icons/css.d.ts +3 -0
- package/dist/lib/assets/language-icons/css.js +4 -0
- package/dist/lib/assets/language-icons/css.js.map +1 -0
- package/dist/lib/assets/language-icons/dart.d.ts +3 -0
- package/dist/lib/assets/language-icons/dart.js +4 -0
- package/dist/lib/assets/language-icons/dart.js.map +1 -0
- package/dist/lib/assets/language-icons/elixir.d.ts +3 -0
- package/dist/lib/assets/language-icons/elixir.js +4 -0
- package/dist/lib/assets/language-icons/elixir.js.map +1 -0
- package/dist/lib/assets/language-icons/go.d.ts +3 -0
- package/dist/lib/assets/language-icons/go.js +4 -0
- package/dist/lib/assets/language-icons/go.js.map +1 -0
- package/dist/lib/assets/language-icons/graphql.d.ts +3 -0
- package/dist/lib/assets/language-icons/graphql.js +4 -0
- package/dist/lib/assets/language-icons/graphql.js.map +1 -0
- package/dist/lib/assets/language-icons/html.d.ts +3 -0
- package/dist/lib/assets/language-icons/html.js +4 -0
- package/dist/lib/assets/language-icons/html.js.map +1 -0
- package/dist/lib/assets/language-icons/java.d.ts +3 -0
- package/dist/lib/assets/language-icons/java.js +4 -0
- package/dist/lib/assets/language-icons/java.js.map +1 -0
- package/dist/lib/assets/language-icons/javascript.d.ts +3 -0
- package/dist/lib/assets/language-icons/javascript.js +4 -0
- package/dist/lib/assets/language-icons/javascript.js.map +1 -0
- package/dist/lib/assets/language-icons/json.d.ts +3 -0
- package/dist/lib/assets/language-icons/json.js +4 -0
- package/dist/lib/assets/language-icons/json.js.map +1 -0
- package/dist/lib/assets/language-icons/kotlin.d.ts +3 -0
- package/dist/lib/assets/language-icons/kotlin.js +4 -0
- package/dist/lib/assets/language-icons/kotlin.js.map +1 -0
- package/dist/lib/assets/language-icons/markdown.d.ts +3 -0
- package/dist/lib/assets/language-icons/markdown.js +4 -0
- package/dist/lib/assets/language-icons/markdown.js.map +1 -0
- package/dist/lib/assets/language-icons/mdx.d.ts +3 -0
- package/dist/lib/assets/language-icons/mdx.js +4 -0
- package/dist/lib/assets/language-icons/mdx.js.map +1 -0
- package/dist/lib/assets/language-icons/objectivec.d.ts +3 -0
- package/dist/lib/assets/language-icons/objectivec.js +4 -0
- package/dist/lib/assets/language-icons/objectivec.js.map +1 -0
- package/dist/lib/assets/language-icons/ocaml.d.ts +3 -0
- package/dist/lib/assets/language-icons/ocaml.js +4 -0
- package/dist/lib/assets/language-icons/ocaml.js.map +1 -0
- package/dist/lib/assets/language-icons/php.d.ts +3 -0
- package/dist/lib/assets/language-icons/php.js +4 -0
- package/dist/lib/assets/language-icons/php.js.map +1 -0
- package/dist/lib/assets/language-icons/powershell.d.ts +3 -0
- package/dist/lib/assets/language-icons/powershell.js +4 -0
- package/dist/lib/assets/language-icons/powershell.js.map +1 -0
- package/dist/lib/assets/language-icons/python.d.ts +3 -0
- package/dist/lib/assets/language-icons/python.js +4 -0
- package/dist/lib/assets/language-icons/python.js.map +1 -0
- package/dist/lib/assets/language-icons/react.d.ts +3 -0
- package/dist/lib/assets/language-icons/react.js +4 -0
- package/dist/lib/assets/language-icons/react.js.map +1 -0
- package/dist/lib/assets/language-icons/ruby.d.ts +3 -0
- package/dist/lib/assets/language-icons/ruby.js +4 -0
- package/dist/lib/assets/language-icons/ruby.js.map +1 -0
- package/dist/lib/assets/language-icons/rust.d.ts +3 -0
- package/dist/lib/assets/language-icons/rust.js +4 -0
- package/dist/lib/assets/language-icons/rust.js.map +1 -0
- package/dist/lib/assets/language-icons/scala.d.ts +3 -0
- package/dist/lib/assets/language-icons/scala.js +4 -0
- package/dist/lib/assets/language-icons/scala.js.map +1 -0
- package/dist/lib/assets/language-icons/shell.d.ts +3 -0
- package/dist/lib/assets/language-icons/shell.js +4 -0
- package/dist/lib/assets/language-icons/shell.js.map +1 -0
- package/dist/lib/assets/language-icons/swift.d.ts +3 -0
- package/dist/lib/assets/language-icons/swift.js +4 -0
- package/dist/lib/assets/language-icons/swift.js.map +1 -0
- package/dist/lib/assets/language-icons/toml.d.ts +3 -0
- package/dist/lib/assets/language-icons/toml.js +4 -0
- package/dist/lib/assets/language-icons/toml.js.map +1 -0
- package/dist/lib/assets/language-icons/typescript.d.ts +3 -0
- package/dist/lib/assets/language-icons/typescript.js +4 -0
- package/dist/lib/assets/language-icons/typescript.js.map +1 -0
- package/dist/lib/assets/language-icons/xml.d.ts +3 -0
- package/dist/lib/assets/language-icons/xml.js +4 -0
- package/dist/lib/assets/language-icons/xml.js.map +1 -0
- package/dist/lib/assets/language-icons/yaml.d.ts +3 -0
- package/dist/lib/assets/language-icons/yaml.js +4 -0
- package/dist/lib/assets/language-icons/yaml.js.map +1 -0
- package/dist/lib/assets/language-icons/zig.d.ts +3 -0
- package/dist/lib/assets/language-icons/zig.js +4 -0
- package/dist/lib/assets/language-icons/zig.js.map +1 -0
- package/dist/lib/auth/issuer.d.ts +2 -0
- package/dist/lib/auth/issuer.js +40 -0
- package/dist/lib/auth/issuer.js.map +1 -0
- package/dist/lib/auth/issuer.test.d.ts +1 -0
- package/dist/lib/auth/issuer.test.js +95 -0
- package/dist/lib/auth/issuer.test.js.map +1 -0
- package/dist/lib/authentication/AuthenticationPlugin.d.ts +1 -1
- package/dist/lib/authentication/authentication.d.ts +19 -11
- package/dist/lib/authentication/components/CallbackHandler.js +12 -10
- package/dist/lib/authentication/components/CallbackHandler.js.map +1 -1
- package/dist/lib/authentication/components/OAuthErrorPage.d.ts +3 -0
- package/dist/lib/authentication/components/OAuthErrorPage.js +99 -0
- package/dist/lib/authentication/components/OAuthErrorPage.js.map +1 -0
- package/dist/lib/authentication/components/SignIn.js +10 -8
- package/dist/lib/authentication/components/SignIn.js.map +1 -1
- package/dist/lib/authentication/components/SignOut.js +6 -6
- package/dist/lib/authentication/components/SignOut.js.map +1 -1
- package/dist/lib/authentication/components/SignUp.js +5 -5
- package/dist/lib/authentication/components/SignUp.js.map +1 -1
- package/dist/lib/authentication/errors.d.ts +6 -12
- package/dist/lib/authentication/errors.js +2 -1
- package/dist/lib/authentication/errors.js.map +1 -1
- package/dist/lib/authentication/hook.d.ts +10 -2
- package/dist/lib/authentication/hook.js +12 -8
- package/dist/lib/authentication/hook.js.map +1 -1
- package/dist/lib/authentication/providers/auth0.d.ts +2 -2
- package/dist/lib/authentication/providers/auth0.js +10 -6
- package/dist/lib/authentication/providers/auth0.js.map +1 -1
- package/dist/lib/authentication/providers/azureb2c.d.ts +28 -0
- package/dist/lib/authentication/providers/azureb2c.js +147 -0
- package/dist/lib/authentication/providers/azureb2c.js.map +1 -0
- package/dist/lib/authentication/providers/clerk.d.ts +2 -2
- package/dist/lib/authentication/providers/clerk.js +9 -16
- package/dist/lib/authentication/providers/clerk.js.map +1 -1
- package/dist/lib/authentication/providers/firebase.d.ts +4 -0
- package/dist/lib/authentication/providers/firebase.js +215 -0
- package/dist/lib/authentication/providers/firebase.js.map +1 -0
- package/dist/lib/authentication/providers/openid.d.ts +10 -7
- package/dist/lib/authentication/providers/openid.js +55 -7
- package/dist/lib/authentication/providers/openid.js.map +1 -1
- package/dist/lib/authentication/providers/supabase/SupabaseAuthUI.d.ts +8 -0
- package/dist/lib/authentication/providers/supabase/SupabaseAuthUI.js +39 -0
- package/dist/lib/authentication/providers/supabase/SupabaseAuthUI.js.map +1 -0
- package/dist/lib/authentication/providers/supabase.d.ts +2 -2
- package/dist/lib/authentication/providers/supabase.js +32 -39
- package/dist/lib/authentication/providers/supabase.js.map +1 -1
- package/dist/lib/authentication/state.d.ts +11 -12
- package/dist/lib/authentication/state.js +21 -20
- package/dist/lib/authentication/state.js.map +1 -1
- package/dist/lib/authentication/ui/ZudokuAuthUi.d.ts +24 -0
- package/dist/lib/authentication/ui/ZudokuAuthUi.js +124 -0
- package/dist/lib/authentication/ui/ZudokuAuthUi.js.map +1 -0
- package/dist/lib/authentication/ui/icons/Apple.d.ts +3 -0
- package/dist/lib/authentication/ui/icons/Apple.js +4 -0
- package/dist/lib/authentication/ui/icons/Apple.js.map +1 -0
- package/dist/lib/authentication/ui/icons/Facebook.d.ts +3 -0
- package/dist/lib/authentication/ui/icons/Facebook.js +4 -0
- package/dist/lib/authentication/ui/icons/Facebook.js.map +1 -0
- package/dist/lib/authentication/ui/icons/Github.d.ts +3 -0
- package/dist/lib/authentication/ui/icons/Github.js +4 -0
- package/dist/lib/authentication/ui/icons/Github.js.map +1 -0
- package/dist/lib/authentication/ui/icons/Google.d.ts +3 -0
- package/dist/lib/authentication/ui/icons/Google.js +4 -0
- package/dist/lib/authentication/ui/icons/Google.js.map +1 -0
- package/dist/lib/authentication/ui/icons/Microsoft.d.ts +3 -0
- package/dist/lib/authentication/ui/icons/Microsoft.js +4 -0
- package/dist/lib/authentication/ui/icons/Microsoft.js.map +1 -0
- package/dist/lib/authentication/ui/icons/X.d.ts +3 -0
- package/dist/lib/authentication/ui/icons/X.js +4 -0
- package/dist/lib/authentication/ui/icons/X.js.map +1 -0
- package/dist/lib/authentication/use-broadcast/shared.d.ts +1 -1
- package/dist/lib/authentication/use-broadcast/shared.js +3 -3
- package/dist/lib/authentication/use-broadcast/shared.js.map +1 -1
- package/dist/lib/authentication/use-broadcast/useBroadcast.js +2 -2
- package/dist/lib/authentication/use-broadcast/useBroadcast.js.map +1 -1
- package/dist/lib/components/Autocomplete.d.ts +3 -1
- package/dist/lib/components/Autocomplete.js +7 -3
- package/dist/lib/components/Autocomplete.js.map +1 -1
- package/dist/lib/components/Banner.js +2 -2
- package/dist/lib/components/Banner.js.map +1 -1
- package/dist/lib/components/Bootstrap.d.ts +2 -2
- package/dist/lib/components/Bootstrap.js +0 -2
- package/dist/lib/components/Bootstrap.js.map +1 -1
- package/dist/lib/components/BuildCheck.d.ts +2 -1
- package/dist/lib/components/BuildCheck.js +12 -5
- package/dist/lib/components/BuildCheck.js.map +1 -1
- package/dist/lib/components/CategoryHeading.js +1 -1
- package/dist/lib/components/CategoryHeading.js.map +1 -1
- package/dist/lib/components/ErrorPage.js +2 -2
- package/dist/lib/components/ErrorPage.js.map +1 -1
- package/dist/lib/components/Footer.js +1 -1
- package/dist/lib/components/Footer.js.map +1 -1
- package/dist/lib/components/Framed.d.ts +7 -0
- package/dist/lib/components/Framed.js +26 -0
- package/dist/lib/components/Framed.js.map +1 -0
- package/dist/lib/components/Header.js +20 -21
- package/dist/lib/components/Header.js.map +1 -1
- package/dist/lib/components/Heading.d.ts +8 -4
- package/dist/lib/components/Heading.js +3 -7
- package/dist/lib/components/Heading.js.map +1 -1
- package/dist/lib/components/LanguageIcon.d.ts +3 -0
- package/dist/lib/components/LanguageIcon.js +163 -0
- package/dist/lib/components/LanguageIcon.js.map +1 -0
- package/dist/lib/components/Layout.js +5 -7
- package/dist/lib/components/Layout.js.map +1 -1
- package/dist/lib/components/Main.js +4 -4
- package/dist/lib/components/Main.js.map +1 -1
- package/dist/lib/components/Markdown.d.ts +0 -1
- package/dist/lib/components/Markdown.js +5 -6
- package/dist/lib/components/Markdown.js.map +1 -1
- package/dist/lib/components/Meta.d.ts +2 -0
- package/dist/lib/components/Meta.js +11 -0
- package/dist/lib/components/Meta.js.map +1 -0
- package/dist/lib/components/MobileTopNavigation.js +13 -7
- package/dist/lib/components/MobileTopNavigation.js.map +1 -1
- package/dist/lib/components/NotFoundPage.js +2 -2
- package/dist/lib/components/NotFoundPage.js.map +1 -1
- package/dist/lib/components/PageProgress.d.ts +1 -0
- package/dist/lib/components/PageProgress.js +20 -0
- package/dist/lib/components/PageProgress.js.map +1 -0
- package/dist/lib/components/Pagination.js +1 -1
- package/dist/lib/components/Pagination.js.map +1 -1
- package/dist/lib/components/PathRenderer.js +1 -1
- package/dist/lib/components/PathRenderer.js.map +1 -1
- package/dist/lib/components/Search.js +1 -1
- package/dist/lib/components/Search.js.map +1 -1
- package/dist/lib/components/Slot.js.map +1 -1
- package/dist/lib/components/Slot.test.js +7 -3
- package/dist/lib/components/Slot.test.js.map +1 -1
- package/dist/lib/components/StatusPage.js +4 -0
- package/dist/lib/components/StatusPage.js.map +1 -1
- package/dist/lib/components/TopNavigation.d.ts +7 -3
- package/dist/lib/components/TopNavigation.js +51 -45
- package/dist/lib/components/TopNavigation.js.map +1 -1
- package/dist/lib/components/Typography.d.ts +5 -0
- package/dist/lib/components/Typography.js +8 -0
- package/dist/lib/components/Typography.js.map +1 -0
- package/dist/lib/components/Zudoku.js +5 -5
- package/dist/lib/components/Zudoku.js.map +1 -1
- package/dist/lib/components/cache.d.ts +3 -1
- package/dist/lib/components/cache.js +3 -5
- package/dist/lib/components/cache.js.map +1 -1
- package/dist/lib/components/context/ComponentsContext.js.map +1 -1
- package/dist/lib/components/context/RouterEventsEmitter.js.map +1 -1
- package/dist/lib/components/context/SlotProvider.js.map +1 -1
- package/dist/lib/components/context/ViewportAnchorContext.js +1 -1
- package/dist/lib/components/context/ViewportAnchorContext.js.map +1 -1
- package/dist/lib/components/context/ZudokuContext.d.ts +3 -7
- package/dist/lib/components/context/ZudokuContext.js +66 -32
- package/dist/lib/components/context/ZudokuContext.js.map +1 -1
- package/dist/lib/components/context/ZudokuProvider.d.ts +1 -1
- package/dist/lib/components/index.d.ts +74 -726
- package/dist/lib/components/index.js +5 -16
- package/dist/lib/components/index.js.map +1 -1
- package/dist/lib/components/navigation/Navigation.d.ts +5 -0
- package/dist/lib/components/navigation/Navigation.js +12 -0
- package/dist/lib/components/navigation/Navigation.js.map +1 -0
- package/dist/lib/components/navigation/{SidebarBadge.d.ts → NavigationBadge.d.ts} +1 -1
- package/dist/lib/components/navigation/{SidebarBadge.js → NavigationBadge.js} +2 -2
- package/dist/lib/components/navigation/NavigationBadge.js.map +1 -0
- package/dist/lib/components/navigation/NavigationCategory.d.ts +5 -0
- package/dist/lib/components/navigation/{SidebarCategory.js → NavigationCategory.js} +21 -14
- package/dist/lib/components/navigation/NavigationCategory.js.map +1 -0
- package/dist/lib/components/navigation/NavigationItem.d.ts +6 -0
- package/dist/lib/components/navigation/NavigationItem.js +55 -0
- package/dist/lib/components/navigation/NavigationItem.js.map +1 -0
- package/dist/lib/components/navigation/{SidebarWrapper.d.ts → NavigationWrapper.d.ts} +1 -1
- package/dist/lib/components/navigation/{SidebarWrapper.js → NavigationWrapper.js} +5 -5
- package/dist/lib/components/navigation/NavigationWrapper.js.map +1 -0
- package/dist/lib/components/navigation/Toc.js +1 -1
- package/dist/lib/components/navigation/Toc.js.map +1 -1
- package/dist/lib/components/navigation/ZudokuLogo.d.ts +1 -1
- package/dist/lib/components/navigation/utils.d.ts +11 -11
- package/dist/lib/components/navigation/utils.js +32 -29
- package/dist/lib/components/navigation/utils.js.map +1 -1
- package/dist/lib/core/RouteGuard.d.ts +1 -1
- package/dist/lib/core/RouteGuard.js +19 -27
- package/dist/lib/core/RouteGuard.js.map +1 -1
- package/dist/lib/core/ZudokuContext.d.ts +17 -13
- package/dist/lib/core/ZudokuContext.js +47 -11
- package/dist/lib/core/ZudokuContext.js.map +1 -1
- package/dist/lib/core/__internal.d.ts +37 -0
- package/dist/lib/core/__internal.js +26 -0
- package/dist/lib/core/__internal.js.map +1 -0
- package/dist/lib/core/plugins.d.ts +4 -3
- package/dist/lib/core/plugins.js.map +1 -1
- package/dist/lib/core/router.d.ts +1 -0
- package/dist/lib/core/router.js +2 -0
- package/dist/lib/core/router.js.map +1 -0
- package/dist/lib/errors/ErrorAlert.js +2 -4
- package/dist/lib/errors/ErrorAlert.js.map +1 -1
- package/dist/lib/errors/RouterError.d.ts +3 -1
- package/dist/lib/errors/RouterError.js +3 -2
- package/dist/lib/errors/RouterError.js.map +1 -1
- package/dist/lib/errors/TopLevelError.d.ts +2 -2
- package/dist/lib/errors/TopLevelError.js +1 -2
- package/dist/lib/errors/TopLevelError.js.map +1 -1
- package/dist/lib/hooks/index.d.ts +28 -637
- package/dist/lib/hooks/useEvent.test.js +5 -3
- package/dist/lib/hooks/useEvent.test.js.map +1 -1
- package/dist/lib/hooks/useHotkey.d.ts +4 -0
- package/dist/lib/hooks/useHotkey.js +58 -0
- package/dist/lib/hooks/useHotkey.js.map +1 -0
- package/dist/lib/oas/graphql/circular.js +2 -2
- package/dist/lib/oas/graphql/circular.js.map +1 -1
- package/dist/lib/oas/graphql/index.js +39 -3
- package/dist/lib/oas/graphql/index.js.map +1 -1
- package/dist/lib/oas/parser/dereference/index.js +2 -1
- package/dist/lib/oas/parser/dereference/index.js.map +1 -1
- package/dist/lib/oas/parser/dereference/resolveRef.js +3 -3
- package/dist/lib/oas/parser/dereference/resolveRef.js.map +1 -1
- package/dist/lib/oas/parser/index.js +8 -4
- package/dist/lib/oas/parser/index.js.map +1 -1
- package/dist/lib/oas/parser/upgrade/index.js +2 -1
- package/dist/lib/oas/parser/upgrade/index.js.map +1 -1
- package/dist/lib/plugins/api-catalog/Catalog.d.ts +1 -1
- package/dist/lib/plugins/api-catalog/Catalog.js +7 -1
- package/dist/lib/plugins/api-catalog/Catalog.js.map +1 -1
- package/dist/lib/plugins/api-catalog/index.d.ts +6 -6
- package/dist/lib/plugins/api-catalog/index.js +10 -10
- package/dist/lib/plugins/api-catalog/index.js.map +1 -1
- package/dist/lib/plugins/api-keys/CreateApiKey.d.ts +1 -1
- package/dist/lib/plugins/api-keys/CreateApiKey.js +13 -3
- package/dist/lib/plugins/api-keys/CreateApiKey.js.map +1 -1
- package/dist/lib/plugins/api-keys/CreateApiKeyDialog.d.ts +11 -0
- package/dist/lib/plugins/api-keys/CreateApiKeyDialog.js +9 -0
- package/dist/lib/plugins/api-keys/CreateApiKeyDialog.js.map +1 -0
- package/dist/lib/plugins/api-keys/ProtectedRoute.js +4 -1
- package/dist/lib/plugins/api-keys/ProtectedRoute.js.map +1 -1
- package/dist/lib/plugins/api-keys/SettingsApiKeys.d.ts +1 -1
- package/dist/lib/plugins/api-keys/SettingsApiKeys.js +17 -24
- package/dist/lib/plugins/api-keys/SettingsApiKeys.js.map +1 -1
- package/dist/lib/plugins/api-keys/index.d.ts +11 -6
- package/dist/lib/plugins/api-keys/index.js +28 -13
- package/dist/lib/plugins/api-keys/index.js.map +1 -1
- package/dist/lib/plugins/custom-pages/index.d.ts +4 -6
- package/dist/lib/plugins/custom-pages/index.js +18 -10
- package/dist/lib/plugins/custom-pages/index.js.map +1 -1
- package/dist/lib/plugins/markdown/MdxPage.d.ts +3 -3
- package/dist/lib/plugins/markdown/MdxPage.js +56 -12
- package/dist/lib/plugins/markdown/MdxPage.js.map +1 -1
- package/dist/lib/plugins/markdown/assets/ChatGPTLogo.d.ts +2 -0
- package/dist/lib/plugins/markdown/assets/ChatGPTLogo.js +3 -0
- package/dist/lib/plugins/markdown/assets/ChatGPTLogo.js.map +1 -0
- package/dist/lib/plugins/markdown/assets/ClaudeLogo.d.ts +2 -0
- package/dist/lib/plugins/markdown/assets/ClaudeLogo.js +3 -0
- package/dist/lib/plugins/markdown/assets/ClaudeLogo.js.map +1 -0
- package/dist/lib/plugins/markdown/index.d.ts +13 -3
- package/dist/lib/plugins/markdown/index.js +9 -26
- package/dist/lib/plugins/markdown/index.js.map +1 -1
- package/dist/lib/plugins/openapi/CollapsibleCode.d.ts +1 -0
- package/dist/lib/plugins/openapi/CollapsibleCode.js +2 -1
- package/dist/lib/plugins/openapi/CollapsibleCode.js.map +1 -1
- package/dist/lib/plugins/openapi/ColorizedParam.js +4 -1
- package/dist/lib/plugins/openapi/ColorizedParam.js.map +1 -1
- package/dist/lib/plugins/openapi/Endpoint.js +2 -2
- package/dist/lib/plugins/openapi/Endpoint.js.map +1 -1
- package/dist/lib/plugins/openapi/GeneratedExampleSidecarBox.d.ts +5 -0
- package/dist/lib/plugins/openapi/GeneratedExampleSidecarBox.js +10 -0
- package/dist/lib/plugins/openapi/GeneratedExampleSidecarBox.js.map +1 -0
- package/dist/lib/plugins/openapi/MCPEndpoint.d.ts +5 -0
- package/dist/lib/plugins/openapi/MCPEndpoint.js +56 -0
- package/dist/lib/plugins/openapi/MCPEndpoint.js.map +1 -0
- package/dist/lib/plugins/openapi/OasProvider.d.ts +1 -1
- package/dist/lib/plugins/openapi/OasProvider.js +1 -0
- package/dist/lib/plugins/openapi/OasProvider.js.map +1 -1
- package/dist/lib/plugins/openapi/OperationList.d.ts +0 -2
- package/dist/lib/plugins/openapi/OperationList.js +33 -9
- package/dist/lib/plugins/openapi/OperationList.js.map +1 -1
- package/dist/lib/plugins/openapi/OperationListItem.d.ts +4 -3
- package/dist/lib/plugins/openapi/OperationListItem.js +14 -6
- package/dist/lib/plugins/openapi/OperationListItem.js.map +1 -1
- package/dist/lib/plugins/openapi/ParamInfos.d.ts +1 -1
- package/dist/lib/plugins/openapi/ParamInfos.js +11 -9
- package/dist/lib/plugins/openapi/ParamInfos.js.map +1 -1
- package/dist/lib/plugins/openapi/ParameterList.d.ts +2 -2
- package/dist/lib/plugins/openapi/ParameterList.js +8 -5
- package/dist/lib/plugins/openapi/ParameterList.js.map +1 -1
- package/dist/lib/plugins/openapi/ParameterListItem.d.ts +2 -3
- package/dist/lib/plugins/openapi/ParameterListItem.js +18 -7
- package/dist/lib/plugins/openapi/ParameterListItem.js.map +1 -1
- package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.d.ts +3 -4
- package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.js +3 -5
- package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.js.map +1 -1
- package/dist/lib/plugins/openapi/RequestBodySidecarBox.d.ts +11 -4
- package/dist/lib/plugins/openapi/RequestBodySidecarBox.js +5 -2
- package/dist/lib/plugins/openapi/RequestBodySidecarBox.js.map +1 -1
- package/dist/lib/plugins/openapi/ResponsesSidecarBox.d.ts +3 -2
- package/dist/lib/plugins/openapi/ResponsesSidecarBox.js +25 -4
- package/dist/lib/plugins/openapi/ResponsesSidecarBox.js.map +1 -1
- package/dist/lib/plugins/openapi/SchemaList.js +2 -3
- package/dist/lib/plugins/openapi/SchemaList.js.map +1 -1
- package/dist/lib/plugins/openapi/Sidecar.d.ts +5 -4
- package/dist/lib/plugins/openapi/Sidecar.js +57 -31
- package/dist/lib/plugins/openapi/Sidecar.js.map +1 -1
- package/dist/lib/plugins/openapi/SidecarBox.js +4 -4
- package/dist/lib/plugins/openapi/SidecarBox.js.map +1 -1
- package/dist/lib/plugins/openapi/SidecarExamples.d.ts +11 -6
- package/dist/lib/plugins/openapi/SidecarExamples.js +24 -43
- package/dist/lib/plugins/openapi/SidecarExamples.js.map +1 -1
- package/dist/lib/plugins/openapi/StaggeredRender.d.ts +1 -1
- package/dist/lib/plugins/openapi/client/GraphQLContext.d.ts +1 -1
- package/dist/lib/plugins/openapi/client/createServer.js +1 -2
- package/dist/lib/plugins/openapi/client/createServer.js.map +1 -1
- package/dist/lib/plugins/openapi/client/useCreateQuery.js.map +1 -1
- package/dist/lib/plugins/openapi/components/ConstValue.js +1 -1
- package/dist/lib/plugins/openapi/components/ConstValue.js.map +1 -1
- package/dist/lib/plugins/openapi/components/EnumValues.js +1 -1
- package/dist/lib/plugins/openapi/components/EnumValues.js.map +1 -1
- package/dist/lib/plugins/openapi/components/NonHighlightedCode.d.ts +4 -0
- package/dist/lib/plugins/openapi/components/NonHighlightedCode.js +5 -0
- package/dist/lib/plugins/openapi/components/NonHighlightedCode.js.map +1 -0
- package/dist/lib/plugins/openapi/components/ResponseContent.js +5 -6
- package/dist/lib/plugins/openapi/components/ResponseContent.js.map +1 -1
- package/dist/lib/plugins/openapi/context.d.ts +1 -1
- package/dist/lib/plugins/openapi/graphql/fragment-masking.d.ts +1 -1
- package/dist/lib/plugins/openapi/graphql/gql.d.ts +3 -3
- package/dist/lib/plugins/openapi/graphql/gql.js +3 -3
- package/dist/lib/plugins/openapi/graphql/gql.js.map +1 -1
- package/dist/lib/plugins/openapi/graphql/graphql.d.ts +15 -5
- package/dist/lib/plugins/openapi/graphql/graphql.js +14 -2
- package/dist/lib/plugins/openapi/graphql/graphql.js.map +1 -1
- package/dist/lib/plugins/openapi/index.d.ts +5 -5
- package/dist/lib/plugins/openapi/index.js +57 -29
- package/dist/lib/plugins/openapi/index.js.map +1 -1
- package/dist/lib/plugins/openapi/interfaces.d.ts +21 -7
- package/dist/lib/plugins/openapi/playground/BodyPanel.d.ts +3 -3
- package/dist/lib/plugins/openapi/playground/BodyPanel.js +71 -15
- package/dist/lib/plugins/openapi/playground/BodyPanel.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/CollapsibleHeader.d.ts +8 -0
- package/dist/lib/plugins/openapi/playground/CollapsibleHeader.js +11 -0
- package/dist/lib/plugins/openapi/playground/CollapsibleHeader.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/ExamplesDropdown.d.ts +3 -3
- package/dist/lib/plugins/openapi/playground/ExamplesDropdown.js +2 -2
- package/dist/lib/plugins/openapi/playground/ExamplesDropdown.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/Headers.d.ts +5 -4
- package/dist/lib/plugins/openapi/playground/Headers.js +42 -80
- package/dist/lib/plugins/openapi/playground/Headers.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/IdentityDialog.d.ts +1 -1
- package/dist/lib/plugins/openapi/playground/IdentityDialog.js +2 -1
- package/dist/lib/plugins/openapi/playground/IdentityDialog.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/IdentitySelector.d.ts +1 -1
- package/dist/lib/plugins/openapi/playground/IdentitySelector.js +1 -2
- package/dist/lib/plugins/openapi/playground/IdentitySelector.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/ParamsGrid.d.ts +10 -2
- package/dist/lib/plugins/openapi/playground/ParamsGrid.js +9 -2
- package/dist/lib/plugins/openapi/playground/ParamsGrid.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/PathParams.js +2 -4
- package/dist/lib/plugins/openapi/playground/PathParams.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/Playground.d.ts +9 -2
- package/dist/lib/plugins/openapi/playground/Playground.js +117 -64
- package/dist/lib/plugins/openapi/playground/Playground.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js +5 -2
- package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/QueryParams.d.ts +3 -3
- package/dist/lib/plugins/openapi/playground/QueryParams.js +20 -29
- package/dist/lib/plugins/openapi/playground/QueryParams.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/RequestLoginDialog.d.ts +2 -1
- package/dist/lib/plugins/openapi/playground/RequestLoginDialog.js +10 -2
- package/dist/lib/plugins/openapi/playground/RequestLoginDialog.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/Spinner.d.ts +2 -0
- package/dist/lib/plugins/openapi/playground/Spinner.js +63 -0
- package/dist/lib/plugins/openapi/playground/Spinner.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/fileUtils.js +1 -1
- package/dist/lib/plugins/openapi/playground/fileUtils.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/rememberedIdentity.d.ts +5 -3
- package/dist/lib/plugins/openapi/playground/request-panel/MultipartField.d.ts +8 -0
- package/dist/lib/plugins/openapi/playground/request-panel/MultipartField.js +19 -0
- package/dist/lib/plugins/openapi/playground/request-panel/MultipartField.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/request-panel/UrlPath.d.ts +3 -0
- package/dist/lib/plugins/openapi/playground/request-panel/UrlPath.js +13 -0
- package/dist/lib/plugins/openapi/playground/request-panel/UrlPath.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/request-panel/UrlQueryParams.d.ts +1 -0
- package/dist/lib/plugins/openapi/playground/request-panel/UrlQueryParams.js +12 -0
- package/dist/lib/plugins/openapi/playground/request-panel/UrlQueryParams.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/request-panel/fieldManager/useKeyValueFieldManager.test.d.ts +1 -0
- package/dist/lib/plugins/openapi/playground/request-panel/fieldManager/useKeyValueFieldManager.test.js +540 -0
- package/dist/lib/plugins/openapi/playground/request-panel/fieldManager/useKeyValueFieldManager.test.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/request-panel/useKeyValueFieldManager.d.ts +40 -0
- package/dist/lib/plugins/openapi/playground/request-panel/useKeyValueFieldManager.js +205 -0
- package/dist/lib/plugins/openapi/playground/request-panel/useKeyValueFieldManager.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/result-panel/Highlight.d.ts +12 -0
- package/dist/lib/plugins/openapi/playground/result-panel/Highlight.js +11 -0
- package/dist/lib/plugins/openapi/playground/result-panel/Highlight.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/result-panel/ResponseStatusBar.d.ts +8 -0
- package/dist/lib/plugins/openapi/playground/result-panel/ResponseStatusBar.js +71 -0
- package/dist/lib/plugins/openapi/playground/result-panel/ResponseStatusBar.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.d.ts +7 -4
- package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.js +40 -33
- package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.d.ts +6 -4
- package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.js +8 -10
- package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.d.ts +1 -1
- package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.js +1 -1
- package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/useRememberSkipLoginDialog.d.ts +5 -3
- package/dist/lib/plugins/openapi/playground/useRememberSkipLoginDialog.js +2 -0
- package/dist/lib/plugins/openapi/playground/useRememberSkipLoginDialog.js.map +1 -1
- package/dist/lib/plugins/openapi/processors/removeExtensions.test.js +1 -0
- package/dist/lib/plugins/openapi/processors/removeExtensions.test.js.map +1 -1
- package/dist/lib/plugins/openapi/processors/removeParameters.test.js +1 -0
- package/dist/lib/plugins/openapi/processors/removeParameters.test.js.map +1 -1
- package/dist/lib/plugins/openapi/processors/traverse.d.ts +1 -1
- package/dist/lib/plugins/openapi/processors/traverse.js.map +1 -1
- package/dist/lib/plugins/openapi/schema/SchemaExampleAndDefault.js +3 -3
- package/dist/lib/plugins/openapi/schema/SchemaExampleAndDefault.js.map +1 -1
- package/dist/lib/plugins/openapi/schema/SchemaPropertyItem.d.ts +0 -3
- package/dist/lib/plugins/openapi/schema/SchemaPropertyItem.js +22 -22
- package/dist/lib/plugins/openapi/schema/SchemaPropertyItem.js.map +1 -1
- package/dist/lib/plugins/openapi/schema/SchemaView.d.ts +3 -2
- package/dist/lib/plugins/openapi/schema/SchemaView.js +28 -17
- package/dist/lib/plugins/openapi/schema/SchemaView.js.map +1 -1
- package/dist/lib/plugins/openapi/schema/UnionView.d.ts +5 -0
- package/dist/lib/plugins/openapi/schema/UnionView.js +33 -0
- package/dist/lib/plugins/openapi/schema/UnionView.js.map +1 -0
- package/dist/lib/plugins/openapi/schema/union-helpers.d.ts +28 -0
- package/dist/lib/plugins/openapi/schema/union-helpers.js +71 -0
- package/dist/lib/plugins/openapi/schema/union-helpers.js.map +1 -0
- package/dist/lib/plugins/openapi/schema/utils.d.ts +0 -7
- package/dist/lib/plugins/openapi/schema/utils.js +3 -8
- package/dist/lib/plugins/openapi/schema/utils.js.map +1 -1
- package/dist/lib/plugins/openapi/state.d.ts +5 -3
- package/dist/lib/plugins/openapi/util/createHttpSnippet.d.ts +1 -1
- package/dist/lib/plugins/openapi/util/createHttpSnippet.js +1 -1
- package/dist/lib/plugins/openapi/util/createHttpSnippet.js.map +1 -1
- package/dist/lib/plugins/openapi/util/createNavigationCategory.d.ts +9 -0
- package/dist/lib/plugins/openapi/util/{createSidebarCategory.js → createNavigationCategory.js} +6 -4
- package/dist/lib/plugins/openapi/util/createNavigationCategory.js.map +1 -0
- package/dist/lib/plugins/openapi/util/generateSchemaExample.d.ts +1 -1
- package/dist/lib/plugins/openapi/util/generateSchemaExample.js +10 -13
- package/dist/lib/plugins/openapi/util/generateSchemaExample.js.map +1 -1
- package/dist/lib/plugins/openapi/util/getRoutes.js +3 -3
- package/dist/lib/plugins/openapi/util/getRoutes.js.map +1 -1
- package/dist/lib/plugins/openapi/util/methodColorMap.d.ts +1 -1
- package/dist/lib/plugins/search-inkeep/index.d.ts +5 -22
- package/dist/lib/plugins/search-inkeep/index.js +35 -29
- package/dist/lib/plugins/search-inkeep/index.js.map +1 -1
- package/dist/lib/plugins/search-inkeep/inkeep.d.ts +5 -21
- package/dist/lib/plugins/search-inkeep/inkeep.js +10 -19
- package/dist/lib/plugins/search-inkeep/inkeep.js.map +1 -1
- package/dist/lib/plugins/search-pagefind/PagefindSearch.js +2 -2
- package/dist/lib/plugins/search-pagefind/PagefindSearch.js.map +1 -1
- package/dist/lib/plugins/search-pagefind/ResultList.d.ts +2 -2
- package/dist/lib/plugins/search-pagefind/ResultList.js +15 -5
- package/dist/lib/plugins/search-pagefind/ResultList.js.map +1 -1
- package/dist/lib/plugins/search-pagefind/get-results.js +0 -1
- package/dist/lib/plugins/search-pagefind/get-results.js.map +1 -1
- package/dist/lib/shiki.d.ts +7 -6
- package/dist/lib/shiki.js +31 -8
- package/dist/lib/shiki.js.map +1 -1
- package/dist/lib/ui/ActionButton.js +1 -1
- package/dist/lib/ui/ActionButton.js.map +1 -1
- package/dist/lib/ui/Alert.d.ts +6 -5
- package/dist/lib/ui/Alert.js +12 -10
- package/dist/lib/ui/Alert.js.map +1 -1
- package/dist/lib/ui/Badge.d.ts +4 -4
- package/dist/lib/ui/Badge.js +9 -7
- package/dist/lib/ui/Badge.js.map +1 -1
- package/dist/lib/ui/Breadcrumb.js +1 -1
- package/dist/lib/ui/Breadcrumb.js.map +1 -1
- package/dist/lib/ui/Button.d.ts +2 -2
- package/dist/lib/ui/Button.js +1 -0
- package/dist/lib/ui/Button.js.map +1 -1
- package/dist/lib/ui/Callout.d.ts +5 -5
- package/dist/lib/ui/Callout.js +5 -5
- package/dist/lib/ui/Callout.js.map +1 -1
- package/dist/lib/ui/Checkbox.d.ts +2 -2
- package/dist/lib/ui/Checkbox.js +4 -4
- package/dist/lib/ui/Checkbox.js.map +1 -1
- package/dist/lib/ui/CodeBlock.d.ts +2 -4
- package/dist/lib/ui/CodeBlock.js +10 -10
- package/dist/lib/ui/CodeBlock.js.map +1 -1
- package/dist/lib/ui/Collapsible.d.ts +4 -4
- package/dist/lib/ui/Collapsible.js +11 -4
- package/dist/lib/ui/Collapsible.js.map +1 -1
- package/dist/lib/ui/Command.d.ts +5 -5
- package/dist/lib/ui/Command.js +2 -6
- package/dist/lib/ui/Command.js.map +1 -1
- package/dist/lib/ui/Dialog.d.ts +12 -18
- package/dist/lib/ui/Dialog.js +31 -18
- package/dist/lib/ui/Dialog.js.map +1 -1
- package/dist/lib/ui/EmbeddedCodeBlock.d.ts +16 -0
- package/dist/lib/ui/EmbeddedCodeBlock.js +19 -0
- package/dist/lib/ui/EmbeddedCodeBlock.js.map +1 -0
- package/dist/lib/ui/Form.d.ts +2 -2
- package/dist/lib/ui/Frame.d.ts +8 -0
- package/dist/lib/ui/Frame.js +22 -0
- package/dist/lib/ui/Frame.js.map +1 -0
- package/dist/lib/ui/Item.d.ts +23 -0
- package/dist/lib/ui/Item.js +67 -0
- package/dist/lib/ui/Item.js.map +1 -0
- package/dist/lib/ui/NativeSelect.d.ts +5 -0
- package/dist/lib/ui/NativeSelect.js +14 -0
- package/dist/lib/ui/NativeSelect.js.map +1 -0
- package/dist/lib/ui/Pagination.d.ts +1 -1
- package/dist/lib/ui/Pagination.js +1 -1
- package/dist/lib/ui/Pagination.js.map +1 -1
- package/dist/lib/ui/ReactComponentDoc.d.ts +20 -0
- package/dist/lib/ui/ReactComponentDoc.js +10 -0
- package/dist/lib/ui/ReactComponentDoc.js.map +1 -0
- package/dist/lib/ui/Secret.d.ts +18 -0
- package/dist/lib/ui/Secret.js +26 -0
- package/dist/lib/ui/Secret.js.map +1 -0
- package/dist/lib/ui/Select.d.ts +13 -11
- package/dist/lib/ui/Select.js +34 -23
- package/dist/lib/ui/Select.js.map +1 -1
- package/dist/lib/ui/Separator.d.ts +4 -0
- package/dist/lib/ui/Separator.js +8 -0
- package/dist/lib/ui/Separator.js.map +1 -0
- package/dist/lib/ui/SyntaxHighlight.d.ts +4 -1
- package/dist/lib/ui/SyntaxHighlight.js +3 -2
- package/dist/lib/ui/SyntaxHighlight.js.map +1 -1
- package/dist/lib/ui/ToggleGroup.d.ts +1 -1
- package/dist/lib/ui/Tooltip.d.ts +7 -7
- package/dist/lib/ui/Tooltip.js +16 -10
- package/dist/lib/ui/Tooltip.js.map +1 -1
- package/dist/lib/ui/Value.d.ts +5 -0
- package/dist/lib/ui/Value.js +13 -0
- package/dist/lib/ui/Value.js.map +1 -0
- package/dist/lib/util/MdxComponents.d.ts +11 -2
- package/dist/lib/util/MdxComponents.js +9 -4
- package/dist/lib/util/MdxComponents.js.map +1 -1
- package/dist/lib/util/cn.js.map +1 -1
- package/dist/lib/util/createVariantComponent.d.ts +7 -4
- package/dist/lib/util/createVariantComponent.js +5 -2
- package/dist/lib/util/createVariantComponent.js.map +1 -1
- package/dist/lib/util/flattenAllOf.d.ts +4 -0
- package/dist/lib/util/flattenAllOf.js +65 -0
- package/dist/lib/util/flattenAllOf.js.map +1 -0
- package/dist/lib/util/flattenAllOf.test.d.ts +1 -0
- package/dist/lib/util/flattenAllOf.test.js +532 -0
- package/dist/lib/util/flattenAllOf.test.js.map +1 -0
- package/dist/lib/util/groupBy.js +1 -0
- package/dist/lib/util/groupBy.js.map +1 -1
- package/dist/lib/util/humanFileSize.js +1 -1
- package/dist/lib/util/humanFileSize.js.map +1 -1
- package/dist/lib/util/invariant.d.ts +6 -5
- package/dist/lib/util/invariant.js +4 -2
- package/dist/lib/util/invariant.js.map +1 -1
- package/dist/lib/util/os.d.ts +2 -0
- package/dist/lib/util/os.js +21 -0
- package/dist/lib/util/os.js.map +1 -0
- package/dist/lib/util/pastellize.js +4 -4
- package/dist/lib/util/pastellize.js.map +1 -1
- package/dist/lib/util/syncZustandState.d.ts +5 -0
- package/dist/lib/util/syncZustandState.js +14 -0
- package/dist/lib/util/syncZustandState.js.map +1 -0
- package/dist/lib/util/traverse.d.ts +1 -0
- package/dist/lib/util/traverse.js +25 -0
- package/dist/lib/util/traverse.js.map +1 -1
- package/dist/lib/util/useCopyToClipboard.d.ts +1 -0
- package/dist/lib/util/useCopyToClipboard.js +11 -0
- package/dist/lib/util/useCopyToClipboard.js.map +1 -0
- package/dist/lib/util/useIsomorphicLayoutEffect.js.map +1 -1
- package/dist/lib/util/useScrollToAnchor.js +5 -3
- package/dist/lib/util/useScrollToAnchor.js.map +1 -1
- package/dist/ts.d.ts +6 -0
- package/dist/ts.js +61 -0
- package/dist/ts.js.map +1 -0
- package/dist/vite/api/SchemaManager.d.ts +7 -5
- package/dist/vite/api/SchemaManager.js +62 -47
- package/dist/vite/api/SchemaManager.js.map +1 -1
- package/dist/vite/api/SchemaManager.test.js +6 -6
- package/dist/vite/api/SchemaManager.test.js.map +1 -1
- package/dist/vite/api/schema-codegen.js +71 -22
- package/dist/vite/api/schema-codegen.js.map +1 -1
- package/dist/vite/api/schema-codegen.test.js +156 -1
- package/dist/vite/api/schema-codegen.test.js.map +1 -1
- package/dist/vite/build.js +11 -35
- package/dist/vite/build.js.map +1 -1
- package/dist/vite/config.js +18 -3
- package/dist/vite/config.js.map +1 -1
- package/dist/vite/css/plugin.js +11 -0
- package/dist/vite/css/plugin.js.map +1 -1
- package/dist/vite/dev-server.js +12 -4
- package/dist/vite/dev-server.js.map +1 -1
- package/dist/vite/error-handler.d.ts +2 -2
- package/dist/vite/error-handler.js.map +1 -1
- package/dist/vite/llms.d.ts +12 -0
- package/dist/vite/llms.js +66 -0
- package/dist/vite/llms.js.map +1 -0
- package/dist/vite/mdx/remark-inject-filepath.d.ts +3 -0
- package/dist/vite/mdx/remark-inject-filepath.js +6 -0
- package/dist/vite/mdx/remark-inject-filepath.js.map +1 -0
- package/dist/vite/mdx/remark-last-modified.d.ts +3 -0
- package/dist/vite/mdx/remark-last-modified.js +28 -0
- package/dist/vite/mdx/remark-last-modified.js.map +1 -0
- package/dist/vite/mdx/remark-link-rewrite.d.ts +2 -0
- package/dist/vite/mdx/remark-link-rewrite.js +20 -0
- package/dist/vite/mdx/remark-link-rewrite.js.map +1 -0
- package/dist/vite/mdx/remark-normalize-image-url.d.ts +2 -0
- package/dist/vite/mdx/remark-normalize-image-url.js +12 -0
- package/dist/vite/mdx/remark-normalize-image-url.js.map +1 -0
- package/dist/vite/{remarkStaticGeneration.d.ts → mdx/remark-static-generation.d.ts} +2 -2
- package/dist/vite/{remarkStaticGeneration.js → mdx/remark-static-generation.js} +2 -2
- package/dist/vite/mdx/remark-static-generation.js.map +1 -0
- package/dist/vite/mdx/utils.d.ts +2 -0
- package/dist/vite/mdx/utils.js +31 -0
- package/dist/vite/mdx/utils.js.map +1 -0
- package/dist/vite/output.d.ts +1 -1
- package/dist/vite/output.js +1 -1
- package/dist/vite/output.js.map +1 -1
- package/dist/vite/plugin-api-keys.d.ts +1 -1
- package/dist/vite/plugin-api-keys.js +1 -1
- package/dist/vite/plugin-api-keys.js.map +1 -1
- package/dist/vite/plugin-api.js +29 -28
- package/dist/vite/plugin-api.js.map +1 -1
- package/dist/vite/plugin-auth.d.ts +1 -1
- package/dist/vite/plugin-auth.js +1 -1
- package/dist/vite/plugin-auth.js.map +1 -1
- package/dist/vite/plugin-component.d.ts +1 -1
- package/dist/vite/plugin-config-reload.d.ts +1 -1
- package/dist/vite/plugin-config-reload.js +2 -0
- package/dist/vite/plugin-config-reload.js.map +1 -1
- package/dist/vite/plugin-config.d.ts +1 -1
- package/dist/vite/plugin-config.js +2 -1
- package/dist/vite/plugin-config.js.map +1 -1
- package/dist/vite/plugin-custom-pages.d.ts +1 -1
- package/dist/vite/plugin-custom-pages.js +3 -3
- package/dist/vite/plugin-custom-pages.js.map +1 -1
- package/dist/vite/plugin-docs.d.ts +9 -0
- package/dist/vite/plugin-docs.js +92 -62
- package/dist/vite/plugin-docs.js.map +1 -1
- package/dist/vite/plugin-frontmatter.js +7 -3
- package/dist/vite/plugin-frontmatter.js.map +1 -1
- package/dist/vite/plugin-markdown-export.d.ts +21 -0
- package/dist/vite/plugin-markdown-export.js +141 -0
- package/dist/vite/plugin-markdown-export.js.map +1 -0
- package/dist/vite/plugin-mdx.d.ts +2 -2
- package/dist/vite/plugin-mdx.js +57 -85
- package/dist/vite/plugin-mdx.js.map +1 -1
- package/dist/vite/plugin-metadata.d.ts +1 -1
- package/dist/vite/plugin-navigation.d.ts +4 -0
- package/dist/vite/plugin-navigation.js +67 -0
- package/dist/vite/plugin-navigation.js.map +1 -0
- package/dist/vite/plugin-redirect.d.ts +1 -1
- package/dist/vite/plugin-redirect.js +1 -1
- package/dist/vite/plugin-redirect.js.map +1 -1
- package/dist/vite/plugin-search.d.ts +1 -1
- package/dist/vite/plugin-search.js +1 -1
- package/dist/vite/plugin-search.js.map +1 -1
- package/dist/vite/plugin-shiki-register.js +1 -1
- package/dist/vite/plugin-shiki-register.js.map +1 -1
- package/dist/vite/plugin-theme.d.ts +8 -0
- package/dist/vite/plugin-theme.js +283 -0
- package/dist/vite/plugin-theme.js.map +1 -0
- package/dist/vite/plugin-theme.test.d.ts +1 -0
- package/dist/vite/plugin-theme.test.js +314 -0
- package/dist/vite/plugin-theme.test.js.map +1 -0
- package/dist/vite/plugin.d.ts +1 -1
- package/dist/vite/plugin.js +8 -8
- package/dist/vite/plugin.js.map +1 -1
- package/dist/vite/prerender/FileWritingResponse.js +5 -3
- package/dist/vite/prerender/FileWritingResponse.js.map +1 -1
- package/dist/vite/prerender/InMemoryResponse.js +3 -1
- package/dist/vite/prerender/InMemoryResponse.js.map +1 -1
- package/dist/vite/prerender/prerender.js +38 -5
- package/dist/vite/prerender/prerender.js.map +1 -1
- package/dist/vite/prerender/worker.d.ts +1 -1
- package/dist/vite/prerender/worker.js +5 -1
- package/dist/vite/prerender/worker.js.map +1 -1
- package/dist/vite/reporter.js +2 -2
- package/dist/vite/reporter.js.map +1 -1
- package/dist/vite/shadcn-registry.d.ts +20 -0
- package/dist/vite/shadcn-registry.js +29 -0
- package/dist/vite/shadcn-registry.js.map +1 -0
- package/dist/vite/sitemap.js +14 -13
- package/dist/vite/sitemap.js.map +1 -1
- package/dist/zuplo/enrich-with-zuplo-mcp.d.ts +4 -0
- package/dist/zuplo/enrich-with-zuplo-mcp.js +117 -0
- package/dist/zuplo/enrich-with-zuplo-mcp.js.map +1 -0
- package/dist/zuplo/enrich-with-zuplo.d.ts +1 -0
- package/dist/zuplo/enrich-with-zuplo.js +4 -4
- package/dist/zuplo/enrich-with-zuplo.js.map +1 -1
- package/dist/zuplo/policy-types.js +0 -1
- package/dist/zuplo/policy-types.js.map +1 -1
- package/dist/zuplo/with-zuplo-processors.js +2 -0
- package/dist/zuplo/with-zuplo-processors.js.map +1 -1
- package/dist/zuplo/with-zuplo.js +1 -1
- package/dist/zuplo/with-zuplo.js.map +1 -1
- package/lib/{Button-BE9IVkWV.js → Button-B3ucvvQw.js} +8 -7
- package/lib/Button-B3ucvvQw.js.map +1 -0
- package/lib/{Card-DPhGbYUM.js → Card-KFniaZn5.js} +3 -3
- package/lib/{Card-DPhGbYUM.js.map → Card-KFniaZn5.js.map} +1 -1
- package/lib/CategoryHeading-DhmodDcq.js +17 -0
- package/lib/CategoryHeading-DhmodDcq.js.map +1 -0
- package/lib/ClientOnly-E7hGysn1.js.map +1 -1
- package/lib/Command-CUcrW3qs.js +134 -0
- package/lib/Command-CUcrW3qs.js.map +1 -0
- package/lib/Dialog-BQciPiHN.js +144 -0
- package/lib/Dialog-BQciPiHN.js.map +1 -0
- package/lib/{Drawer-BzkOKwgC.js → Drawer-Ci7XwhqT.js} +87 -87
- package/lib/{Drawer-BzkOKwgC.js.map → Drawer-Ci7XwhqT.js.map} +1 -1
- package/lib/DropdownMenu-BZ2NKQ3K.js +126 -0
- package/lib/DropdownMenu-BZ2NKQ3K.js.map +1 -0
- package/lib/{Markdown-Cm4kj26S.js → ErrorAlert-_1Zmhr68.js} +3145 -3019
- package/lib/ErrorAlert-_1Zmhr68.js.map +1 -0
- package/lib/MdxPage-B2t1EShN.js +240 -0
- package/lib/MdxPage-B2t1EShN.js.map +1 -0
- package/lib/OAuthErrorPage-DnKnq4xK.js +150 -0
- package/lib/OAuthErrorPage-DnKnq4xK.js.map +1 -0
- package/lib/OasProvider-BhuIkD4Z.js +36 -0
- package/lib/OasProvider-BhuIkD4Z.js.map +1 -0
- package/lib/OperationList-D8EDc9v7.js +5688 -0
- package/lib/OperationList-D8EDc9v7.js.map +1 -0
- package/lib/Pagination-hk-llhpw.js +37 -0
- package/lib/Pagination-hk-llhpw.js.map +1 -0
- package/lib/RouteGuard-Brz95MSt.js +77 -0
- package/lib/RouteGuard-Brz95MSt.js.map +1 -0
- package/lib/RouterError-CMaIfdjb.js +42 -0
- package/lib/RouterError-CMaIfdjb.js.map +1 -0
- package/lib/{SchemaList-BWaNlmUJ.js → SchemaList-E6lF7dID.js} +31 -41
- package/lib/SchemaList-E6lF7dID.js.map +1 -0
- package/lib/SchemaView-CIv-OXgv.js +572 -0
- package/lib/SchemaView-CIv-OXgv.js.map +1 -0
- package/lib/Select-DFRCS31-.js +399 -0
- package/lib/Select-DFRCS31-.js.map +1 -0
- package/lib/SignUp-sGYAsj2K.js +50 -0
- package/lib/SignUp-sGYAsj2K.js.map +1 -0
- package/lib/{Spinner-mNLZ6awP.js → Spinner-CI6bRyZw.js} +2 -2
- package/lib/{Spinner-mNLZ6awP.js.map → Spinner-CI6bRyZw.js.map} +1 -1
- package/lib/{SyntaxHighlight-Cz6Me7-F.js → SyntaxHighlight-C19vH0V_.js} +1838 -1765
- package/lib/SyntaxHighlight-C19vH0V_.js.map +1 -0
- package/lib/{Toc-Qe7A4uj_.js → Toc-DbWS75JZ.js} +7 -7
- package/lib/Toc-DbWS75JZ.js.map +1 -0
- package/lib/ZudokuContext-BUZ5hkWB.js +1508 -0
- package/lib/ZudokuContext-BUZ5hkWB.js.map +1 -0
- package/lib/c-B-NUhs61.js +46 -0
- package/lib/c-B-NUhs61.js.map +1 -0
- package/lib/chunk-PVWAREVJ-BMhpCH5D.js +7965 -0
- package/lib/chunk-PVWAREVJ-BMhpCH5D.js.map +1 -0
- package/lib/{circular-w5eL5J8a.js → circular-BoYo7au5.js} +30 -30
- package/lib/{circular-w5eL5J8a.js.map → circular-BoYo7au5.js.map} +1 -1
- package/lib/{cn-wvCW-ho6.js → cn-dYga0KKN.js} +2 -2
- package/lib/cn-dYga0KKN.js.map +1 -0
- package/lib/commonlisp-De080z23.js +28 -0
- package/lib/commonlisp-De080z23.js.map +1 -0
- package/lib/cpp-79Paht7T.js +53 -0
- package/lib/cpp-79Paht7T.js.map +1 -0
- package/lib/{createServer-p3yUA8Bu.js → createServer-B_BZ7xX8.js} +5108 -4774
- package/lib/createServer-B_BZ7xX8.js.map +1 -0
- package/lib/csharp-D8MIL50B.js +53 -0
- package/lib/csharp-D8MIL50B.js.map +1 -0
- package/lib/css-Bt6hr1td.js +54 -0
- package/lib/css-Bt6hr1td.js.map +1 -0
- package/lib/dart-B0vy1jWB.js +60 -0
- package/lib/dart-B0vy1jWB.js.map +1 -0
- package/lib/elixir-Ds8r0sF8.js +25 -0
- package/lib/elixir-Ds8r0sF8.js.map +1 -0
- package/lib/errors-CD873hrG.js +45 -0
- package/lib/errors-CD873hrG.js.map +1 -0
- package/lib/go-D2VsmIOS.js +25 -0
- package/lib/go-D2VsmIOS.js.map +1 -0
- package/lib/graphql-BtA6M4m5.js +25 -0
- package/lib/graphql-BtA6M4m5.js.map +1 -0
- package/lib/hook-CMeoxziF.js +40 -0
- package/lib/hook-CMeoxziF.js.map +1 -0
- package/lib/html-MGnI2uzP.js +33 -0
- package/lib/html-MGnI2uzP.js.map +1 -0
- package/lib/{index-BvvmIczU.js → index-BK0jKRrX.js} +166 -50
- package/lib/index-BK0jKRrX.js.map +1 -0
- package/lib/index-CrcNWbel.js.map +1 -1
- package/lib/index-DI5SPFK9.js.map +1 -1
- package/lib/index-HNVs5cgX.js +3667 -0
- package/lib/index-HNVs5cgX.js.map +1 -0
- package/lib/{index-zddirpDj.js → index-nGbmHh_A.js} +227 -222
- package/lib/index-nGbmHh_A.js.map +1 -0
- package/lib/index-pMMX55GH.js +1059 -0
- package/lib/index-pMMX55GH.js.map +1 -0
- package/lib/index.esm-BYObtETB.js +1294 -0
- package/lib/index.esm-BYObtETB.js.map +1 -0
- package/lib/{index.esm-BFcSKCe-.js → index.esm-BnYHxCYC.js} +2 -2
- package/lib/{index.esm-BFcSKCe-.js.map → index.esm-BnYHxCYC.js.map} +1 -1
- package/lib/{invariant-DAFpPywt.js → invariant-Bm-FVUQE.js} +2 -6
- package/lib/invariant-Bm-FVUQE.js.map +1 -0
- package/lib/java-CVLzHfb1.js +53 -0
- package/lib/java-CVLzHfb1.js.map +1 -0
- package/lib/javascript-CcmIpL4G.js +10 -0
- package/lib/javascript-CcmIpL4G.js.map +1 -0
- package/lib/json-4AyP4uiY.js +25 -0
- package/lib/json-4AyP4uiY.js.map +1 -0
- package/lib/{jsx-runtime-C5mzlN2N.js → jsx-runtime-BzflLqGi.js} +110 -112
- package/lib/jsx-runtime-BzflLqGi.js.map +1 -0
- package/lib/kotlin-v2plddBQ.js +37 -0
- package/lib/kotlin-v2plddBQ.js.map +1 -0
- package/lib/markdown-DYGWCmGQ.js +25 -0
- package/lib/markdown-DYGWCmGQ.js.map +1 -0
- package/lib/mdx-CHwYvXd4.js +32 -0
- package/lib/mdx-CHwYvXd4.js.map +1 -0
- package/lib/{mutation-BSeQ8pEK.js → mutation-BSU0xu4m.js} +2 -2
- package/lib/{mutation-BSeQ8pEK.js.map → mutation-BSU0xu4m.js.map} +1 -1
- package/lib/objectivec-HZY8shkd.js +32 -0
- package/lib/objectivec-HZY8shkd.js.map +1 -0
- package/lib/ocaml-DqsdDdwb.js +52 -0
- package/lib/ocaml-DqsdDdwb.js.map +1 -0
- package/lib/php-rQXzo7K_.js +25 -0
- package/lib/php-rQXzo7K_.js.map +1 -0
- package/lib/powershell-CQje9pm1.js +39 -0
- package/lib/powershell-CQje9pm1.js.map +1 -0
- package/lib/processors/removeExtensions.js.map +1 -1
- package/lib/processors/removeParameters.js.map +1 -1
- package/lib/processors/removePaths.js.map +1 -1
- package/lib/processors/traverse.js.map +1 -1
- package/lib/python-QIQAE5Ei.js +32 -0
- package/lib/python-QIQAE5Ei.js.map +1 -0
- package/lib/react-DHpVpxRv.js +24 -0
- package/lib/react-DHpVpxRv.js.map +1 -0
- package/lib/ruby-B2dU8Ny5.js +25 -0
- package/lib/ruby-B2dU8Ny5.js.map +1 -0
- package/lib/rust-DYnLHAi2.js +25 -0
- package/lib/rust-DYnLHAi2.js.map +1 -0
- package/lib/scala-CeKInBR8.js +25 -0
- package/lib/scala-CeKInBR8.js.map +1 -0
- package/lib/shell-HUv9oVtp.js +25 -0
- package/lib/shell-HUv9oVtp.js.map +1 -0
- package/lib/swift-B4z6ig1Z.js +25 -0
- package/lib/swift-B4z6ig1Z.js.map +1 -0
- package/lib/toml-Co9mpdct.js +32 -0
- package/lib/toml-Co9mpdct.js.map +1 -0
- package/lib/typescript-C26xdBDC.js +32 -0
- package/lib/typescript-C26xdBDC.js.map +1 -0
- package/lib/ui/Accordion.js +2 -2
- package/lib/ui/Accordion.js.map +1 -1
- package/lib/ui/ActionButton.js +11 -11
- package/lib/ui/ActionButton.js.map +1 -1
- package/lib/ui/Alert.js +55 -39
- package/lib/ui/Alert.js.map +1 -1
- package/lib/ui/AlertDialog.js +2 -2
- package/lib/ui/AlertDialog.js.map +1 -1
- package/lib/ui/Badge.js +28 -14
- package/lib/ui/Badge.js.map +1 -1
- package/lib/ui/Breadcrumb.js +24 -23
- package/lib/ui/Breadcrumb.js.map +1 -1
- package/lib/ui/Button.js +7 -6
- package/lib/ui/Button.js.map +1 -1
- package/lib/ui/Callout.js +20 -20
- package/lib/ui/Callout.js.map +1 -1
- package/lib/ui/Card.js +2 -2
- package/lib/ui/Card.js.map +1 -1
- package/lib/ui/Carousel.js +2 -2
- package/lib/ui/Carousel.js.map +1 -1
- package/lib/ui/Checkbox.js +29 -26
- package/lib/ui/Checkbox.js.map +1 -1
- package/lib/ui/CodeBlock.js +203 -67
- package/lib/ui/CodeBlock.js.map +1 -1
- package/lib/ui/Collapsible.js +32 -5
- package/lib/ui/Collapsible.js.map +1 -1
- package/lib/ui/Command.js +22 -28
- package/lib/ui/Command.js.map +1 -1
- package/lib/ui/Dialog.js +140 -95
- package/lib/ui/Dialog.js.map +1 -1
- package/lib/ui/Drawer.js +3 -3
- package/lib/ui/DropdownMenu.js +2 -2
- package/lib/ui/DropdownMenu.js.map +1 -1
- package/lib/ui/EmbeddedCodeBlock.js +84 -0
- package/lib/ui/EmbeddedCodeBlock.js.map +1 -0
- package/lib/ui/Form.js +3 -3
- package/lib/ui/Form.js.map +1 -1
- package/lib/ui/Frame.js +81 -0
- package/lib/ui/Frame.js.map +1 -0
- package/lib/ui/HoverCard.js +2 -2
- package/lib/ui/HoverCard.js.map +1 -1
- package/lib/ui/Input.js +2 -2
- package/lib/ui/Input.js.map +1 -1
- package/lib/ui/Item.js +188 -0
- package/lib/ui/Item.js.map +1 -0
- package/lib/ui/Label.js +2 -2
- package/lib/ui/Label.js.map +1 -1
- package/lib/ui/NativeSelect.js +57 -0
- package/lib/ui/NativeSelect.js.map +1 -0
- package/lib/ui/Pagination.js +29 -30
- package/lib/ui/Pagination.js.map +1 -1
- package/lib/ui/Popover.js +2 -2
- package/lib/ui/Popover.js.map +1 -1
- package/lib/ui/Progress.js +2 -2
- package/lib/ui/Progress.js.map +1 -1
- package/lib/ui/RadioGroup.js +2 -2
- package/lib/ui/RadioGroup.js.map +1 -1
- package/lib/ui/ReactComponentDoc.js +28 -0
- package/lib/ui/ReactComponentDoc.js.map +1 -0
- package/lib/ui/ScrollArea.js +2 -2
- package/lib/ui/ScrollArea.js.map +1 -1
- package/lib/ui/Secret.js +106 -0
- package/lib/ui/Secret.js.map +1 -0
- package/lib/ui/Select.js +166 -116
- package/lib/ui/Select.js.map +1 -1
- package/lib/ui/Separator.js +27 -0
- package/lib/ui/Separator.js.map +1 -0
- package/lib/ui/Skeleton.js +2 -2
- package/lib/ui/Skeleton.js.map +1 -1
- package/lib/ui/Slider.js +2 -2
- package/lib/ui/Slider.js.map +1 -1
- package/lib/ui/Stepper.js +1 -1
- package/lib/ui/Stepper.js.map +1 -1
- package/lib/ui/Switch.js +2 -2
- package/lib/ui/Switch.js.map +1 -1
- package/lib/ui/SyntaxHighlight.js +6 -5
- package/lib/ui/SyntaxHighlight.js.map +1 -1
- package/lib/ui/Tabs.js +12 -12
- package/lib/ui/Tabs.js.map +1 -1
- package/lib/ui/Textarea.js +2 -2
- package/lib/ui/Textarea.js.map +1 -1
- package/lib/ui/Toggle.js +2 -2
- package/lib/ui/Toggle.js.map +1 -1
- package/lib/ui/ToggleGroup.js +2 -2
- package/lib/ui/ToggleGroup.js.map +1 -1
- package/lib/ui/Tooltip.js +55 -28
- package/lib/ui/Tooltip.js.map +1 -1
- package/lib/ui/Value.js +39 -0
- package/lib/ui/Value.js.map +1 -0
- package/lib/ui/util.js +1 -1
- package/lib/useCopyToClipboard-B_085nfO.js +14 -0
- package/lib/useCopyToClipboard-B_085nfO.js.map +1 -0
- package/lib/useExposedProps-U3pmsHaG.js +113 -0
- package/lib/useExposedProps-U3pmsHaG.js.map +1 -0
- package/lib/useLatest-hmRS46UF.js.map +1 -1
- package/lib/xml-BQOOC04j.js +25 -0
- package/lib/xml-BQOOC04j.js.map +1 -0
- package/lib/yaml-BGsJItKv.js +32 -0
- package/lib/yaml-BGsJItKv.js.map +1 -0
- package/lib/zig-CUV2sTct.js +35 -0
- package/lib/zig-CUV2sTct.js.map +1 -0
- package/lib/zudoku.__internal.js +3084 -0
- package/lib/zudoku.__internal.js.map +1 -0
- package/lib/zudoku.auth-auth0.js +23 -22
- package/lib/zudoku.auth-auth0.js.map +1 -1
- package/lib/zudoku.auth-azureb2c.js +136 -0
- package/lib/zudoku.auth-azureb2c.js.map +1 -0
- package/lib/zudoku.auth-clerk.js +59 -65
- package/lib/zudoku.auth-clerk.js.map +1 -1
- package/lib/zudoku.auth-openid.js +372 -383
- package/lib/zudoku.auth-openid.js.map +1 -1
- package/lib/zudoku.auth-supabase.js +154 -0
- package/lib/zudoku.auth-supabase.js.map +1 -0
- package/lib/zudoku.components.js +27 -4573
- package/lib/zudoku.components.js.map +1 -1
- package/lib/zudoku.hooks.js +13 -14
- package/lib/zudoku.hooks.js.map +1 -1
- package/lib/zudoku.icons.js +1 -1
- package/lib/zudoku.icons.js.map +1 -1
- package/lib/zudoku.plugin-api-catalog.js +62 -55
- package/lib/zudoku.plugin-api-catalog.js.map +1 -1
- package/lib/zudoku.plugin-api-keys.js +456 -328
- package/lib/zudoku.plugin-api-keys.js.map +1 -1
- package/lib/zudoku.plugin-custom-pages.js +15 -18
- package/lib/zudoku.plugin-custom-pages.js.map +1 -1
- package/lib/zudoku.plugin-markdown.js +21 -70
- package/lib/zudoku.plugin-markdown.js.map +1 -1
- package/lib/zudoku.plugin-openapi.js +7 -7
- package/lib/zudoku.plugin-redirect.js +1 -1
- package/lib/zudoku.plugin-redirect.js.map +1 -1
- package/lib/zudoku.plugin-search-inkeep.js +54 -57
- package/lib/zudoku.plugin-search-inkeep.js.map +1 -1
- package/lib/zudoku.plugin-search-pagefind.js +213 -119
- package/lib/zudoku.plugin-search-pagefind.js.map +1 -1
- package/lib/zudoku.plugins.js.map +1 -1
- package/lib/zudoku.router.js +2507 -0
- package/lib/zudoku.router.js.map +1 -0
- package/package.json +140 -110
- package/src/app/ZuploBuildConfig.ts +7 -7
- package/src/app/defaultTheme.css +68 -49
- package/src/app/demo.tsx +25 -7
- package/src/app/entry.client.tsx +7 -8
- package/src/app/entry.server.tsx +20 -12
- package/src/app/env.ts +10 -2
- package/src/app/main.css +59 -33
- package/src/app/main.tsx +46 -36
- package/src/app/standalone.tsx +14 -8
- package/src/lib/MissingIcon.tsx +1 -1
- package/src/lib/assets/language-icons/c.tsx +31 -0
- package/src/lib/assets/language-icons/commonlisp.tsx +22 -0
- package/src/lib/assets/language-icons/cpp.tsx +35 -0
- package/src/lib/assets/language-icons/csharp.tsx +35 -0
- package/src/lib/assets/language-icons/css.tsx +36 -0
- package/src/lib/assets/language-icons/dart.tsx +39 -0
- package/src/lib/assets/language-icons/elixir.tsx +19 -0
- package/src/lib/assets/language-icons/go.tsx +19 -0
- package/src/lib/assets/language-icons/graphql.tsx +19 -0
- package/src/lib/assets/language-icons/html.tsx +24 -0
- package/src/lib/assets/language-icons/java.tsx +35 -0
- package/src/lib/assets/language-icons/javascript.tsx +11 -0
- package/src/lib/assets/language-icons/json.tsx +19 -0
- package/src/lib/assets/language-icons/kotlin.tsx +30 -0
- package/src/lib/assets/language-icons/markdown.tsx +19 -0
- package/src/lib/assets/language-icons/mdx.tsx +23 -0
- package/src/lib/assets/language-icons/objectivec.tsx +23 -0
- package/src/lib/assets/language-icons/ocaml.tsx +34 -0
- package/src/lib/assets/language-icons/php.tsx +19 -0
- package/src/lib/assets/language-icons/powershell.tsx +27 -0
- package/src/lib/assets/language-icons/python.tsx +23 -0
- package/src/lib/assets/language-icons/react.tsx +21 -0
- package/src/lib/assets/language-icons/ruby.tsx +19 -0
- package/src/lib/assets/language-icons/rust.tsx +19 -0
- package/src/lib/assets/language-icons/scala.tsx +19 -0
- package/src/lib/assets/language-icons/shell.tsx +19 -0
- package/src/lib/assets/language-icons/swift.tsx +19 -0
- package/src/lib/assets/language-icons/toml.tsx +23 -0
- package/src/lib/assets/language-icons/typescript.tsx +23 -0
- package/src/lib/assets/language-icons/xml.tsx +19 -0
- package/src/lib/assets/language-icons/yaml.tsx +23 -0
- package/src/lib/assets/language-icons/zig.tsx +32 -0
- package/src/lib/auth/issuer.test.ts +121 -0
- package/src/lib/auth/issuer.ts +44 -0
- package/src/lib/authentication/AuthenticationPlugin.tsx +4 -4
- package/src/lib/authentication/authentication.ts +26 -8
- package/src/lib/authentication/components/CallbackHandler.tsx +23 -16
- package/src/lib/authentication/components/OAuthErrorPage.tsx +171 -0
- package/src/lib/authentication/components/SignIn.tsx +12 -17
- package/src/lib/authentication/components/SignOut.tsx +7 -6
- package/src/lib/authentication/components/SignUp.tsx +5 -8
- package/src/lib/authentication/errors.ts +27 -13
- package/src/lib/authentication/hook.ts +23 -10
- package/src/lib/authentication/providers/auth0.tsx +15 -10
- package/src/lib/authentication/providers/azureb2c.tsx +208 -0
- package/src/lib/authentication/providers/clerk.tsx +21 -20
- package/src/lib/authentication/providers/firebase.tsx +284 -0
- package/src/lib/authentication/providers/openid.tsx +95 -12
- package/src/lib/authentication/providers/supabase/SupabaseAuthUI.tsx +75 -0
- package/src/lib/authentication/providers/supabase.tsx +63 -58
- package/src/lib/authentication/state.ts +40 -30
- package/src/lib/authentication/ui/ZudokuAuthUi.tsx +335 -0
- package/src/lib/authentication/ui/icons/Apple.tsx +10 -0
- package/src/lib/authentication/ui/icons/Facebook.tsx +15 -0
- package/src/lib/authentication/ui/icons/Github.tsx +16 -0
- package/src/lib/authentication/ui/icons/Google.tsx +16 -0
- package/src/lib/authentication/ui/icons/Microsoft.tsx +12 -0
- package/src/lib/authentication/ui/icons/X.tsx +10 -0
- package/src/lib/authentication/use-broadcast/LICENSE.md +12 -3
- package/src/lib/authentication/use-broadcast/shared.ts +4 -4
- package/src/lib/authentication/use-broadcast/useBroadcast.ts +2 -2
- package/src/lib/components/AnchorLink.tsx +1 -1
- package/src/lib/components/Autocomplete.tsx +14 -4
- package/src/lib/components/Banner.tsx +1 -2
- package/src/lib/components/Bootstrap.tsx +3 -4
- package/src/lib/components/BuildCheck.tsx +26 -13
- package/src/lib/components/CategoryHeading.tsx +4 -1
- package/src/lib/components/ErrorPage.tsx +3 -3
- package/src/lib/components/Footer.tsx +1 -1
- package/src/lib/components/Framed.tsx +51 -0
- package/src/lib/components/Header.tsx +28 -25
- package/src/lib/components/Heading.tsx +11 -12
- package/src/lib/components/LanguageIcon.tsx +181 -0
- package/src/lib/components/Layout.tsx +6 -24
- package/src/lib/components/Main.tsx +10 -10
- package/src/lib/components/Markdown.tsx +11 -10
- package/src/lib/components/Meta.tsx +45 -0
- package/src/lib/components/MobileTopNavigation.tsx +70 -15
- package/src/lib/components/NotFoundPage.tsx +6 -5
- package/src/lib/components/PageProgress.tsx +28 -0
- package/src/lib/components/Pagination.tsx +5 -4
- package/src/lib/components/PathRenderer.tsx +2 -2
- package/src/lib/components/Search.tsx +1 -1
- package/src/lib/components/Slot.test.tsx +8 -8
- package/src/lib/components/Slot.tsx +2 -2
- package/src/lib/components/StatusPage.tsx +5 -0
- package/src/lib/components/TopNavigation.tsx +77 -70
- package/src/lib/components/Typography.tsx +14 -0
- package/src/lib/components/Zudoku.tsx +5 -5
- package/src/lib/components/cache.ts +9 -5
- package/src/lib/components/context/ComponentsContext.tsx +2 -2
- package/src/lib/components/context/RouterEventsEmitter.tsx +1 -1
- package/src/lib/components/context/SlotProvider.tsx +4 -4
- package/src/lib/components/context/ViewportAnchorContext.tsx +2 -2
- package/src/lib/components/context/ZudokuContext.ts +77 -43
- package/src/lib/components/context/ZudokuProvider.tsx +1 -1
- package/src/lib/components/index.ts +5 -19
- package/src/lib/components/navigation/{Sidebar.tsx → Navigation.tsx} +18 -16
- package/src/lib/components/navigation/{SidebarBadge.tsx → NavigationBadge.tsx} +1 -1
- package/src/lib/components/navigation/{SidebarCategory.tsx → NavigationCategory.tsx} +25 -16
- package/src/lib/components/navigation/{SidebarItem.tsx → NavigationItem.tsx} +44 -40
- package/src/lib/components/navigation/{SidebarWrapper.tsx → NavigationWrapper.tsx} +8 -5
- package/src/lib/components/navigation/Toc.tsx +5 -5
- package/src/lib/components/navigation/ZudokuLogo.tsx +1 -1
- package/src/lib/components/navigation/utils.ts +50 -46
- package/src/lib/core/RouteGuard.tsx +52 -32
- package/src/lib/core/ZudokuContext.ts +74 -23
- package/src/lib/core/__internal.tsx +30 -0
- package/src/lib/core/plugins.ts +4 -3
- package/src/lib/core/router.ts +1 -0
- package/src/lib/errors/ErrorAlert.tsx +8 -17
- package/src/lib/errors/RouterError.tsx +7 -2
- package/src/lib/errors/TopLevelError.tsx +2 -4
- package/src/lib/hooks/useEvent.test.tsx +9 -7
- package/src/lib/hooks/useHotkey.ts +70 -0
- package/src/lib/oas/graphql/circular.ts +3 -3
- package/src/lib/oas/graphql/index.ts +39 -3
- package/src/lib/oas/parser/dereference/index.ts +2 -1
- package/src/lib/oas/parser/dereference/resolveRef.ts +4 -4
- package/src/lib/oas/parser/index.ts +10 -5
- package/src/lib/oas/parser/upgrade/index.ts +2 -1
- package/src/lib/plugins/api-catalog/Catalog.tsx +8 -1
- package/src/lib/plugins/api-catalog/index.tsx +19 -19
- package/src/lib/plugins/api-keys/CreateApiKey.tsx +18 -4
- package/src/lib/plugins/api-keys/CreateApiKeyDialog.tsx +49 -0
- package/src/lib/plugins/api-keys/ProtectedRoute.tsx +11 -7
- package/src/lib/plugins/api-keys/SettingsApiKeys.tsx +65 -71
- package/src/lib/plugins/api-keys/index.tsx +50 -25
- package/src/lib/plugins/custom-pages/index.tsx +24 -16
- package/src/lib/plugins/markdown/MdxPage.tsx +204 -32
- package/src/lib/plugins/markdown/assets/ChatGPTLogo.tsx +11 -0
- package/src/lib/plugins/markdown/assets/ClaudeLogo.tsx +19 -0
- package/src/lib/plugins/markdown/index.tsx +27 -42
- package/src/lib/plugins/openapi/CollapsibleCode.tsx +5 -3
- package/src/lib/plugins/openapi/ColorizedParam.tsx +3 -1
- package/src/lib/plugins/openapi/Endpoint.tsx +2 -2
- package/src/lib/plugins/openapi/GeneratedExampleSidecarBox.tsx +52 -0
- package/src/lib/plugins/openapi/MCPEndpoint.tsx +273 -0
- package/src/lib/plugins/openapi/OasProvider.tsx +2 -1
- package/src/lib/plugins/openapi/OperationList.tsx +51 -31
- package/src/lib/plugins/openapi/OperationListItem.tsx +106 -79
- package/src/lib/plugins/openapi/ParamInfos.tsx +10 -9
- package/src/lib/plugins/openapi/ParameterList.tsx +40 -28
- package/src/lib/plugins/openapi/ParameterListItem.tsx +110 -59
- package/src/lib/plugins/openapi/PlaygroundDialogWrapper.tsx +8 -13
- package/src/lib/plugins/openapi/RequestBodySidecarBox.tsx +51 -9
- package/src/lib/plugins/openapi/ResponsesSidecarBox.tsx +75 -29
- package/src/lib/plugins/openapi/SchemaList.tsx +5 -11
- package/src/lib/plugins/openapi/Sidecar.tsx +138 -72
- package/src/lib/plugins/openapi/SidecarBox.tsx +26 -4
- package/src/lib/plugins/openapi/SidecarExamples.tsx +93 -87
- package/src/lib/plugins/openapi/StaggeredRender.tsx +1 -1
- package/src/lib/plugins/openapi/client/GraphQLContext.tsx +1 -1
- package/src/lib/plugins/openapi/client/createServer.ts +1 -2
- package/src/lib/plugins/openapi/client/useCreateQuery.ts +3 -2
- package/src/lib/plugins/openapi/components/ConstValue.tsx +1 -1
- package/src/lib/plugins/openapi/components/EnumValues.tsx +2 -2
- package/src/lib/plugins/openapi/components/NonHighlightedCode.tsx +22 -0
- package/src/lib/plugins/openapi/components/ResponseContent.tsx +63 -53
- package/src/lib/plugins/openapi/context.tsx +1 -1
- package/src/lib/plugins/openapi/graphql/fragment-masking.ts +1 -1
- package/src/lib/plugins/openapi/graphql/gql.ts +11 -11
- package/src/lib/plugins/openapi/graphql/graphql.ts +33 -9
- package/src/lib/plugins/openapi/index.tsx +90 -59
- package/src/lib/plugins/openapi/interfaces.ts +22 -7
- package/src/lib/plugins/openapi/playground/BodyPanel.tsx +257 -32
- package/src/lib/plugins/openapi/playground/CollapsibleHeader.tsx +51 -0
- package/src/lib/plugins/openapi/playground/ExamplesDropdown.tsx +11 -6
- package/src/lib/plugins/openapi/playground/Headers.tsx +158 -176
- package/src/lib/plugins/openapi/playground/IdentityDialog.tsx +4 -3
- package/src/lib/plugins/openapi/playground/IdentitySelector.tsx +8 -13
- package/src/lib/plugins/openapi/playground/ParamsGrid.tsx +34 -2
- package/src/lib/plugins/openapi/playground/PathParams.tsx +26 -35
- package/src/lib/plugins/openapi/playground/Playground.tsx +263 -159
- package/src/lib/plugins/openapi/playground/PlaygroundDialog.tsx +23 -33
- package/src/lib/plugins/openapi/playground/QueryParams.tsx +92 -100
- package/src/lib/plugins/openapi/playground/RequestLoginDialog.tsx +20 -1
- package/src/lib/plugins/openapi/playground/Spinner.tsx +87 -0
- package/src/lib/plugins/openapi/playground/fileUtils.ts +1 -1
- package/src/lib/plugins/openapi/playground/request-panel/MultipartField.tsx +91 -0
- package/src/lib/plugins/openapi/playground/request-panel/UrlPath.tsx +31 -0
- package/src/lib/plugins/openapi/playground/request-panel/UrlQueryParams.tsx +25 -0
- package/src/lib/plugins/openapi/playground/request-panel/fieldManager/useKeyValueFieldManager.test.tsx +872 -0
- package/src/lib/plugins/openapi/playground/request-panel/useKeyValueFieldManager.ts +349 -0
- package/src/lib/plugins/openapi/playground/result-panel/Highlight.tsx +26 -0
- package/src/lib/plugins/openapi/playground/result-panel/ResponseStatusBar.tsx +117 -0
- package/src/lib/plugins/openapi/playground/result-panel/ResponseTab.tsx +189 -115
- package/src/lib/plugins/openapi/playground/result-panel/ResultPanel.tsx +70 -94
- package/src/lib/plugins/openapi/playground/result-panel/convertToTypes.ts +1 -1
- package/src/lib/plugins/openapi/playground/useRememberSkipLoginDialog.tsx +3 -0
- package/src/lib/plugins/openapi/processors/removeExtensions.test.ts +1 -0
- package/src/lib/plugins/openapi/processors/removeParameters.test.ts +1 -0
- package/src/lib/plugins/openapi/processors/traverse.ts +1 -1
- package/src/lib/plugins/openapi/schema/SchemaExampleAndDefault.tsx +4 -4
- package/src/lib/plugins/openapi/schema/SchemaPropertyItem.tsx +94 -79
- package/src/lib/plugins/openapi/schema/SchemaView.tsx +89 -55
- package/src/lib/plugins/openapi/schema/UnionView.tsx +132 -0
- package/src/lib/plugins/openapi/schema/union-helpers.ts +123 -0
- package/src/lib/plugins/openapi/schema/utils.ts +3 -13
- package/src/lib/plugins/openapi/util/createHttpSnippet.ts +2 -2
- package/src/lib/plugins/openapi/util/{createSidebarCategory.tsx → createNavigationCategory.tsx} +7 -5
- package/src/lib/plugins/openapi/util/generateSchemaExample.ts +14 -15
- package/src/lib/plugins/openapi/util/getRoutes.tsx +4 -4
- package/src/lib/plugins/openapi/util/methodColorMap.tsx +1 -1
- package/src/lib/plugins/search-inkeep/index.tsx +54 -58
- package/src/lib/plugins/search-inkeep/inkeep.ts +19 -21
- package/src/lib/plugins/search-pagefind/PagefindSearch.tsx +3 -4
- package/src/lib/plugins/search-pagefind/ResultList.tsx +16 -8
- package/src/lib/plugins/search-pagefind/get-results.tsx +0 -1
- package/src/lib/shiki.ts +37 -8
- package/src/lib/ui/ActionButton.tsx +3 -1
- package/src/lib/ui/Alert.tsx +45 -39
- package/src/lib/ui/Badge.tsx +21 -12
- package/src/lib/ui/Breadcrumb.tsx +1 -0
- package/src/lib/ui/Button.tsx +1 -0
- package/src/lib/ui/Callout.tsx +10 -5
- package/src/lib/ui/Checkbox.tsx +23 -24
- package/src/lib/ui/CodeBlock.tsx +37 -61
- package/src/lib/ui/Collapsible.tsx +26 -4
- package/src/lib/ui/Command.tsx +2 -4
- package/src/lib/ui/Dialog.tsx +113 -99
- package/src/lib/ui/EmbeddedCodeBlock.tsx +99 -0
- package/src/lib/ui/Form.tsx +4 -4
- package/src/lib/ui/Frame.tsx +81 -0
- package/src/lib/ui/Item.tsx +192 -0
- package/src/lib/ui/NativeSelect.tsx +47 -0
- package/src/lib/ui/Pagination.tsx +1 -2
- package/src/lib/ui/ReactComponentDoc.tsx +68 -0
- package/src/lib/ui/Secret.tsx +123 -0
- package/src/lib/ui/Select.tsx +153 -126
- package/src/lib/ui/Separator.tsx +25 -0
- package/src/lib/ui/SyntaxHighlight.tsx +16 -3
- package/src/lib/ui/ToggleGroup.tsx +1 -1
- package/src/lib/ui/Tooltip.tsx +54 -32
- package/src/lib/ui/Value.tsx +42 -0
- package/src/lib/util/MdxComponents.tsx +24 -5
- package/src/lib/util/cn.ts +1 -1
- package/src/lib/util/createVariantComponent.tsx +33 -7
- package/src/lib/util/flattenAllOf.test.ts +637 -0
- package/src/lib/util/flattenAllOf.ts +101 -0
- package/src/lib/util/groupBy.ts +1 -0
- package/src/lib/util/humanFileSize.ts +2 -3
- package/src/lib/util/invariant.ts +8 -5
- package/src/lib/util/os.ts +18 -0
- package/src/lib/util/pastellize.ts +4 -4
- package/src/lib/util/syncZustandState.ts +22 -0
- package/src/lib/util/traverse.ts +36 -0
- package/src/lib/util/types.ts +1 -1
- package/src/lib/util/useCopyToClipboard.ts +17 -0
- package/src/lib/util/useIsomorphicLayoutEffect.ts +1 -0
- package/src/lib/util/useScrollToAnchor.ts +6 -4
- package/src/shiki/langs/hurl.js +1 -0
- package/src/shiki/langs/kdl.js +1 -0
- package/src/shiki/langs/pkl.js +1 -0
- package/src/shiki/langs/rosmsg.js +1 -0
- package/src/shiki/langs/vue-vine.js +1 -0
- package/dist/config/validators/InputSidebarSchema.d.ts +0 -217
- package/dist/config/validators/InputSidebarSchema.js +0 -62
- package/dist/config/validators/InputSidebarSchema.js.map +0 -1
- package/dist/config/validators/SidebarSchema.d.ts +0 -46
- package/dist/config/validators/SidebarSchema.js +0 -118
- package/dist/config/validators/SidebarSchema.js.map +0 -1
- package/dist/lib/components/ReactMarkdown.d.ts +0 -29
- package/dist/lib/components/ReactMarkdown.js +0 -182
- package/dist/lib/components/ReactMarkdown.js.map +0 -1
- package/dist/lib/components/navigation/Sidebar.d.ts +0 -5
- package/dist/lib/components/navigation/Sidebar.js +0 -10
- package/dist/lib/components/navigation/Sidebar.js.map +0 -1
- package/dist/lib/components/navigation/SidebarBadge.js.map +0 -1
- package/dist/lib/components/navigation/SidebarCategory.d.ts +0 -5
- package/dist/lib/components/navigation/SidebarCategory.js.map +0 -1
- package/dist/lib/components/navigation/SidebarItem.d.ts +0 -6
- package/dist/lib/components/navigation/SidebarItem.js +0 -45
- package/dist/lib/components/navigation/SidebarItem.js.map +0 -1
- package/dist/lib/components/navigation/SidebarWrapper.js.map +0 -1
- package/dist/lib/plugins/custom-pages/CustomPage.d.ts +0 -2
- package/dist/lib/plugins/custom-pages/CustomPage.js +0 -11
- package/dist/lib/plugins/custom-pages/CustomPage.js.map +0 -1
- package/dist/lib/plugins/markdown/resolver.d.ts +0 -32
- package/dist/lib/plugins/markdown/resolver.js +0 -46
- package/dist/lib/plugins/markdown/resolver.js.map +0 -1
- package/dist/lib/plugins/openapi/playground/InlineInput.d.ts +0 -4
- package/dist/lib/plugins/openapi/playground/InlineInput.js +0 -3
- package/dist/lib/plugins/openapi/playground/InlineInput.js.map +0 -1
- package/dist/lib/plugins/openapi/playground/UrlDisplay.d.ts +0 -4
- package/dist/lib/plugins/openapi/playground/UrlDisplay.js +0 -22
- package/dist/lib/plugins/openapi/playground/UrlDisplay.js.map +0 -1
- package/dist/lib/plugins/openapi/playground/result-panel/RequestTab.d.ts +0 -7
- package/dist/lib/plugins/openapi/playground/result-panel/RequestTab.js +0 -11
- package/dist/lib/plugins/openapi/playground/result-panel/RequestTab.js.map +0 -1
- package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.d.ts +0 -8
- package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.js +0 -14
- package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.js.map +0 -1
- package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupConnector.d.ts +0 -7
- package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupConnector.js +0 -17
- package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupConnector.js.map +0 -1
- package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupItem.d.ts +0 -6
- package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupItem.js +0 -10
- package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupItem.js.map +0 -1
- package/dist/lib/plugins/openapi/util/createSidebarCategory.d.ts +0 -9
- package/dist/lib/plugins/openapi/util/createSidebarCategory.js.map +0 -1
- package/dist/vite/plugin-configure-tailwind.d.ts +0 -2
- package/dist/vite/plugin-configure-tailwind.js +0 -38
- package/dist/vite/plugin-configure-tailwind.js.map +0 -1
- package/dist/vite/plugin-sidebar.d.ts +0 -4
- package/dist/vite/plugin-sidebar.js +0 -63
- package/dist/vite/plugin-sidebar.js.map +0 -1
- package/dist/vite/plugin-theme-css.d.ts +0 -5
- package/dist/vite/plugin-theme-css.js +0 -77
- package/dist/vite/plugin-theme-css.js.map +0 -1
- package/dist/vite/remarkStaticGeneration.js.map +0 -1
- package/lib/Button-BE9IVkWV.js.map +0 -1
- package/lib/Callout-CoVxYafP.js +0 -231
- package/lib/Callout-CoVxYafP.js.map +0 -1
- package/lib/CategoryHeading-Cu2RwgjC.js +0 -10
- package/lib/CategoryHeading-Cu2RwgjC.js.map +0 -1
- package/lib/Dialog-BxpuVLh9.js +0 -99
- package/lib/Dialog-BxpuVLh9.js.map +0 -1
- package/lib/Markdown-Cm4kj26S.js.map +0 -1
- package/lib/MdxPage-fDGQtB5w.js +0 -84
- package/lib/MdxPage-fDGQtB5w.js.map +0 -1
- package/lib/OasProvider-CFBvfR3r.js +0 -33
- package/lib/OasProvider-CFBvfR3r.js.map +0 -1
- package/lib/OperationList-Xs4KWmsh.js +0 -5153
- package/lib/OperationList-Xs4KWmsh.js.map +0 -1
- package/lib/Pagination-CCxhL836.js +0 -36
- package/lib/Pagination-CCxhL836.js.map +0 -1
- package/lib/RouteGuard-CZ_uLv3g.js +0 -55
- package/lib/RouteGuard-CZ_uLv3g.js.map +0 -1
- package/lib/SchemaList-BWaNlmUJ.js.map +0 -1
- package/lib/SchemaView-DdKJt2ln.js +0 -375
- package/lib/SchemaView-DdKJt2ln.js.map +0 -1
- package/lib/SignUp-B-1Pvc-8.js +0 -63
- package/lib/SignUp-B-1Pvc-8.js.map +0 -1
- package/lib/Slot-B99cbD-q.js +0 -160
- package/lib/Slot-B99cbD-q.js.map +0 -1
- package/lib/SyntaxHighlight-Cz6Me7-F.js.map +0 -1
- package/lib/Toc-Qe7A4uj_.js.map +0 -1
- package/lib/chunk-DQRVZFIR-BblmKnHy.js +0 -1839
- package/lib/chunk-DQRVZFIR-BblmKnHy.js.map +0 -1
- package/lib/cn-wvCW-ho6.js.map +0 -1
- package/lib/createServer-p3yUA8Bu.js.map +0 -1
- package/lib/hook-k7PfUIsj.js +0 -1465
- package/lib/hook-k7PfUIsj.js.map +0 -1
- package/lib/index--oeBayMa.js +0 -86
- package/lib/index--oeBayMa.js.map +0 -1
- package/lib/index-Bn6Lc9tq.js +0 -9
- package/lib/index-Bn6Lc9tq.js.map +0 -1
- package/lib/index-BvvmIczU.js.map +0 -1
- package/lib/index-QzXzw_ra.js +0 -24
- package/lib/index-QzXzw_ra.js.map +0 -1
- package/lib/index-yqBxBqxF.js +0 -3226
- package/lib/index-yqBxBqxF.js.map +0 -1
- package/lib/index-zddirpDj.js.map +0 -1
- package/lib/index.esm-Cp4wkyud.js +0 -1236
- package/lib/index.esm-Cp4wkyud.js.map +0 -1
- package/lib/invariant-DAFpPywt.js.map +0 -1
- package/lib/joinPath-B7kNnUX4.js +0 -8
- package/lib/joinPath-B7kNnUX4.js.map +0 -1
- package/lib/jsx-runtime-C5mzlN2N.js.map +0 -1
- package/lib/objectEntries-yMIkr2mI.js +0 -5
- package/lib/objectEntries-yMIkr2mI.js.map +0 -1
- package/lib/react-nprogress.esm-C2MPXjiJ.js +0 -389
- package/lib/react-nprogress.esm-C2MPXjiJ.js.map +0 -1
- package/lib/useExposedProps-BZQkZneR.js +0 -9
- package/lib/useExposedProps-BZQkZneR.js.map +0 -1
- package/lib/useMutation-CZSmsIGW.js +0 -97
- package/lib/useMutation-CZSmsIGW.js.map +0 -1
- package/src/lib/components/ReactMarkdown.license.txt +0 -21
- package/src/lib/components/ReactMarkdown.tsx +0 -264
- package/src/lib/plugins/custom-pages/CustomPage.tsx +0 -18
- package/src/lib/plugins/markdown/resolver.ts +0 -59
- package/src/lib/plugins/openapi/playground/InlineInput.tsx +0 -6
- package/src/lib/plugins/openapi/playground/UrlDisplay.tsx +0 -32
- package/src/lib/plugins/openapi/playground/result-panel/RequestTab.tsx +0 -73
- package/src/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.tsx +0 -40
- package/src/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupConnector.tsx +0 -57
- package/src/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupItem.tsx +0 -33
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const dt = Symbol.for("yaml.alias"), lt = Symbol.for("yaml.document"), G = Symbol.for("yaml.map"), qt = Symbol.for("yaml.pair"),
|
|
1
|
+
const dt = Symbol.for("yaml.alias"), lt = Symbol.for("yaml.document"), G = Symbol.for("yaml.map"), qt = Symbol.for("yaml.pair"), F = Symbol.for("yaml.scalar"), he = Symbol.for("yaml.seq"), P = Symbol.for("yaml.node.type"), W = (s) => !!s && typeof s == "object" && s[P] === dt, Z = (s) => !!s && typeof s == "object" && s[P] === lt, de = (s) => !!s && typeof s == "object" && s[P] === G, T = (s) => !!s && typeof s == "object" && s[P] === qt, E = (s) => !!s && typeof s == "object" && s[P] === F, pe = (s) => !!s && typeof s == "object" && s[P] === he;
|
|
2
2
|
function L(s) {
|
|
3
3
|
if (s && typeof s == "object")
|
|
4
4
|
switch (s[P]) {
|
|
@@ -13,24 +13,24 @@ function $(s) {
|
|
|
13
13
|
switch (s[P]) {
|
|
14
14
|
case dt:
|
|
15
15
|
case G:
|
|
16
|
-
case
|
|
16
|
+
case F:
|
|
17
17
|
case he:
|
|
18
18
|
return !0;
|
|
19
19
|
}
|
|
20
20
|
return !1;
|
|
21
21
|
}
|
|
22
|
-
const
|
|
23
|
-
function
|
|
24
|
-
const t =
|
|
25
|
-
|
|
22
|
+
const Rt = (s) => (E(s) || L(s)) && !!s.anchor, M = Symbol("break visit"), Ft = Symbol("skip children"), R = Symbol("remove node");
|
|
23
|
+
function ee(s, e) {
|
|
24
|
+
const t = Ut(e);
|
|
25
|
+
Z(s) ? ie(null, s.contents, t, Object.freeze([s])) === R && (s.contents = null) : ie(null, s, t, Object.freeze([]));
|
|
26
26
|
}
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
27
|
+
ee.BREAK = M;
|
|
28
|
+
ee.SKIP = Ft;
|
|
29
|
+
ee.REMOVE = R;
|
|
30
30
|
function ie(s, e, t, n) {
|
|
31
|
-
const i =
|
|
31
|
+
const i = Vt(s, e, t, n);
|
|
32
32
|
if ($(i) || T(i))
|
|
33
|
-
return
|
|
33
|
+
return Jt(s, n, i), ie(s, i, t, n);
|
|
34
34
|
if (typeof i != "symbol") {
|
|
35
35
|
if (L(e)) {
|
|
36
36
|
n = Object.freeze(n.concat(e));
|
|
@@ -41,7 +41,7 @@ function ie(s, e, t, n) {
|
|
|
41
41
|
else {
|
|
42
42
|
if (o === M)
|
|
43
43
|
return M;
|
|
44
|
-
o ===
|
|
44
|
+
o === R && (e.items.splice(r, 1), r -= 1);
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
47
|
} else if (T(e)) {
|
|
@@ -49,26 +49,26 @@ function ie(s, e, t, n) {
|
|
|
49
49
|
const r = ie("key", e.key, t, n);
|
|
50
50
|
if (r === M)
|
|
51
51
|
return M;
|
|
52
|
-
r ===
|
|
52
|
+
r === R && (e.key = null);
|
|
53
53
|
const o = ie("value", e.value, t, n);
|
|
54
54
|
if (o === M)
|
|
55
55
|
return M;
|
|
56
|
-
o ===
|
|
56
|
+
o === R && (e.value = null);
|
|
57
57
|
}
|
|
58
58
|
}
|
|
59
59
|
return i;
|
|
60
60
|
}
|
|
61
|
-
async function
|
|
62
|
-
const t =
|
|
63
|
-
|
|
61
|
+
async function Re(s, e) {
|
|
62
|
+
const t = Ut(e);
|
|
63
|
+
Z(s) ? await re(null, s.contents, t, Object.freeze([s])) === R && (s.contents = null) : await re(null, s, t, Object.freeze([]));
|
|
64
64
|
}
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
65
|
+
Re.BREAK = M;
|
|
66
|
+
Re.SKIP = Ft;
|
|
67
|
+
Re.REMOVE = R;
|
|
68
68
|
async function re(s, e, t, n) {
|
|
69
|
-
const i = await
|
|
69
|
+
const i = await Vt(s, e, t, n);
|
|
70
70
|
if ($(i) || T(i))
|
|
71
|
-
return
|
|
71
|
+
return Jt(s, n, i), re(s, i, t, n);
|
|
72
72
|
if (typeof i != "symbol") {
|
|
73
73
|
if (L(e)) {
|
|
74
74
|
n = Object.freeze(n.concat(e));
|
|
@@ -79,7 +79,7 @@ async function re(s, e, t, n) {
|
|
|
79
79
|
else {
|
|
80
80
|
if (o === M)
|
|
81
81
|
return M;
|
|
82
|
-
o ===
|
|
82
|
+
o === R && (e.items.splice(r, 1), r -= 1);
|
|
83
83
|
}
|
|
84
84
|
}
|
|
85
85
|
} else if (T(e)) {
|
|
@@ -87,16 +87,16 @@ async function re(s, e, t, n) {
|
|
|
87
87
|
const r = await re("key", e.key, t, n);
|
|
88
88
|
if (r === M)
|
|
89
89
|
return M;
|
|
90
|
-
r ===
|
|
90
|
+
r === R && (e.key = null);
|
|
91
91
|
const o = await re("value", e.value, t, n);
|
|
92
92
|
if (o === M)
|
|
93
93
|
return M;
|
|
94
|
-
o ===
|
|
94
|
+
o === R && (e.value = null);
|
|
95
95
|
}
|
|
96
96
|
}
|
|
97
97
|
return i;
|
|
98
98
|
}
|
|
99
|
-
function
|
|
99
|
+
function Ut(s) {
|
|
100
100
|
return typeof s == "object" && (s.Collection || s.Node || s.Value) ? Object.assign({
|
|
101
101
|
Alias: s.Node,
|
|
102
102
|
Map: s.Node,
|
|
@@ -111,7 +111,7 @@ function Rt(s) {
|
|
|
111
111
|
Seq: s.Collection
|
|
112
112
|
}, s) : s;
|
|
113
113
|
}
|
|
114
|
-
function
|
|
114
|
+
function Vt(s, e, t, n) {
|
|
115
115
|
if (typeof t == "function")
|
|
116
116
|
return t(s, e, n);
|
|
117
117
|
if (de(e))
|
|
@@ -122,19 +122,19 @@ function Ut(s, e, t, n) {
|
|
|
122
122
|
return t.Pair?.(s, e, n);
|
|
123
123
|
if (E(e))
|
|
124
124
|
return t.Scalar?.(s, e, n);
|
|
125
|
-
if (
|
|
125
|
+
if (W(e))
|
|
126
126
|
return t.Alias?.(s, e, n);
|
|
127
127
|
}
|
|
128
|
-
function
|
|
128
|
+
function Jt(s, e, t) {
|
|
129
129
|
const n = e[e.length - 1];
|
|
130
130
|
if (L(n))
|
|
131
131
|
n.items[s] = t;
|
|
132
132
|
else if (T(n))
|
|
133
133
|
s === "key" ? n.key = t : n.value = t;
|
|
134
|
-
else if (
|
|
134
|
+
else if (Z(n))
|
|
135
135
|
n.contents = t;
|
|
136
136
|
else {
|
|
137
|
-
const i =
|
|
137
|
+
const i = W(n) ? "alias" : "scalar";
|
|
138
138
|
throw new Error(`Cannot replace node with ${i} parent`);
|
|
139
139
|
}
|
|
140
140
|
}
|
|
@@ -243,7 +243,7 @@ class B {
|
|
|
243
243
|
let i;
|
|
244
244
|
if (e && n.length > 0 && $(e.contents)) {
|
|
245
245
|
const r = {};
|
|
246
|
-
|
|
246
|
+
ee(e.contents, (o, l) => {
|
|
247
247
|
$(l) && l.tag && (r[l.tag] = !0);
|
|
248
248
|
}), i = Object.keys(r);
|
|
249
249
|
} else
|
|
@@ -256,22 +256,22 @@ class B {
|
|
|
256
256
|
}
|
|
257
257
|
B.defaultYaml = { explicit: !1, version: "1.2" };
|
|
258
258
|
B.defaultTags = { "!!": "tag:yaml.org,2002:" };
|
|
259
|
-
function
|
|
259
|
+
function Yt(s) {
|
|
260
260
|
if (/[\x00-\x19\s,[\]{}]/.test(s)) {
|
|
261
261
|
const t = `Anchor must not contain whitespace or control characters: ${JSON.stringify(s)}`;
|
|
262
262
|
throw new Error(t);
|
|
263
263
|
}
|
|
264
264
|
return !0;
|
|
265
265
|
}
|
|
266
|
-
function
|
|
266
|
+
function Gt(s) {
|
|
267
267
|
const e = /* @__PURE__ */ new Set();
|
|
268
|
-
return
|
|
268
|
+
return ee(s, {
|
|
269
269
|
Value(t, n) {
|
|
270
270
|
n.anchor && e.add(n.anchor);
|
|
271
271
|
}
|
|
272
272
|
}), e;
|
|
273
273
|
}
|
|
274
|
-
function
|
|
274
|
+
function Qt(s, e) {
|
|
275
275
|
for (let t = 1; ; ++t) {
|
|
276
276
|
const n = `${s}${t}`;
|
|
277
277
|
if (!e.has(n))
|
|
@@ -283,8 +283,8 @@ function Ks(s, e) {
|
|
|
283
283
|
let i = null;
|
|
284
284
|
return {
|
|
285
285
|
onAnchor: (r) => {
|
|
286
|
-
t.push(r), i
|
|
287
|
-
const o =
|
|
286
|
+
t.push(r), i ?? (i = Gt(s));
|
|
287
|
+
const o = Qt(e, i);
|
|
288
288
|
return i.add(o), o;
|
|
289
289
|
},
|
|
290
290
|
/**
|
|
@@ -334,7 +334,7 @@ function j(s, e, t) {
|
|
|
334
334
|
if (Array.isArray(s))
|
|
335
335
|
return s.map((n, i) => j(n, String(i), t));
|
|
336
336
|
if (s && typeof s.toJSON == "function") {
|
|
337
|
-
if (!t || !
|
|
337
|
+
if (!t || !Rt(s))
|
|
338
338
|
return s.toJSON(e, t);
|
|
339
339
|
const n = { aliasCount: 0, count: 1, res: void 0 };
|
|
340
340
|
t.anchors.set(s, n), t.onCreate = (r) => {
|
|
@@ -356,7 +356,7 @@ class pt {
|
|
|
356
356
|
}
|
|
357
357
|
/** A plain JavaScript representation of this node. */
|
|
358
358
|
toJS(e, { mapAsMap: t, maxAliasCount: n, onAnchor: i, reviver: r } = {}) {
|
|
359
|
-
if (!
|
|
359
|
+
if (!Z(e))
|
|
360
360
|
throw new TypeError("A document argument is required");
|
|
361
361
|
const o = {
|
|
362
362
|
anchors: /* @__PURE__ */ new Map(),
|
|
@@ -372,7 +372,7 @@ class pt {
|
|
|
372
372
|
return typeof r == "function" ? oe(r, { "": l }, "", l) : l;
|
|
373
373
|
}
|
|
374
374
|
}
|
|
375
|
-
class
|
|
375
|
+
class Fe extends pt {
|
|
376
376
|
constructor(e) {
|
|
377
377
|
super(dt), this.source = e, Object.defineProperty(this, "tag", {
|
|
378
378
|
set() {
|
|
@@ -384,20 +384,25 @@ class Re extends pt {
|
|
|
384
384
|
* Resolve the value of this alias within `doc`, finding the last
|
|
385
385
|
* instance of the `source` anchor before this node.
|
|
386
386
|
*/
|
|
387
|
-
resolve(e) {
|
|
388
|
-
let
|
|
389
|
-
|
|
390
|
-
Node: (
|
|
391
|
-
|
|
392
|
-
return Q.BREAK;
|
|
393
|
-
i.anchor === this.source && (t = i);
|
|
387
|
+
resolve(e, t) {
|
|
388
|
+
let n;
|
|
389
|
+
t?.aliasResolveCache ? n = t.aliasResolveCache : (n = [], ee(e, {
|
|
390
|
+
Node: (r, o) => {
|
|
391
|
+
(W(o) || Rt(o)) && n.push(o);
|
|
394
392
|
}
|
|
395
|
-
}), t;
|
|
393
|
+
}), t && (t.aliasResolveCache = n));
|
|
394
|
+
let i;
|
|
395
|
+
for (const r of n) {
|
|
396
|
+
if (r === this)
|
|
397
|
+
break;
|
|
398
|
+
r.anchor === this.source && (i = r);
|
|
399
|
+
}
|
|
400
|
+
return i;
|
|
396
401
|
}
|
|
397
402
|
toJSON(e, t) {
|
|
398
403
|
if (!t)
|
|
399
404
|
return { source: this.source };
|
|
400
|
-
const { anchors: n, doc: i, maxAliasCount: r } = t, o = this.resolve(i);
|
|
405
|
+
const { anchors: n, doc: i, maxAliasCount: r } = t, o = this.resolve(i, t);
|
|
401
406
|
if (!o) {
|
|
402
407
|
const a = `Unresolved alias (the anchor must be set before the alias): ${this.source}`;
|
|
403
408
|
throw new ReferenceError(a);
|
|
@@ -416,7 +421,7 @@ class Re extends pt {
|
|
|
416
421
|
toString(e, t, n) {
|
|
417
422
|
const i = `*${this.source}`;
|
|
418
423
|
if (e) {
|
|
419
|
-
if (
|
|
424
|
+
if (Yt(this.source), e.options.verifyAliasOrder && !e.anchors.has(this.source)) {
|
|
420
425
|
const r = `Unresolved alias (the anchor must be set before the alias): ${this.source}`;
|
|
421
426
|
throw new Error(r);
|
|
422
427
|
}
|
|
@@ -427,7 +432,7 @@ class Re extends pt {
|
|
|
427
432
|
}
|
|
428
433
|
}
|
|
429
434
|
function ve(s, e, t) {
|
|
430
|
-
if (
|
|
435
|
+
if (W(e)) {
|
|
431
436
|
const n = e.resolve(s), i = t && n && t.get(n);
|
|
432
437
|
return i ? i.count * i.aliasCount : 0;
|
|
433
438
|
} else if (L(e)) {
|
|
@@ -443,10 +448,10 @@ function ve(s, e, t) {
|
|
|
443
448
|
}
|
|
444
449
|
return 1;
|
|
445
450
|
}
|
|
446
|
-
const
|
|
451
|
+
const Wt = (s) => !s || typeof s != "function" && typeof s != "object";
|
|
447
452
|
class O extends pt {
|
|
448
453
|
constructor(e) {
|
|
449
|
-
super(
|
|
454
|
+
super(F), this.value = e;
|
|
450
455
|
}
|
|
451
456
|
toJSON(e, t) {
|
|
452
457
|
return t?.keep ? this.value : j(this.value, e, t);
|
|
@@ -471,7 +476,7 @@ function Ps(s, e, t) {
|
|
|
471
476
|
return t.find((n) => n.identify?.(s) && !n.format);
|
|
472
477
|
}
|
|
473
478
|
function ke(s, e, t) {
|
|
474
|
-
if (
|
|
479
|
+
if (Z(s) && (s = s.contents), $(s))
|
|
475
480
|
return s;
|
|
476
481
|
if (T(s)) {
|
|
477
482
|
const f = t.schema[G].createNode?.(t.schema, null, t);
|
|
@@ -482,7 +487,7 @@ function ke(s, e, t) {
|
|
|
482
487
|
let a;
|
|
483
488
|
if (n && s && typeof s == "object") {
|
|
484
489
|
if (a = l.get(s), a)
|
|
485
|
-
return a.anchor
|
|
490
|
+
return a.anchor ?? (a.anchor = i(s)), new Fe(a.anchor);
|
|
486
491
|
a = { anchor: null, node: null }, l.set(s, a);
|
|
487
492
|
}
|
|
488
493
|
e?.startsWith("!!") && (e = js + e.slice(2));
|
|
@@ -519,7 +524,7 @@ function je(s, e, t) {
|
|
|
519
524
|
});
|
|
520
525
|
}
|
|
521
526
|
const we = (s) => s == null || typeof s == "object" && !!s[Symbol.iterator]().next().done;
|
|
522
|
-
class
|
|
527
|
+
class Ht extends pt {
|
|
523
528
|
constructor(e, t) {
|
|
524
529
|
super(e), Object.defineProperty(this, "schema", {
|
|
525
530
|
value: t,
|
|
@@ -621,7 +626,7 @@ function U(s, e) {
|
|
|
621
626
|
const H = (s, e, t) => s.endsWith(`
|
|
622
627
|
`) ? U(t, e) : t.includes(`
|
|
623
628
|
`) ? `
|
|
624
|
-
` + U(t, e) : (s.endsWith(" ") ? "" : " ") + t,
|
|
629
|
+
` + U(t, e) : (s.endsWith(" ") ? "" : " ") + t, Xt = "flow", at = "block", Be = "quoted";
|
|
625
630
|
function Ue(s, e, t = "flow", { indentAtStart: n, lineWidth: i = 80, minContentWidth: r = 20, onFold: o, onOverflow: l } = {}) {
|
|
626
631
|
if (!i || i < 0)
|
|
627
632
|
return s;
|
|
@@ -790,7 +795,7 @@ function ct(s, e) {
|
|
|
790
795
|
return Se(s, e);
|
|
791
796
|
const t = e.indent || (Je(s) ? " " : ""), n = "'" + s.replace(/'/g, "''").replace(/\n+/g, `$&
|
|
792
797
|
${t}`) + "'";
|
|
793
|
-
return e.implicitKey ? n : Ue(n, t,
|
|
798
|
+
return e.implicitKey ? n : Ue(n, t, Xt, Ve(e, !1));
|
|
794
799
|
}
|
|
795
800
|
function le(s, e) {
|
|
796
801
|
const { singleQuote: t } = e.options;
|
|
@@ -814,7 +819,7 @@ try {
|
|
|
814
819
|
}
|
|
815
820
|
function Me({ comment: s, type: e, value: t }, n, i, r) {
|
|
816
821
|
const { blockQuote: o, commentString: l, lineWidth: a } = n.options;
|
|
817
|
-
if (!o || /\n[\t ]+$/.test(t)
|
|
822
|
+
if (!o || /\n[\t ]+$/.test(t))
|
|
818
823
|
return le(t, n);
|
|
819
824
|
const c = n.indent || (n.forceBlockIndent || Je(t) ? " " : ""), d = o === "literal" ? !0 : o === "folded" || e === O.BLOCK_FOLDED ? !1 : e === O.BLOCK_LITERAL ? !0 : !qs(t, a, c.length);
|
|
820
825
|
if (!t)
|
|
@@ -863,12 +868,12 @@ ${c}${g}`;
|
|
|
863
868
|
return t = t.replace(/\n+/g, `$&${c}`), `|${k}
|
|
864
869
|
${c}${w}${t}${m}`;
|
|
865
870
|
}
|
|
866
|
-
function
|
|
871
|
+
function Rs(s, e, t, n) {
|
|
867
872
|
const { type: i, value: r } = s, { actualString: o, implicitKey: l, indent: a, indentStep: c, inFlow: d } = e;
|
|
868
873
|
if (l && r.includes(`
|
|
869
874
|
`) || d && /[[\]{},]/.test(r))
|
|
870
875
|
return le(r, e);
|
|
871
|
-
if (
|
|
876
|
+
if (/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(r))
|
|
872
877
|
return l || d || !r.includes(`
|
|
873
878
|
`) ? le(r, e) : Me(s, e, t, n);
|
|
874
879
|
if (!l && !d && i !== O.PLAIN && r.includes(`
|
|
@@ -887,7 +892,7 @@ ${a}`);
|
|
|
887
892
|
if (y.some(u) || m?.some(u))
|
|
888
893
|
return le(r, e);
|
|
889
894
|
}
|
|
890
|
-
return l ? f : Ue(f, a,
|
|
895
|
+
return l ? f : Ue(f, a, Xt, Ve(e, !1));
|
|
891
896
|
}
|
|
892
897
|
function Ae(s, e, t, n) {
|
|
893
898
|
const { implicitKey: i, inFlow: r } = e, o = typeof s.value == "string" ? s : Object.assign({}, s, { value: String(s.value) });
|
|
@@ -903,7 +908,7 @@ function Ae(s, e, t, n) {
|
|
|
903
908
|
case O.QUOTE_SINGLE:
|
|
904
909
|
return ct(o.value, e);
|
|
905
910
|
case O.PLAIN:
|
|
906
|
-
return
|
|
911
|
+
return Rs(o, e, t, n);
|
|
907
912
|
default:
|
|
908
913
|
return null;
|
|
909
914
|
}
|
|
@@ -916,7 +921,7 @@ function Ae(s, e, t, n) {
|
|
|
916
921
|
}
|
|
917
922
|
return c;
|
|
918
923
|
}
|
|
919
|
-
function
|
|
924
|
+
function zt(s, e) {
|
|
920
925
|
const t = Object.assign({
|
|
921
926
|
blockQuote: !0,
|
|
922
927
|
commentString: Ds,
|
|
@@ -957,7 +962,7 @@ function Xt(s, e) {
|
|
|
957
962
|
options: t
|
|
958
963
|
};
|
|
959
964
|
}
|
|
960
|
-
function
|
|
965
|
+
function Fs(s, e) {
|
|
961
966
|
if (e.tag) {
|
|
962
967
|
const i = s.filter((r) => r.tag === e.tag);
|
|
963
968
|
if (i.length > 0)
|
|
@@ -975,7 +980,7 @@ function Rs(s, e) {
|
|
|
975
980
|
} else
|
|
976
981
|
n = e, t = s.find((i) => i.nodeClass && n instanceof i.nodeClass);
|
|
977
982
|
if (!t) {
|
|
978
|
-
const i = n?.constructor?.name ?? typeof n;
|
|
983
|
+
const i = n?.constructor?.name ?? (n === null ? "null" : typeof n);
|
|
979
984
|
throw new Error(`Tag not resolved for ${i} value`);
|
|
980
985
|
}
|
|
981
986
|
return t;
|
|
@@ -984,14 +989,14 @@ function Us(s, e, { anchors: t, doc: n }) {
|
|
|
984
989
|
if (!n.directives)
|
|
985
990
|
return "";
|
|
986
991
|
const i = [], r = (E(s) || L(s)) && s.anchor;
|
|
987
|
-
r &&
|
|
988
|
-
const o = s.tag
|
|
992
|
+
r && Yt(r) && (t.add(r), i.push(`&${r}`));
|
|
993
|
+
const o = s.tag ?? (e.default ? null : e.tag);
|
|
989
994
|
return o && i.push(n.directives.tagString(o)), i.join(" ");
|
|
990
995
|
}
|
|
991
996
|
function fe(s, e, t, n) {
|
|
992
997
|
if (T(s))
|
|
993
998
|
return s.toString(e, t, n);
|
|
994
|
-
if (
|
|
999
|
+
if (W(s)) {
|
|
995
1000
|
if (e.doc.directives)
|
|
996
1001
|
return s.toString(e);
|
|
997
1002
|
if (e.resolvedAliases?.has(s))
|
|
@@ -1000,7 +1005,7 @@ function fe(s, e, t, n) {
|
|
|
1000
1005
|
}
|
|
1001
1006
|
let i;
|
|
1002
1007
|
const r = $(s) ? s : e.doc.createNode(s, { onTagObj: (a) => i = a });
|
|
1003
|
-
i
|
|
1008
|
+
i ?? (i = Fs(e.doc.schema.tags, r));
|
|
1004
1009
|
const o = Us(r, i, e);
|
|
1005
1010
|
o.length > 0 && (e.indentAtStart = (e.indentAtStart ?? 0) + o.length + 1);
|
|
1006
1011
|
const l = typeof i.stringify == "function" ? i.stringify(r, e, t, n) : E(r) ? Ae(r, e, t, n) : r.toString(e, t, n);
|
|
@@ -1070,7 +1075,7 @@ ${t.indent}`);
|
|
|
1070
1075
|
`) && (A = "");
|
|
1071
1076
|
return p += A + N, t.inFlow ? k && n && n() : S && !k ? p += H(p, t.indent, c(S)) : h && i && i(), p;
|
|
1072
1077
|
}
|
|
1073
|
-
function
|
|
1078
|
+
function xt(s, e) {
|
|
1074
1079
|
(s === "debug" || s === "warn") && console.warn(e);
|
|
1075
1080
|
}
|
|
1076
1081
|
const Te = "<<", V = {
|
|
@@ -1079,12 +1084,12 @@ const Te = "<<", V = {
|
|
|
1079
1084
|
tag: "tag:yaml.org,2002:merge",
|
|
1080
1085
|
test: /^<<$/,
|
|
1081
1086
|
resolve: () => Object.assign(new O(Symbol(Te)), {
|
|
1082
|
-
addToJSMap:
|
|
1087
|
+
addToJSMap: Zt
|
|
1083
1088
|
}),
|
|
1084
1089
|
stringify: () => Te
|
|
1085
1090
|
}, Js = (s, e) => (V.identify(e) || E(e) && (!e.type || e.type === O.PLAIN) && V.identify(e.value)) && s?.doc.schema.tags.some((t) => t.tag === V.tag && t.default);
|
|
1086
|
-
function
|
|
1087
|
-
if (t = s &&
|
|
1091
|
+
function Zt(s, e, t) {
|
|
1092
|
+
if (t = s && W(t) ? t.resolve(s.doc) : t, pe(t))
|
|
1088
1093
|
for (const n of t.items)
|
|
1089
1094
|
et(s, e, n);
|
|
1090
1095
|
else if (Array.isArray(t))
|
|
@@ -1094,7 +1099,7 @@ function xt(s, e, t) {
|
|
|
1094
1099
|
et(s, e, t);
|
|
1095
1100
|
}
|
|
1096
1101
|
function et(s, e, t) {
|
|
1097
|
-
const n = s &&
|
|
1102
|
+
const n = s && W(t) ? t.resolve(s.doc) : t;
|
|
1098
1103
|
if (!de(n))
|
|
1099
1104
|
throw new Error("Merge sources must be maps or map aliases");
|
|
1100
1105
|
const i = n.toJSON(null, s, Map);
|
|
@@ -1107,11 +1112,11 @@ function et(s, e, t) {
|
|
|
1107
1112
|
});
|
|
1108
1113
|
return e;
|
|
1109
1114
|
}
|
|
1110
|
-
function
|
|
1115
|
+
function es(s, e, { key: t, value: n }) {
|
|
1111
1116
|
if ($(t) && t.addToJSMap)
|
|
1112
1117
|
t.addToJSMap(s, e, n);
|
|
1113
1118
|
else if (Js(s, t))
|
|
1114
|
-
|
|
1119
|
+
Zt(s, e, n);
|
|
1115
1120
|
else {
|
|
1116
1121
|
const i = j(t, "", s);
|
|
1117
1122
|
if (e instanceof Map)
|
|
@@ -1136,7 +1141,7 @@ function Ys(s, e, t) {
|
|
|
1136
1141
|
if (typeof e != "object")
|
|
1137
1142
|
return String(e);
|
|
1138
1143
|
if ($(s) && t?.doc) {
|
|
1139
|
-
const n =
|
|
1144
|
+
const n = zt(t.doc, {});
|
|
1140
1145
|
n.anchors = /* @__PURE__ */ new Set();
|
|
1141
1146
|
for (const r of t.anchors.keys())
|
|
1142
1147
|
n.anchors.add(r.anchor);
|
|
@@ -1144,7 +1149,7 @@ function Ys(s, e, t) {
|
|
|
1144
1149
|
const i = s.toString(n);
|
|
1145
1150
|
if (!t.mapKeyWarned) {
|
|
1146
1151
|
let r = JSON.stringify(i);
|
|
1147
|
-
r.length > 40 && (r = r.substring(0, 36) + '..."'),
|
|
1152
|
+
r.length > 40 && (r = r.substring(0, 36) + '..."'), xt(t.doc.options.logLevel, `Keys with collection values will be stringified due to JS Object restrictions: ${r}. Set mapAsMap: true to use object keys.`), t.mapKeyWarned = !0;
|
|
1148
1153
|
}
|
|
1149
1154
|
return i;
|
|
1150
1155
|
}
|
|
@@ -1164,13 +1169,13 @@ class v {
|
|
|
1164
1169
|
}
|
|
1165
1170
|
toJSON(e, t) {
|
|
1166
1171
|
const n = t?.mapAsMap ? /* @__PURE__ */ new Map() : {};
|
|
1167
|
-
return
|
|
1172
|
+
return es(t, n, this);
|
|
1168
1173
|
}
|
|
1169
1174
|
toString(e, t, n) {
|
|
1170
1175
|
return e?.doc ? Vs(this, e, t, n) : JSON.stringify(this);
|
|
1171
1176
|
}
|
|
1172
1177
|
}
|
|
1173
|
-
function
|
|
1178
|
+
function ts(s, e, t) {
|
|
1174
1179
|
return (e.inFlow ?? s.flow ? Qs : Gs)(s, e, t);
|
|
1175
1180
|
}
|
|
1176
1181
|
function Gs({ comment: s, items: e }, t, { blockItemPrefix: n, flowChars: i, itemIndent: r, onChompKeep: o, onComment: l }) {
|
|
@@ -1261,7 +1266,7 @@ function X(s, e) {
|
|
|
1261
1266
|
if (T(n) && (n.key === e || n.key === t || E(n.key) && n.key.value === t))
|
|
1262
1267
|
return n;
|
|
1263
1268
|
}
|
|
1264
|
-
class K extends
|
|
1269
|
+
class K extends Ht {
|
|
1265
1270
|
static get tagName() {
|
|
1266
1271
|
return "tag:yaml.org,2002:map";
|
|
1267
1272
|
}
|
|
@@ -1301,7 +1306,7 @@ class K extends Wt {
|
|
|
1301
1306
|
if (i) {
|
|
1302
1307
|
if (!t)
|
|
1303
1308
|
throw new Error(`Key ${n.key} already set`);
|
|
1304
|
-
E(i.value) &&
|
|
1309
|
+
E(i.value) && Wt(n.value) ? i.value.value = n.value : i.value = n.value;
|
|
1305
1310
|
} else if (r) {
|
|
1306
1311
|
const o = this.items.findIndex((l) => r(n, l) < 0);
|
|
1307
1312
|
o === -1 ? this.items.push(n) : this.items.splice(o, 0, n);
|
|
@@ -1331,7 +1336,7 @@ class K extends Wt {
|
|
|
1331
1336
|
const i = n ? new n() : t?.mapAsMap ? /* @__PURE__ */ new Map() : {};
|
|
1332
1337
|
t?.onCreate && t.onCreate(i);
|
|
1333
1338
|
for (const r of this.items)
|
|
1334
|
-
|
|
1339
|
+
es(t, i, r);
|
|
1335
1340
|
return i;
|
|
1336
1341
|
}
|
|
1337
1342
|
toString(e, t, n) {
|
|
@@ -1340,7 +1345,7 @@ class K extends Wt {
|
|
|
1340
1345
|
for (const i of this.items)
|
|
1341
1346
|
if (!T(i))
|
|
1342
1347
|
throw new Error(`Map items must all be pairs; found ${JSON.stringify(i)} instead`);
|
|
1343
|
-
return !e.allNullValues && this.hasAllNullValues(!1) && (e = Object.assign({}, e, { allNullValues: !0 })),
|
|
1348
|
+
return !e.allNullValues && this.hasAllNullValues(!1) && (e = Object.assign({}, e, { allNullValues: !0 })), ts(this, e, {
|
|
1344
1349
|
blockItemPrefix: "",
|
|
1345
1350
|
flowChars: { start: "{", end: "}" },
|
|
1346
1351
|
itemIndent: e.indent || "",
|
|
@@ -1359,7 +1364,7 @@ const me = {
|
|
|
1359
1364
|
},
|
|
1360
1365
|
createNode: (s, e, t) => K.from(s, e, t)
|
|
1361
1366
|
};
|
|
1362
|
-
class
|
|
1367
|
+
class Q extends Ht {
|
|
1363
1368
|
static get tagName() {
|
|
1364
1369
|
return "tag:yaml.org,2002:seq";
|
|
1365
1370
|
}
|
|
@@ -1410,7 +1415,7 @@ class W extends Wt {
|
|
|
1410
1415
|
if (typeof n != "number")
|
|
1411
1416
|
throw new Error(`Expected a valid index, not ${e}.`);
|
|
1412
1417
|
const i = this.items[n];
|
|
1413
|
-
E(i) &&
|
|
1418
|
+
E(i) && Wt(t) ? i.value = t : this.items[n] = t;
|
|
1414
1419
|
}
|
|
1415
1420
|
toJSON(e, t) {
|
|
1416
1421
|
const n = [];
|
|
@@ -1421,7 +1426,7 @@ class W extends Wt {
|
|
|
1421
1426
|
return n;
|
|
1422
1427
|
}
|
|
1423
1428
|
toString(e, t, n) {
|
|
1424
|
-
return e ?
|
|
1429
|
+
return e ? ts(this, e, {
|
|
1425
1430
|
blockItemPrefix: "- ",
|
|
1426
1431
|
flowChars: { start: "[", end: "]" },
|
|
1427
1432
|
itemIndent: (e.indent || "") + " ",
|
|
@@ -1451,12 +1456,12 @@ function Le(s) {
|
|
|
1451
1456
|
const ye = {
|
|
1452
1457
|
collection: "seq",
|
|
1453
1458
|
default: !0,
|
|
1454
|
-
nodeClass:
|
|
1459
|
+
nodeClass: Q,
|
|
1455
1460
|
tag: "tag:yaml.org,2002:seq",
|
|
1456
1461
|
resolve(s, e) {
|
|
1457
1462
|
return pe(s) || e("Expected a sequence for this tag"), s;
|
|
1458
1463
|
},
|
|
1459
|
-
createNode: (s, e, t) =>
|
|
1464
|
+
createNode: (s, e, t) => Q.from(s, e, t)
|
|
1460
1465
|
}, Ye = {
|
|
1461
1466
|
identify: (s) => typeof s == "string",
|
|
1462
1467
|
default: !0,
|
|
@@ -1504,14 +1509,14 @@ function q({ format: s, minFractionDigits: e, tag: t, value: n }) {
|
|
|
1504
1509
|
}
|
|
1505
1510
|
return r;
|
|
1506
1511
|
}
|
|
1507
|
-
const
|
|
1512
|
+
const ss = {
|
|
1508
1513
|
identify: (s) => typeof s == "number",
|
|
1509
1514
|
default: !0,
|
|
1510
1515
|
tag: "tag:yaml.org,2002:float",
|
|
1511
1516
|
test: /^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,
|
|
1512
1517
|
resolve: (s) => s.slice(-3).toLowerCase() === "nan" ? NaN : s[0] === "-" ? Number.NEGATIVE_INFINITY : Number.POSITIVE_INFINITY,
|
|
1513
1518
|
stringify: q
|
|
1514
|
-
},
|
|
1519
|
+
}, ns = {
|
|
1515
1520
|
identify: (s) => typeof s == "number",
|
|
1516
1521
|
default: !0,
|
|
1517
1522
|
tag: "tag:yaml.org,2002:float",
|
|
@@ -1522,7 +1527,7 @@ const ts = {
|
|
|
1522
1527
|
const e = Number(s.value);
|
|
1523
1528
|
return isFinite(e) ? e.toExponential() : q(s);
|
|
1524
1529
|
}
|
|
1525
|
-
},
|
|
1530
|
+
}, is = {
|
|
1526
1531
|
identify: (s) => typeof s == "number",
|
|
1527
1532
|
default: !0,
|
|
1528
1533
|
tag: "tag:yaml.org,2002:float",
|
|
@@ -1533,45 +1538,45 @@ const ts = {
|
|
|
1533
1538
|
},
|
|
1534
1539
|
stringify: q
|
|
1535
1540
|
}, Qe = (s) => typeof s == "bigint" || Number.isInteger(s), gt = (s, e, t, { intAsBigInt: n }) => n ? BigInt(s) : parseInt(s.substring(e), t);
|
|
1536
|
-
function
|
|
1541
|
+
function rs(s, e, t) {
|
|
1537
1542
|
const { value: n } = s;
|
|
1538
1543
|
return Qe(n) && n >= 0 ? t + n.toString(e) : q(s);
|
|
1539
1544
|
}
|
|
1540
|
-
const
|
|
1545
|
+
const os = {
|
|
1541
1546
|
identify: (s) => Qe(s) && s >= 0,
|
|
1542
1547
|
default: !0,
|
|
1543
1548
|
tag: "tag:yaml.org,2002:int",
|
|
1544
1549
|
format: "OCT",
|
|
1545
1550
|
test: /^0o[0-7]+$/,
|
|
1546
1551
|
resolve: (s, e, t) => gt(s, 2, 8, t),
|
|
1547
|
-
stringify: (s) =>
|
|
1548
|
-
},
|
|
1552
|
+
stringify: (s) => rs(s, 8, "0o")
|
|
1553
|
+
}, ls = {
|
|
1549
1554
|
identify: Qe,
|
|
1550
1555
|
default: !0,
|
|
1551
1556
|
tag: "tag:yaml.org,2002:int",
|
|
1552
1557
|
test: /^[-+]?[0-9]+$/,
|
|
1553
1558
|
resolve: (s, e, t) => gt(s, 0, 10, t),
|
|
1554
1559
|
stringify: q
|
|
1555
|
-
},
|
|
1560
|
+
}, as = {
|
|
1556
1561
|
identify: (s) => Qe(s) && s >= 0,
|
|
1557
1562
|
default: !0,
|
|
1558
1563
|
tag: "tag:yaml.org,2002:int",
|
|
1559
1564
|
format: "HEX",
|
|
1560
1565
|
test: /^0x[0-9a-fA-F]+$/,
|
|
1561
1566
|
resolve: (s, e, t) => gt(s, 2, 16, t),
|
|
1562
|
-
stringify: (s) =>
|
|
1567
|
+
stringify: (s) => rs(s, 16, "0x")
|
|
1563
1568
|
}, Ws = [
|
|
1564
1569
|
me,
|
|
1565
1570
|
ye,
|
|
1566
1571
|
Ye,
|
|
1567
1572
|
Ge,
|
|
1568
1573
|
yt,
|
|
1569
|
-
rs,
|
|
1570
1574
|
os,
|
|
1571
1575
|
ls,
|
|
1572
|
-
|
|
1576
|
+
as,
|
|
1573
1577
|
ss,
|
|
1574
|
-
ns
|
|
1578
|
+
ns,
|
|
1579
|
+
is
|
|
1575
1580
|
];
|
|
1576
1581
|
function _t(s) {
|
|
1577
1582
|
return typeof s == "bigint" || Number.isInteger(s);
|
|
@@ -1658,7 +1663,7 @@ const $e = ({ value: s }) => JSON.stringify(s), Hs = [
|
|
|
1658
1663
|
l = btoa(a);
|
|
1659
1664
|
} else
|
|
1660
1665
|
throw new Error("This environment does not support writing binary tags; either Buffer or btoa is required");
|
|
1661
|
-
if (e
|
|
1666
|
+
if (e ?? (e = O.BLOCK_LITERAL), e !== O.QUOTE_DOUBLE) {
|
|
1662
1667
|
const a = Math.max(n.options.lineWidth - n.indent.length, n.options.minContentWidth), c = Math.ceil(l.length / a), d = new Array(c);
|
|
1663
1668
|
for (let f = 0, u = 0; f < c; ++f, u += a)
|
|
1664
1669
|
d[f] = l.substr(u, a);
|
|
@@ -1668,7 +1673,7 @@ const $e = ({ value: s }) => JSON.stringify(s), Hs = [
|
|
|
1668
1673
|
return Ae({ comment: s, type: e, value: l }, n, i, r);
|
|
1669
1674
|
}
|
|
1670
1675
|
};
|
|
1671
|
-
function
|
|
1676
|
+
function cs(s, e) {
|
|
1672
1677
|
if (pe(s))
|
|
1673
1678
|
for (let t = 0; t < s.items.length; ++t) {
|
|
1674
1679
|
let n = s.items[t];
|
|
@@ -1691,8 +1696,8 @@ ${r.comment}` : n.comment;
|
|
|
1691
1696
|
e("Expected a sequence for this tag");
|
|
1692
1697
|
return s;
|
|
1693
1698
|
}
|
|
1694
|
-
function
|
|
1695
|
-
const { replacer: n } = t, i = new
|
|
1699
|
+
function fs(s, e, t) {
|
|
1700
|
+
const { replacer: n } = t, i = new Q(s);
|
|
1696
1701
|
i.tag = "tag:yaml.org,2002:pairs";
|
|
1697
1702
|
let r = 0;
|
|
1698
1703
|
if (e && Symbol.iterator in Object(e))
|
|
@@ -1720,10 +1725,10 @@ const wt = {
|
|
|
1720
1725
|
collection: "seq",
|
|
1721
1726
|
default: !1,
|
|
1722
1727
|
tag: "tag:yaml.org,2002:pairs",
|
|
1723
|
-
resolve:
|
|
1724
|
-
createNode:
|
|
1728
|
+
resolve: cs,
|
|
1729
|
+
createNode: fs
|
|
1725
1730
|
};
|
|
1726
|
-
class ae extends
|
|
1731
|
+
class ae extends Q {
|
|
1727
1732
|
constructor() {
|
|
1728
1733
|
super(), this.add = K.prototype.add.bind(this), this.delete = K.prototype.delete.bind(this), this.get = K.prototype.get.bind(this), this.has = K.prototype.has.bind(this), this.set = K.prototype.set.bind(this), this.tag = ae.tag;
|
|
1729
1734
|
}
|
|
@@ -1745,7 +1750,7 @@ class ae extends W {
|
|
|
1745
1750
|
return n;
|
|
1746
1751
|
}
|
|
1747
1752
|
static from(e, t, n) {
|
|
1748
|
-
const i =
|
|
1753
|
+
const i = fs(e, t, n), r = new this();
|
|
1749
1754
|
return r.items = i.items, r;
|
|
1750
1755
|
}
|
|
1751
1756
|
}
|
|
@@ -1757,30 +1762,30 @@ const St = {
|
|
|
1757
1762
|
default: !1,
|
|
1758
1763
|
tag: "tag:yaml.org,2002:omap",
|
|
1759
1764
|
resolve(s, e) {
|
|
1760
|
-
const t =
|
|
1765
|
+
const t = cs(s, e), n = [];
|
|
1761
1766
|
for (const { key: i } of t.items)
|
|
1762
1767
|
E(i) && (n.includes(i.value) ? e(`Ordered maps must not include duplicate keys: ${i.value}`) : n.push(i.value));
|
|
1763
1768
|
return Object.assign(new ae(), t);
|
|
1764
1769
|
},
|
|
1765
1770
|
createNode: (s, e, t) => ae.from(s, e, t)
|
|
1766
1771
|
};
|
|
1767
|
-
function
|
|
1768
|
-
return e && (s ?
|
|
1772
|
+
function us({ value: s, source: e }, t) {
|
|
1773
|
+
return e && (s ? hs : ds).test.test(e) ? e : s ? t.options.trueStr : t.options.falseStr;
|
|
1769
1774
|
}
|
|
1770
|
-
const
|
|
1775
|
+
const hs = {
|
|
1771
1776
|
identify: (s) => s === !0,
|
|
1772
1777
|
default: !0,
|
|
1773
1778
|
tag: "tag:yaml.org,2002:bool",
|
|
1774
1779
|
test: /^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,
|
|
1775
1780
|
resolve: () => new O(!0),
|
|
1776
|
-
stringify:
|
|
1777
|
-
},
|
|
1781
|
+
stringify: us
|
|
1782
|
+
}, ds = {
|
|
1778
1783
|
identify: (s) => s === !1,
|
|
1779
1784
|
default: !0,
|
|
1780
1785
|
tag: "tag:yaml.org,2002:bool",
|
|
1781
1786
|
test: /^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/,
|
|
1782
1787
|
resolve: () => new O(!1),
|
|
1783
|
-
stringify:
|
|
1788
|
+
stringify: us
|
|
1784
1789
|
}, xs = {
|
|
1785
1790
|
identify: (s) => typeof s == "number",
|
|
1786
1791
|
default: !0,
|
|
@@ -1936,7 +1941,7 @@ function Ot(s, e) {
|
|
|
1936
1941
|
const t = s[0], n = t === "-" || t === "+" ? s.substring(1) : s, i = (o) => e ? BigInt(o) : Number(o), r = n.replace(/_/g, "").split(":").reduce((o, l) => o * i(60) + i(l), i(0));
|
|
1937
1942
|
return t === "-" ? i(-1) * r : r;
|
|
1938
1943
|
}
|
|
1939
|
-
function
|
|
1944
|
+
function ps(s) {
|
|
1940
1945
|
let { value: e } = s, t = (o) => o;
|
|
1941
1946
|
if (typeof e == "bigint")
|
|
1942
1947
|
t = (o) => BigInt(o);
|
|
@@ -1947,22 +1952,22 @@ function ds(s) {
|
|
|
1947
1952
|
const i = t(60), r = [e % i];
|
|
1948
1953
|
return e < 60 ? r.unshift(0) : (e = (e - r[0]) / i, r.unshift(e % i), e >= 60 && (e = (e - r[0]) / i, r.unshift(e))), n + r.map((o) => String(o).padStart(2, "0")).join(":").replace(/000000\d*$/, "");
|
|
1949
1954
|
}
|
|
1950
|
-
const
|
|
1955
|
+
const ms = {
|
|
1951
1956
|
identify: (s) => typeof s == "bigint" || Number.isInteger(s),
|
|
1952
1957
|
default: !0,
|
|
1953
1958
|
tag: "tag:yaml.org,2002:int",
|
|
1954
1959
|
format: "TIME",
|
|
1955
1960
|
test: /^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,
|
|
1956
1961
|
resolve: (s, e, { intAsBigInt: t }) => Ot(s, t),
|
|
1957
|
-
stringify:
|
|
1958
|
-
},
|
|
1962
|
+
stringify: ps
|
|
1963
|
+
}, ys = {
|
|
1959
1964
|
identify: (s) => typeof s == "number",
|
|
1960
1965
|
default: !0,
|
|
1961
1966
|
tag: "tag:yaml.org,2002:float",
|
|
1962
1967
|
format: "TIME",
|
|
1963
1968
|
test: /^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,
|
|
1964
1969
|
resolve: (s) => Ot(s, !1),
|
|
1965
|
-
stringify:
|
|
1970
|
+
stringify: ps
|
|
1966
1971
|
}, He = {
|
|
1967
1972
|
identify: (s) => s instanceof Date,
|
|
1968
1973
|
default: !0,
|
|
@@ -1990,8 +1995,8 @@ const ps = {
|
|
|
1990
1995
|
ye,
|
|
1991
1996
|
Ye,
|
|
1992
1997
|
Ge,
|
|
1993
|
-
us,
|
|
1994
1998
|
hs,
|
|
1999
|
+
ds,
|
|
1995
2000
|
tn,
|
|
1996
2001
|
sn,
|
|
1997
2002
|
nn,
|
|
@@ -2004,8 +2009,8 @@ const ps = {
|
|
|
2004
2009
|
St,
|
|
2005
2010
|
wt,
|
|
2006
2011
|
Nt,
|
|
2007
|
-
ps,
|
|
2008
2012
|
ms,
|
|
2013
|
+
ys,
|
|
2009
2014
|
He
|
|
2010
2015
|
], vt = /* @__PURE__ */ new Map([
|
|
2011
2016
|
["core", Ws],
|
|
@@ -2016,14 +2021,14 @@ const ps = {
|
|
|
2016
2021
|
]), Bt = {
|
|
2017
2022
|
binary: bt,
|
|
2018
2023
|
bool: yt,
|
|
2019
|
-
float:
|
|
2020
|
-
floatExp:
|
|
2021
|
-
floatNaN:
|
|
2022
|
-
floatTime:
|
|
2023
|
-
int:
|
|
2024
|
-
intHex:
|
|
2025
|
-
intOct:
|
|
2026
|
-
intTime:
|
|
2024
|
+
float: is,
|
|
2025
|
+
floatExp: ns,
|
|
2026
|
+
floatNaN: ss,
|
|
2027
|
+
floatTime: ys,
|
|
2028
|
+
int: ls,
|
|
2029
|
+
intHex: as,
|
|
2030
|
+
intOct: os,
|
|
2031
|
+
intTime: ms,
|
|
2027
2032
|
map: me,
|
|
2028
2033
|
merge: V,
|
|
2029
2034
|
null: Ge,
|
|
@@ -2068,7 +2073,7 @@ function tt(s, e, t) {
|
|
|
2068
2073
|
const ln = (s, e) => s.key < e.key ? -1 : s.key > e.key ? 1 : 0;
|
|
2069
2074
|
class Xe {
|
|
2070
2075
|
constructor({ compat: e, customTags: t, merge: n, resolveKnownTags: i, schema: r, sortMapEntries: o, toStringDefaults: l }) {
|
|
2071
|
-
this.compat = Array.isArray(e) ? tt(e, "compat") : e ? tt(null, e) : null, this.name = typeof r == "string" && r || "core", this.knownTags = i ? on : {}, this.tags = tt(t, this.name, n), this.toStringOptions = l ?? null, Object.defineProperty(this, G, { value: me }), Object.defineProperty(this,
|
|
2076
|
+
this.compat = Array.isArray(e) ? tt(e, "compat") : e ? tt(null, e) : null, this.name = typeof r == "string" && r || "core", this.knownTags = i ? on : {}, this.tags = tt(t, this.name, n), this.toStringOptions = l ?? null, Object.defineProperty(this, G, { value: me }), Object.defineProperty(this, F, { value: Ye }), Object.defineProperty(this, he, { value: ye }), this.sortMapEntries = typeof o == "function" ? o : o === !0 ? ln : null;
|
|
2072
2077
|
}
|
|
2073
2078
|
clone() {
|
|
2074
2079
|
const e = Object.create(Xe.prototype, Object.getOwnPropertyDescriptors(this));
|
|
@@ -2083,7 +2088,7 @@ function an(s, e) {
|
|
|
2083
2088
|
a ? (t.push(a), n = !0) : s.directives.docStart && (n = !0);
|
|
2084
2089
|
}
|
|
2085
2090
|
n && t.push("---");
|
|
2086
|
-
const i =
|
|
2091
|
+
const i = zt(s, e), { commentString: r } = i.options;
|
|
2087
2092
|
if (s.commentBefore) {
|
|
2088
2093
|
t.length !== 1 && t.unshift("");
|
|
2089
2094
|
const a = r(s.commentBefore);
|
|
@@ -2167,11 +2172,11 @@ class ge {
|
|
|
2167
2172
|
*/
|
|
2168
2173
|
createAlias(e, t) {
|
|
2169
2174
|
if (!e.anchor) {
|
|
2170
|
-
const n =
|
|
2175
|
+
const n = Gt(this);
|
|
2171
2176
|
e.anchor = // eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing
|
|
2172
|
-
!t || n.has(t) ?
|
|
2177
|
+
!t || n.has(t) ? Qt(t || "a", n) : t;
|
|
2173
2178
|
}
|
|
2174
|
-
return new
|
|
2179
|
+
return new Fe(e.anchor);
|
|
2175
2180
|
}
|
|
2176
2181
|
createNode(e, t, n) {
|
|
2177
2182
|
let i;
|
|
@@ -2343,7 +2348,7 @@ class z extends At {
|
|
|
2343
2348
|
super("YAMLParseError", e, t, n);
|
|
2344
2349
|
}
|
|
2345
2350
|
}
|
|
2346
|
-
class
|
|
2351
|
+
class gs extends At {
|
|
2347
2352
|
constructor(e, t, n) {
|
|
2348
2353
|
super("YAMLWarning", e, t, n);
|
|
2349
2354
|
}
|
|
@@ -2393,10 +2398,10 @@ function ue(s, { flow: e, indicator: t, next: n, offset: i, onError: r, parentIn
|
|
|
2393
2398
|
c ? f ? f += g.source : (!k || t !== "seq-item-ind") && (a = !0) : u += g.source, c = !0, m = !0, (p || b) && (w = g), d = !0;
|
|
2394
2399
|
break;
|
|
2395
2400
|
case "anchor":
|
|
2396
|
-
p && r(g, "MULTIPLE_ANCHORS", "A node can have at most one anchor"), g.source.endsWith(":") && r(g.offset + g.source.length - 1, "BAD_ALIAS", "Anchor ending in : is ambiguous", !0), p = g, N
|
|
2401
|
+
p && r(g, "MULTIPLE_ANCHORS", "A node can have at most one anchor"), g.source.endsWith(":") && r(g.offset + g.source.length - 1, "BAD_ALIAS", "Anchor ending in : is ambiguous", !0), p = g, N ?? (N = g.offset), c = !1, d = !1, y = !0;
|
|
2397
2402
|
break;
|
|
2398
2403
|
case "tag": {
|
|
2399
|
-
b && r(g, "MULTIPLE_TAGS", "A node can have at most one tag"), b = g, N
|
|
2404
|
+
b && r(g, "MULTIPLE_TAGS", "A node can have at most one tag"), b = g, N ?? (N = g.offset), c = !1, d = !1, y = !0;
|
|
2400
2405
|
break;
|
|
2401
2406
|
}
|
|
2402
2407
|
case t:
|
|
@@ -2466,7 +2471,7 @@ function ut(s, e, t) {
|
|
|
2466
2471
|
n.indent === s && (n.source === "]" || n.source === "}") && Ne(e) && t(n, "BAD_INDENT", "Flow end indicator should be more indented than parent", !0);
|
|
2467
2472
|
}
|
|
2468
2473
|
}
|
|
2469
|
-
function
|
|
2474
|
+
function bs(s, e, t) {
|
|
2470
2475
|
const { uniqueKeys: n } = s.options;
|
|
2471
2476
|
if (n === !1)
|
|
2472
2477
|
return !1;
|
|
@@ -2497,7 +2502,7 @@ function cn({ composeNode: s, composeEmptyNode: e }, t, n, i, r) {
|
|
|
2497
2502
|
} else h.found?.indent !== n.indent && i(a, "BAD_INDENT", Mt);
|
|
2498
2503
|
t.atKey = !0;
|
|
2499
2504
|
const b = h.end, w = u ? s(t, u, h, i) : e(t, b, f, null, h, i);
|
|
2500
|
-
t.schema.compat && ut(n.indent, u, i), t.atKey = !1,
|
|
2505
|
+
t.schema.compat && ut(n.indent, u, i), t.atKey = !1, bs(t, l.items, w) && i(b, "DUPLICATE_KEY", "Map keys must be unique");
|
|
2501
2506
|
const S = ue(m ?? [], {
|
|
2502
2507
|
indicator: "map-value-ind",
|
|
2503
2508
|
next: y,
|
|
@@ -2522,7 +2527,7 @@ function cn({ composeNode: s, composeEmptyNode: e }, t, n, i, r) {
|
|
|
2522
2527
|
return c && c < a && i(c, "IMPOSSIBLE", "Map comment with trailing content"), l.range = [n.offset, a, c ?? a], l;
|
|
2523
2528
|
}
|
|
2524
2529
|
function fn({ composeNode: s, composeEmptyNode: e }, t, n, i, r) {
|
|
2525
|
-
const o = r?.nodeClass ??
|
|
2530
|
+
const o = r?.nodeClass ?? Q, l = new o(t.schema);
|
|
2526
2531
|
t.atRoot && (t.atRoot = !1), t.atKey && (t.atKey = !1);
|
|
2527
2532
|
let a = n.offset, c = null;
|
|
2528
2533
|
for (const { start: d, value: f } of n.items) {
|
|
@@ -2575,7 +2580,7 @@ function Ie(s, e, t, n) {
|
|
|
2575
2580
|
}
|
|
2576
2581
|
const st = "Block collections are not allowed within flow collections", nt = (s) => s && (s.type === "block-map" || s.type === "block-seq");
|
|
2577
2582
|
function un({ composeNode: s, composeEmptyNode: e }, t, n, i, r) {
|
|
2578
|
-
const o = n.start.source === "{", l = o ? "flow map" : "flow sequence", a = r?.nodeClass ?? (o ? K :
|
|
2583
|
+
const o = n.start.source === "{", l = o ? "flow map" : "flow sequence", a = r?.nodeClass ?? (o ? K : Q), c = new a(t.schema);
|
|
2579
2584
|
c.flow = !0;
|
|
2580
2585
|
const d = t.atRoot;
|
|
2581
2586
|
d && (t.atRoot = !1), t.atKey && (t.atKey = !1);
|
|
@@ -2660,7 +2665,7 @@ function un({ composeNode: s, composeEmptyNode: e }, t, n, i, r) {
|
|
|
2660
2665
|
const te = new v(g, J);
|
|
2661
2666
|
if (t.options.keepSourceTokens && (te.srcToken = b), o) {
|
|
2662
2667
|
const C = c;
|
|
2663
|
-
|
|
2668
|
+
bs(t, C.items, g) && i(I, "DUPLICATE_KEY", "Map keys must be unique"), C.items.push(te);
|
|
2664
2669
|
} else {
|
|
2665
2670
|
const C = new K(t.schema);
|
|
2666
2671
|
C.flow = !0, C.items.push(te);
|
|
@@ -2697,7 +2702,7 @@ function hn(s, e, t, n, i) {
|
|
|
2697
2702
|
y && (!m || m.offset < y.offset) && i(y, "MISSING_CHAR", "Missing newline after block sequence props");
|
|
2698
2703
|
}
|
|
2699
2704
|
const l = t.type === "block-map" ? "map" : t.type === "block-seq" ? "seq" : t.start.source === "{" ? "map" : "seq";
|
|
2700
|
-
if (!r || !o || o === "!" || o === K.tagName && l === "map" || o ===
|
|
2705
|
+
if (!r || !o || o === "!" || o === K.tagName && l === "map" || o === Q.tagName && l === "seq")
|
|
2701
2706
|
return it(s, e, t, i, o);
|
|
2702
2707
|
let a = e.schema.tags.find((u) => u.tag === o && u.collection === l);
|
|
2703
2708
|
if (!a) {
|
|
@@ -2710,7 +2715,7 @@ function hn(s, e, t, n, i) {
|
|
|
2710
2715
|
const c = it(s, e, t, i, o, a), d = a.resolve?.(c, (u) => i(r, "TAG_RESOLVE_FAILED", u), e.options) ?? c, f = $(d) ? d : new O(d);
|
|
2711
2716
|
return f.range = c.range, f.tag = o, a?.format && (f.format = a.format), f;
|
|
2712
2717
|
}
|
|
2713
|
-
function
|
|
2718
|
+
function ws(s, e, t) {
|
|
2714
2719
|
const n = e.offset, i = dn(e, s.options.strict, t);
|
|
2715
2720
|
if (!i)
|
|
2716
2721
|
return { value: "", type: null, comment: "", range: [n, n, n] };
|
|
@@ -2831,7 +2836,7 @@ function pn(s) {
|
|
|
2831
2836
|
r.push([e[o], e[o + 1]]);
|
|
2832
2837
|
return r;
|
|
2833
2838
|
}
|
|
2834
|
-
function
|
|
2839
|
+
function Ss(s, e, t) {
|
|
2835
2840
|
const { offset: n, type: i, source: r, end: o } = s;
|
|
2836
2841
|
let l, a;
|
|
2837
2842
|
const c = (u, m, y) => t(n + u, m, y);
|
|
@@ -2886,12 +2891,12 @@ function mn(s, e) {
|
|
|
2886
2891
|
break;
|
|
2887
2892
|
}
|
|
2888
2893
|
}
|
|
2889
|
-
return t && e(0, "BAD_SCALAR_START", `Plain value cannot start with ${t}`),
|
|
2894
|
+
return t && e(0, "BAD_SCALAR_START", `Plain value cannot start with ${t}`), ks(s);
|
|
2890
2895
|
}
|
|
2891
2896
|
function yn(s, e) {
|
|
2892
|
-
return (s[s.length - 1] !== "'" || s.length === 1) && e(s.length, "MISSING_CHAR", "Missing closing 'quote"),
|
|
2897
|
+
return (s[s.length - 1] !== "'" || s.length === 1) && e(s.length, "MISSING_CHAR", "Missing closing 'quote"), ks(s.slice(1, -1)).replace(/''/g, "'");
|
|
2893
2898
|
}
|
|
2894
|
-
function
|
|
2899
|
+
function ks(s) {
|
|
2895
2900
|
let e, t;
|
|
2896
2901
|
try {
|
|
2897
2902
|
e = new RegExp(`(.*?)(?<![ ])[ ]*\r?
|
|
@@ -3006,10 +3011,10 @@ function Sn(s, e, t, n) {
|
|
|
3006
3011
|
}
|
|
3007
3012
|
return String.fromCodePoint(o);
|
|
3008
3013
|
}
|
|
3009
|
-
function
|
|
3010
|
-
const { value: i, type: r, comment: o, range: l } = e.type === "block-scalar" ?
|
|
3014
|
+
function Ns(s, e, t, n) {
|
|
3015
|
+
const { value: i, type: r, comment: o, range: l } = e.type === "block-scalar" ? ws(s, e, n) : Ss(e, s.options.strict, n), a = t ? s.directives.tagName(t.source, (f) => n(t, "TAG_RESOLVE_FAILED", f)) : null;
|
|
3011
3016
|
let c;
|
|
3012
|
-
s.options.stringKeys && s.atKey ? c = s.schema[
|
|
3017
|
+
s.options.stringKeys && s.atKey ? c = s.schema[F] : a ? c = kn(s.schema, i, a, t, n) : e.type === "scalar" ? c = Nn(s, i, e, n) : c = s.schema[F];
|
|
3013
3018
|
let d;
|
|
3014
3019
|
try {
|
|
3015
3020
|
const f = c.resolve(i, (u) => n(t ?? e, "TAG_RESOLVE_FAILED", u), s.options);
|
|
@@ -3022,7 +3027,7 @@ function ks(s, e, t, n) {
|
|
|
3022
3027
|
}
|
|
3023
3028
|
function kn(s, e, t, n, i) {
|
|
3024
3029
|
if (t === "!")
|
|
3025
|
-
return s[
|
|
3030
|
+
return s[F];
|
|
3026
3031
|
const r = [];
|
|
3027
3032
|
for (const l of s.tags)
|
|
3028
3033
|
if (!l.collection && l.tag === t)
|
|
@@ -3034,12 +3039,12 @@ function kn(s, e, t, n, i) {
|
|
|
3034
3039
|
if (l.test?.test(e))
|
|
3035
3040
|
return l;
|
|
3036
3041
|
const o = s.knownTags[t];
|
|
3037
|
-
return o && !o.collection ? (s.tags.push(Object.assign({}, o, { default: !1, test: void 0 })), o) : (i(n, "TAG_RESOLVE_FAILED", `Unresolved tag: ${t}`, t !== "tag:yaml.org,2002:str"), s[
|
|
3042
|
+
return o && !o.collection ? (s.tags.push(Object.assign({}, o, { default: !1, test: void 0 })), o) : (i(n, "TAG_RESOLVE_FAILED", `Unresolved tag: ${t}`, t !== "tag:yaml.org,2002:str"), s[F]);
|
|
3038
3043
|
}
|
|
3039
3044
|
function Nn({ atKey: s, directives: e, schema: t }, n, i, r) {
|
|
3040
|
-
const o = t.tags.find((l) => (l.default === !0 || s && l.default === "key") && l.test?.test(n)) || t[
|
|
3045
|
+
const o = t.tags.find((l) => (l.default === !0 || s && l.default === "key") && l.test?.test(n)) || t[F];
|
|
3041
3046
|
if (t.compat) {
|
|
3042
|
-
const l = t.compat.find((a) => a.default && a.test?.test(n)) ?? t[
|
|
3047
|
+
const l = t.compat.find((a) => a.default && a.test?.test(n)) ?? t[F];
|
|
3043
3048
|
if (o.tag !== l.tag) {
|
|
3044
3049
|
const a = e.tagString(o.tag), c = e.tagString(l.tag), d = `Value may be parsed as either ${a} or ${c}`;
|
|
3045
3050
|
r(i, "TAG_RESOLVE_FAILED", d, !0);
|
|
@@ -3049,7 +3054,7 @@ function Nn({ atKey: s, directives: e, schema: t }, n, i, r) {
|
|
|
3049
3054
|
}
|
|
3050
3055
|
function On(s, e, t) {
|
|
3051
3056
|
if (e) {
|
|
3052
|
-
t
|
|
3057
|
+
t ?? (t = e.length);
|
|
3053
3058
|
for (let n = t - 1; n >= 0; --n) {
|
|
3054
3059
|
let i = e[n];
|
|
3055
3060
|
switch (i.type) {
|
|
@@ -3066,8 +3071,8 @@ function On(s, e, t) {
|
|
|
3066
3071
|
}
|
|
3067
3072
|
return s;
|
|
3068
3073
|
}
|
|
3069
|
-
const An = { composeNode:
|
|
3070
|
-
function
|
|
3074
|
+
const An = { composeNode: Os, composeEmptyNode: Et };
|
|
3075
|
+
function Os(s, e, t, n) {
|
|
3071
3076
|
const i = s.atKey, { spaceBefore: r, comment: o, anchor: l, tag: a } = t;
|
|
3072
3077
|
let c, d = !0;
|
|
3073
3078
|
switch (e.type) {
|
|
@@ -3078,7 +3083,7 @@ function Ns(s, e, t, n) {
|
|
|
3078
3083
|
case "single-quoted-scalar":
|
|
3079
3084
|
case "double-quoted-scalar":
|
|
3080
3085
|
case "block-scalar":
|
|
3081
|
-
c =
|
|
3086
|
+
c = Ns(s, e, a, n), l && (c.anchor = l.source.substring(1));
|
|
3082
3087
|
break;
|
|
3083
3088
|
case "block-map":
|
|
3084
3089
|
case "block-seq":
|
|
@@ -3098,11 +3103,11 @@ function Et(s, e, t, n, { spaceBefore: i, comment: r, anchor: o, tag: l, end: a
|
|
|
3098
3103
|
offset: On(e, t, n),
|
|
3099
3104
|
indent: -1,
|
|
3100
3105
|
source: ""
|
|
3101
|
-
}, f =
|
|
3106
|
+
}, f = Ns(s, d, l, c);
|
|
3102
3107
|
return o && (f.anchor = o.source.substring(1), f.anchor === "" && c(o, "BAD_ALIAS", "Anchor cannot be an empty string")), i && (f.spaceBefore = !0), r && (f.comment = r, f.range[2] = a), f;
|
|
3103
3108
|
}
|
|
3104
3109
|
function En({ options: s }, { offset: e, source: t, end: n }, i) {
|
|
3105
|
-
const r = new
|
|
3110
|
+
const r = new Fe(t.substring(1));
|
|
3106
3111
|
r.source === "" && i(e, "BAD_ALIAS", "Alias cannot be an empty string"), r.source.endsWith(":") && i(e + t.length - 1, "BAD_ALIAS", "Alias ending in : is ambiguous", !0);
|
|
3107
3112
|
const o = e + t.length, l = Ie(n, o, s.strict, i);
|
|
3108
3113
|
return r.range = [e, o, l.offset], l.comment && (r.comment = l.comment), r;
|
|
@@ -3122,7 +3127,7 @@ function In(s, e, { offset: t, start: n, value: i, end: r }, o) {
|
|
|
3122
3127
|
parentIndent: 0,
|
|
3123
3128
|
startOnNewline: !0
|
|
3124
3129
|
});
|
|
3125
|
-
d.found && (a.directives.docStart = !0, i && (i.type === "block-map" || i.type === "block-seq") && !d.hasNewline && o(d.end, "MISSING_CHAR", "Block collection cannot start on same line with directives-end marker")), a.contents = i ?
|
|
3130
|
+
d.found && (a.directives.docStart = !0, i && (i.type === "block-map" || i.type === "block-seq") && !d.hasNewline && o(d.end, "MISSING_CHAR", "Block collection cannot start on same line with directives-end marker")), a.contents = i ? Os(c, i, d, o) : Et(c, d.end, n, null, d, o);
|
|
3126
3131
|
const f = a.contents.range[2], u = Ie(r, f, !1, o);
|
|
3127
3132
|
return u.comment && (a.comment = u.comment), a.range = [t, f, u.offset], a;
|
|
3128
3133
|
}
|
|
@@ -3158,7 +3163,7 @@ class It {
|
|
|
3158
3163
|
constructor(e = {}) {
|
|
3159
3164
|
this.doc = null, this.atDirectives = !1, this.prelude = [], this.errors = [], this.warnings = [], this.onError = (t, n, i, r) => {
|
|
3160
3165
|
const o = be(t);
|
|
3161
|
-
r ? this.warnings.push(new
|
|
3166
|
+
r ? this.warnings.push(new gs(o, n, i)) : this.errors.push(new z(o, n, i));
|
|
3162
3167
|
}, this.directives = new B({ version: e.version || "1.2" }), this.options = e;
|
|
3163
3168
|
}
|
|
3164
3169
|
decorate(e, t) {
|
|
@@ -3282,9 +3287,9 @@ function Tn(s, e = !0, t) {
|
|
|
3282
3287
|
case "scalar":
|
|
3283
3288
|
case "single-quoted-scalar":
|
|
3284
3289
|
case "double-quoted-scalar":
|
|
3285
|
-
return
|
|
3290
|
+
return Ss(s, e, n);
|
|
3286
3291
|
case "block-scalar":
|
|
3287
|
-
return
|
|
3292
|
+
return ws({ options: { strict: e } }, s, n);
|
|
3288
3293
|
}
|
|
3289
3294
|
}
|
|
3290
3295
|
return null;
|
|
@@ -3307,7 +3312,7 @@ function Ln(s, e) {
|
|
|
3307
3312
|
`, u = [
|
|
3308
3313
|
{ type: "block-scalar-header", offset: r, indent: n, source: d }
|
|
3309
3314
|
];
|
|
3310
|
-
return
|
|
3315
|
+
return As(u, a) || u.push({ type: "newline", offset: -1, indent: n, source: `
|
|
3311
3316
|
` }), { type: "block-scalar", offset: r, indent: n, props: u, source: f };
|
|
3312
3317
|
}
|
|
3313
3318
|
case '"':
|
|
@@ -3372,14 +3377,14 @@ function _n(s, e) {
|
|
|
3372
3377
|
const { offset: r } = s, o = "indent" in s ? s.indent : -1, l = [
|
|
3373
3378
|
{ type: "block-scalar-header", offset: r, indent: o, source: n }
|
|
3374
3379
|
];
|
|
3375
|
-
|
|
3380
|
+
As(l, "end" in s ? s.end : void 0) || l.push({ type: "newline", offset: -1, indent: o, source: `
|
|
3376
3381
|
` });
|
|
3377
3382
|
for (const a of Object.keys(s))
|
|
3378
3383
|
a !== "type" && a !== "offset" && delete s[a];
|
|
3379
3384
|
Object.assign(s, { type: "block-scalar", indent: o, props: l, source: i });
|
|
3380
3385
|
}
|
|
3381
3386
|
}
|
|
3382
|
-
function
|
|
3387
|
+
function As(s, e) {
|
|
3383
3388
|
if (e)
|
|
3384
3389
|
for (const t of e)
|
|
3385
3390
|
switch (t.type) {
|
|
@@ -3472,13 +3477,13 @@ function Ke({ start: s, key: e, sep: t, value: n }) {
|
|
|
3472
3477
|
i += r.source;
|
|
3473
3478
|
return n && (i += qe(n)), i;
|
|
3474
3479
|
}
|
|
3475
|
-
const ht = Symbol("break visit"), vn = Symbol("skip children"),
|
|
3480
|
+
const ht = Symbol("break visit"), vn = Symbol("skip children"), Es = Symbol("remove item");
|
|
3476
3481
|
function x(s, e) {
|
|
3477
|
-
"type" in s && s.type === "document" && (s = { start: s.start, value: s.value }),
|
|
3482
|
+
"type" in s && s.type === "document" && (s = { start: s.start, value: s.value }), Is(Object.freeze([]), s, e);
|
|
3478
3483
|
}
|
|
3479
3484
|
x.BREAK = ht;
|
|
3480
3485
|
x.SKIP = vn;
|
|
3481
|
-
x.REMOVE =
|
|
3486
|
+
x.REMOVE = Es;
|
|
3482
3487
|
x.itemAtPath = (s, e) => {
|
|
3483
3488
|
let t = s;
|
|
3484
3489
|
for (const [n, i] of e) {
|
|
@@ -3496,7 +3501,7 @@ x.parentCollection = (s, e) => {
|
|
|
3496
3501
|
return i;
|
|
3497
3502
|
throw new Error("Parent collection not found");
|
|
3498
3503
|
};
|
|
3499
|
-
function
|
|
3504
|
+
function Is(s, e, t) {
|
|
3500
3505
|
let n = t(e, s);
|
|
3501
3506
|
if (typeof n == "symbol")
|
|
3502
3507
|
return n;
|
|
@@ -3504,13 +3509,13 @@ function Es(s, e, t) {
|
|
|
3504
3509
|
const r = e[i];
|
|
3505
3510
|
if (r && "items" in r) {
|
|
3506
3511
|
for (let o = 0; o < r.items.length; ++o) {
|
|
3507
|
-
const l =
|
|
3512
|
+
const l = Is(Object.freeze(s.concat([[i, o]])), r.items[o], t);
|
|
3508
3513
|
if (typeof l == "number")
|
|
3509
3514
|
o = l - 1;
|
|
3510
3515
|
else {
|
|
3511
3516
|
if (l === ht)
|
|
3512
3517
|
return ht;
|
|
3513
|
-
l ===
|
|
3518
|
+
l === Es && (r.items.splice(o, 1), o -= 1);
|
|
3514
3519
|
}
|
|
3515
3520
|
}
|
|
3516
3521
|
typeof n == "function" && i === "key" && (n = n(e, s));
|
|
@@ -3533,7 +3538,7 @@ function Kn(s) {
|
|
|
3533
3538
|
return JSON.stringify(s);
|
|
3534
3539
|
}
|
|
3535
3540
|
}
|
|
3536
|
-
function
|
|
3541
|
+
function Ts(s) {
|
|
3537
3542
|
switch (s) {
|
|
3538
3543
|
case ze:
|
|
3539
3544
|
return "byte-order-mark";
|
|
@@ -3607,7 +3612,7 @@ const jn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
3607
3612
|
resolveAsScalar: Tn,
|
|
3608
3613
|
setScalarValue: $n,
|
|
3609
3614
|
stringify: Cn,
|
|
3610
|
-
tokenType:
|
|
3615
|
+
tokenType: Ts,
|
|
3611
3616
|
visit: x
|
|
3612
3617
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
3613
3618
|
function D(s) {
|
|
@@ -3625,7 +3630,7 @@ function D(s) {
|
|
|
3625
3630
|
}
|
|
3626
3631
|
const jt = new Set("0123456789ABCDEFabcdef"), Pn = new Set("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()"), _e = new Set(",[]{}"), Dn = new Set(` ,[]{}
|
|
3627
3632
|
\r `), ot = (s) => !s || Dn.has(s);
|
|
3628
|
-
class
|
|
3633
|
+
class Ls {
|
|
3629
3634
|
constructor() {
|
|
3630
3635
|
this.atEnd = !1, this.blockScalarIndent = -1, this.blockScalarKeep = !1, this.buffer = "", this.flowKey = !1, this.flowLevel = 0, this.indentNext = 0, this.indentValue = 0, this.lineEndPos = null, this.next = null, this.pos = 0;
|
|
3631
3636
|
}
|
|
@@ -4040,7 +4045,7 @@ class Ts {
|
|
|
4040
4045
|
return yield* this.pushToIndex(t, !1);
|
|
4041
4046
|
}
|
|
4042
4047
|
}
|
|
4043
|
-
class
|
|
4048
|
+
class $s {
|
|
4044
4049
|
constructor() {
|
|
4045
4050
|
this.lineStarts = [], this.addNewLine = (e) => this.lineStarts.push(e), this.linePos = (e) => {
|
|
4046
4051
|
let t = 0, n = this.lineStarts.length;
|
|
@@ -4075,7 +4080,7 @@ function Pt(s) {
|
|
|
4075
4080
|
}
|
|
4076
4081
|
return -1;
|
|
4077
4082
|
}
|
|
4078
|
-
function
|
|
4083
|
+
function _s(s) {
|
|
4079
4084
|
switch (s?.type) {
|
|
4080
4085
|
case "alias":
|
|
4081
4086
|
case "scalar":
|
|
@@ -4122,7 +4127,7 @@ function ne(s) {
|
|
|
4122
4127
|
function Dt(s) {
|
|
4123
4128
|
if (s.start.type === "flow-seq-start")
|
|
4124
4129
|
for (const e of s.items)
|
|
4125
|
-
e.sep && !e.value && !Y(e.start, "explicit-key-ind") && !Y(e.sep, "map-value-ind") && (e.key && (e.value = e.key), delete e.key,
|
|
4130
|
+
e.sep && !e.value && !Y(e.start, "explicit-key-ind") && !Y(e.sep, "map-value-ind") && (e.key && (e.value = e.key), delete e.key, _s(e.value) ? e.value.end ? Array.prototype.push.apply(e.value.end, e.sep) : e.value.end = e.sep : Array.prototype.push.apply(e.start, e.sep), delete e.sep);
|
|
4126
4131
|
}
|
|
4127
4132
|
class Tt {
|
|
4128
4133
|
/**
|
|
@@ -4130,7 +4135,7 @@ class Tt {
|
|
|
4130
4135
|
* each new line (in `parse()`, including the start of input).
|
|
4131
4136
|
*/
|
|
4132
4137
|
constructor(e) {
|
|
4133
|
-
this.atNewLine = !0, this.atScalar = !1, this.indent = 0, this.offset = 0, this.onKeyLine = !1, this.stack = [], this.source = "", this.type = "", this.lexer = new
|
|
4138
|
+
this.atNewLine = !0, this.atScalar = !1, this.indent = 0, this.offset = 0, this.onKeyLine = !1, this.stack = [], this.source = "", this.type = "", this.lexer = new Ls(), this.onNewLine = e;
|
|
4134
4139
|
}
|
|
4135
4140
|
/**
|
|
4136
4141
|
* Parse `source` as a YAML stream.
|
|
@@ -4154,7 +4159,7 @@ class Tt {
|
|
|
4154
4159
|
this.atScalar = !1, yield* this.step(), this.offset += e.length;
|
|
4155
4160
|
return;
|
|
4156
4161
|
}
|
|
4157
|
-
const t =
|
|
4162
|
+
const t = Ts(e);
|
|
4158
4163
|
if (t)
|
|
4159
4164
|
if (t === "scalar")
|
|
4160
4165
|
this.atNewLine = !1, this.atScalar = !0, this.type = "scalar";
|
|
@@ -4447,7 +4452,7 @@ class Tt {
|
|
|
4447
4452
|
indent: this.indent,
|
|
4448
4453
|
items: [{ start: r, key: null, sep: [this.sourceToken] }]
|
|
4449
4454
|
});
|
|
4450
|
-
else if (
|
|
4455
|
+
else if (_s(t.key) && !Y(t.sep, "newline")) {
|
|
4451
4456
|
const o = ne(t.start), l = t.key, a = t.sep;
|
|
4452
4457
|
a.push(this.sourceToken), delete t.key, delete t.sep, this.stack.push({
|
|
4453
4458
|
type: "block-map",
|
|
@@ -4706,19 +4711,19 @@ class Tt {
|
|
|
4706
4711
|
}
|
|
4707
4712
|
}
|
|
4708
4713
|
}
|
|
4709
|
-
function
|
|
4714
|
+
function Cs(s) {
|
|
4710
4715
|
const e = s.prettyErrors !== !1;
|
|
4711
|
-
return { lineCounter: s.lineCounter || e && new
|
|
4716
|
+
return { lineCounter: s.lineCounter || e && new $s() || null, prettyErrors: e };
|
|
4712
4717
|
}
|
|
4713
4718
|
function qn(s, e = {}) {
|
|
4714
|
-
const { lineCounter: t, prettyErrors: n } =
|
|
4719
|
+
const { lineCounter: t, prettyErrors: n } = Cs(e), i = new Tt(t?.addNewLine), r = new It(e), o = Array.from(r.compose(i.parse(s)));
|
|
4715
4720
|
if (n && t)
|
|
4716
4721
|
for (const l of o)
|
|
4717
4722
|
l.errors.forEach(De(s, t)), l.warnings.forEach(De(s, t));
|
|
4718
4723
|
return o.length > 0 ? o : Object.assign([], { empty: !0 }, r.streamInfo());
|
|
4719
4724
|
}
|
|
4720
|
-
function
|
|
4721
|
-
const { lineCounter: t, prettyErrors: n } =
|
|
4725
|
+
function vs(s, e = {}) {
|
|
4726
|
+
const { lineCounter: t, prettyErrors: n } = Cs(e), i = new Tt(t?.addNewLine), r = new It(e);
|
|
4722
4727
|
let o = null;
|
|
4723
4728
|
for (const l of r.compose(i.parse(s), !0, s.length))
|
|
4724
4729
|
if (!o)
|
|
@@ -4729,20 +4734,20 @@ function Cs(s, e = {}) {
|
|
|
4729
4734
|
}
|
|
4730
4735
|
return n && t && (o.errors.forEach(De(s, t)), o.warnings.forEach(De(s, t))), o;
|
|
4731
4736
|
}
|
|
4732
|
-
function
|
|
4737
|
+
function Rn(s, e, t) {
|
|
4733
4738
|
let n;
|
|
4734
4739
|
typeof e == "function" ? n = e : t === void 0 && e && typeof e == "object" && (t = e);
|
|
4735
|
-
const i =
|
|
4740
|
+
const i = vs(s, t);
|
|
4736
4741
|
if (!i)
|
|
4737
4742
|
return null;
|
|
4738
|
-
if (i.warnings.forEach((r) =>
|
|
4743
|
+
if (i.warnings.forEach((r) => xt(i.options.logLevel, r)), i.errors.length > 0) {
|
|
4739
4744
|
if (i.options.logLevel !== "silent")
|
|
4740
4745
|
throw i.errors[0];
|
|
4741
4746
|
i.errors = [];
|
|
4742
4747
|
}
|
|
4743
4748
|
return i.toJS(Object.assign({ reviver: n }, t));
|
|
4744
4749
|
}
|
|
4745
|
-
function
|
|
4750
|
+
function Fn(s, e, t) {
|
|
4746
4751
|
let n = null;
|
|
4747
4752
|
if (typeof e == "function" || Array.isArray(e) ? n = e : t === void 0 && e && (t = e), typeof t == "string" && (t = t.length), typeof t == "number") {
|
|
4748
4753
|
const i = Math.round(t);
|
|
@@ -4753,16 +4758,16 @@ function Rn(s, e, t) {
|
|
|
4753
4758
|
if (!i)
|
|
4754
4759
|
return;
|
|
4755
4760
|
}
|
|
4756
|
-
return
|
|
4761
|
+
return Z(s) && !n ? s.toString(t) : new ge(s, n, t).toString(t);
|
|
4757
4762
|
}
|
|
4758
4763
|
const Un = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4759
4764
|
__proto__: null,
|
|
4760
|
-
Alias:
|
|
4765
|
+
Alias: Fe,
|
|
4761
4766
|
CST: jn,
|
|
4762
4767
|
Composer: It,
|
|
4763
4768
|
Document: ge,
|
|
4764
|
-
Lexer:
|
|
4765
|
-
LineCounter:
|
|
4769
|
+
Lexer: Ls,
|
|
4770
|
+
LineCounter: $s,
|
|
4766
4771
|
Pair: v,
|
|
4767
4772
|
Parser: Tt,
|
|
4768
4773
|
Scalar: O,
|
|
@@ -4770,30 +4775,30 @@ const Un = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
4770
4775
|
YAMLError: At,
|
|
4771
4776
|
YAMLMap: K,
|
|
4772
4777
|
YAMLParseError: z,
|
|
4773
|
-
YAMLSeq:
|
|
4774
|
-
YAMLWarning:
|
|
4775
|
-
isAlias:
|
|
4778
|
+
YAMLSeq: Q,
|
|
4779
|
+
YAMLWarning: gs,
|
|
4780
|
+
isAlias: W,
|
|
4776
4781
|
isCollection: L,
|
|
4777
|
-
isDocument:
|
|
4782
|
+
isDocument: Z,
|
|
4778
4783
|
isMap: de,
|
|
4779
4784
|
isNode: $,
|
|
4780
4785
|
isPair: T,
|
|
4781
4786
|
isScalar: E,
|
|
4782
4787
|
isSeq: pe,
|
|
4783
|
-
parse:
|
|
4788
|
+
parse: Rn,
|
|
4784
4789
|
parseAllDocuments: qn,
|
|
4785
|
-
parseDocument:
|
|
4786
|
-
stringify:
|
|
4787
|
-
visit:
|
|
4788
|
-
visitAsync:
|
|
4790
|
+
parseDocument: vs,
|
|
4791
|
+
stringify: Fn,
|
|
4792
|
+
visit: ee,
|
|
4793
|
+
visitAsync: Re
|
|
4789
4794
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4790
4795
|
export {
|
|
4791
|
-
|
|
4796
|
+
Fe as Alias,
|
|
4792
4797
|
jn as CST,
|
|
4793
4798
|
It as Composer,
|
|
4794
4799
|
ge as Document,
|
|
4795
|
-
|
|
4796
|
-
|
|
4800
|
+
Ls as Lexer,
|
|
4801
|
+
$s as LineCounter,
|
|
4797
4802
|
v as Pair,
|
|
4798
4803
|
Tt as Parser,
|
|
4799
4804
|
O as Scalar,
|
|
@@ -4801,22 +4806,22 @@ export {
|
|
|
4801
4806
|
At as YAMLError,
|
|
4802
4807
|
K as YAMLMap,
|
|
4803
4808
|
z as YAMLParseError,
|
|
4804
|
-
|
|
4805
|
-
|
|
4809
|
+
Q as YAMLSeq,
|
|
4810
|
+
gs as YAMLWarning,
|
|
4806
4811
|
Un as default,
|
|
4807
|
-
|
|
4812
|
+
W as isAlias,
|
|
4808
4813
|
L as isCollection,
|
|
4809
|
-
|
|
4814
|
+
Z as isDocument,
|
|
4810
4815
|
de as isMap,
|
|
4811
4816
|
$ as isNode,
|
|
4812
4817
|
T as isPair,
|
|
4813
4818
|
E as isScalar,
|
|
4814
4819
|
pe as isSeq,
|
|
4815
|
-
|
|
4820
|
+
Rn as parse,
|
|
4816
4821
|
qn as parseAllDocuments,
|
|
4817
|
-
|
|
4818
|
-
|
|
4819
|
-
|
|
4820
|
-
|
|
4822
|
+
vs as parseDocument,
|
|
4823
|
+
Fn as stringify,
|
|
4824
|
+
ee as visit,
|
|
4825
|
+
Re as visitAsync
|
|
4821
4826
|
};
|
|
4822
|
-
//# sourceMappingURL=index-
|
|
4827
|
+
//# sourceMappingURL=index-nGbmHh_A.js.map
|