zudoku 0.0.0-f417aae → 0.0.0-f471fb8
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 +1 -1
- package/cli.js +5 -2
- package/client.d.ts +7 -0
- package/dist/app/demo.js +1 -4
- package/dist/app/demo.js.map +1 -1
- package/dist/app/entry.client.d.ts +6 -0
- package/dist/app/entry.client.js +17 -3
- package/dist/app/entry.client.js.map +1 -1
- package/dist/app/entry.server.d.ts +6 -4
- package/dist/app/entry.server.js +21 -14
- package/dist/app/entry.server.js.map +1 -1
- package/dist/app/main.d.ts +3 -2
- package/dist/app/main.js +29 -31
- package/dist/app/main.js.map +1 -1
- package/dist/app/sentry.d.ts +3 -0
- package/dist/app/sentry.js +19 -0
- package/dist/app/sentry.js.map +1 -0
- package/dist/app/standalone.js +1 -4
- package/dist/app/standalone.js.map +1 -1
- package/dist/app/tailwind.d.ts +2 -1
- package/dist/app/tailwind.js +80 -48
- package/dist/app/tailwind.js.map +1 -1
- package/dist/cli/build/handler.d.ts +1 -3
- package/dist/cli/build/handler.js +7 -0
- package/dist/cli/build/handler.js.map +1 -1
- package/dist/cli/cli.js +6 -4
- package/dist/cli/cli.js.map +1 -1
- package/dist/cli/cmds/build.d.ts +11 -3
- package/dist/cli/cmds/build.js +21 -13
- package/dist/cli/cmds/build.js.map +1 -1
- package/dist/cli/cmds/dev.d.ts +1 -1
- package/dist/cli/cmds/dev.js +12 -1
- package/dist/cli/cmds/dev.js.map +1 -1
- package/dist/cli/cmds/preview.d.ts +16 -0
- package/dist/cli/cmds/preview.js +25 -0
- package/dist/cli/cmds/preview.js.map +1 -0
- package/dist/cli/common/logger.js +9 -0
- package/dist/cli/common/logger.js.map +1 -1
- package/dist/cli/common/machine-id/lib.js.map +1 -1
- package/dist/cli/common/outdated.js +2 -1
- package/dist/cli/common/outdated.js.map +1 -1
- package/dist/cli/common/output.js.map +1 -1
- package/dist/cli/common/utils/box.js.map +1 -1
- package/dist/cli/common/utils/ports.d.ts +1 -1
- package/dist/cli/common/utils/ports.js +16 -15
- package/dist/cli/common/utils/ports.js.map +1 -1
- package/dist/cli/dev/handler.d.ts +1 -0
- package/dist/cli/dev/handler.js +14 -12
- package/dist/cli/dev/handler.js.map +1 -1
- package/dist/cli/dev/pagefind-command.d.ts +3 -0
- package/dist/cli/dev/pagefind-command.js +59 -0
- package/dist/cli/dev/pagefind-command.js.map +1 -0
- package/dist/cli/preview/handler.d.ts +3 -0
- package/dist/cli/preview/handler.js +35 -0
- package/dist/cli/preview/handler.js.map +1 -0
- package/dist/codegen.d.ts +3 -0
- package/dist/codegen.js +45 -0
- package/dist/codegen.js.map +1 -0
- package/dist/config/common.d.ts +10 -0
- package/dist/config/common.js +2 -0
- package/dist/config/common.js.map +1 -0
- package/dist/config/config.d.ts +17 -15
- package/dist/config/loader.d.ts +20 -0
- package/dist/config/loader.js +149 -0
- package/dist/config/loader.js.map +1 -0
- package/dist/config/validators/InputSidebarSchema.d.ts +52 -36
- package/dist/config/validators/InputSidebarSchema.js +11 -1
- package/dist/config/validators/InputSidebarSchema.js.map +1 -1
- package/dist/config/validators/SidebarSchema.d.ts +24 -1
- package/dist/config/validators/SidebarSchema.js +76 -39
- package/dist/config/validators/SidebarSchema.js.map +1 -1
- package/dist/config/validators/common.d.ts +6849 -0
- package/dist/config/validators/common.js +364 -0
- package/dist/config/validators/common.js.map +1 -0
- package/dist/config/validators/icon-types.d.ts +1 -0
- package/dist/config/validators/icon-types.js +2 -0
- package/dist/config/validators/icon-types.js.map +1 -0
- package/dist/config/validators/validate.d.ts +1628 -571
- package/dist/config/validators/validate.js +9 -226
- package/dist/config/validators/validate.js.map +1 -1
- package/dist/index.d.ts +5 -1
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/dist/lib/MissingIcon.d.ts +2 -0
- package/dist/lib/MissingIcon.js +7 -0
- package/dist/lib/MissingIcon.js.map +1 -0
- package/dist/lib/authentication/AuthenticationPlugin.d.ts +4 -2
- package/dist/lib/authentication/AuthenticationPlugin.js +3 -0
- package/dist/lib/authentication/AuthenticationPlugin.js.map +1 -1
- package/dist/lib/authentication/authentication.d.ts +4 -3
- package/dist/lib/authentication/components/CallbackHandler.js +1 -1
- package/dist/lib/authentication/components/CallbackHandler.js.map +1 -1
- package/dist/lib/authentication/components/SignIn.js +1 -1
- package/dist/lib/authentication/components/SignIn.js.map +1 -1
- package/dist/lib/authentication/components/SignOut.js +2 -2
- package/dist/lib/authentication/components/SignOut.js.map +1 -1
- package/dist/lib/authentication/hook.d.ts +6 -4
- package/dist/lib/authentication/hook.js +12 -4
- package/dist/lib/authentication/hook.js.map +1 -1
- package/dist/lib/authentication/providers/auth0.d.ts +2 -2
- package/dist/lib/authentication/providers/auth0.js +14 -12
- package/dist/lib/authentication/providers/auth0.js.map +1 -1
- package/dist/lib/authentication/providers/clerk.d.ts +2 -2
- package/dist/lib/authentication/providers/clerk.js +54 -12
- package/dist/lib/authentication/providers/clerk.js.map +1 -1
- package/dist/lib/authentication/providers/openid.d.ts +12 -4
- package/dist/lib/authentication/providers/openid.js +54 -44
- package/dist/lib/authentication/providers/openid.js.map +1 -1
- package/dist/lib/authentication/providers/supabase.d.ts +4 -0
- package/dist/lib/authentication/providers/supabase.js +117 -0
- package/dist/lib/authentication/providers/supabase.js.map +1 -0
- package/dist/lib/authentication/state.d.ts +23 -19
- package/dist/lib/authentication/state.js +34 -7
- package/dist/lib/authentication/state.js.map +1 -1
- package/dist/lib/authentication/use-broadcast/shared.d.ts +48 -0
- package/dist/lib/authentication/use-broadcast/shared.js +243 -0
- package/dist/lib/authentication/use-broadcast/shared.js.map +1 -0
- package/dist/lib/authentication/use-broadcast/useBroadcast.d.ts +24 -0
- package/dist/lib/authentication/use-broadcast/useBroadcast.js +106 -0
- package/dist/lib/authentication/use-broadcast/useBroadcast.js.map +1 -0
- package/dist/lib/components/AnchorLink.d.ts +2 -2
- package/dist/lib/components/AnchorLink.js +9 -5
- package/dist/lib/components/AnchorLink.js.map +1 -1
- package/dist/lib/components/Autocomplete.d.ts +13 -0
- package/dist/lib/components/Autocomplete.js +47 -0
- package/dist/lib/components/Autocomplete.js.map +1 -0
- package/dist/lib/components/Banner.js +1 -1
- package/dist/lib/components/Banner.js.map +1 -1
- package/dist/lib/components/Bootstrap.d.ts +4 -3
- package/dist/lib/components/Bootstrap.js +12 -6
- package/dist/lib/components/Bootstrap.js.map +1 -1
- package/dist/lib/components/ClientOnly.d.ts +4 -2
- package/dist/lib/components/ClientOnly.js +1 -1
- package/dist/lib/components/ClientOnly.js.map +1 -1
- package/dist/lib/components/DeveloperHint.js +2 -1
- package/dist/lib/components/DeveloperHint.js.map +1 -1
- package/dist/lib/components/Header.js +22 -11
- package/dist/lib/components/Header.js.map +1 -1
- package/dist/lib/components/Heading.d.ts +4 -4
- package/dist/lib/components/Heading.js +1 -1
- package/dist/lib/components/Heading.js.map +1 -1
- package/dist/lib/components/InlineCode.d.ts +2 -1
- package/dist/lib/components/InlineCode.js +2 -9
- package/dist/lib/components/InlineCode.js.map +1 -1
- package/dist/lib/components/Layout.js +8 -21
- package/dist/lib/components/Layout.js.map +1 -1
- package/dist/lib/components/Main.d.ts +2 -0
- package/dist/lib/components/Main.js +17 -0
- package/dist/lib/components/Main.js.map +1 -0
- package/dist/lib/components/Markdown.d.ts +2 -2
- package/dist/lib/components/Markdown.js +4 -2
- package/dist/lib/components/Markdown.js.map +1 -1
- package/dist/lib/components/MobileTopNavigation.js +6 -7
- package/dist/lib/components/MobileTopNavigation.js.map +1 -1
- package/dist/lib/components/NotFoundPage.js +1 -1
- package/dist/lib/components/NotFoundPage.js.map +1 -1
- package/dist/lib/components/Pagination.d.ts +10 -0
- package/dist/lib/components/Pagination.js +10 -0
- package/dist/lib/components/Pagination.js.map +1 -0
- package/dist/lib/components/PathRenderer.d.ts +11 -0
- package/dist/lib/components/PathRenderer.js +28 -0
- package/dist/lib/components/PathRenderer.js.map +1 -0
- package/dist/lib/components/ReactMarkdown.d.ts +29 -0
- package/dist/lib/components/ReactMarkdown.js +182 -0
- package/dist/lib/components/ReactMarkdown.js.map +1 -0
- package/dist/lib/components/Search.d.ts +3 -1
- package/dist/lib/components/Search.js +3 -3
- package/dist/lib/components/Search.js.map +1 -1
- package/dist/lib/components/SlotletProvider.d.ts +3 -2
- package/dist/lib/components/SlotletProvider.js.map +1 -1
- package/dist/lib/components/StatusPage.d.ts +7 -0
- package/dist/lib/components/StatusPage.js +71 -0
- package/dist/lib/components/StatusPage.js.map +1 -0
- package/dist/lib/components/ThemeSwitch.d.ts +1 -0
- package/dist/lib/components/ThemeSwitch.js +16 -0
- package/dist/lib/components/ThemeSwitch.js.map +1 -0
- package/dist/lib/components/TopNavigation.d.ts +3 -1
- package/dist/lib/components/TopNavigation.js +53 -8
- package/dist/lib/components/TopNavigation.js.map +1 -1
- package/dist/lib/components/{DevPortal.d.ts → Zudoku.d.ts} +3 -3
- package/dist/lib/components/{DevPortal.js → Zudoku.js} +21 -18
- package/dist/lib/components/Zudoku.js.map +1 -0
- package/dist/lib/components/cache.d.ts +13 -0
- package/dist/lib/components/cache.js +20 -0
- package/dist/lib/components/cache.js.map +1 -0
- package/dist/lib/components/context/RouterEventsEmitter.d.ts +1 -0
- package/dist/lib/components/context/RouterEventsEmitter.js +17 -0
- package/dist/lib/components/context/RouterEventsEmitter.js.map +1 -0
- package/dist/lib/components/context/ViewportAnchorContext.d.ts +2 -4
- package/dist/lib/components/context/ViewportAnchorContext.js +21 -14
- package/dist/lib/components/context/ViewportAnchorContext.js.map +1 -1
- package/dist/lib/components/context/ZudokuContext.d.ts +10 -16
- package/dist/lib/components/context/ZudokuContext.js +41 -27
- package/dist/lib/components/context/ZudokuContext.js.map +1 -1
- package/dist/lib/components/context/ZudokuProvider.d.ts +2 -2
- package/dist/lib/components/context/ZudokuProvider.js.map +1 -1
- package/dist/lib/components/index.d.ts +43 -16
- package/dist/lib/components/index.js +19 -7
- package/dist/lib/components/index.js.map +1 -1
- package/dist/lib/components/navigation/Sidebar.d.ts +5 -1
- package/dist/lib/components/navigation/Sidebar.js +8 -5
- package/dist/lib/components/navigation/Sidebar.js.map +1 -1
- package/dist/lib/components/navigation/SidebarBadge.d.ts +6 -3
- package/dist/lib/components/navigation/SidebarBadge.js +13 -11
- package/dist/lib/components/navigation/SidebarBadge.js.map +1 -1
- package/dist/lib/components/navigation/SidebarCategory.d.ts +3 -3
- package/dist/lib/components/navigation/SidebarCategory.js +27 -24
- package/dist/lib/components/navigation/SidebarCategory.js.map +1 -1
- package/dist/lib/components/navigation/SidebarItem.d.ts +3 -4
- package/dist/lib/components/navigation/SidebarItem.js +19 -19
- package/dist/lib/components/navigation/SidebarItem.js.map +1 -1
- package/dist/lib/components/navigation/SidebarWrapper.d.ts +8 -6
- package/dist/lib/components/navigation/SidebarWrapper.js +1 -2
- package/dist/lib/components/navigation/SidebarWrapper.js.map +1 -1
- package/dist/lib/{plugins/markdown → components/navigation}/Toc.js +5 -7
- package/dist/lib/components/navigation/Toc.js.map +1 -0
- package/dist/lib/components/navigation/utils.js +11 -15
- package/dist/lib/components/navigation/utils.js.map +1 -1
- package/dist/lib/core/RouteGuard.d.ts +1 -0
- package/dist/lib/core/RouteGuard.js +46 -0
- package/dist/lib/core/RouteGuard.js.map +1 -0
- package/dist/lib/core/{DevPortalContext.d.ts → ZudokuContext.d.ts} +37 -20
- package/dist/lib/core/ZudokuContext.js +69 -0
- package/dist/lib/core/ZudokuContext.js.map +1 -0
- package/dist/lib/core/plugins.d.ts +32 -17
- package/dist/lib/core/plugins.js +3 -0
- package/dist/lib/core/plugins.js.map +1 -1
- package/dist/lib/errors/ErrorAlert.js +6 -1
- package/dist/lib/errors/ErrorAlert.js.map +1 -1
- package/dist/lib/errors/RouterError.js +1 -1
- package/dist/lib/errors/RouterError.js.map +1 -1
- package/dist/lib/hooks/index.d.ts +3 -0
- package/dist/lib/hooks/index.js +5 -0
- package/dist/lib/hooks/index.js.map +1 -0
- package/dist/lib/hooks/useEvent.d.ts +11 -0
- package/dist/lib/hooks/useEvent.js +19 -0
- package/dist/lib/hooks/useEvent.js.map +1 -0
- package/dist/lib/hooks/useEvent.test.js +100 -0
- package/dist/lib/hooks/useEvent.test.js.map +1 -0
- package/dist/lib/icons.d.ts +1 -0
- package/dist/lib/icons.js +1 -0
- package/dist/lib/icons.js.map +1 -1
- package/dist/lib/oas/graphql/circular.d.ts +3 -0
- package/dist/lib/oas/graphql/circular.js +38 -0
- package/dist/lib/oas/graphql/circular.js.map +1 -0
- package/dist/lib/oas/graphql/index.d.ts +25 -1
- package/dist/lib/oas/graphql/index.js +216 -69
- package/dist/lib/oas/graphql/index.js.map +1 -1
- package/dist/lib/oas/parser/dereference/index.js +8 -3
- package/dist/lib/oas/parser/dereference/index.js.map +1 -1
- package/dist/lib/oas/parser/index.d.ts +5 -3
- package/dist/lib/oas/parser/index.js +0 -22
- package/dist/lib/oas/parser/index.js.map +1 -1
- package/dist/lib/oas/parser/upgrade/index.d.ts +2 -2
- package/dist/lib/oas/parser/upgrade/index.js +21 -21
- package/dist/lib/oas/parser/upgrade/index.js.map +1 -1
- package/dist/lib/plugins/api-catalog/Catalog.d.ts +4 -0
- package/dist/lib/plugins/api-catalog/Catalog.js +26 -0
- package/dist/lib/plugins/api-catalog/Catalog.js.map +1 -0
- package/dist/lib/plugins/api-catalog/index.d.ts +31 -0
- package/dist/lib/plugins/api-catalog/index.js +46 -0
- package/dist/lib/plugins/api-catalog/index.js.map +1 -0
- package/dist/lib/plugins/api-keys/CreateApiKey.js +9 -5
- package/dist/lib/plugins/api-keys/CreateApiKey.js.map +1 -1
- package/dist/lib/plugins/api-keys/ProtectedRoute.js +1 -1
- package/dist/lib/plugins/api-keys/ProtectedRoute.js.map +1 -1
- package/dist/lib/plugins/api-keys/SettingsApiKeys.js +1 -1
- package/dist/lib/plugins/api-keys/SettingsApiKeys.js.map +1 -1
- package/dist/lib/plugins/api-keys/index.d.ts +10 -9
- package/dist/lib/plugins/api-keys/index.js +4 -0
- package/dist/lib/plugins/api-keys/index.js.map +1 -1
- package/dist/lib/plugins/custom-pages/CustomPage.js +2 -2
- package/dist/lib/plugins/custom-pages/index.d.ts +2 -2
- package/dist/lib/plugins/custom-pages/index.js.map +1 -1
- package/dist/lib/plugins/markdown/MdxPage.d.ts +10 -2
- package/dist/lib/plugins/markdown/MdxPage.js +17 -4
- package/dist/lib/plugins/markdown/MdxPage.js.map +1 -1
- package/dist/lib/plugins/markdown/index.d.ts +8 -7
- package/dist/lib/plugins/markdown/index.js +31 -3
- package/dist/lib/plugins/markdown/index.js.map +1 -1
- package/dist/lib/plugins/markdown/resolver.d.ts +32 -0
- package/dist/lib/plugins/markdown/resolver.js +46 -0
- package/dist/lib/plugins/markdown/resolver.js.map +1 -0
- package/dist/lib/plugins/openapi/CollapsibleCode.d.ts +5 -0
- package/dist/lib/plugins/openapi/CollapsibleCode.js +25 -0
- package/dist/lib/plugins/openapi/CollapsibleCode.js.map +1 -0
- package/dist/lib/plugins/openapi/ColorizedParam.d.ts +10 -2
- package/dist/lib/plugins/openapi/ColorizedParam.js +29 -14
- package/dist/lib/plugins/openapi/ColorizedParam.js.map +1 -1
- package/dist/lib/plugins/openapi/Endpoint.js +13 -16
- package/dist/lib/plugins/openapi/Endpoint.js.map +1 -1
- package/dist/lib/plugins/openapi/OasProvider.d.ts +8 -0
- package/dist/lib/plugins/openapi/OasProvider.js +29 -0
- package/dist/lib/plugins/openapi/OasProvider.js.map +1 -0
- package/dist/lib/plugins/openapi/OperationList.d.ts +6 -3
- package/dist/lib/plugins/openapi/OperationList.js +105 -27
- package/dist/lib/plugins/openapi/OperationList.js.map +1 -1
- package/dist/lib/plugins/openapi/OperationListItem.d.ts +5 -3
- package/dist/lib/plugins/openapi/OperationListItem.js +10 -5
- package/dist/lib/plugins/openapi/OperationListItem.js.map +1 -1
- package/dist/lib/plugins/openapi/ParamInfos.d.ts +6 -0
- package/dist/lib/plugins/openapi/ParamInfos.js +42 -0
- package/dist/lib/plugins/openapi/ParamInfos.js.map +1 -0
- package/dist/lib/plugins/openapi/ParameterList.d.ts +2 -1
- package/dist/lib/plugins/openapi/ParameterList.js +3 -2
- package/dist/lib/plugins/openapi/ParameterList.js.map +1 -1
- package/dist/lib/plugins/openapi/ParameterListItem.js +11 -1
- package/dist/lib/plugins/openapi/ParameterListItem.js.map +1 -1
- package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.d.ts +4 -2
- package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.js +12 -3
- package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.js.map +1 -1
- package/dist/lib/plugins/openapi/RequestBodySidecarBox.d.ts +3 -4
- package/dist/lib/plugins/openapi/RequestBodySidecarBox.js +5 -9
- package/dist/lib/plugins/openapi/RequestBodySidecarBox.js.map +1 -1
- package/dist/lib/plugins/openapi/ResponsesSidecarBox.js +7 -6
- package/dist/lib/plugins/openapi/ResponsesSidecarBox.js.map +1 -1
- package/dist/lib/plugins/openapi/SchemaList.d.ts +1 -0
- package/dist/lib/plugins/openapi/SchemaList.js +52 -0
- package/dist/lib/plugins/openapi/SchemaList.js.map +1 -0
- package/dist/lib/plugins/openapi/Sidecar.d.ts +1 -1
- package/dist/lib/plugins/openapi/Sidecar.js +83 -64
- package/dist/lib/plugins/openapi/Sidecar.js.map +1 -1
- package/dist/lib/plugins/openapi/SidecarBox.js +4 -4
- package/dist/lib/plugins/openapi/SidecarBox.js.map +1 -1
- package/dist/lib/plugins/openapi/SidecarExamples.d.ts +9 -0
- package/dist/lib/plugins/openapi/SidecarExamples.js +68 -0
- package/dist/lib/plugins/openapi/SidecarExamples.js.map +1 -0
- package/dist/lib/plugins/openapi/SimpleSelect.js +1 -1
- package/dist/lib/plugins/openapi/SimpleSelect.js.map +1 -1
- package/dist/lib/plugins/openapi/client/GraphQLClient.d.ts +8 -0
- package/dist/lib/plugins/openapi/client/GraphQLClient.js +43 -0
- package/dist/lib/plugins/openapi/client/GraphQLClient.js.map +1 -0
- package/dist/lib/plugins/openapi/client/GraphQLContext.d.ts +7 -0
- package/dist/lib/plugins/openapi/client/GraphQLContext.js +5 -0
- package/dist/lib/plugins/openapi/client/GraphQLContext.js.map +1 -0
- package/dist/lib/plugins/openapi/client/createServer.d.ts +3 -1
- package/dist/lib/plugins/openapi/client/createServer.js +5 -2
- package/dist/lib/plugins/openapi/client/createServer.js.map +1 -1
- package/dist/lib/plugins/openapi/client/useCreateQuery.d.ts +9 -0
- package/dist/lib/plugins/openapi/client/useCreateQuery.js +14 -0
- package/dist/lib/plugins/openapi/client/useCreateQuery.js.map +1 -0
- package/dist/lib/plugins/openapi/components/EnumValues.d.ts +5 -0
- package/dist/lib/plugins/openapi/components/EnumValues.js +15 -0
- package/dist/lib/plugins/openapi/components/EnumValues.js.map +1 -0
- package/dist/lib/plugins/openapi/components/SelectOnClick.d.ts +5 -0
- package/dist/lib/plugins/openapi/components/SelectOnClick.js +16 -0
- package/dist/lib/plugins/openapi/components/SelectOnClick.js.map +1 -0
- package/dist/lib/plugins/openapi/context.d.ts +3 -3
- package/dist/lib/plugins/openapi/graphql/fragment-masking.d.ts +3 -3
- package/dist/lib/plugins/openapi/graphql/fragment-masking.js +3 -4
- package/dist/lib/plugins/openapi/graphql/fragment-masking.js.map +1 -1
- package/dist/lib/plugins/openapi/graphql/gql.d.ts +8 -46
- package/dist/lib/plugins/openapi/graphql/gql.js +6 -13
- package/dist/lib/plugins/openapi/graphql/gql.js.map +1 -1
- package/dist/lib/plugins/openapi/graphql/graphql.d.ts +141 -25
- package/dist/lib/plugins/openapi/graphql/graphql.js +238 -662
- package/dist/lib/plugins/openapi/graphql/graphql.js.map +1 -1
- package/dist/lib/plugins/openapi/index.d.ts +11 -7
- package/dist/lib/plugins/openapi/index.js +72 -104
- package/dist/lib/plugins/openapi/index.js.map +1 -1
- package/dist/lib/plugins/openapi/interfaces.d.ts +56 -3
- package/dist/lib/plugins/openapi/playground/ExamplesDropdown.d.ts +6 -0
- package/dist/lib/plugins/openapi/playground/ExamplesDropdown.js +8 -0
- package/dist/lib/plugins/openapi/playground/ExamplesDropdown.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/Headers.d.ts +4 -4
- package/dist/lib/plugins/openapi/playground/Headers.js +84 -5
- package/dist/lib/plugins/openapi/playground/Headers.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/IdentityDialog.d.ts +11 -0
- package/dist/lib/plugins/openapi/playground/IdentityDialog.js +14 -0
- package/dist/lib/plugins/openapi/playground/IdentityDialog.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/IdentitySelector.d.ts +7 -0
- package/dist/lib/plugins/openapi/playground/IdentitySelector.js +10 -0
- package/dist/lib/plugins/openapi/playground/IdentitySelector.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/ParamsGrid.d.ts +9 -0
- package/dist/lib/plugins/openapi/playground/ParamsGrid.js +5 -0
- package/dist/lib/plugins/openapi/playground/ParamsGrid.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/PathParams.d.ts +3 -2
- package/dist/lib/plugins/openapi/playground/PathParams.js +5 -7
- package/dist/lib/plugins/openapi/playground/PathParams.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/Playground.d.ts +37 -2
- package/dist/lib/plugins/openapi/playground/Playground.js +132 -70
- package/dist/lib/plugins/openapi/playground/Playground.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js +2 -2
- package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/QueryParams.js +24 -18
- package/dist/lib/plugins/openapi/playground/QueryParams.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/RequestLoginDialog.d.ts +7 -0
- package/dist/lib/plugins/openapi/playground/RequestLoginDialog.js +8 -0
- package/dist/lib/plugins/openapi/playground/RequestLoginDialog.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/SubmitButton.d.ts +7 -0
- package/dist/lib/plugins/openapi/playground/SubmitButton.js +22 -0
- package/dist/lib/plugins/openapi/playground/SubmitButton.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/rememberedIdentity.d.ts +17 -0
- package/dist/lib/plugins/openapi/playground/rememberedIdentity.js +11 -0
- package/dist/lib/plugins/openapi/playground/rememberedIdentity.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/result-panel/RequestTab.d.ts +7 -0
- package/dist/lib/plugins/openapi/playground/result-panel/RequestTab.js +11 -0
- package/dist/lib/plugins/openapi/playground/result-panel/RequestTab.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.d.ts +8 -0
- package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.js +101 -0
- package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.d.ts +9 -0
- package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.js +17 -0
- package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.d.ts +10 -0
- package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.js +32 -0
- package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.test.d.ts +1 -0
- package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.test.js +56 -0
- package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.test.js.map +1 -0
- package/dist/lib/plugins/openapi/post-processors/removeExtensions.d.ts +7 -0
- package/dist/lib/plugins/openapi/post-processors/removeExtensions.js +16 -0
- package/dist/lib/plugins/openapi/post-processors/removeExtensions.js.map +1 -0
- package/dist/lib/plugins/openapi/post-processors/removeExtensions.test.d.ts +1 -0
- package/dist/lib/plugins/openapi/post-processors/removeExtensions.test.js +174 -0
- package/dist/lib/plugins/openapi/post-processors/removeExtensions.test.js.map +1 -0
- package/dist/lib/plugins/openapi/post-processors/removeParameters.d.ts +10 -0
- package/dist/lib/plugins/openapi/post-processors/removeParameters.js +66 -0
- package/dist/lib/plugins/openapi/post-processors/removeParameters.js.map +1 -0
- package/dist/lib/plugins/openapi/post-processors/removeParameters.test.d.ts +1 -0
- package/dist/lib/plugins/openapi/post-processors/removeParameters.test.js +131 -0
- package/dist/lib/plugins/openapi/post-processors/removeParameters.test.js.map +1 -0
- package/dist/lib/plugins/openapi/post-processors/removePaths.d.ts +11 -0
- package/dist/lib/plugins/openapi/post-processors/removePaths.js +33 -0
- package/dist/lib/plugins/openapi/post-processors/removePaths.js.map +1 -0
- package/dist/lib/plugins/openapi/post-processors/removePaths.test.d.ts +1 -0
- package/dist/lib/plugins/openapi/post-processors/removePaths.test.js +104 -0
- package/dist/lib/plugins/openapi/post-processors/removePaths.test.js.map +1 -0
- package/dist/lib/plugins/openapi/post-processors/traverse.d.ts +1 -0
- package/dist/lib/plugins/openapi/post-processors/traverse.js +2 -0
- package/dist/lib/plugins/openapi/post-processors/traverse.js.map +1 -0
- package/dist/lib/plugins/openapi/schema/SchemaPropertyItem.js +39 -0
- package/dist/lib/plugins/openapi/schema/SchemaPropertyItem.js.map +1 -0
- package/dist/lib/plugins/openapi/schema/SchemaView.js +16 -8
- package/dist/lib/plugins/openapi/schema/SchemaView.js.map +1 -1
- package/dist/lib/plugins/openapi/schema/utils.d.ts +1 -0
- package/dist/lib/plugins/openapi/schema/utils.js +2 -0
- package/dist/lib/plugins/openapi/schema/utils.js.map +1 -1
- package/dist/lib/plugins/openapi/state.d.ts +25 -0
- package/dist/lib/plugins/openapi/state.js +18 -0
- package/dist/lib/plugins/openapi/state.js.map +1 -0
- package/dist/lib/plugins/openapi/util/createSidebarCategory.d.ts +9 -0
- package/dist/lib/plugins/openapi/util/createSidebarCategory.js +23 -0
- package/dist/lib/plugins/openapi/util/createSidebarCategory.js.map +1 -0
- package/dist/lib/plugins/openapi/util/generateSchemaExample.d.ts +0 -1
- package/dist/lib/plugins/openapi/util/generateSchemaExample.js +36 -39
- package/dist/lib/plugins/openapi/util/generateSchemaExample.js.map +1 -1
- package/dist/lib/plugins/openapi/util/getRoutes.d.ts +10 -0
- package/dist/lib/plugins/openapi/util/getRoutes.js +80 -0
- package/dist/lib/plugins/openapi/util/getRoutes.js.map +1 -0
- package/dist/lib/plugins/openapi/util/methodColorMap.d.ts +2 -0
- package/dist/lib/plugins/openapi/util/methodColorMap.js +10 -0
- package/dist/lib/plugins/openapi/util/methodColorMap.js.map +1 -0
- package/dist/lib/plugins/openapi/util/methodToColor.d.ts +20 -0
- package/dist/lib/plugins/openapi/util/methodToColor.js +24 -0
- package/dist/lib/plugins/openapi/util/methodToColor.js.map +1 -0
- package/dist/lib/plugins/openapi/util/sanitizeMarkdownForMetatag.d.ts +1 -0
- package/dist/lib/plugins/openapi/util/sanitizeMarkdownForMetatag.js +27 -0
- package/dist/lib/plugins/openapi/util/sanitizeMarkdownForMetatag.js.map +1 -0
- package/dist/lib/plugins/redirect/index.d.ts +4 -7
- package/dist/lib/plugins/redirect/index.js +2 -2
- package/dist/lib/plugins/redirect/index.js.map +1 -1
- package/dist/lib/plugins/search-inkeep/index.d.ts +24 -5
- package/dist/lib/plugins/search-inkeep/index.js +41 -5
- package/dist/lib/plugins/search-inkeep/index.js.map +1 -1
- package/dist/lib/plugins/search-inkeep/inkeep.d.ts +3 -4
- package/dist/lib/plugins/search-inkeep/inkeep.js.map +1 -1
- package/dist/lib/plugins/search-pagefind/PagefindSearch.d.ts +6 -0
- package/dist/lib/plugins/search-pagefind/PagefindSearch.js +75 -0
- package/dist/lib/plugins/search-pagefind/PagefindSearch.js.map +1 -0
- package/dist/lib/plugins/search-pagefind/ResultList.d.ts +8 -0
- package/dist/lib/plugins/search-pagefind/ResultList.js +38 -0
- package/dist/lib/plugins/search-pagefind/ResultList.js.map +1 -0
- package/dist/lib/plugins/search-pagefind/get-results.d.ts +10 -0
- package/dist/lib/plugins/search-pagefind/get-results.js +42 -0
- package/dist/lib/plugins/search-pagefind/get-results.js.map +1 -0
- package/dist/lib/plugins/search-pagefind/index.d.ts +8 -0
- package/dist/lib/plugins/search-pagefind/index.js +9 -0
- package/dist/lib/plugins/search-pagefind/index.js.map +1 -0
- package/dist/lib/plugins/search-pagefind/types.d.ts +85 -0
- package/dist/lib/plugins/search-pagefind/types.js +2 -0
- package/dist/lib/plugins/search-pagefind/types.js.map +1 -0
- package/dist/lib/ui/Accordion.d.ts +7 -0
- package/dist/lib/ui/Accordion.js +14 -0
- package/dist/lib/ui/Accordion.js.map +1 -0
- package/dist/lib/ui/ActionButton.d.ts +4 -0
- package/dist/lib/ui/ActionButton.js +10 -0
- package/dist/lib/ui/ActionButton.js.map +1 -0
- package/dist/lib/ui/Alert.d.ts +8 -0
- package/dist/lib/ui/Alert.js +23 -0
- package/dist/lib/ui/Alert.js.map +1 -0
- package/dist/lib/ui/AlertDialog.d.ts +20 -0
- package/dist/lib/ui/AlertDialog.js +27 -0
- package/dist/lib/ui/AlertDialog.js.map +1 -0
- package/dist/lib/ui/AspectRatio.d.ts +3 -0
- package/dist/lib/ui/AspectRatio.js +4 -0
- package/dist/lib/ui/AspectRatio.js.map +1 -0
- package/dist/lib/ui/Badge.d.ts +9 -0
- package/dist/lib/ui/Badge.js +22 -0
- package/dist/lib/ui/Badge.js.map +1 -0
- package/dist/lib/ui/Breadcrumb.d.ts +19 -0
- package/dist/lib/ui/Breadcrumb.js +24 -0
- package/dist/lib/ui/Breadcrumb.js.map +1 -0
- package/dist/lib/ui/Button.d.ts +3 -4
- package/dist/lib/ui/Button.js +2 -1
- package/dist/lib/ui/Button.js.map +1 -1
- package/dist/lib/ui/Callout.d.ts +2 -1
- package/dist/lib/ui/Callout.js +3 -2
- package/dist/lib/ui/Callout.js.map +1 -1
- package/dist/lib/ui/Card.js +1 -1
- package/dist/lib/ui/Card.js.map +1 -1
- package/dist/lib/ui/Carousel.d.ts +18 -0
- package/dist/lib/ui/Carousel.js +99 -0
- package/dist/lib/ui/Carousel.js.map +1 -0
- package/dist/lib/ui/Checkbox.d.ts +4 -0
- package/dist/lib/ui/Checkbox.js +9 -0
- package/dist/lib/ui/Checkbox.js.map +1 -0
- package/dist/lib/ui/Collapsible.d.ts +5 -0
- package/dist/lib/ui/Collapsible.js +6 -0
- package/dist/lib/ui/Collapsible.js.map +1 -0
- package/dist/lib/ui/Command.d.ts +94 -0
- package/dist/lib/ui/Command.js +35 -0
- package/dist/lib/ui/Command.js.map +1 -0
- package/dist/lib/{components → ui}/Dialog.js +2 -2
- package/dist/lib/ui/Dialog.js.map +1 -0
- package/dist/lib/ui/Form.d.ts +23 -0
- package/dist/lib/ui/Form.js +63 -0
- package/dist/lib/ui/Form.js.map +1 -0
- package/dist/lib/ui/HoverCard.d.ts +6 -0
- package/dist/lib/ui/HoverCard.js +10 -0
- package/dist/lib/ui/HoverCard.js.map +1 -0
- package/dist/lib/ui/Input.d.ts +1 -2
- package/dist/lib/ui/Input.js.map +1 -1
- package/dist/lib/ui/Label.d.ts +5 -0
- package/dist/lib/ui/Label.js +10 -0
- package/dist/lib/ui/Label.js.map +1 -0
- package/dist/lib/ui/Pagination.d.ts +28 -0
- package/dist/lib/ui/Pagination.js +24 -0
- package/dist/lib/ui/Pagination.js.map +1 -0
- package/dist/lib/ui/Popover.d.ts +6 -0
- package/dist/lib/ui/Popover.js +10 -0
- package/dist/lib/ui/Popover.js.map +1 -0
- package/dist/lib/ui/Progress.d.ts +4 -0
- package/dist/lib/ui/Progress.js +8 -0
- package/dist/lib/ui/Progress.js.map +1 -0
- package/dist/lib/ui/RadioGroup.d.ts +5 -0
- package/dist/lib/ui/RadioGroup.js +15 -0
- package/dist/lib/ui/RadioGroup.js.map +1 -0
- package/dist/lib/ui/ScrollArea.d.ts +5 -0
- package/dist/lib/ui/ScrollArea.js +12 -0
- package/dist/lib/ui/ScrollArea.js.map +1 -0
- package/dist/lib/{components → ui}/Select.js +3 -3
- package/dist/lib/ui/Select.js.map +1 -0
- package/dist/lib/ui/Skeleton.d.ts +2 -0
- package/dist/lib/ui/Skeleton.js +7 -0
- package/dist/lib/ui/Skeleton.js.map +1 -0
- package/dist/lib/ui/Slider.d.ts +4 -0
- package/dist/lib/ui/Slider.js +8 -0
- package/dist/lib/ui/Slider.js.map +1 -0
- package/dist/lib/ui/Stepper.d.ts +3 -0
- package/dist/lib/ui/Stepper.js +7 -0
- package/dist/lib/ui/Stepper.js.map +1 -0
- package/dist/lib/ui/Switch.d.ts +4 -0
- package/dist/lib/ui/Switch.js +8 -0
- package/dist/lib/ui/Switch.js.map +1 -0
- package/dist/lib/ui/SyntaxHighlight.d.ts +15 -0
- package/dist/lib/ui/SyntaxHighlight.js +62 -0
- package/dist/lib/ui/SyntaxHighlight.js.map +1 -0
- package/dist/lib/ui/Textarea.d.ts +4 -0
- package/dist/lib/ui/Textarea.js +9 -0
- package/dist/lib/ui/Textarea.js.map +1 -0
- package/dist/lib/ui/Toggle.d.ts +12 -0
- package/dist/lib/ui/Toggle.js +26 -0
- package/dist/lib/ui/Toggle.js.map +1 -0
- package/dist/lib/ui/ToggleGroup.d.ts +12 -0
- package/dist/lib/ui/ToggleGroup.js +21 -0
- package/dist/lib/ui/ToggleGroup.js.map +1 -0
- package/dist/lib/ui/Tooltip.d.ts +7 -0
- package/dist/lib/ui/Tooltip.js +11 -0
- package/dist/lib/ui/Tooltip.js.map +1 -0
- package/dist/lib/ui/util.d.ts +2 -0
- package/dist/lib/ui/util.js +3 -0
- package/dist/lib/ui/util.js.map +1 -0
- package/dist/lib/util/MdxComponents.d.ts +23 -21
- package/dist/lib/util/MdxComponents.js +8 -7
- package/dist/lib/util/MdxComponents.js.map +1 -1
- package/dist/lib/util/createVariantComponent.d.ts +2 -2
- package/dist/lib/util/joinPath.d.ts +3 -0
- package/dist/lib/util/joinPath.js +3 -0
- package/dist/lib/util/joinPath.js.map +1 -1
- package/dist/lib/util/joinUrl.d.ts +1 -0
- package/dist/lib/util/joinUrl.js +40 -0
- package/dist/lib/util/joinUrl.js.map +1 -0
- package/dist/lib/util/joinUrl.test.d.ts +1 -0
- package/dist/lib/util/joinUrl.test.js +43 -0
- package/dist/lib/util/joinUrl.test.js.map +1 -0
- package/dist/lib/util/scrollIntoViewIfNeeded.d.ts +1 -0
- package/dist/lib/util/scrollIntoViewIfNeeded.js +14 -0
- package/dist/lib/util/scrollIntoViewIfNeeded.js.map +1 -0
- package/dist/lib/util/traverse.d.ts +3 -0
- package/dist/lib/util/traverse.js +22 -0
- package/dist/lib/util/traverse.js.map +1 -0
- package/dist/lib/util/types.d.ts +7 -0
- package/dist/lib/util/types.js +2 -0
- package/dist/lib/util/types.js.map +1 -0
- package/dist/lib/util/useExposedProps.js +3 -2
- package/dist/lib/util/useExposedProps.js.map +1 -1
- package/dist/lib/util/useIsomorphicLayoutEffect.d.ts +3 -0
- package/dist/lib/util/useIsomorphicLayoutEffect.js +4 -0
- package/dist/lib/util/useIsomorphicLayoutEffect.js.map +1 -0
- package/dist/lib/util/useLatest.d.ts +1 -0
- package/dist/lib/util/useLatest.js +15 -0
- package/dist/lib/util/useLatest.js.map +1 -0
- package/dist/lib/util/useOnScreen.d.ts +5 -0
- package/dist/lib/util/useOnScreen.js +19 -0
- package/dist/lib/util/useOnScreen.js.map +1 -0
- package/dist/lib/util/useScrollToAnchor.d.ts +1 -0
- package/dist/lib/util/useScrollToAnchor.js +42 -37
- package/dist/lib/util/useScrollToAnchor.js.map +1 -1
- package/dist/lib/util/useScrollToTop.js +7 -5
- package/dist/lib/util/useScrollToTop.js.map +1 -1
- package/dist/vite/api/schema-codegen.d.ts +12 -0
- package/dist/vite/api/schema-codegen.js +81 -0
- package/dist/vite/api/schema-codegen.js.map +1 -0
- package/dist/vite/api/schema-codegen.test.d.ts +1 -0
- package/dist/vite/api/schema-codegen.test.js +313 -0
- package/dist/vite/api/schema-codegen.test.js.map +1 -0
- package/dist/vite/build.js +55 -13
- package/dist/vite/build.js.map +1 -1
- package/dist/vite/config.d.ts +7 -14
- package/dist/vite/config.js +122 -113
- package/dist/vite/config.js.map +1 -1
- package/dist/vite/config.test.js +11 -5
- package/dist/vite/config.test.js.map +1 -1
- package/dist/vite/create-pagefind-index.d.ts +4 -0
- package/dist/vite/create-pagefind-index.js +12 -0
- package/dist/vite/create-pagefind-index.js.map +1 -0
- package/dist/vite/css/collect.d.ts +2 -0
- package/dist/vite/css/collect.js +27 -0
- package/dist/vite/css/collect.js.map +1 -0
- package/dist/vite/css/plugin.d.ts +5 -0
- package/dist/vite/css/plugin.js +79 -0
- package/dist/vite/css/plugin.js.map +1 -0
- package/dist/vite/debug.d.ts +1 -0
- package/dist/vite/debug.js +10 -0
- package/dist/vite/debug.js.map +1 -0
- package/dist/vite/dev-server.d.ts +5 -2
- package/dist/vite/dev-server.js +65 -15
- package/dist/vite/dev-server.js.map +1 -1
- package/dist/vite/error-handler.d.ts +1 -1
- package/dist/vite/error-handler.js +1 -1
- package/dist/vite/error-handler.js.map +1 -1
- package/dist/vite/html.js +0 -2
- package/dist/vite/html.js.map +1 -1
- package/dist/vite/output.d.ts +113 -0
- package/dist/vite/output.js +60 -0
- package/dist/vite/output.js.map +1 -0
- package/dist/vite/plugin-api-keys.d.ts +2 -2
- package/dist/vite/plugin-api-keys.js +5 -5
- package/dist/vite/plugin-api-keys.js.map +1 -1
- package/dist/vite/plugin-api.d.ts +2 -2
- package/dist/vite/plugin-api.js +199 -32
- package/dist/vite/plugin-api.js.map +1 -1
- package/dist/vite/plugin-auth.d.ts +2 -2
- package/dist/vite/plugin-auth.js +7 -4
- package/dist/vite/plugin-auth.js.map +1 -1
- package/dist/vite/plugin-component.d.ts +2 -2
- package/dist/vite/plugin-component.js +22 -12
- package/dist/vite/plugin-component.js.map +1 -1
- package/dist/vite/plugin-config-reload.d.ts +4 -4
- package/dist/vite/plugin-config-reload.js +11 -7
- package/dist/vite/plugin-config-reload.js.map +1 -1
- package/dist/vite/plugin-config.d.ts +2 -3
- package/dist/vite/plugin-config.js +26 -3
- package/dist/vite/plugin-config.js.map +1 -1
- package/dist/vite/plugin-custom-pages.d.ts +2 -2
- 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 +3 -3
- package/dist/vite/plugin-docs.js +57 -29
- package/dist/vite/plugin-docs.js.map +1 -1
- package/dist/vite/plugin-docs.test.js +15 -23
- package/dist/vite/plugin-docs.test.js.map +1 -1
- package/dist/vite/plugin-frontmatter.d.ts +2 -1
- package/dist/vite/plugin-frontmatter.js +28 -24
- package/dist/vite/plugin-frontmatter.js.map +1 -1
- package/dist/vite/plugin-mdx.d.ts +2 -8
- package/dist/vite/plugin-mdx.js +89 -16
- package/dist/vite/plugin-mdx.js.map +1 -1
- package/dist/vite/plugin-redirect.d.ts +2 -2
- package/dist/vite/plugin-redirect.js +3 -3
- package/dist/vite/plugin-redirect.js.map +1 -1
- package/dist/vite/plugin-search.d.ts +2 -2
- package/dist/vite/plugin-search.js +5 -1
- package/dist/vite/plugin-search.js.map +1 -1
- package/dist/vite/plugin-sidebar.d.ts +2 -2
- package/dist/vite/plugin-sidebar.js +18 -8
- package/dist/vite/plugin-sidebar.js.map +1 -1
- package/dist/vite/{plugin-custom-css.d.ts → plugin-theme-css.d.ts} +3 -3
- package/dist/vite/plugin-theme-css.js +117 -0
- package/dist/vite/plugin-theme-css.js.map +1 -0
- package/dist/vite/plugin.d.ts +2 -3
- package/dist/vite/plugin.js +8 -6
- package/dist/vite/plugin.js.map +1 -1
- package/dist/vite/{prerender.d.ts → prerender/FileWritingResponse.d.ts} +8 -4
- package/dist/vite/prerender/FileWritingResponse.js +51 -0
- package/dist/vite/prerender/FileWritingResponse.js.map +1 -0
- package/dist/vite/prerender/prerender.d.ts +14 -0
- package/dist/vite/prerender/prerender.js +90 -0
- package/dist/vite/prerender/prerender.js.map +1 -0
- package/dist/vite/prerender/worker.d.ts +13 -0
- package/dist/vite/prerender/worker.js +31 -0
- package/dist/vite/prerender/worker.js.map +1 -0
- package/dist/vite/remarkStaticGeneration.d.ts +3 -0
- package/dist/vite/remarkStaticGeneration.js +125 -0
- package/dist/vite/remarkStaticGeneration.js.map +1 -0
- package/dist/vite/reporter.d.ts +3 -0
- package/dist/vite/reporter.js +33 -0
- package/dist/vite/reporter.js.map +1 -0
- package/dist/vite/sitemap.d.ts +1 -1
- package/dist/vite/sitemap.js +2 -1
- package/dist/vite/sitemap.js.map +1 -1
- package/dist/zuplo/enrich-with-zuplo.d.ts +5 -0
- package/dist/zuplo/enrich-with-zuplo.js +184 -0
- package/dist/zuplo/enrich-with-zuplo.js.map +1 -0
- package/dist/zuplo/env.d.ts +7 -0
- package/dist/zuplo/env.js +12 -0
- package/dist/zuplo/env.js.map +1 -0
- package/dist/zuplo/policy-types.d.ts +33 -0
- package/dist/zuplo/policy-types.js +8 -0
- package/dist/zuplo/policy-types.js.map +1 -0
- package/dist/zuplo/with-zuplo-processors.d.ts +3 -0
- package/dist/zuplo/with-zuplo-processors.js +26 -0
- package/dist/zuplo/with-zuplo-processors.js.map +1 -0
- package/dist/zuplo/with-zuplo.d.ts +3 -0
- package/dist/zuplo/with-zuplo.js +9 -0
- package/dist/zuplo/with-zuplo.js.map +1 -0
- package/lib/AuthenticationPlugin-foqdvvkf.js +58 -0
- package/lib/AuthenticationPlugin-foqdvvkf.js.map +1 -0
- package/lib/Button-Fp19CMUr.js +49 -0
- package/lib/Button-Fp19CMUr.js.map +1 -0
- package/lib/Callout-D5frCCJ0.js +229 -0
- package/lib/Callout-D5frCCJ0.js.map +1 -0
- package/lib/CategoryHeading-DpB47wvk.js +10 -0
- package/lib/{CategoryHeading-D2WS6sRI.js.map → CategoryHeading-DpB47wvk.js.map} +1 -1
- package/lib/{ClientOnly-CVN6leDu.js → ClientOnly-E7hGysn1.js} +4 -4
- package/lib/ClientOnly-E7hGysn1.js.map +1 -0
- package/lib/Dialog-Dv6WG8RN.js +98 -0
- package/lib/Dialog-Dv6WG8RN.js.map +1 -0
- package/lib/Drawer-kDAfOq_2.js +1133 -0
- package/lib/Drawer-kDAfOq_2.js.map +1 -0
- package/lib/Markdown-aF5FdsNi.js +16960 -0
- package/lib/Markdown-aF5FdsNi.js.map +1 -0
- package/lib/MdxPage-ZW1StNhp.js +83 -0
- package/lib/MdxPage-ZW1StNhp.js.map +1 -0
- package/lib/OasProvider-OlYb8W57.js +34 -0
- package/lib/OasProvider-OlYb8W57.js.map +1 -0
- package/lib/OperationList-BvfIzVRx.js +5065 -0
- package/lib/OperationList-BvfIzVRx.js.map +1 -0
- package/lib/Pagination-CYB3nVYx.js +46 -0
- package/lib/Pagination-CYB3nVYx.js.map +1 -0
- package/lib/SchemaList-Bi35O4XD.js +148 -0
- package/lib/SchemaList-Bi35O4XD.js.map +1 -0
- package/lib/SchemaView-D7MC5cjz.js +356 -0
- package/lib/SchemaView-D7MC5cjz.js.map +1 -0
- package/lib/Select-DVFRKf1R.js +223 -0
- package/lib/Select-DVFRKf1R.js.map +1 -0
- package/lib/SlotletProvider-DXvc0aY6.js +338 -0
- package/lib/SlotletProvider-DXvc0aY6.js.map +1 -0
- package/lib/Spinner-CE68iCm0.js +7 -0
- package/lib/Spinner-CE68iCm0.js.map +1 -0
- package/lib/SyntaxHighlight-BEoSoPEo.js +2890 -0
- package/lib/SyntaxHighlight-BEoSoPEo.js.map +1 -0
- package/lib/Toc-YBsgI72s.js +92 -0
- package/lib/Toc-YBsgI72s.js.map +1 -0
- package/lib/chunk-HA7DTUK3-C4gP41vD.js +1821 -0
- package/lib/chunk-HA7DTUK3-C4gP41vD.js.map +1 -0
- package/lib/circular-ByJI6Mci.js +15877 -0
- package/lib/circular-ByJI6Mci.js.map +1 -0
- package/lib/cn-qaFjX9_3.js +2279 -0
- package/lib/cn-qaFjX9_3.js.map +1 -0
- package/lib/context-DLCwaMXN.js +22 -0
- package/lib/context-DLCwaMXN.js.map +1 -0
- package/lib/createServer-mMau3eV_.js +12428 -0
- package/lib/createServer-mMau3eV_.js.map +1 -0
- package/lib/hook-CqpVYDqN.js +1483 -0
- package/lib/hook-CqpVYDqN.js.map +1 -0
- package/lib/index-Bt7MKhZq.js +2514 -0
- package/lib/index-Bt7MKhZq.js.map +1 -0
- package/lib/index-CPNSgwSb.js +36 -0
- package/lib/index-CPNSgwSb.js.map +1 -0
- package/lib/index-CXfEwK_7.js +2226 -0
- package/lib/index-CXfEwK_7.js.map +1 -0
- package/lib/{index-CkwDvuPt.js → index-Dl3Yl0yb.js} +303 -286
- package/lib/index-Dl3Yl0yb.js.map +1 -0
- package/lib/index-DwT-v3zK.js +86 -0
- package/lib/index-DwT-v3zK.js.map +1 -0
- package/lib/index-LNp6rxyU.js.map +1 -1
- package/lib/index-gQD2h1wX.js +447 -0
- package/lib/index-gQD2h1wX.js.map +1 -0
- package/lib/index.esm--gIChbWs.js +1207 -0
- package/lib/index.esm--gIChbWs.js.map +1 -0
- package/lib/invariant-Caa8-XvF.js.map +1 -1
- package/lib/jsx-runtime-CYK1ROHF.js +446 -0
- package/lib/jsx-runtime-CYK1ROHF.js.map +1 -0
- package/lib/mutation-8LjrN7uz.js +208 -0
- package/lib/mutation-8LjrN7uz.js.map +1 -0
- package/lib/objectEntries-BS7aAgOm.js +12 -0
- package/lib/objectEntries-BS7aAgOm.js.map +1 -0
- package/lib/post-processors/removeExtensions.js +11 -0
- package/lib/post-processors/removeExtensions.js.map +1 -0
- package/lib/post-processors/removeParameters.js +48 -0
- package/lib/post-processors/removeParameters.js.map +1 -0
- package/lib/post-processors/removePaths.js +28 -0
- package/lib/post-processors/removePaths.js.map +1 -0
- package/lib/post-processors/traverse.js +15 -0
- package/lib/post-processors/traverse.js.map +1 -0
- package/lib/{prism-bash.min-DadFsM4Z.js → prism-bash.min-HHIMdNJ_.js} +4 -4
- package/lib/{prism-bash.min-DadFsM4Z.js.map → prism-bash.min-HHIMdNJ_.js.map} +1 -1
- package/lib/prism-csharp.min-bQAo2pmx.js +63 -0
- package/lib/{prism-csharp.min-Yizuc34Y.js.map → prism-csharp.min-bQAo2pmx.js.map} +1 -1
- package/lib/prism-java.min-BpvsOuIa.js +35 -0
- package/lib/{prism-java.min-d5iT_mOd.js.map → prism-java.min-BpvsOuIa.js.map} +1 -1
- package/lib/prism-javascript.min-CEqHqgbm.js.map +1 -1
- package/lib/prism-json.min-B1GJqK1k.js.map +1 -1
- package/lib/prism-jsstacktrace.min-BfobCF2F.js +2 -0
- package/lib/prism-jsstacktrace.min-BfobCF2F.js.map +1 -0
- package/lib/{prism-markdown.min-F3U-vPBi.js → prism-markdown.min-C0Qn0m-5.js} +30 -30
- package/lib/{prism-markdown.min-F3U-vPBi.js.map → prism-markdown.min-C0Qn0m-5.js.map} +1 -1
- package/lib/prism-markup-BNGj0Tvm.js.map +1 -1
- package/lib/prism-objectivec.min-BXSWqpJJ.js.map +1 -1
- package/lib/prism-ruby.min-Dx9KO9ds.js +38 -0
- package/lib/{prism-ruby.min-C7LwcKyz.js.map → prism-ruby.min-Dx9KO9ds.js.map} +1 -1
- package/lib/prism-typescript.min-CD7H2IYQ.js +34 -0
- package/lib/{prism-typescript.min-oSVeWCAd.js.map → prism-typescript.min-CD7H2IYQ.js.map} +1 -1
- package/lib/ui/Accordion.js +47 -0
- package/lib/ui/Accordion.js.map +1 -0
- package/lib/ui/ActionButton.js +25 -0
- package/lib/ui/ActionButton.js.map +1 -0
- package/lib/ui/Alert.js +51 -0
- package/lib/ui/Alert.js.map +1 -0
- package/lib/ui/AlertDialog.js +114 -0
- package/lib/ui/AlertDialog.js.map +1 -0
- package/lib/ui/AspectRatio.js +6 -0
- package/lib/ui/AspectRatio.js.map +1 -0
- package/lib/ui/Badge.js +28 -0
- package/lib/ui/Badge.js.map +1 -0
- package/lib/ui/Breadcrumb.js +94 -0
- package/lib/ui/Breadcrumb.js.map +1 -0
- package/lib/ui/Button.js +50 -0
- package/lib/ui/Button.js.map +1 -0
- package/lib/ui/Callout.js +95 -0
- package/lib/ui/Callout.js.map +1 -0
- package/lib/ui/Card.js +62 -0
- package/lib/ui/Card.js.map +1 -0
- package/lib/ui/Carousel.js +1416 -0
- package/lib/ui/Carousel.js.map +1 -0
- package/lib/ui/Checkbox.js +29 -0
- package/lib/ui/Checkbox.js.map +1 -0
- package/lib/ui/Collapsible.js +8 -0
- package/lib/ui/Collapsible.js.map +1 -0
- package/lib/ui/Command.js +156 -0
- package/lib/ui/Command.js.map +1 -0
- package/lib/ui/Dialog.js +101 -0
- package/lib/ui/Dialog.js.map +1 -0
- package/lib/ui/Drawer.js +17 -0
- package/lib/ui/Drawer.js.map +1 -0
- package/lib/ui/DropdownMenu.js +145 -0
- package/lib/ui/DropdownMenu.js.map +1 -0
- package/lib/ui/Form.js +95 -0
- package/lib/ui/Form.js.map +1 -0
- package/lib/ui/HoverCard.js +24 -0
- package/lib/ui/HoverCard.js.map +1 -0
- package/lib/ui/Input.js +22 -0
- package/lib/ui/Input.js.map +1 -0
- package/lib/ui/Label.js +20 -0
- package/lib/ui/Label.js.map +1 -0
- package/lib/ui/Pagination.js +106 -0
- package/lib/ui/Pagination.js.map +1 -0
- package/lib/ui/Popover.js +24 -0
- package/lib/ui/Popover.js.map +1 -0
- package/lib/ui/Progress.js +27 -0
- package/lib/ui/Progress.js.map +1 -0
- package/lib/ui/RadioGroup.js +32 -0
- package/lib/ui/RadioGroup.js.map +1 -0
- package/lib/ui/ScrollArea.js +39 -0
- package/lib/ui/ScrollArea.js.map +1 -0
- package/lib/ui/Select.js +122 -0
- package/lib/ui/Select.js.map +1 -0
- package/lib/ui/Skeleton.js +18 -0
- package/lib/ui/Skeleton.js.map +1 -0
- package/lib/ui/Slider.js +24 -0
- package/lib/ui/Slider.js.map +1 -0
- package/lib/ui/Stepper.js +6 -0
- package/lib/ui/Stepper.js.map +1 -0
- package/lib/ui/Switch.js +28 -0
- package/lib/ui/Switch.js.map +1 -0
- package/lib/ui/SyntaxHighlight.js +11 -0
- package/lib/ui/SyntaxHighlight.js.map +1 -0
- package/lib/ui/Tabs.js +47 -0
- package/lib/ui/Tabs.js.map +1 -0
- package/lib/ui/Textarea.js +21 -0
- package/lib/ui/Textarea.js.map +1 -0
- package/lib/ui/Toggle.js +38 -0
- package/lib/ui/Toggle.js.map +1 -0
- package/lib/ui/ToggleGroup.js +42 -0
- package/lib/ui/ToggleGroup.js.map +1 -0
- package/lib/ui/Tooltip.js +24 -0
- package/lib/ui/Tooltip.js.map +1 -0
- package/lib/ui/util.js +6 -0
- package/lib/ui/util.js.map +1 -0
- package/lib/useExposedProps-B9qXJedG.js +9 -0
- package/lib/useExposedProps-B9qXJedG.js.map +1 -0
- package/lib/zudoku.auth-auth0.js +30 -25
- package/lib/zudoku.auth-auth0.js.map +1 -1
- package/lib/zudoku.auth-clerk.js +101 -55
- package/lib/zudoku.auth-clerk.js.map +1 -1
- package/lib/zudoku.auth-openid.js +450 -486
- package/lib/zudoku.auth-openid.js.map +1 -1
- package/lib/zudoku.components.js +31 -3445
- package/lib/zudoku.components.js.map +1 -1
- package/lib/zudoku.hooks.js +19 -0
- package/lib/zudoku.hooks.js.map +1 -0
- package/lib/zudoku.icons.js +10 -0
- package/lib/zudoku.icons.js.map +1 -1
- package/lib/zudoku.plugin-api-catalog.js +123 -0
- package/lib/zudoku.plugin-api-catalog.js.map +1 -0
- package/lib/zudoku.plugin-api-keys.js +112 -106
- package/lib/zudoku.plugin-api-keys.js.map +1 -1
- package/lib/zudoku.plugin-custom-pages.js +10 -9
- package/lib/zudoku.plugin-custom-pages.js.map +1 -1
- package/lib/zudoku.plugin-markdown.js +73 -27
- package/lib/zudoku.plugin-markdown.js.map +1 -1
- package/lib/zudoku.plugin-openapi.js +7 -11
- package/lib/zudoku.plugin-openapi.js.map +1 -1
- package/lib/zudoku.plugin-redirect.js +2 -2
- package/lib/zudoku.plugin-redirect.js.map +1 -1
- package/lib/zudoku.plugin-search-inkeep.js +53 -24
- package/lib/zudoku.plugin-search-inkeep.js.map +1 -1
- package/lib/zudoku.plugin-search-pagefind.js +238 -0
- package/lib/zudoku.plugin-search-pagefind.js.map +1 -0
- package/lib/zudoku.plugins.js +14 -0
- package/lib/zudoku.plugins.js.map +1 -0
- package/package.json +156 -78
- package/src/app/demo-cdn.html +31 -31
- package/src/app/demo.tsx +1 -5
- package/src/app/entry.client.tsx +28 -3
- package/src/app/entry.server.tsx +76 -58
- package/src/app/main.css +99 -40
- package/src/app/main.tsx +50 -37
- package/src/app/sentry.ts +24 -0
- package/src/app/standalone.tsx +2 -6
- package/src/app/tailwind.ts +83 -48
- package/src/lib/MissingIcon.tsx +22 -0
- package/src/lib/authentication/AuthenticationPlugin.tsx +4 -1
- package/src/lib/authentication/authentication.ts +5 -3
- package/src/lib/authentication/components/CallbackHandler.tsx +1 -1
- package/src/lib/authentication/components/SignIn.tsx +1 -1
- package/src/lib/authentication/components/SignOut.tsx +3 -2
- package/src/lib/authentication/hook.ts +13 -4
- package/src/lib/authentication/providers/auth0.tsx +20 -16
- package/src/lib/authentication/providers/clerk.tsx +70 -15
- package/src/lib/authentication/providers/openid.tsx +72 -55
- package/src/lib/authentication/providers/supabase.tsx +157 -0
- package/src/lib/authentication/state.ts +56 -25
- package/{LICENSE.md → src/lib/authentication/use-broadcast/LICENSE.md} +2 -2
- package/src/lib/authentication/use-broadcast/shared.ts +372 -0
- package/src/lib/authentication/use-broadcast/useBroadcast.ts +146 -0
- package/src/lib/components/AnchorLink.tsx +13 -8
- package/src/lib/components/Autocomplete.tsx +113 -0
- package/src/lib/components/Banner.tsx +1 -0
- package/src/lib/components/Bootstrap.tsx +36 -16
- package/src/lib/components/ClientOnly.tsx +6 -3
- package/src/lib/components/DeveloperHint.tsx +6 -1
- package/src/lib/components/Header.tsx +104 -53
- package/src/lib/components/Heading.tsx +13 -13
- package/src/lib/components/InlineCode.tsx +13 -16
- package/src/lib/components/Layout.tsx +25 -55
- package/src/lib/components/Main.tsx +49 -0
- package/src/lib/components/Markdown.tsx +15 -16
- package/src/lib/components/MobileTopNavigation.tsx +27 -30
- package/src/lib/components/NotFoundPage.tsx +1 -1
- package/src/lib/components/Pagination.tsx +47 -0
- package/src/lib/components/PathRenderer.tsx +61 -0
- package/src/lib/components/ReactMarkdown.license.txt +21 -0
- package/src/lib/components/ReactMarkdown.tsx +264 -0
- package/src/lib/components/Search.tsx +3 -3
- package/src/lib/components/SlotletProvider.tsx +3 -1
- package/src/lib/components/StatusPage.tsx +91 -0
- package/src/lib/components/ThemeSwitch.tsx +46 -0
- package/src/lib/components/TopNavigation.tsx +96 -27
- package/src/lib/components/Zudoku.tsx +119 -0
- package/src/lib/components/cache.ts +23 -0
- package/src/lib/components/context/RouterEventsEmitter.tsx +19 -0
- package/src/lib/components/context/ViewportAnchorContext.tsx +26 -21
- package/src/lib/components/context/ZudokuContext.ts +54 -29
- package/src/lib/components/context/ZudokuProvider.tsx +2 -2
- package/src/lib/components/index.ts +24 -8
- package/src/lib/components/navigation/Sidebar.tsx +31 -17
- package/src/lib/components/navigation/SidebarBadge.tsx +17 -12
- package/src/lib/components/navigation/SidebarCategory.tsx +60 -59
- package/src/lib/components/navigation/SidebarItem.tsx +30 -41
- package/src/lib/components/navigation/SidebarWrapper.tsx +13 -14
- package/src/lib/{plugins/markdown → components/navigation}/Toc.tsx +5 -14
- package/src/lib/components/navigation/utils.ts +12 -17
- package/src/lib/core/RouteGuard.tsx +74 -0
- package/src/lib/core/{DevPortalContext.ts → ZudokuContext.ts} +71 -37
- package/src/lib/core/plugins.ts +46 -22
- package/src/lib/errors/ErrorAlert.tsx +25 -17
- package/src/lib/errors/RouterError.tsx +1 -1
- package/src/lib/hooks/index.ts +5 -0
- package/src/lib/hooks/useEvent.test.tsx +149 -0
- package/src/lib/hooks/useEvent.ts +41 -0
- package/src/lib/icons.ts +1 -0
- package/src/lib/oas/graphql/circular.ts +50 -0
- package/src/lib/oas/graphql/index.ts +298 -104
- package/src/lib/oas/parser/dereference/index.ts +10 -4
- package/src/lib/oas/parser/index.ts +7 -29
- package/src/lib/oas/parser/upgrade/index.ts +24 -29
- package/src/lib/plugins/api-catalog/Catalog.tsx +76 -0
- package/src/lib/plugins/api-catalog/index.tsx +115 -0
- package/src/lib/plugins/api-keys/CreateApiKey.tsx +10 -6
- package/src/lib/plugins/api-keys/ProtectedRoute.tsx +1 -1
- package/src/lib/plugins/api-keys/SettingsApiKeys.tsx +1 -1
- package/src/lib/plugins/api-keys/index.tsx +16 -10
- package/src/lib/plugins/custom-pages/CustomPage.tsx +2 -2
- package/src/lib/plugins/custom-pages/index.tsx +3 -3
- package/src/lib/plugins/markdown/MdxPage.tsx +41 -40
- package/src/lib/plugins/markdown/index.tsx +53 -13
- package/src/lib/plugins/markdown/resolver.ts +57 -0
- package/src/lib/plugins/openapi/CollapsibleCode.tsx +83 -0
- package/src/lib/plugins/openapi/ColorizedParam.tsx +49 -23
- package/src/lib/plugins/openapi/Endpoint.tsx +19 -22
- package/src/lib/plugins/openapi/OasProvider.tsx +51 -0
- package/src/lib/plugins/openapi/OperationList.tsx +232 -73
- package/src/lib/plugins/openapi/OperationListItem.tsx +136 -88
- package/src/lib/plugins/openapi/ParamInfos.tsx +87 -0
- package/src/lib/plugins/openapi/ParameterList.tsx +4 -0
- package/src/lib/plugins/openapi/ParameterListItem.tsx +46 -31
- package/src/lib/plugins/openapi/PlaygroundDialogWrapper.tsx +21 -2
- package/src/lib/plugins/openapi/RequestBodySidecarBox.tsx +15 -33
- package/src/lib/plugins/openapi/ResponsesSidecarBox.tsx +46 -58
- package/src/lib/plugins/openapi/SchemaList.tsx +151 -0
- package/src/lib/plugins/openapi/Sidecar.tsx +147 -113
- package/src/lib/plugins/openapi/SidecarBox.tsx +4 -16
- package/src/lib/plugins/openapi/SidecarExamples.tsx +162 -0
- package/src/lib/plugins/openapi/SimpleSelect.tsx +1 -1
- package/src/lib/plugins/openapi/client/GraphQLClient.tsx +65 -0
- package/src/lib/plugins/openapi/client/GraphQLContext.tsx +16 -0
- package/src/lib/plugins/openapi/client/createServer.ts +8 -2
- package/src/lib/plugins/openapi/client/useCreateQuery.ts +26 -0
- package/src/lib/plugins/openapi/components/EnumValues.tsx +58 -0
- package/src/lib/plugins/openapi/components/SelectOnClick.tsx +29 -0
- package/src/lib/plugins/openapi/context.tsx +2 -2
- package/src/lib/plugins/openapi/graphql/fragment-masking.ts +11 -18
- package/src/lib/plugins/openapi/graphql/gql.ts +38 -30
- package/src/lib/plugins/openapi/graphql/graphql.ts +386 -682
- package/src/lib/plugins/openapi/index.tsx +110 -134
- package/src/lib/plugins/openapi/interfaces.ts +57 -3
- package/src/lib/plugins/openapi/playground/ExamplesDropdown.tsx +52 -0
- package/src/lib/plugins/openapi/playground/Headers.tsx +165 -36
- package/src/lib/plugins/openapi/playground/IdentityDialog.tsx +74 -0
- package/src/lib/plugins/openapi/playground/IdentitySelector.tsx +54 -0
- package/src/lib/plugins/openapi/playground/ParamsGrid.tsx +13 -0
- package/src/lib/plugins/openapi/playground/PathParams.tsx +39 -64
- package/src/lib/plugins/openapi/playground/Playground.tsx +386 -246
- package/src/lib/plugins/openapi/playground/PlaygroundDialog.tsx +7 -4
- package/src/lib/plugins/openapi/playground/QueryParams.tsx +86 -88
- package/src/lib/plugins/openapi/playground/RequestLoginDialog.tsx +51 -0
- package/src/lib/plugins/openapi/playground/SubmitButton.tsx +75 -0
- package/src/lib/plugins/openapi/playground/rememberedIdentity.ts +26 -0
- package/src/lib/plugins/openapi/playground/result-panel/RequestTab.tsx +73 -0
- package/src/lib/plugins/openapi/playground/result-panel/ResponseTab.tsx +230 -0
- package/src/lib/plugins/openapi/playground/result-panel/ResultPanel.tsx +123 -0
- package/src/lib/plugins/openapi/playground/result-panel/convertToTypes.test.ts +64 -0
- package/src/lib/plugins/openapi/playground/result-panel/convertToTypes.ts +36 -0
- package/src/lib/plugins/openapi/post-processors/removeExtensions.test.ts +202 -0
- package/src/lib/plugins/openapi/post-processors/removeExtensions.ts +27 -0
- package/src/lib/plugins/openapi/post-processors/removeParameters.test.ts +148 -0
- package/src/lib/plugins/openapi/post-processors/removeParameters.ts +101 -0
- package/src/lib/plugins/openapi/post-processors/removePaths.test.ts +126 -0
- package/src/lib/plugins/openapi/post-processors/removePaths.ts +55 -0
- package/src/lib/plugins/openapi/post-processors/traverse.ts +1 -0
- package/src/lib/plugins/openapi/schema/{SchemaComponents.tsx → SchemaPropertyItem.tsx} +52 -29
- package/src/lib/plugins/openapi/schema/SchemaView.tsx +57 -38
- package/src/lib/plugins/openapi/schema/utils.ts +4 -0
- package/src/lib/plugins/openapi/state.ts +36 -0
- package/src/lib/plugins/openapi/util/createSidebarCategory.tsx +37 -0
- package/src/lib/plugins/openapi/util/generateSchemaExample.ts +44 -43
- package/src/lib/plugins/openapi/util/getRoutes.tsx +126 -0
- package/src/lib/plugins/openapi/util/methodColorMap.tsx +11 -0
- package/src/lib/plugins/openapi/util/methodToColor.ts +27 -0
- package/src/lib/plugins/openapi/util/sanitizeMarkdownForMetatag.tsx +32 -0
- package/src/lib/plugins/redirect/index.tsx +6 -10
- package/src/lib/plugins/search-inkeep/index.tsx +80 -25
- package/src/lib/plugins/search-inkeep/inkeep.ts +3 -9
- package/src/lib/plugins/search-pagefind/PagefindSearch.tsx +157 -0
- package/src/lib/plugins/search-pagefind/ResultList.tsx +116 -0
- package/src/lib/plugins/search-pagefind/get-results.tsx +75 -0
- package/src/lib/plugins/search-pagefind/index.tsx +21 -0
- package/src/lib/plugins/search-pagefind/types.ts +118 -0
- package/src/lib/ui/Accordion.tsx +56 -0
- package/src/lib/ui/ActionButton.tsx +28 -0
- package/src/lib/ui/{Note.tsx → Alert.tsx} +11 -10
- package/src/lib/ui/AlertDialog.tsx +139 -0
- package/src/lib/ui/AspectRatio.tsx +5 -0
- package/src/lib/ui/Badge.tsx +37 -0
- package/src/lib/ui/Breadcrumb.tsx +115 -0
- package/src/lib/ui/Button.tsx +5 -3
- package/src/lib/ui/Callout.tsx +28 -10
- package/src/lib/ui/Card.tsx +1 -1
- package/src/lib/ui/Carousel.tsx +260 -0
- package/src/lib/ui/Checkbox.tsx +29 -0
- package/src/lib/ui/Collapsible.tsx +9 -0
- package/src/lib/ui/Command.tsx +193 -0
- package/src/lib/{components → ui}/Dialog.tsx +4 -3
- package/src/lib/ui/Form.tsx +177 -0
- package/src/lib/ui/HoverCard.tsx +27 -0
- package/src/lib/ui/Input.tsx +1 -2
- package/src/lib/ui/Label.tsx +24 -0
- package/src/lib/ui/Pagination.tsx +117 -0
- package/src/lib/ui/Popover.tsx +29 -0
- package/src/lib/ui/Progress.tsx +26 -0
- package/src/lib/ui/RadioGroup.tsx +42 -0
- package/src/lib/ui/ScrollArea.tsx +46 -0
- package/src/lib/{components → ui}/Select.tsx +2 -2
- package/src/lib/ui/Skeleton.tsx +15 -0
- package/src/lib/ui/Slider.tsx +26 -0
- package/src/lib/ui/Stepper.tsx +8 -0
- package/src/lib/ui/Switch.tsx +27 -0
- package/src/lib/ui/SyntaxHighlight.tsx +186 -0
- package/src/lib/ui/Textarea.tsx +23 -0
- package/src/lib/ui/Toggle.tsx +43 -0
- package/src/lib/ui/ToggleGroup.tsx +59 -0
- package/src/lib/ui/Tooltip.tsx +28 -0
- package/src/lib/ui/util.tsx +3 -0
- package/src/lib/util/MdxComponents.tsx +10 -12
- package/src/lib/util/createVariantComponent.tsx +2 -2
- package/src/lib/util/joinPath.tsx +3 -0
- package/src/lib/util/joinUrl.test.ts +62 -0
- package/src/lib/util/joinUrl.ts +57 -0
- package/src/lib/util/scrollIntoViewIfNeeded.ts +18 -0
- package/src/lib/util/traverse.ts +31 -0
- package/src/lib/util/types.ts +7 -0
- package/src/lib/util/useExposedProps.tsx +8 -2
- package/src/lib/util/useIsomorphicLayoutEffect.ts +5 -0
- package/src/lib/util/useLatest.ts +18 -0
- package/src/lib/util/useOnScreen.ts +34 -0
- package/src/lib/util/useScrollToAnchor.ts +48 -39
- package/src/lib/util/useScrollToTop.ts +9 -4
- package/dist/internal.d.ts +0 -1
- package/dist/internal.js +0 -2
- package/dist/internal.js.map +0 -1
- package/dist/lib/components/DevPortal.js.map +0 -1
- package/dist/lib/components/Dialog.js.map +0 -1
- package/dist/lib/components/Select.js.map +0 -1
- package/dist/lib/components/SyntaxHighlight.d.ts +0 -11
- package/dist/lib/components/SyntaxHighlight.js +0 -50
- package/dist/lib/components/SyntaxHighlight.js.map +0 -1
- package/dist/lib/components/context/ThemeContext.d.ts +0 -2
- package/dist/lib/components/context/ThemeContext.js +0 -7
- package/dist/lib/components/context/ThemeContext.js.map +0 -1
- package/dist/lib/components/context/ThemeProvider.d.ts +0 -4
- package/dist/lib/components/context/ThemeProvider.js +0 -23
- package/dist/lib/components/context/ThemeProvider.js.map +0 -1
- package/dist/lib/core/DevPortalContext.js +0 -49
- package/dist/lib/core/DevPortalContext.js.map +0 -1
- package/dist/lib/plugins/markdown/Toc.js.map +0 -1
- package/dist/lib/plugins/markdown/generateRoutes.d.ts +0 -3
- package/dist/lib/plugins/markdown/generateRoutes.js +0 -21
- package/dist/lib/plugins/markdown/generateRoutes.js.map +0 -1
- package/dist/lib/plugins/openapi/Route.d.ts +0 -6
- package/dist/lib/plugins/openapi/Route.js +0 -8
- package/dist/lib/plugins/openapi/Route.js.map +0 -1
- package/dist/lib/plugins/openapi/client/createMemoryClient.d.ts +0 -12
- package/dist/lib/plugins/openapi/client/createMemoryClient.js +0 -46
- package/dist/lib/plugins/openapi/client/createMemoryClient.js.map +0 -1
- package/dist/lib/plugins/openapi/client/createWorkerClient.d.ts +0 -10
- package/dist/lib/plugins/openapi/client/createWorkerClient.js +0 -61
- package/dist/lib/plugins/openapi/client/createWorkerClient.js.map +0 -1
- package/dist/lib/plugins/openapi/client/interfaces.d.ts +0 -4
- package/dist/lib/plugins/openapi/client/interfaces.js +0 -2
- package/dist/lib/plugins/openapi/client/interfaces.js.map +0 -1
- package/dist/lib/plugins/openapi/client/worker.js +0 -20
- package/dist/lib/plugins/openapi/client/worker.js.map +0 -1
- package/dist/lib/plugins/openapi/playground/ResponseTab.d.ts +0 -4
- package/dist/lib/plugins/openapi/playground/ResponseTab.js +0 -42
- package/dist/lib/plugins/openapi/playground/ResponseTab.js.map +0 -1
- package/dist/lib/plugins/openapi/schema/SchemaComponents.js +0 -28
- package/dist/lib/plugins/openapi/schema/SchemaComponents.js.map +0 -1
- package/dist/lib/plugins/openapi-worker.d.ts +0 -1
- package/dist/lib/plugins/openapi-worker.js +0 -2
- package/dist/lib/plugins/openapi-worker.js.map +0 -1
- package/dist/lib/plugins/search-inkeep/InkeepCustomTrigger.d.ts +0 -2
- package/dist/lib/plugins/search-inkeep/InkeepCustomTrigger.js +0 -3
- package/dist/lib/plugins/search-inkeep/InkeepCustomTrigger.js.map +0 -1
- package/dist/lib/themeToggle.d.ts +0 -1
- package/dist/lib/themeToggle.js +0 -7
- package/dist/lib/themeToggle.js.map +0 -1
- package/dist/lib/ui/Note.d.ts +0 -8
- package/dist/lib/ui/Note.js +0 -23
- package/dist/lib/ui/Note.js.map +0 -1
- package/dist/lib/util/createWaitForNotify.d.ts +0 -1
- package/dist/lib/util/createWaitForNotify.js +0 -15
- package/dist/lib/util/createWaitForNotify.js.map +0 -1
- package/dist/vite/plugin-custom-css.js +0 -55
- package/dist/vite/plugin-custom-css.js.map +0 -1
- package/dist/vite/plugin-html-transform.d.ts +0 -2
- package/dist/vite/plugin-html-transform.js +0 -15
- package/dist/vite/plugin-html-transform.js.map +0 -1
- package/dist/vite/prerender.js +0 -87
- package/dist/vite/prerender.js.map +0 -1
- package/lib/AuthenticationPlugin-tBvLKsFg.js +0 -55
- package/lib/AuthenticationPlugin-tBvLKsFg.js.map +0 -1
- package/lib/CategoryHeading-D2WS6sRI.js +0 -10
- package/lib/ClientOnly-CVN6leDu.js.map +0 -1
- package/lib/DeveloperHint-CRiZjqd2.js +0 -16
- package/lib/DeveloperHint-CRiZjqd2.js.map +0 -1
- package/lib/InkeepCustomTrigger-CE5-K5ex.js +0 -6
- package/lib/InkeepCustomTrigger-CE5-K5ex.js.map +0 -1
- package/lib/Input-CO-1DOZa.js +0 -2229
- package/lib/Input-CO-1DOZa.js.map +0 -1
- package/lib/Markdown-DM4zv3MA.js +0 -20442
- package/lib/Markdown-DM4zv3MA.js.map +0 -1
- package/lib/MdxPage-tWI_P8wP.js +0 -172
- package/lib/MdxPage-tWI_P8wP.js.map +0 -1
- package/lib/OperationList-Cd3lue0b.js +0 -600
- package/lib/OperationList-Cd3lue0b.js.map +0 -1
- package/lib/Route-DI0Y0pIV.js +0 -13
- package/lib/Route-DI0Y0pIV.js.map +0 -1
- package/lib/SlotletProvider-CBqY8mp6.js +0 -241
- package/lib/SlotletProvider-CBqY8mp6.js.map +0 -1
- package/lib/Spinner-DFQhPMBl.js +0 -505
- package/lib/Spinner-DFQhPMBl.js.map +0 -1
- package/lib/ZudokuContext-DEoP3GGJ.js +0 -1173
- package/lib/ZudokuContext-DEoP3GGJ.js.map +0 -1
- package/lib/assets/index-B_Jk_Yzp.js +0 -4820
- package/lib/assets/index-B_Jk_Yzp.js.map +0 -1
- package/lib/assets/worker-Bf8vjASY.js +0 -18197
- package/lib/assets/worker-Bf8vjASY.js.map +0 -1
- package/lib/index-Bs9roz8y.js +0 -5973
- package/lib/index-Bs9roz8y.js.map +0 -1
- package/lib/index-CBr6BM_4.js +0 -2867
- package/lib/index-CBr6BM_4.js.map +0 -1
- package/lib/index-CRo94sKK.js +0 -1783
- package/lib/index-CRo94sKK.js.map +0 -1
- package/lib/index-CkwDvuPt.js.map +0 -1
- package/lib/index-UUT9q9f9.js +0 -124
- package/lib/index-UUT9q9f9.js.map +0 -1
- package/lib/joinPath-B7kNnUX4.js +0 -8
- package/lib/joinPath-B7kNnUX4.js.map +0 -1
- package/lib/jsx-runtime-B6kdoens.js +0 -635
- package/lib/jsx-runtime-B6kdoens.js.map +0 -1
- package/lib/prism-csharp.min-Yizuc34Y.js +0 -35
- package/lib/prism-java.min-d5iT_mOd.js +0 -7
- package/lib/prism-markup-templating-DZrrEs0A.js +0 -62
- package/lib/prism-markup-templating-DZrrEs0A.js.map +0 -1
- package/lib/prism-php.min-o7FpoMP_.js +0 -11
- package/lib/prism-php.min-o7FpoMP_.js.map +0 -1
- package/lib/prism-ruby.min-C7LwcKyz.js +0 -10
- package/lib/prism-typescript.min-oSVeWCAd.js +0 -6
- package/lib/router-BsfSoK2j.js +0 -3024
- package/lib/router-BsfSoK2j.js.map +0 -1
- package/lib/state-CsuHT8ZO.js +0 -183
- package/lib/state-CsuHT8ZO.js.map +0 -1
- package/lib/urql-core-KJnLL26g.js +0 -1455
- package/lib/urql-core-KJnLL26g.js.map +0 -1
- package/lib/useExposedProps-B9K-9GTc.js +0 -9
- package/lib/useExposedProps-B9K-9GTc.js.map +0 -1
- package/lib/utils-G5XSiZc9.js +0 -749
- package/lib/utils-G5XSiZc9.js.map +0 -1
- package/lib/zudoku.openapi-worker.js +0 -16341
- package/lib/zudoku.openapi-worker.js.map +0 -1
- package/src/lib/components/DevPortal.tsx +0 -111
- package/src/lib/components/SyntaxHighlight.tsx +0 -122
- package/src/lib/components/context/ThemeContext.tsx +0 -8
- package/src/lib/components/context/ThemeProvider.tsx +0 -27
- package/src/lib/plugins/markdown/generateRoutes.tsx +0 -38
- package/src/lib/plugins/openapi/Route.tsx +0 -20
- package/src/lib/plugins/openapi/client/createMemoryClient.ts +0 -51
- package/src/lib/plugins/openapi/client/createWorkerClient.ts +0 -75
- package/src/lib/plugins/openapi/client/interfaces.ts +0 -5
- package/src/lib/plugins/openapi/client/worker.ts +0 -30
- package/src/lib/plugins/openapi/playground/ResponseTab.tsx +0 -76
- package/src/lib/plugins/openapi-worker.ts +0 -1
- package/src/lib/plugins/search-inkeep/InkeepCustomTrigger.tsx +0 -3
- package/src/lib/themeToggle.ts +0 -7
- package/src/lib/util/createWaitForNotify.ts +0 -18
- /package/dist/lib/{plugins/markdown → components/navigation}/Toc.d.ts +0 -0
- /package/dist/lib/{plugins/openapi/client/worker.d.ts → hooks/useEvent.test.d.ts} +0 -0
- /package/dist/lib/plugins/openapi/schema/{SchemaComponents.d.ts → SchemaPropertyItem.d.ts} +0 -0
- /package/dist/lib/{components → ui}/Dialog.d.ts +0 -0
- /package/dist/lib/{components → ui}/Select.d.ts +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const dt = Symbol.for("yaml.alias"), lt = Symbol.for("yaml.document"), Y = Symbol.for("yaml.map"), qt = Symbol.for("yaml.pair"),
|
|
1
|
+
const dt = Symbol.for("yaml.alias"), lt = Symbol.for("yaml.document"), Y = Symbol.for("yaml.map"), qt = Symbol.for("yaml.pair"), R = Symbol.for("yaml.scalar"), he = Symbol.for("yaml.seq"), j = Symbol.for("yaml.node.type"), x = (s) => !!s && typeof s == "object" && s[j] === dt, ee = (s) => !!s && typeof s == "object" && s[j] === lt, de = (s) => !!s && typeof s == "object" && s[j] === Y, T = (s) => !!s && typeof s == "object" && s[j] === qt, E = (s) => !!s && typeof s == "object" && s[j] === R, pe = (s) => !!s && typeof s == "object" && s[j] === he;
|
|
2
2
|
function L(s) {
|
|
3
3
|
if (s && typeof s == "object")
|
|
4
4
|
switch (s[j]) {
|
|
@@ -13,23 +13,23 @@ function $(s) {
|
|
|
13
13
|
switch (s[j]) {
|
|
14
14
|
case dt:
|
|
15
15
|
case Y:
|
|
16
|
-
case
|
|
16
|
+
case R:
|
|
17
17
|
case he:
|
|
18
18
|
return !0;
|
|
19
19
|
}
|
|
20
20
|
return !1;
|
|
21
21
|
}
|
|
22
|
-
const
|
|
22
|
+
const vs = (s) => (E(s) || L(s)) && !!s.anchor, M = Symbol("break visit"), Ft = Symbol("skip children"), F = Symbol("remove node");
|
|
23
23
|
function G(s, e) {
|
|
24
|
-
const t =
|
|
25
|
-
ee(s) ? ie(null, s.contents, t, Object.freeze([s])) ===
|
|
24
|
+
const t = Rt(e);
|
|
25
|
+
ee(s) ? ie(null, s.contents, t, Object.freeze([s])) === F && (s.contents = null) : ie(null, s, t, Object.freeze([]));
|
|
26
26
|
}
|
|
27
27
|
G.BREAK = M;
|
|
28
|
-
G.SKIP =
|
|
29
|
-
G.REMOVE =
|
|
28
|
+
G.SKIP = Ft;
|
|
29
|
+
G.REMOVE = F;
|
|
30
30
|
function ie(s, e, t, n) {
|
|
31
|
-
const i =
|
|
32
|
-
if ($(i) ||
|
|
31
|
+
const i = Ut(s, e, t, n);
|
|
32
|
+
if ($(i) || T(i))
|
|
33
33
|
return Vt(s, n, i), ie(s, i, t, n);
|
|
34
34
|
if (typeof i != "symbol") {
|
|
35
35
|
if (L(e)) {
|
|
@@ -41,33 +41,33 @@ function ie(s, e, t, n) {
|
|
|
41
41
|
else {
|
|
42
42
|
if (o === M)
|
|
43
43
|
return M;
|
|
44
|
-
o ===
|
|
44
|
+
o === F && (e.items.splice(r, 1), r -= 1);
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
|
-
} else if (
|
|
47
|
+
} else if (T(e)) {
|
|
48
48
|
n = Object.freeze(n.concat(e));
|
|
49
49
|
const r = ie("key", e.key, t, n);
|
|
50
50
|
if (r === M)
|
|
51
51
|
return M;
|
|
52
|
-
r ===
|
|
52
|
+
r === F && (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 === F && (e.value = null);
|
|
57
57
|
}
|
|
58
58
|
}
|
|
59
59
|
return i;
|
|
60
60
|
}
|
|
61
|
-
async function
|
|
62
|
-
const t =
|
|
63
|
-
ee(s) ? await re(null, s.contents, t, Object.freeze([s])) ===
|
|
61
|
+
async function Fe(s, e) {
|
|
62
|
+
const t = Rt(e);
|
|
63
|
+
ee(s) ? await re(null, s.contents, t, Object.freeze([s])) === F && (s.contents = null) : await re(null, s, t, Object.freeze([]));
|
|
64
64
|
}
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
65
|
+
Fe.BREAK = M;
|
|
66
|
+
Fe.SKIP = Ft;
|
|
67
|
+
Fe.REMOVE = F;
|
|
68
68
|
async function re(s, e, t, n) {
|
|
69
|
-
const i = await
|
|
70
|
-
if ($(i) ||
|
|
69
|
+
const i = await Ut(s, e, t, n);
|
|
70
|
+
if ($(i) || T(i))
|
|
71
71
|
return Vt(s, n, i), re(s, i, t, n);
|
|
72
72
|
if (typeof i != "symbol") {
|
|
73
73
|
if (L(e)) {
|
|
@@ -79,24 +79,24 @@ async function re(s, e, t, n) {
|
|
|
79
79
|
else {
|
|
80
80
|
if (o === M)
|
|
81
81
|
return M;
|
|
82
|
-
o ===
|
|
82
|
+
o === F && (e.items.splice(r, 1), r -= 1);
|
|
83
83
|
}
|
|
84
84
|
}
|
|
85
|
-
} else if (
|
|
85
|
+
} else if (T(e)) {
|
|
86
86
|
n = Object.freeze(n.concat(e));
|
|
87
87
|
const r = await re("key", e.key, t, n);
|
|
88
88
|
if (r === M)
|
|
89
89
|
return M;
|
|
90
|
-
r ===
|
|
90
|
+
r === F && (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 === F && (e.value = null);
|
|
95
95
|
}
|
|
96
96
|
}
|
|
97
97
|
return i;
|
|
98
98
|
}
|
|
99
|
-
function
|
|
99
|
+
function Rt(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 Ut(s) {
|
|
|
111
111
|
Seq: s.Collection
|
|
112
112
|
}, s) : s;
|
|
113
113
|
}
|
|
114
|
-
function
|
|
114
|
+
function Ut(s, e, t, n) {
|
|
115
115
|
var i, r, o, l, a;
|
|
116
116
|
if (typeof t == "function")
|
|
117
117
|
return t(s, e, n);
|
|
@@ -119,7 +119,7 @@ function Ft(s, e, t, n) {
|
|
|
119
119
|
return (i = t.Map) == null ? void 0 : i.call(t, s, e, n);
|
|
120
120
|
if (pe(e))
|
|
121
121
|
return (r = t.Seq) == null ? void 0 : r.call(t, s, e, n);
|
|
122
|
-
if (
|
|
122
|
+
if (T(e))
|
|
123
123
|
return (o = t.Pair) == null ? void 0 : o.call(t, s, e, n);
|
|
124
124
|
if (E(e))
|
|
125
125
|
return (l = t.Scalar) == null ? void 0 : l.call(t, s, e, n);
|
|
@@ -130,7 +130,7 @@ function Vt(s, e, t) {
|
|
|
130
130
|
const n = e[e.length - 1];
|
|
131
131
|
if (L(n))
|
|
132
132
|
n.items[s] = t;
|
|
133
|
-
else if (
|
|
133
|
+
else if (T(n))
|
|
134
134
|
s === "key" ? n.key = t : n.value = t;
|
|
135
135
|
else if (ee(n))
|
|
136
136
|
n.contents = t;
|
|
@@ -139,20 +139,20 @@ function Vt(s, e, t) {
|
|
|
139
139
|
throw new Error(`Cannot replace node with ${i} parent`);
|
|
140
140
|
}
|
|
141
141
|
}
|
|
142
|
-
const
|
|
142
|
+
const Bs = {
|
|
143
143
|
"!": "%21",
|
|
144
144
|
",": "%2C",
|
|
145
145
|
"[": "%5B",
|
|
146
146
|
"]": "%5D",
|
|
147
147
|
"{": "%7B",
|
|
148
148
|
"}": "%7D"
|
|
149
|
-
}, Ms = (s) => s.replace(/[!,[\]{}]/g, (e) =>
|
|
150
|
-
class
|
|
149
|
+
}, Ms = (s) => s.replace(/[!,[\]{}]/g, (e) => Bs[e]);
|
|
150
|
+
class B {
|
|
151
151
|
constructor(e, t) {
|
|
152
|
-
this.docStart = null, this.docEnd = !1, this.yaml = Object.assign({},
|
|
152
|
+
this.docStart = null, this.docEnd = !1, this.yaml = Object.assign({}, B.defaultYaml, e), this.tags = Object.assign({}, B.defaultTags, t);
|
|
153
153
|
}
|
|
154
154
|
clone() {
|
|
155
|
-
const e = new
|
|
155
|
+
const e = new B(this.yaml, this.tags);
|
|
156
156
|
return e.docStart = this.docStart, e;
|
|
157
157
|
}
|
|
158
158
|
/**
|
|
@@ -160,16 +160,16 @@ class v {
|
|
|
160
160
|
* update the stream state according to the current version's spec.
|
|
161
161
|
*/
|
|
162
162
|
atDocument() {
|
|
163
|
-
const e = new
|
|
163
|
+
const e = new B(this.yaml, this.tags);
|
|
164
164
|
switch (this.yaml.version) {
|
|
165
165
|
case "1.1":
|
|
166
166
|
this.atNextDocument = !0;
|
|
167
167
|
break;
|
|
168
168
|
case "1.2":
|
|
169
169
|
this.atNextDocument = !1, this.yaml = {
|
|
170
|
-
explicit:
|
|
170
|
+
explicit: B.defaultYaml.explicit,
|
|
171
171
|
version: "1.2"
|
|
172
|
-
}, this.tags = Object.assign({},
|
|
172
|
+
}, this.tags = Object.assign({}, B.defaultTags);
|
|
173
173
|
break;
|
|
174
174
|
}
|
|
175
175
|
return e;
|
|
@@ -179,7 +179,7 @@ class v {
|
|
|
179
179
|
* @returns `true` on success
|
|
180
180
|
*/
|
|
181
181
|
add(e, t) {
|
|
182
|
-
this.atNextDocument && (this.yaml = { explicit:
|
|
182
|
+
this.atNextDocument && (this.yaml = { explicit: B.defaultYaml.explicit, version: "1.1" }, this.tags = Object.assign({}, B.defaultTags), this.atNextDocument = !1);
|
|
183
183
|
const n = e.trim().split(/[ \t]+/), i = n.shift();
|
|
184
184
|
switch (i) {
|
|
185
185
|
case "%TAG": {
|
|
@@ -255,8 +255,8 @@ class v {
|
|
|
255
255
|
`);
|
|
256
256
|
}
|
|
257
257
|
}
|
|
258
|
-
|
|
259
|
-
|
|
258
|
+
B.defaultYaml = { explicit: !1, version: "1.2" };
|
|
259
|
+
B.defaultTags = { "!!": "tag:yaml.org,2002:" };
|
|
260
260
|
function Jt(s) {
|
|
261
261
|
if (/[\x00-\x19\s,[\]{}]/.test(s)) {
|
|
262
262
|
const t = `Anchor must not contain whitespace or control characters: ${JSON.stringify(s)}`;
|
|
@@ -335,7 +335,7 @@ function P(s, e, t) {
|
|
|
335
335
|
if (Array.isArray(s))
|
|
336
336
|
return s.map((n, i) => P(n, String(i), t));
|
|
337
337
|
if (s && typeof s.toJSON == "function") {
|
|
338
|
-
if (!t || !
|
|
338
|
+
if (!t || !vs(s))
|
|
339
339
|
return s.toJSON(e, t);
|
|
340
340
|
const n = { aliasCount: 0, count: 1, res: void 0 };
|
|
341
341
|
t.anchors.set(s, n), t.onCreate = (r) => {
|
|
@@ -373,7 +373,7 @@ class pt {
|
|
|
373
373
|
return typeof r == "function" ? oe(r, { "": l }, "", l) : l;
|
|
374
374
|
}
|
|
375
375
|
}
|
|
376
|
-
class
|
|
376
|
+
class Re extends pt {
|
|
377
377
|
constructor(e) {
|
|
378
378
|
super(dt), this.source = e, Object.defineProperty(this, "tag", {
|
|
379
379
|
set() {
|
|
@@ -408,7 +408,7 @@ class Ue extends pt {
|
|
|
408
408
|
const a = "This should not happen: Alias anchor was not resolved?";
|
|
409
409
|
throw new ReferenceError(a);
|
|
410
410
|
}
|
|
411
|
-
if (r >= 0 && (l.count += 1, l.aliasCount === 0 && (l.aliasCount =
|
|
411
|
+
if (r >= 0 && (l.count += 1, l.aliasCount === 0 && (l.aliasCount = ve(i, o, n)), l.count * l.aliasCount > r)) {
|
|
412
412
|
const a = "Excessive alias count indicates a resource exhaustion attack";
|
|
413
413
|
throw new ReferenceError(a);
|
|
414
414
|
}
|
|
@@ -427,27 +427,27 @@ class Ue extends pt {
|
|
|
427
427
|
return i;
|
|
428
428
|
}
|
|
429
429
|
}
|
|
430
|
-
function
|
|
430
|
+
function ve(s, e, t) {
|
|
431
431
|
if (x(e)) {
|
|
432
432
|
const n = e.resolve(s), i = t && n && t.get(n);
|
|
433
433
|
return i ? i.count * i.aliasCount : 0;
|
|
434
434
|
} else if (L(e)) {
|
|
435
435
|
let n = 0;
|
|
436
436
|
for (const i of e.items) {
|
|
437
|
-
const r =
|
|
437
|
+
const r = ve(s, i, t);
|
|
438
438
|
r > n && (n = r);
|
|
439
439
|
}
|
|
440
440
|
return n;
|
|
441
|
-
} else if (
|
|
442
|
-
const n =
|
|
441
|
+
} else if (T(e)) {
|
|
442
|
+
const n = ve(s, e.key, t), i = ve(s, e.value, t);
|
|
443
443
|
return Math.max(n, i);
|
|
444
444
|
}
|
|
445
445
|
return 1;
|
|
446
446
|
}
|
|
447
447
|
const Qt = (s) => !s || typeof s != "function" && typeof s != "object";
|
|
448
|
-
class
|
|
448
|
+
class A extends pt {
|
|
449
449
|
constructor(e) {
|
|
450
|
-
super(
|
|
450
|
+
super(R), this.value = e;
|
|
451
451
|
}
|
|
452
452
|
toJSON(e, t) {
|
|
453
453
|
return t != null && t.keep ? this.value : P(this.value, e, t);
|
|
@@ -456,11 +456,11 @@ class O extends pt {
|
|
|
456
456
|
return String(this.value);
|
|
457
457
|
}
|
|
458
458
|
}
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
459
|
+
A.BLOCK_FOLDED = "BLOCK_FOLDED";
|
|
460
|
+
A.BLOCK_LITERAL = "BLOCK_LITERAL";
|
|
461
|
+
A.PLAIN = "PLAIN";
|
|
462
|
+
A.QUOTE_DOUBLE = "QUOTE_DOUBLE";
|
|
463
|
+
A.QUOTE_SINGLE = "QUOTE_SINGLE";
|
|
464
464
|
const Ps = "tag:yaml.org,2002:";
|
|
465
465
|
function js(s, e, t) {
|
|
466
466
|
if (e) {
|
|
@@ -478,7 +478,7 @@ function ke(s, e, t) {
|
|
|
478
478
|
var f, d, h;
|
|
479
479
|
if (ee(s) && (s = s.contents), $(s))
|
|
480
480
|
return s;
|
|
481
|
-
if (
|
|
481
|
+
if (T(s)) {
|
|
482
482
|
const y = (d = (f = t.schema[Y]).createNode) == null ? void 0 : d.call(f, t.schema, null, t);
|
|
483
483
|
return y.items.push(s), y;
|
|
484
484
|
}
|
|
@@ -487,20 +487,20 @@ function ke(s, e, t) {
|
|
|
487
487
|
let a;
|
|
488
488
|
if (n && s && typeof s == "object") {
|
|
489
489
|
if (a = l.get(s), a)
|
|
490
|
-
return a.anchor || (a.anchor = i(s)), new
|
|
490
|
+
return a.anchor || (a.anchor = i(s)), new Re(a.anchor);
|
|
491
491
|
a = { anchor: null, node: null }, l.set(s, a);
|
|
492
492
|
}
|
|
493
493
|
e != null && e.startsWith("!!") && (e = Ps + e.slice(2));
|
|
494
494
|
let c = js(s, e, o.tags);
|
|
495
495
|
if (!c) {
|
|
496
496
|
if (s && typeof s.toJSON == "function" && (s = s.toJSON()), !s || typeof s != "object") {
|
|
497
|
-
const y = new
|
|
497
|
+
const y = new A(s);
|
|
498
498
|
return a && (a.node = y), y;
|
|
499
499
|
}
|
|
500
500
|
c = s instanceof Map ? o[Y] : Symbol.iterator in Object(s) ? o[he] : o[Y];
|
|
501
501
|
}
|
|
502
502
|
r && (r(c), delete t.onTagObj);
|
|
503
|
-
const p = c != null && c.createNode ? c.createNode(t.schema, s, t) : typeof ((h = c == null ? void 0 : c.nodeClass) == null ? void 0 : h.from) == "function" ? c.nodeClass.from(t.schema, s, t) : new
|
|
503
|
+
const p = c != null && c.createNode ? c.createNode(t.schema, s, t) : typeof ((h = c == null ? void 0 : c.nodeClass) == null ? void 0 : h.from) == "function" ? c.nodeClass.from(t.schema, s, t) : new A(s);
|
|
504
504
|
return e ? p.tag = e : c.default || (p.tag = c.tag), a && (a.node = p), p;
|
|
505
505
|
}
|
|
506
506
|
function Pe(s, e, t) {
|
|
@@ -540,7 +540,7 @@ class Wt extends pt {
|
|
|
540
540
|
*/
|
|
541
541
|
clone(e) {
|
|
542
542
|
const t = Object.create(Object.getPrototypeOf(this), Object.getOwnPropertyDescriptors(this));
|
|
543
|
-
return e && (t.schema = e), t.items = t.items.map((n) => $(n) ||
|
|
543
|
+
return e && (t.schema = e), t.items = t.items.map((n) => $(n) || T(n) ? n.clone(e) : n), this.range && (t.range = this.range.slice()), t;
|
|
544
544
|
}
|
|
545
545
|
/**
|
|
546
546
|
* Adds a value to the collection. For `!!map` and `!!omap` the value must
|
|
@@ -584,7 +584,7 @@ class Wt extends pt {
|
|
|
584
584
|
}
|
|
585
585
|
hasAllNullValues(e) {
|
|
586
586
|
return this.items.every((t) => {
|
|
587
|
-
if (!
|
|
587
|
+
if (!T(t))
|
|
588
588
|
return !1;
|
|
589
589
|
const n = t.value;
|
|
590
590
|
return n == null || e && E(n) && n.value == null && !n.commentBefore && !n.comment && !n.tag;
|
|
@@ -620,14 +620,14 @@ class Wt extends pt {
|
|
|
620
620
|
}
|
|
621
621
|
}
|
|
622
622
|
const Ds = (s) => s.replace(/^(?!$)(?: $)?/gm, "#");
|
|
623
|
-
function
|
|
623
|
+
function U(s, e) {
|
|
624
624
|
return /^\n+$/.test(s) ? s.substring(1) : e ? s.replace(/^(?! *$)/gm, e) : s;
|
|
625
625
|
}
|
|
626
626
|
const H = (s, e, t) => s.endsWith(`
|
|
627
|
-
`) ?
|
|
627
|
+
`) ? U(t, e) : t.includes(`
|
|
628
628
|
`) ? `
|
|
629
|
-
` +
|
|
630
|
-
function
|
|
629
|
+
` + U(t, e) : (s.endsWith(" ") ? "" : " ") + t, Ht = "flow", at = "block", Be = "quoted";
|
|
630
|
+
function Ue(s, e, t = "flow", { indentAtStart: n, lineWidth: i = 80, minContentWidth: r = 20, onFold: o, onOverflow: l } = {}) {
|
|
631
631
|
if (!i || i < 0)
|
|
632
632
|
return s;
|
|
633
633
|
i < r && (r = 0);
|
|
@@ -640,7 +640,7 @@ function Fe(s, e, t = "flow", { indentAtStart: n, lineWidth: i = 80, minContentW
|
|
|
640
640
|
let d, h, y = !1, u = -1, m = -1, b = -1;
|
|
641
641
|
t === at && (u = $t(s, u, e.length), u !== -1 && (f = u + a));
|
|
642
642
|
for (let N; N = s[u += 1]; ) {
|
|
643
|
-
if (t ===
|
|
643
|
+
if (t === Be && N === "\\") {
|
|
644
644
|
switch (m = u, s[u + 1]) {
|
|
645
645
|
case "x":
|
|
646
646
|
u += 3;
|
|
@@ -662,20 +662,20 @@ function Fe(s, e, t = "flow", { indentAtStart: n, lineWidth: i = 80, minContentW
|
|
|
662
662
|
else {
|
|
663
663
|
if (N === " " && h && h !== " " && h !== `
|
|
664
664
|
` && h !== " ") {
|
|
665
|
-
const
|
|
666
|
-
|
|
667
|
-
` &&
|
|
665
|
+
const w = s[u + 1];
|
|
666
|
+
w && w !== " " && w !== `
|
|
667
|
+
` && w !== " " && (d = u);
|
|
668
668
|
}
|
|
669
669
|
if (u >= f)
|
|
670
670
|
if (d)
|
|
671
671
|
c.push(d), f = d + a, d = void 0;
|
|
672
|
-
else if (t ===
|
|
672
|
+
else if (t === Be) {
|
|
673
673
|
for (; h === " " || h === " "; )
|
|
674
674
|
h = N, N = s[u += 1], y = !0;
|
|
675
|
-
const
|
|
676
|
-
if (p[
|
|
675
|
+
const w = u > b + 1 ? u - 2 : m - 1;
|
|
676
|
+
if (p[w])
|
|
677
677
|
return s;
|
|
678
|
-
c.push(
|
|
678
|
+
c.push(w), p[w] = !0, f = w + a, d = void 0;
|
|
679
679
|
} else
|
|
680
680
|
y = !0;
|
|
681
681
|
}
|
|
@@ -684,14 +684,14 @@ function Fe(s, e, t = "flow", { indentAtStart: n, lineWidth: i = 80, minContentW
|
|
|
684
684
|
if (y && l && l(), c.length === 0)
|
|
685
685
|
return s;
|
|
686
686
|
o && o();
|
|
687
|
-
let
|
|
687
|
+
let S = s.slice(0, c[0]);
|
|
688
688
|
for (let N = 0; N < c.length; ++N) {
|
|
689
|
-
const
|
|
690
|
-
|
|
691
|
-
${e}${s.slice(0,
|
|
692
|
-
${e}${s.slice(
|
|
689
|
+
const w = c[N], k = c[N + 1] || s.length;
|
|
690
|
+
w === 0 ? S = `
|
|
691
|
+
${e}${s.slice(0, k)}` : (t === Be && p[w] && (S += `${s[w]}\\`), S += `
|
|
692
|
+
${e}${s.slice(w + 1, k)}`);
|
|
693
693
|
}
|
|
694
|
-
return
|
|
694
|
+
return S;
|
|
695
695
|
}
|
|
696
696
|
function $t(s, e, t) {
|
|
697
697
|
let n = e, i = e + 1, r = s[i];
|
|
@@ -787,7 +787,7 @@ function Se(s, e) {
|
|
|
787
787
|
default:
|
|
788
788
|
a += 1;
|
|
789
789
|
}
|
|
790
|
-
return o = l ? o + t.slice(l) : t, n ? o :
|
|
790
|
+
return o = l ? o + t.slice(l) : t, n ? o : Ue(o, r, Be, Ve(e, !1));
|
|
791
791
|
}
|
|
792
792
|
function ct(s, e) {
|
|
793
793
|
if (e.options.singleQuote === !1 || e.implicitKey && s.includes(`
|
|
@@ -795,7 +795,7 @@ function ct(s, e) {
|
|
|
795
795
|
return Se(s, e);
|
|
796
796
|
const t = e.indent || (Je(s) ? " " : ""), n = "'" + s.replace(/'/g, "''").replace(/\n+/g, `$&
|
|
797
797
|
${t}`) + "'";
|
|
798
|
-
return e.implicitKey ? n :
|
|
798
|
+
return e.implicitKey ? n : Ue(n, t, Ht, Ve(e, !1));
|
|
799
799
|
}
|
|
800
800
|
function le(s, e) {
|
|
801
801
|
const { singleQuote: t } = e.options;
|
|
@@ -821,7 +821,7 @@ function Me({ comment: s, type: e, value: t }, n, i, r) {
|
|
|
821
821
|
const { blockQuote: o, commentString: l, lineWidth: a } = n.options;
|
|
822
822
|
if (!o || /\n[\t ]+$/.test(t) || /^\s*$/.test(t))
|
|
823
823
|
return le(t, n);
|
|
824
|
-
const c = n.indent || (n.forceBlockIndent || Je(t) ? " " : ""), p = o === "literal" ? !0 : o === "folded" || e ===
|
|
824
|
+
const c = n.indent || (n.forceBlockIndent || Je(t) ? " " : ""), p = o === "literal" ? !0 : o === "folded" || e === A.BLOCK_FOLDED ? !1 : e === A.BLOCK_LITERAL ? !0 : !qs(t, a, c.length);
|
|
825
825
|
if (!t)
|
|
826
826
|
return p ? `|
|
|
827
827
|
` : `>
|
|
@@ -849,19 +849,26 @@ function Me({ comment: s, type: e, value: t }, n, i, r) {
|
|
|
849
849
|
else
|
|
850
850
|
break;
|
|
851
851
|
}
|
|
852
|
-
let
|
|
853
|
-
|
|
854
|
-
let
|
|
855
|
-
if (s && (
|
|
856
|
-
|
|
857
|
-
${c}${w}${t}${h}`;
|
|
858
|
-
t = t.replace(/\n+/g, `
|
|
852
|
+
let S = t.substring(0, b < m ? b + 1 : m);
|
|
853
|
+
S && (t = t.substring(S.length), S = S.replace(/\n+/g, `$&${c}`));
|
|
854
|
+
let w = (u ? c ? "2" : "1" : "") + f;
|
|
855
|
+
if (s && (w += " " + l(s.replace(/ ?[\r\n]+/g, " ")), i && i()), !p) {
|
|
856
|
+
const k = t.replace(/\n+/g, `
|
|
859
857
|
$&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g, "$1$2").replace(/\n+/g, `$&${c}`);
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
858
|
+
let O = !1;
|
|
859
|
+
const I = Ve(n, !0);
|
|
860
|
+
o !== "folded" && e !== A.BLOCK_FOLDED && (I.onOverflow = () => {
|
|
861
|
+
O = !0;
|
|
862
|
+
});
|
|
863
|
+
const g = Ue(`${S}${k}${h}`, c, at, I);
|
|
864
|
+
if (!O)
|
|
865
|
+
return `>${w}
|
|
866
|
+
${c}${g}`;
|
|
867
|
+
}
|
|
868
|
+
return t = t.replace(/\n+/g, `$&${c}`), `|${w}
|
|
869
|
+
${c}${S}${t}${h}`;
|
|
863
870
|
}
|
|
864
|
-
function
|
|
871
|
+
function Fs(s, e, t, n) {
|
|
865
872
|
const { type: i, value: r } = s, { actualString: o, implicitKey: l, indent: a, indentStep: c, inFlow: p } = e;
|
|
866
873
|
if (l && r.includes(`
|
|
867
874
|
`) || p && /[[\]{},]/.test(r))
|
|
@@ -869,7 +876,7 @@ function Rs(s, e, t, n) {
|
|
|
869
876
|
if (!r || /^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(r))
|
|
870
877
|
return l || p || !r.includes(`
|
|
871
878
|
`) ? le(r, e) : Me(s, e, t, n);
|
|
872
|
-
if (!l && !p && i !==
|
|
879
|
+
if (!l && !p && i !== A.PLAIN && r.includes(`
|
|
873
880
|
`))
|
|
874
881
|
return Me(s, e, t, n);
|
|
875
882
|
if (Je(r)) {
|
|
@@ -888,23 +895,23 @@ ${a}`);
|
|
|
888
895
|
if (y.some(d) || h != null && h.some(d))
|
|
889
896
|
return le(r, e);
|
|
890
897
|
}
|
|
891
|
-
return l ? f :
|
|
898
|
+
return l ? f : Ue(f, a, Ht, Ve(e, !1));
|
|
892
899
|
}
|
|
893
900
|
function Ae(s, e, t, n) {
|
|
894
901
|
const { implicitKey: i, inFlow: r } = e, o = typeof s.value == "string" ? s : Object.assign({}, s, { value: String(s.value) });
|
|
895
902
|
let { type: l } = s;
|
|
896
|
-
l !==
|
|
903
|
+
l !== A.QUOTE_DOUBLE && /[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(o.value) && (l = A.QUOTE_DOUBLE);
|
|
897
904
|
const a = (p) => {
|
|
898
905
|
switch (p) {
|
|
899
|
-
case
|
|
900
|
-
case
|
|
906
|
+
case A.BLOCK_FOLDED:
|
|
907
|
+
case A.BLOCK_LITERAL:
|
|
901
908
|
return i || r ? le(o.value, e) : Me(o, e, t, n);
|
|
902
|
-
case
|
|
909
|
+
case A.QUOTE_DOUBLE:
|
|
903
910
|
return Se(o.value, e);
|
|
904
|
-
case
|
|
911
|
+
case A.QUOTE_SINGLE:
|
|
905
912
|
return ct(o.value, e);
|
|
906
|
-
case
|
|
907
|
-
return
|
|
913
|
+
case A.PLAIN:
|
|
914
|
+
return Fs(o, e, t, n);
|
|
908
915
|
default:
|
|
909
916
|
return null;
|
|
910
917
|
}
|
|
@@ -958,7 +965,7 @@ function Xt(s, e) {
|
|
|
958
965
|
options: t
|
|
959
966
|
};
|
|
960
967
|
}
|
|
961
|
-
function
|
|
968
|
+
function Rs(s, e) {
|
|
962
969
|
var i;
|
|
963
970
|
if (e.tag) {
|
|
964
971
|
const r = s.filter((o) => o.tag === e.tag);
|
|
@@ -985,7 +992,7 @@ function Us(s, e) {
|
|
|
985
992
|
}
|
|
986
993
|
return t;
|
|
987
994
|
}
|
|
988
|
-
function
|
|
995
|
+
function Us(s, e, { anchors: t, doc: n }) {
|
|
989
996
|
if (!n.directives)
|
|
990
997
|
return "";
|
|
991
998
|
const i = [], r = (E(s) || L(s)) && s.anchor;
|
|
@@ -995,7 +1002,7 @@ function Fs(s, e, { anchors: t, doc: n }) {
|
|
|
995
1002
|
}
|
|
996
1003
|
function fe(s, e, t, n) {
|
|
997
1004
|
var a;
|
|
998
|
-
if (
|
|
1005
|
+
if (T(s))
|
|
999
1006
|
return s.toString(e, t, n);
|
|
1000
1007
|
if (x(s)) {
|
|
1001
1008
|
if (e.doc.directives)
|
|
@@ -1006,8 +1013,8 @@ function fe(s, e, t, n) {
|
|
|
1006
1013
|
}
|
|
1007
1014
|
let i;
|
|
1008
1015
|
const r = $(s) ? s : e.doc.createNode(s, { onTagObj: (c) => i = c });
|
|
1009
|
-
i || (i =
|
|
1010
|
-
const o =
|
|
1016
|
+
i || (i = Rs(e.doc.schema.tags, r));
|
|
1017
|
+
const o = Us(r, i, e);
|
|
1011
1018
|
o.length > 0 && (e.indentAtStart = (e.indentAtStart ?? 0) + o.length + 1);
|
|
1012
1019
|
const l = typeof i.stringify == "function" ? i.stringify(r, e, t, n) : E(r) ? Ae(r, e, t, n) : r.toString(e, t, n);
|
|
1013
1020
|
return o ? E(r) || l[0] === "{" || l[0] === "[" ? `${o} ${l}` : `${o}
|
|
@@ -1020,11 +1027,11 @@ function Vs({ key: s, value: e }, t, n, i) {
|
|
|
1020
1027
|
if (d)
|
|
1021
1028
|
throw new Error("With simple keys, key nodes cannot have comments");
|
|
1022
1029
|
if (L(s) || !$(s) && typeof s == "object") {
|
|
1023
|
-
const
|
|
1024
|
-
throw new Error(
|
|
1030
|
+
const I = "With simple keys, collection cannot be used as a key value";
|
|
1031
|
+
throw new Error(I);
|
|
1025
1032
|
}
|
|
1026
1033
|
}
|
|
1027
|
-
let h = !f && (!s || d && e == null && !t.inFlow || L(s) || (E(s) ? s.type ===
|
|
1034
|
+
let h = !f && (!s || d && e == null && !t.inFlow || L(s) || (E(s) ? s.type === A.BLOCK_FOLDED || s.type === A.BLOCK_LITERAL : typeof s == "object"));
|
|
1028
1035
|
t = Object.assign({}, t, {
|
|
1029
1036
|
allNullValues: !1,
|
|
1030
1037
|
implicitKey: !h && (f || !r),
|
|
@@ -1043,52 +1050,52 @@ function Vs({ key: s, value: e }, t, n, i) {
|
|
|
1043
1050
|
return m = `? ${m}`, d && !y ? m += H(m, t.indent, c(d)) : u && i && i(), m;
|
|
1044
1051
|
y && (d = null), h ? (d && (m += H(m, t.indent, c(d))), m = `? ${m}
|
|
1045
1052
|
${l}:`) : (m = `${m}:`, d && (m += H(m, t.indent, c(d))));
|
|
1046
|
-
let b,
|
|
1047
|
-
$(e) ? (b = !!e.spaceBefore,
|
|
1048
|
-
let
|
|
1049
|
-
const
|
|
1050
|
-
let
|
|
1051
|
-
if (d || b ||
|
|
1052
|
-
if (
|
|
1053
|
-
` : "",
|
|
1054
|
-
const
|
|
1055
|
-
|
|
1056
|
-
${
|
|
1053
|
+
let b, S, N;
|
|
1054
|
+
$(e) ? (b = !!e.spaceBefore, S = e.commentBefore, N = e.comment) : (b = !1, S = null, N = null, e && typeof e == "object" && (e = o.createNode(e))), t.implicitKey = !1, !h && !d && E(e) && (t.indentAtStart = m.length + 1), u = !1, !p && a.length >= 2 && !t.inFlow && !h && pe(e) && !e.flow && !e.tag && !e.anchor && (t.indent = t.indent.substring(2));
|
|
1055
|
+
let w = !1;
|
|
1056
|
+
const k = fe(e, t, () => w = !0, () => u = !0);
|
|
1057
|
+
let O = " ";
|
|
1058
|
+
if (d || b || S) {
|
|
1059
|
+
if (O = b ? `
|
|
1060
|
+
` : "", S) {
|
|
1061
|
+
const I = c(S);
|
|
1062
|
+
O += `
|
|
1063
|
+
${U(I, t.indent)}`;
|
|
1057
1064
|
}
|
|
1058
|
-
|
|
1059
|
-
` && (
|
|
1065
|
+
k === "" && !t.inFlow ? O === `
|
|
1066
|
+
` && (O = `
|
|
1060
1067
|
|
|
1061
|
-
`) :
|
|
1068
|
+
`) : O += `
|
|
1062
1069
|
${t.indent}`;
|
|
1063
1070
|
} else if (!h && L(e)) {
|
|
1064
|
-
const
|
|
1071
|
+
const I = k[0], g = k.indexOf(`
|
|
1065
1072
|
`), _ = g !== -1, J = t.inFlow ?? e.flow ?? e.items.length === 0;
|
|
1066
1073
|
if (_ || !J) {
|
|
1067
1074
|
let te = !1;
|
|
1068
|
-
if (_ && (
|
|
1069
|
-
let C =
|
|
1070
|
-
|
|
1075
|
+
if (_ && (I === "&" || I === "!")) {
|
|
1076
|
+
let C = k.indexOf(" ");
|
|
1077
|
+
I === "&" && C !== -1 && C < g && k[C + 1] === "!" && (C = k.indexOf(" ", C + 1)), (C === -1 || g < C) && (te = !0);
|
|
1071
1078
|
}
|
|
1072
|
-
te || (
|
|
1079
|
+
te || (O = `
|
|
1073
1080
|
${t.indent}`);
|
|
1074
1081
|
}
|
|
1075
|
-
} else (
|
|
1076
|
-
`) && (
|
|
1077
|
-
return m +=
|
|
1082
|
+
} else (k === "" || k[0] === `
|
|
1083
|
+
`) && (O = "");
|
|
1084
|
+
return m += O + k, t.inFlow ? w && n && n() : N && !w ? m += H(m, t.indent, c(N)) : u && i && i(), m;
|
|
1078
1085
|
}
|
|
1079
1086
|
function zt(s, e) {
|
|
1080
|
-
(s === "debug" || s === "warn") &&
|
|
1087
|
+
(s === "debug" || s === "warn") && console.warn(e);
|
|
1081
1088
|
}
|
|
1082
1089
|
const Te = "<<", V = {
|
|
1083
1090
|
identify: (s) => s === Te || typeof s == "symbol" && s.description === Te,
|
|
1084
1091
|
default: "key",
|
|
1085
1092
|
tag: "tag:yaml.org,2002:merge",
|
|
1086
1093
|
test: /^<<$/,
|
|
1087
|
-
resolve: () => Object.assign(new
|
|
1094
|
+
resolve: () => Object.assign(new A(Symbol(Te)), {
|
|
1088
1095
|
addToJSMap: Zt
|
|
1089
1096
|
}),
|
|
1090
1097
|
stringify: () => Te
|
|
1091
|
-
}, Js = (s, e) => (V.identify(e) || E(e) && (!e.type || e.type ===
|
|
1098
|
+
}, Js = (s, e) => (V.identify(e) || E(e) && (!e.type || e.type === A.PLAIN) && V.identify(e.value)) && (s == null ? void 0 : s.doc.schema.tags.some((t) => t.tag === V.tag && t.default));
|
|
1092
1099
|
function Zt(s, e, t) {
|
|
1093
1100
|
if (t = s && x(t) ? t.resolve(s.doc) : t, pe(t))
|
|
1094
1101
|
for (const n of t.items)
|
|
@@ -1158,15 +1165,15 @@ function Ys(s, e, t) {
|
|
|
1158
1165
|
}
|
|
1159
1166
|
function mt(s, e, t) {
|
|
1160
1167
|
const n = ke(s, void 0, t), i = ke(e, void 0, t);
|
|
1161
|
-
return new
|
|
1168
|
+
return new v(n, i);
|
|
1162
1169
|
}
|
|
1163
|
-
class
|
|
1170
|
+
class v {
|
|
1164
1171
|
constructor(e, t = null) {
|
|
1165
1172
|
Object.defineProperty(this, j, { value: qt }), this.key = e, this.value = t;
|
|
1166
1173
|
}
|
|
1167
1174
|
clone(e) {
|
|
1168
1175
|
let { key: t, value: n } = this;
|
|
1169
|
-
return $(t) && (t = t.clone(e)), $(n) && (n = n.clone(e)), new
|
|
1176
|
+
return $(t) && (t = t.clone(e)), $(n) && (n = n.clone(e)), new v(t, n);
|
|
1170
1177
|
}
|
|
1171
1178
|
toJSON(e, t) {
|
|
1172
1179
|
const n = t != null && t.mapAsMap ? /* @__PURE__ */ new Map() : {};
|
|
@@ -1188,9 +1195,9 @@ function Gs({ comment: s, items: e }, t, { blockItemPrefix: n, flowChars: i, ite
|
|
|
1188
1195
|
let m = null;
|
|
1189
1196
|
if ($(u))
|
|
1190
1197
|
!f && u.spaceBefore && d.push(""), je(t, d, u.commentBefore, f), u.comment && (m = u.comment);
|
|
1191
|
-
else if (
|
|
1192
|
-
const
|
|
1193
|
-
|
|
1198
|
+
else if (T(u)) {
|
|
1199
|
+
const S = $(u.key) ? u.key : null;
|
|
1200
|
+
S && (!f && S.spaceBefore && d.push(""), je(t, d, S.commentBefore, f));
|
|
1194
1201
|
}
|
|
1195
1202
|
f = !1;
|
|
1196
1203
|
let b = fe(u, p, () => m = null, () => f = !0);
|
|
@@ -1209,7 +1216,7 @@ ${a}${u}` : `
|
|
|
1209
1216
|
}
|
|
1210
1217
|
}
|
|
1211
1218
|
return s ? (h += `
|
|
1212
|
-
` +
|
|
1219
|
+
` + U(c(s), a), l && l()) : f && o && o(), h;
|
|
1213
1220
|
}
|
|
1214
1221
|
function Qs({ items: s }, e, { flowChars: t, itemIndent: n }) {
|
|
1215
1222
|
const { indent: i, indentStep: r, flowCollectionPadding: o, options: { commentString: l } } = e;
|
|
@@ -1226,11 +1233,11 @@ function Qs({ items: s }, e, { flowChars: t, itemIndent: n }) {
|
|
|
1226
1233
|
let m = null;
|
|
1227
1234
|
if ($(u))
|
|
1228
1235
|
u.spaceBefore && f.push(""), je(e, f, u.commentBefore, !1), u.comment && (m = u.comment);
|
|
1229
|
-
else if (
|
|
1230
|
-
const
|
|
1231
|
-
|
|
1236
|
+
else if (T(u)) {
|
|
1237
|
+
const S = $(u.key) ? u.key : null;
|
|
1238
|
+
S && (S.spaceBefore && f.push(""), je(e, f, S.commentBefore, !1), S.comment && (c = !0));
|
|
1232
1239
|
const N = $(u.value) ? u.value : null;
|
|
1233
|
-
N ? (N.comment && (m = N.comment), N.commentBefore && (c = !0)) : u.value == null && (
|
|
1240
|
+
N ? (N.comment && (m = N.comment), N.commentBefore && (c = !0)) : u.value == null && (S != null && S.comment) && (m = S.comment);
|
|
1234
1241
|
}
|
|
1235
1242
|
m && (c = !0);
|
|
1236
1243
|
let b = fe(u, a, () => m = null);
|
|
@@ -1257,14 +1264,14 @@ ${i}${h}`;
|
|
|
1257
1264
|
}
|
|
1258
1265
|
function je({ indent: s, options: { commentString: e } }, t, n, i) {
|
|
1259
1266
|
if (n && i && (n = n.replace(/^\n+/, "")), n) {
|
|
1260
|
-
const r =
|
|
1267
|
+
const r = U(e(n), s);
|
|
1261
1268
|
t.push(r.trimStart());
|
|
1262
1269
|
}
|
|
1263
1270
|
}
|
|
1264
1271
|
function X(s, e) {
|
|
1265
1272
|
const t = E(e) ? e.value : e;
|
|
1266
1273
|
for (const n of s)
|
|
1267
|
-
if (
|
|
1274
|
+
if (T(n) && (n.key === e || n.key === t || E(n.key) && n.key.value === t))
|
|
1268
1275
|
return n;
|
|
1269
1276
|
}
|
|
1270
1277
|
class K extends Wt {
|
|
@@ -1303,7 +1310,7 @@ class K extends Wt {
|
|
|
1303
1310
|
add(e, t) {
|
|
1304
1311
|
var o;
|
|
1305
1312
|
let n;
|
|
1306
|
-
|
|
1313
|
+
T(e) ? n = e : !e || typeof e != "object" || !("key" in e) ? n = new v(e, e == null ? void 0 : e.value) : n = new v(e.key, e.value);
|
|
1307
1314
|
const i = X(this.items, n.key), r = (o = this.schema) == null ? void 0 : o.sortMapEntries;
|
|
1308
1315
|
if (i) {
|
|
1309
1316
|
if (!t)
|
|
@@ -1327,7 +1334,7 @@ class K extends Wt {
|
|
|
1327
1334
|
return !!X(this.items, e);
|
|
1328
1335
|
}
|
|
1329
1336
|
set(e, t) {
|
|
1330
|
-
this.add(new
|
|
1337
|
+
this.add(new v(e, t), !0);
|
|
1331
1338
|
}
|
|
1332
1339
|
/**
|
|
1333
1340
|
* @param ctx - Conversion context, originally set in Document#toJS()
|
|
@@ -1345,7 +1352,7 @@ class K extends Wt {
|
|
|
1345
1352
|
if (!e)
|
|
1346
1353
|
return JSON.stringify(this);
|
|
1347
1354
|
for (const i of this.items)
|
|
1348
|
-
if (!
|
|
1355
|
+
if (!T(i))
|
|
1349
1356
|
throw new Error(`Map items must all be pairs; found ${JSON.stringify(i)} instead`);
|
|
1350
1357
|
return !e.allNullValues && this.hasAllNullValues(!1) && (e = Object.assign({}, e, { allNullValues: !0 })), es(this, e, {
|
|
1351
1358
|
blockItemPrefix: "",
|
|
@@ -1474,18 +1481,18 @@ const ye = {
|
|
|
1474
1481
|
}
|
|
1475
1482
|
}, Ge = {
|
|
1476
1483
|
identify: (s) => s == null,
|
|
1477
|
-
createNode: () => new
|
|
1484
|
+
createNode: () => new A(null),
|
|
1478
1485
|
default: !0,
|
|
1479
1486
|
tag: "tag:yaml.org,2002:null",
|
|
1480
1487
|
test: /^(?:~|[Nn]ull|NULL)?$/,
|
|
1481
|
-
resolve: () => new
|
|
1488
|
+
resolve: () => new A(null),
|
|
1482
1489
|
stringify: ({ source: s }, e) => typeof s == "string" && Ge.test.test(s) ? s : e.options.nullStr
|
|
1483
1490
|
}, yt = {
|
|
1484
1491
|
identify: (s) => typeof s == "boolean",
|
|
1485
1492
|
default: !0,
|
|
1486
1493
|
tag: "tag:yaml.org,2002:bool",
|
|
1487
1494
|
test: /^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,
|
|
1488
|
-
resolve: (s) => new
|
|
1495
|
+
resolve: (s) => new A(s[0] === "t" || s[0] === "T"),
|
|
1489
1496
|
stringify({ source: s, value: e }, t) {
|
|
1490
1497
|
if (s && yt.test.test(s)) {
|
|
1491
1498
|
const n = s[0] === "t" || s[0] === "T";
|
|
@@ -1535,7 +1542,7 @@ const ts = {
|
|
|
1535
1542
|
tag: "tag:yaml.org,2002:float",
|
|
1536
1543
|
test: /^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,
|
|
1537
1544
|
resolve(s) {
|
|
1538
|
-
const e = new
|
|
1545
|
+
const e = new A(parseFloat(s)), t = s.indexOf(".");
|
|
1539
1546
|
return t !== -1 && s[s.length - 1] === "0" && (e.minFractionDigits = s.length - t - 1), e;
|
|
1540
1547
|
},
|
|
1541
1548
|
stringify: q
|
|
@@ -1593,7 +1600,7 @@ const $e = ({ value: s }) => JSON.stringify(s), Hs = [
|
|
|
1593
1600
|
},
|
|
1594
1601
|
{
|
|
1595
1602
|
identify: (s) => s == null,
|
|
1596
|
-
createNode: () => new
|
|
1603
|
+
createNode: () => new A(null),
|
|
1597
1604
|
default: !0,
|
|
1598
1605
|
tag: "tag:yaml.org,2002:null",
|
|
1599
1606
|
test: /^null$/,
|
|
@@ -1604,7 +1611,7 @@ const $e = ({ value: s }) => JSON.stringify(s), Hs = [
|
|
|
1604
1611
|
identify: (s) => typeof s == "boolean",
|
|
1605
1612
|
default: !0,
|
|
1606
1613
|
tag: "tag:yaml.org,2002:bool",
|
|
1607
|
-
test: /^true
|
|
1614
|
+
test: /^true$|^false$/,
|
|
1608
1615
|
resolve: (s) => s === "true",
|
|
1609
1616
|
stringify: $e
|
|
1610
1617
|
},
|
|
@@ -1645,8 +1652,6 @@ const $e = ({ value: s }) => JSON.stringify(s), Hs = [
|
|
|
1645
1652
|
* document.querySelector('#photo').src = URL.createObjectURL(blob)
|
|
1646
1653
|
*/
|
|
1647
1654
|
resolve(s, e) {
|
|
1648
|
-
if (typeof Buffer == "function")
|
|
1649
|
-
return Buffer.from(s, "base64");
|
|
1650
1655
|
if (typeof atob == "function") {
|
|
1651
1656
|
const t = atob(s.replace(/[\n\r]/g, "")), n = new Uint8Array(t.length);
|
|
1652
1657
|
for (let i = 0; i < t.length; ++i)
|
|
@@ -1658,20 +1663,18 @@ const $e = ({ value: s }) => JSON.stringify(s), Hs = [
|
|
|
1658
1663
|
stringify({ comment: s, type: e, value: t }, n, i, r) {
|
|
1659
1664
|
const o = t;
|
|
1660
1665
|
let l;
|
|
1661
|
-
if (typeof
|
|
1662
|
-
l = o instanceof Buffer ? o.toString("base64") : Buffer.from(o.buffer).toString("base64");
|
|
1663
|
-
else if (typeof btoa == "function") {
|
|
1666
|
+
if (typeof btoa == "function") {
|
|
1664
1667
|
let a = "";
|
|
1665
1668
|
for (let c = 0; c < o.length; ++c)
|
|
1666
1669
|
a += String.fromCharCode(o[c]);
|
|
1667
1670
|
l = btoa(a);
|
|
1668
1671
|
} else
|
|
1669
1672
|
throw new Error("This environment does not support writing binary tags; either Buffer or btoa is required");
|
|
1670
|
-
if (e || (e =
|
|
1673
|
+
if (e || (e = A.BLOCK_LITERAL), e !== A.QUOTE_DOUBLE) {
|
|
1671
1674
|
const a = Math.max(n.options.lineWidth - n.indent.length, n.options.minContentWidth), c = Math.ceil(l.length / a), p = new Array(c);
|
|
1672
1675
|
for (let f = 0, d = 0; f < c; ++f, d += a)
|
|
1673
1676
|
p[f] = l.substr(d, a);
|
|
1674
|
-
l = p.join(e ===
|
|
1677
|
+
l = p.join(e === A.BLOCK_LITERAL ? `
|
|
1675
1678
|
` : " ");
|
|
1676
1679
|
}
|
|
1677
1680
|
return Ae({ comment: s, type: e, value: l }, n, i, r);
|
|
@@ -1681,10 +1684,10 @@ function as(s, e) {
|
|
|
1681
1684
|
if (pe(s))
|
|
1682
1685
|
for (let t = 0; t < s.items.length; ++t) {
|
|
1683
1686
|
let n = s.items[t];
|
|
1684
|
-
if (!
|
|
1687
|
+
if (!T(n)) {
|
|
1685
1688
|
if (de(n)) {
|
|
1686
1689
|
n.items.length > 1 && e("Each pair must have its own sequence indicator");
|
|
1687
|
-
const i = n.items[0] || new
|
|
1690
|
+
const i = n.items[0] || new v(new A(null));
|
|
1688
1691
|
if (n.commentBefore && (i.key.commentBefore = i.key.commentBefore ? `${n.commentBefore}
|
|
1689
1692
|
${i.key.commentBefore}` : n.commentBefore), n.comment) {
|
|
1690
1693
|
const r = i.value ?? i.key;
|
|
@@ -1693,7 +1696,7 @@ ${r.comment}` : n.comment;
|
|
|
1693
1696
|
}
|
|
1694
1697
|
n = i;
|
|
1695
1698
|
}
|
|
1696
|
-
s.items[t] =
|
|
1699
|
+
s.items[t] = T(n) ? n : new v(n);
|
|
1697
1700
|
}
|
|
1698
1701
|
}
|
|
1699
1702
|
else
|
|
@@ -1747,7 +1750,7 @@ class ae extends Q {
|
|
|
1747
1750
|
t != null && t.onCreate && t.onCreate(n);
|
|
1748
1751
|
for (const i of this.items) {
|
|
1749
1752
|
let r, o;
|
|
1750
|
-
if (
|
|
1753
|
+
if (T(i) ? (r = P(i.key, "", t), o = P(i.value, r, t)) : r = P(i, "", t), n.has(r))
|
|
1751
1754
|
throw new Error("Ordered maps must not include duplicate keys");
|
|
1752
1755
|
n.set(r, o);
|
|
1753
1756
|
}
|
|
@@ -1781,14 +1784,14 @@ const us = {
|
|
|
1781
1784
|
default: !0,
|
|
1782
1785
|
tag: "tag:yaml.org,2002:bool",
|
|
1783
1786
|
test: /^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,
|
|
1784
|
-
resolve: () => new
|
|
1787
|
+
resolve: () => new A(!0),
|
|
1785
1788
|
stringify: fs
|
|
1786
1789
|
}, hs = {
|
|
1787
1790
|
identify: (s) => s === !1,
|
|
1788
1791
|
default: !0,
|
|
1789
1792
|
tag: "tag:yaml.org,2002:bool",
|
|
1790
1793
|
test: /^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/,
|
|
1791
|
-
resolve: () => new
|
|
1794
|
+
resolve: () => new A(!1),
|
|
1792
1795
|
stringify: fs
|
|
1793
1796
|
}, Zs = {
|
|
1794
1797
|
identify: (s) => typeof s == "number",
|
|
@@ -1814,7 +1817,7 @@ const us = {
|
|
|
1814
1817
|
tag: "tag:yaml.org,2002:float",
|
|
1815
1818
|
test: /^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,
|
|
1816
1819
|
resolve(s) {
|
|
1817
|
-
const e = new
|
|
1820
|
+
const e = new A(parseFloat(s.replace(/_/g, ""))), t = s.indexOf(".");
|
|
1818
1821
|
if (t !== -1) {
|
|
1819
1822
|
const n = s.substring(t + 1).replace(/_/g, "");
|
|
1820
1823
|
n[n.length - 1] === "0" && (e.minFractionDigits = n.length);
|
|
@@ -1889,7 +1892,7 @@ class ce extends K {
|
|
|
1889
1892
|
}
|
|
1890
1893
|
add(e) {
|
|
1891
1894
|
let t;
|
|
1892
|
-
|
|
1895
|
+
T(e) ? t = e : e && typeof e == "object" && "key" in e && "value" in e && e.value === null ? t = new v(e.key, null) : t = new v(e, null), X(this.items, t.key) || this.items.push(t);
|
|
1893
1896
|
}
|
|
1894
1897
|
/**
|
|
1895
1898
|
* If `keepPair` is `true`, returns the Pair matching `key`.
|
|
@@ -1897,13 +1900,13 @@ class ce extends K {
|
|
|
1897
1900
|
*/
|
|
1898
1901
|
get(e, t) {
|
|
1899
1902
|
const n = X(this.items, e);
|
|
1900
|
-
return !t &&
|
|
1903
|
+
return !t && T(n) ? E(n.key) ? n.key.value : n.key : n;
|
|
1901
1904
|
}
|
|
1902
1905
|
set(e, t) {
|
|
1903
1906
|
if (typeof t != "boolean")
|
|
1904
1907
|
throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof t}`);
|
|
1905
1908
|
const n = X(this.items, e);
|
|
1906
|
-
n && !t ? this.items.splice(this.items.indexOf(n), 1) : !n && t && this.items.push(new
|
|
1909
|
+
n && !t ? this.items.splice(this.items.indexOf(n), 1) : !n && t && this.items.push(new v(e));
|
|
1907
1910
|
}
|
|
1908
1911
|
toJSON(e, t) {
|
|
1909
1912
|
return super.toJSON(e, t, Set);
|
|
@@ -1993,7 +1996,7 @@ const ps = {
|
|
|
1993
1996
|
}
|
|
1994
1997
|
return new Date(c);
|
|
1995
1998
|
},
|
|
1996
|
-
stringify: ({ value: s }) => s.toISOString().replace(/(
|
|
1999
|
+
stringify: ({ value: s }) => s.toISOString().replace(/(T00:00:00)?\.000Z$/, "")
|
|
1997
2000
|
}, Ct = [
|
|
1998
2001
|
me,
|
|
1999
2002
|
ye,
|
|
@@ -2016,13 +2019,13 @@ const ps = {
|
|
|
2016
2019
|
ps,
|
|
2017
2020
|
ms,
|
|
2018
2021
|
He
|
|
2019
|
-
],
|
|
2022
|
+
], vt = /* @__PURE__ */ new Map([
|
|
2020
2023
|
["core", Ws],
|
|
2021
2024
|
["failsafe", [me, ye, Ye]],
|
|
2022
2025
|
["json", zs],
|
|
2023
2026
|
["yaml11", Ct],
|
|
2024
2027
|
["yaml-1.1", Ct]
|
|
2025
|
-
]),
|
|
2028
|
+
]), Bt = {
|
|
2026
2029
|
binary: bt,
|
|
2027
2030
|
bool: yt,
|
|
2028
2031
|
float: ns,
|
|
@@ -2050,7 +2053,7 @@ const ps = {
|
|
|
2050
2053
|
"tag:yaml.org,2002:timestamp": He
|
|
2051
2054
|
};
|
|
2052
2055
|
function tt(s, e, t) {
|
|
2053
|
-
const n =
|
|
2056
|
+
const n = vt.get(e);
|
|
2054
2057
|
if (n && !s)
|
|
2055
2058
|
return t && !n.includes(V) ? n.concat(V) : n.slice();
|
|
2056
2059
|
let i = n;
|
|
@@ -2058,7 +2061,7 @@ function tt(s, e, t) {
|
|
|
2058
2061
|
if (Array.isArray(s))
|
|
2059
2062
|
i = [];
|
|
2060
2063
|
else {
|
|
2061
|
-
const r = Array.from(
|
|
2064
|
+
const r = Array.from(vt.keys()).filter((o) => o !== "yaml11").map((o) => JSON.stringify(o)).join(", ");
|
|
2062
2065
|
throw new Error(`Unknown schema "${e}"; use one of ${r} or define customTags array`);
|
|
2063
2066
|
}
|
|
2064
2067
|
if (Array.isArray(s))
|
|
@@ -2066,9 +2069,9 @@ function tt(s, e, t) {
|
|
|
2066
2069
|
i = i.concat(r);
|
|
2067
2070
|
else typeof s == "function" && (i = s(i.slice()));
|
|
2068
2071
|
return t && (i = i.concat(V)), i.reduce((r, o) => {
|
|
2069
|
-
const l = typeof o == "string" ?
|
|
2072
|
+
const l = typeof o == "string" ? Bt[o] : o;
|
|
2070
2073
|
if (!l) {
|
|
2071
|
-
const a = JSON.stringify(o), c = Object.keys(
|
|
2074
|
+
const a = JSON.stringify(o), c = Object.keys(Bt).map((p) => JSON.stringify(p)).join(", ");
|
|
2072
2075
|
throw new Error(`Unknown custom tag ${a}; use one of ${c}`);
|
|
2073
2076
|
}
|
|
2074
2077
|
return r.includes(l) || r.push(l), r;
|
|
@@ -2077,7 +2080,7 @@ function tt(s, e, t) {
|
|
|
2077
2080
|
const ln = (s, e) => s.key < e.key ? -1 : s.key > e.key ? 1 : 0;
|
|
2078
2081
|
class Xe {
|
|
2079
2082
|
constructor({ compat: e, customTags: t, merge: n, resolveKnownTags: i, schema: r, sortMapEntries: o, toStringDefaults: l }) {
|
|
2080
|
-
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, Y, { value: me }), Object.defineProperty(this,
|
|
2083
|
+
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, Y, { value: me }), Object.defineProperty(this, R, { value: Ye }), Object.defineProperty(this, he, { value: ye }), this.sortMapEntries = typeof o == "function" ? o : o === !0 ? ln : null;
|
|
2081
2084
|
}
|
|
2082
2085
|
clone() {
|
|
2083
2086
|
const e = Object.create(Xe.prototype, Object.getOwnPropertyDescriptors(this));
|
|
@@ -2097,14 +2100,14 @@ function an(s, e) {
|
|
|
2097
2100
|
if (s.commentBefore) {
|
|
2098
2101
|
t.length !== 1 && t.unshift("");
|
|
2099
2102
|
const c = r(s.commentBefore);
|
|
2100
|
-
t.unshift(
|
|
2103
|
+
t.unshift(U(c, ""));
|
|
2101
2104
|
}
|
|
2102
2105
|
let o = !1, l = null;
|
|
2103
2106
|
if (s.contents) {
|
|
2104
2107
|
if ($(s.contents)) {
|
|
2105
2108
|
if (s.contents.spaceBefore && n && t.push(""), s.contents.commentBefore) {
|
|
2106
2109
|
const f = r(s.contents.commentBefore);
|
|
2107
|
-
t.push(
|
|
2110
|
+
t.push(U(f, ""));
|
|
2108
2111
|
}
|
|
2109
2112
|
i.forceBlockIndent = !!s.comment, l = s.contents.comment;
|
|
2110
2113
|
}
|
|
@@ -2117,12 +2120,12 @@ function an(s, e) {
|
|
|
2117
2120
|
if (s.comment) {
|
|
2118
2121
|
const c = r(s.comment);
|
|
2119
2122
|
c.includes(`
|
|
2120
|
-
`) ? (t.push("..."), t.push(
|
|
2123
|
+
`) ? (t.push("..."), t.push(U(c, ""))) : t.push(`... ${c}`);
|
|
2121
2124
|
} else
|
|
2122
2125
|
t.push("...");
|
|
2123
2126
|
else {
|
|
2124
2127
|
let c = s.comment;
|
|
2125
|
-
c && o && (c = c.replace(/^\n+/, "")), c && ((!o || l) && t[t.length - 1] !== "" && t.push(""), t.push(
|
|
2128
|
+
c && o && (c = c.replace(/^\n+/, "")), c && ((!o || l) && t[t.length - 1] !== "" && t.push(""), t.push(U(r(c), "")));
|
|
2126
2129
|
}
|
|
2127
2130
|
return t.join(`
|
|
2128
2131
|
`) + `
|
|
@@ -2145,7 +2148,7 @@ class ge {
|
|
|
2145
2148
|
}, n);
|
|
2146
2149
|
this.options = r;
|
|
2147
2150
|
let { version: o } = r;
|
|
2148
|
-
n != null && n._directives ? (this.directives = n._directives.atDocument(), this.directives.yaml.explicit && (o = this.directives.yaml.version)) : this.directives = new
|
|
2151
|
+
n != null && n._directives ? (this.directives = n._directives.atDocument(), this.directives.yaml.explicit && (o = this.directives.yaml.version)) : this.directives = new B({ version: o }), this.setSchema(o, n), this.contents = e === void 0 ? null : this.createNode(e, i, n);
|
|
2149
2152
|
}
|
|
2150
2153
|
/**
|
|
2151
2154
|
* Create a deep copy of this Document and its contents.
|
|
@@ -2181,14 +2184,14 @@ class ge {
|
|
|
2181
2184
|
e.anchor = // eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing
|
|
2182
2185
|
!t || n.has(t) ? Gt(t || "a", n) : t;
|
|
2183
2186
|
}
|
|
2184
|
-
return new
|
|
2187
|
+
return new Re(e.anchor);
|
|
2185
2188
|
}
|
|
2186
2189
|
createNode(e, t, n) {
|
|
2187
2190
|
let i;
|
|
2188
2191
|
if (typeof t == "function")
|
|
2189
2192
|
e = t.call({ "": e }, "", e), i = t;
|
|
2190
2193
|
else if (Array.isArray(t)) {
|
|
2191
|
-
const m = (
|
|
2194
|
+
const m = (S) => typeof S == "number" || S instanceof String || S instanceof Number, b = t.filter(m).map(String);
|
|
2192
2195
|
b.length > 0 && (t = t.concat(b)), i = t;
|
|
2193
2196
|
} else n === void 0 && t && (n = t, t = void 0);
|
|
2194
2197
|
const { aliasDuplicateObjects: r, anchorPrefix: o, flow: l, keepUndefined: a, onTagObj: c, tag: p } = n ?? {}, { onAnchor: f, setAnchors: d, sourceObjects: h } = Ks(
|
|
@@ -2212,7 +2215,7 @@ class ge {
|
|
|
2212
2215
|
*/
|
|
2213
2216
|
createPair(e, t, n = {}) {
|
|
2214
2217
|
const i = this.createNode(e, null, n), r = this.createNode(t, null, n);
|
|
2215
|
-
return new
|
|
2218
|
+
return new v(i, r);
|
|
2216
2219
|
}
|
|
2217
2220
|
/**
|
|
2218
2221
|
* Removes a value from the document.
|
|
@@ -2282,11 +2285,11 @@ class ge {
|
|
|
2282
2285
|
let n;
|
|
2283
2286
|
switch (e) {
|
|
2284
2287
|
case "1.1":
|
|
2285
|
-
this.directives ? this.directives.yaml.version = "1.1" : this.directives = new
|
|
2288
|
+
this.directives ? this.directives.yaml.version = "1.1" : this.directives = new B({ version: "1.1" }), n = { resolveKnownTags: !1, schema: "yaml-1.1" };
|
|
2286
2289
|
break;
|
|
2287
2290
|
case "1.2":
|
|
2288
2291
|
case "next":
|
|
2289
|
-
this.directives ? this.directives.yaml.version = e : this.directives = new
|
|
2292
|
+
this.directives ? this.directives.yaml.version = e : this.directives = new B({ version: e }), n = { resolveKnownTags: !0, schema: "core" };
|
|
2290
2293
|
break;
|
|
2291
2294
|
case null:
|
|
2292
2295
|
this.directives && delete this.directives, n = null;
|
|
@@ -2387,7 +2390,7 @@ ${c}
|
|
|
2387
2390
|
}
|
|
2388
2391
|
};
|
|
2389
2392
|
function ue(s, { flow: e, indicator: t, next: n, offset: i, onError: r, parentIndent: o, startOnNewline: l }) {
|
|
2390
|
-
let a = !1, c = l, p = l, f = "", d = "", h = !1, y = !1, u = null, m = null, b = null,
|
|
2393
|
+
let a = !1, c = l, p = l, f = "", d = "", h = !1, y = !1, u = null, m = null, b = null, S = null, N = null, w = null, k = null;
|
|
2391
2394
|
for (const g of s)
|
|
2392
2395
|
switch (y && (g.type !== "space" && g.type !== "newline" && g.type !== "comma" && r(g.offset, "MISSING_CHAR", "Tags and anchors must be separated from the next token by white space"), y = !1), u && (c && g.type !== "comment" && g.type !== "newline" && r(u, "TAB_AS_INDENT", "Tabs are not allowed as indentation"), u = null), g.type) {
|
|
2393
2396
|
case "space":
|
|
@@ -2400,38 +2403,39 @@ function ue(s, { flow: e, indicator: t, next: n, offset: i, onError: r, parentIn
|
|
|
2400
2403
|
break;
|
|
2401
2404
|
}
|
|
2402
2405
|
case "newline":
|
|
2403
|
-
c ? f ? f += g.source : a = !0 : d += g.source, c = !0, h = !0, (m || b) && (
|
|
2406
|
+
c ? f ? f += g.source : (!w || t !== "seq-item-ind") && (a = !0) : d += g.source, c = !0, h = !0, (m || b) && (S = g), p = !0;
|
|
2404
2407
|
break;
|
|
2405
2408
|
case "anchor":
|
|
2406
|
-
m && 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), m = g,
|
|
2409
|
+
m && 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), m = g, k === null && (k = g.offset), c = !1, p = !1, y = !0;
|
|
2407
2410
|
break;
|
|
2408
2411
|
case "tag": {
|
|
2409
|
-
b && r(g, "MULTIPLE_TAGS", "A node can have at most one tag"), b = g,
|
|
2412
|
+
b && r(g, "MULTIPLE_TAGS", "A node can have at most one tag"), b = g, k === null && (k = g.offset), c = !1, p = !1, y = !0;
|
|
2410
2413
|
break;
|
|
2411
2414
|
}
|
|
2412
2415
|
case t:
|
|
2413
|
-
(m || b) && r(g, "BAD_PROP_ORDER", `Anchors and tags must be after the ${g.source} indicator`),
|
|
2416
|
+
(m || b) && r(g, "BAD_PROP_ORDER", `Anchors and tags must be after the ${g.source} indicator`), w && r(g, "UNEXPECTED_TOKEN", `Unexpected ${g.source} in ${e ?? "collection"}`), w = g, c = t === "seq-item-ind" || t === "explicit-key-ind", p = !1;
|
|
2414
2417
|
break;
|
|
2415
2418
|
case "comma":
|
|
2416
2419
|
if (e) {
|
|
2417
2420
|
N && r(g, "UNEXPECTED_TOKEN", `Unexpected , in ${e}`), N = g, c = !1, p = !1;
|
|
2418
2421
|
break;
|
|
2419
2422
|
}
|
|
2423
|
+
// else fallthrough
|
|
2420
2424
|
default:
|
|
2421
2425
|
r(g, "UNEXPECTED_TOKEN", `Unexpected ${g.type} token`), c = !1, p = !1;
|
|
2422
2426
|
}
|
|
2423
|
-
const
|
|
2427
|
+
const O = s[s.length - 1], I = O ? O.offset + O.source.length : i;
|
|
2424
2428
|
return y && n && n.type !== "space" && n.type !== "newline" && n.type !== "comma" && (n.type !== "scalar" || n.source !== "") && r(n.offset, "MISSING_CHAR", "Tags and anchors must be separated from the next token by white space"), u && (c && u.indent <= o || (n == null ? void 0 : n.type) === "block-map" || (n == null ? void 0 : n.type) === "block-seq") && r(u, "TAB_AS_INDENT", "Tabs are not allowed as indentation"), {
|
|
2425
2429
|
comma: N,
|
|
2426
|
-
found:
|
|
2430
|
+
found: w,
|
|
2427
2431
|
spaceBefore: a,
|
|
2428
2432
|
comment: f,
|
|
2429
2433
|
hasNewline: h,
|
|
2430
2434
|
anchor: m,
|
|
2431
2435
|
tag: b,
|
|
2432
|
-
newlineAfterProp:
|
|
2433
|
-
end:
|
|
2434
|
-
start:
|
|
2436
|
+
newlineAfterProp: S,
|
|
2437
|
+
end: I,
|
|
2438
|
+
start: k ?? I
|
|
2435
2439
|
};
|
|
2436
2440
|
}
|
|
2437
2441
|
function Ne(s) {
|
|
@@ -2506,9 +2510,9 @@ function cn({ composeNode: s, composeEmptyNode: e }, t, n, i, r) {
|
|
|
2506
2510
|
(m.newlineAfterProp || Ne(h)) && i(h ?? d[d.length - 1], "MULTILINE_IMPLICIT_KEY", "Implicit keys need to be on a single line");
|
|
2507
2511
|
} else ((p = m.found) == null ? void 0 : p.indent) !== n.indent && i(a, "BAD_INDENT", Mt);
|
|
2508
2512
|
t.atKey = !0;
|
|
2509
|
-
const
|
|
2510
|
-
t.schema.compat && ut(n.indent, h, i), t.atKey = !1, gs(t, l.items, N) && i(
|
|
2511
|
-
const
|
|
2513
|
+
const S = m.end, N = h ? s(t, h, m, i) : e(t, S, d, null, m, i);
|
|
2514
|
+
t.schema.compat && ut(n.indent, h, i), t.atKey = !1, gs(t, l.items, N) && i(S, "DUPLICATE_KEY", "Map keys must be unique");
|
|
2515
|
+
const w = ue(y ?? [], {
|
|
2512
2516
|
indicator: "map-value-ind",
|
|
2513
2517
|
next: u,
|
|
2514
2518
|
offset: N.range[2],
|
|
@@ -2516,17 +2520,17 @@ function cn({ composeNode: s, composeEmptyNode: e }, t, n, i, r) {
|
|
|
2516
2520
|
parentIndent: n.indent,
|
|
2517
2521
|
startOnNewline: !h || h.type === "block-scalar"
|
|
2518
2522
|
});
|
|
2519
|
-
if (a =
|
|
2520
|
-
b && ((u == null ? void 0 : u.type) === "block-map" && !
|
|
2521
|
-
const
|
|
2522
|
-
t.schema.compat && ut(n.indent, u, i), a =
|
|
2523
|
-
const
|
|
2524
|
-
t.options.keepSourceTokens && (
|
|
2523
|
+
if (a = w.end, w.found) {
|
|
2524
|
+
b && ((u == null ? void 0 : u.type) === "block-map" && !w.hasNewline && i(a, "BLOCK_AS_IMPLICIT_KEY", "Nested mappings are not allowed in compact mappings"), t.options.strict && m.start < w.found.offset - 1024 && i(N.range, "KEY_OVER_1024_CHARS", "The : indicator must be at most 1024 chars after the start of an implicit block mapping key"));
|
|
2525
|
+
const k = u ? s(t, u, w, i) : e(t, a, y, null, w, i);
|
|
2526
|
+
t.schema.compat && ut(n.indent, u, i), a = k.range[2];
|
|
2527
|
+
const O = new v(N, k);
|
|
2528
|
+
t.options.keepSourceTokens && (O.srcToken = f), l.items.push(O);
|
|
2525
2529
|
} else {
|
|
2526
|
-
b && i(N.range, "MISSING_CHAR", "Implicit map keys need to be followed by map values"),
|
|
2527
|
-
` +
|
|
2528
|
-
const
|
|
2529
|
-
t.options.keepSourceTokens && (
|
|
2530
|
+
b && i(N.range, "MISSING_CHAR", "Implicit map keys need to be followed by map values"), w.comment && (N.comment ? N.comment += `
|
|
2531
|
+
` + w.comment : N.comment = w.comment);
|
|
2532
|
+
const k = new v(N);
|
|
2533
|
+
t.options.keepSourceTokens && (k.srcToken = f), l.items.push(k);
|
|
2530
2534
|
}
|
|
2531
2535
|
}
|
|
2532
2536
|
return c && c < a && i(c, "IMPOSSIBLE", "Map comment with trailing content"), l.range = [n.offset, a, c ?? a], l;
|
|
@@ -2591,19 +2595,19 @@ function un({ composeNode: s, composeEmptyNode: e }, t, n, i, r) {
|
|
|
2591
2595
|
p && (t.atRoot = !1), t.atKey && (t.atKey = !1);
|
|
2592
2596
|
let f = n.offset + n.start.source.length;
|
|
2593
2597
|
for (let m = 0; m < n.items.length; ++m) {
|
|
2594
|
-
const b = n.items[m], { start:
|
|
2598
|
+
const b = n.items[m], { start: S, key: N, sep: w, value: k } = b, O = ue(S, {
|
|
2595
2599
|
flow: l,
|
|
2596
2600
|
indicator: "explicit-key-ind",
|
|
2597
|
-
next: N ?? (
|
|
2601
|
+
next: N ?? (w == null ? void 0 : w[0]),
|
|
2598
2602
|
offset: f,
|
|
2599
2603
|
onError: i,
|
|
2600
2604
|
parentIndent: n.indent,
|
|
2601
2605
|
startOnNewline: !1
|
|
2602
2606
|
});
|
|
2603
|
-
if (!
|
|
2604
|
-
if (!
|
|
2605
|
-
m === 0 &&
|
|
2606
|
-
` +
|
|
2607
|
+
if (!O.found) {
|
|
2608
|
+
if (!O.anchor && !O.tag && !w && !k) {
|
|
2609
|
+
m === 0 && O.comma ? i(O.comma, "UNEXPECTED_TOKEN", `Unexpected , in ${l}`) : m < n.items.length - 1 && i(O.start, "UNEXPECTED_TOKEN", `Unexpected empty item in ${l}`), O.comment && (c.comment ? c.comment += `
|
|
2610
|
+
` + O.comment : c.comment = O.comment), f = O.end;
|
|
2607
2611
|
continue;
|
|
2608
2612
|
}
|
|
2609
2613
|
!o && t.options.strict && Ne(N) && i(
|
|
@@ -2614,46 +2618,46 @@ function un({ composeNode: s, composeEmptyNode: e }, t, n, i, r) {
|
|
|
2614
2618
|
);
|
|
2615
2619
|
}
|
|
2616
2620
|
if (m === 0)
|
|
2617
|
-
|
|
2618
|
-
else if (
|
|
2619
|
-
let
|
|
2620
|
-
e: for (const g of
|
|
2621
|
+
O.comma && i(O.comma, "UNEXPECTED_TOKEN", `Unexpected , in ${l}`);
|
|
2622
|
+
else if (O.comma || i(O.start, "MISSING_CHAR", `Missing , between ${l} items`), O.comment) {
|
|
2623
|
+
let I = "";
|
|
2624
|
+
e: for (const g of S)
|
|
2621
2625
|
switch (g.type) {
|
|
2622
2626
|
case "comma":
|
|
2623
2627
|
case "space":
|
|
2624
2628
|
break;
|
|
2625
2629
|
case "comment":
|
|
2626
|
-
|
|
2630
|
+
I = g.source.substring(1);
|
|
2627
2631
|
break e;
|
|
2628
2632
|
default:
|
|
2629
2633
|
break e;
|
|
2630
2634
|
}
|
|
2631
|
-
if (
|
|
2635
|
+
if (I) {
|
|
2632
2636
|
let g = c.items[c.items.length - 1];
|
|
2633
|
-
|
|
2634
|
-
` +
|
|
2637
|
+
T(g) && (g = g.value ?? g.key), g.comment ? g.comment += `
|
|
2638
|
+
` + I : g.comment = I, O.comment = O.comment.substring(I.length + 1);
|
|
2635
2639
|
}
|
|
2636
2640
|
}
|
|
2637
|
-
if (!o && !
|
|
2638
|
-
const
|
|
2639
|
-
c.items.push(
|
|
2641
|
+
if (!o && !w && !O.found) {
|
|
2642
|
+
const I = k ? s(t, k, O, i) : e(t, O.end, w, null, O, i);
|
|
2643
|
+
c.items.push(I), f = I.range[2], nt(k) && i(I.range, "BLOCK_IN_FLOW", st);
|
|
2640
2644
|
} else {
|
|
2641
2645
|
t.atKey = !0;
|
|
2642
|
-
const
|
|
2646
|
+
const I = O.end, g = N ? s(t, N, O, i) : e(t, I, S, null, O, i);
|
|
2643
2647
|
nt(N) && i(g.range, "BLOCK_IN_FLOW", st), t.atKey = !1;
|
|
2644
|
-
const _ = ue(
|
|
2648
|
+
const _ = ue(w ?? [], {
|
|
2645
2649
|
flow: l,
|
|
2646
2650
|
indicator: "map-value-ind",
|
|
2647
|
-
next:
|
|
2651
|
+
next: k,
|
|
2648
2652
|
offset: g.range[2],
|
|
2649
2653
|
onError: i,
|
|
2650
2654
|
parentIndent: n.indent,
|
|
2651
2655
|
startOnNewline: !1
|
|
2652
2656
|
});
|
|
2653
2657
|
if (_.found) {
|
|
2654
|
-
if (!o && !
|
|
2655
|
-
if (
|
|
2656
|
-
for (const C of
|
|
2658
|
+
if (!o && !O.found && t.options.strict) {
|
|
2659
|
+
if (w)
|
|
2660
|
+
for (const C of w) {
|
|
2657
2661
|
if (C === _.found)
|
|
2658
2662
|
break;
|
|
2659
2663
|
if (C.type === "newline") {
|
|
@@ -2661,16 +2665,16 @@ function un({ composeNode: s, composeEmptyNode: e }, t, n, i, r) {
|
|
|
2661
2665
|
break;
|
|
2662
2666
|
}
|
|
2663
2667
|
}
|
|
2664
|
-
|
|
2668
|
+
O.start < _.found.offset - 1024 && i(_.found, "KEY_OVER_1024_CHARS", "The : indicator must be at most 1024 chars after the start of an implicit flow sequence key");
|
|
2665
2669
|
}
|
|
2666
|
-
} else
|
|
2667
|
-
const J =
|
|
2668
|
-
J ? nt(
|
|
2670
|
+
} else k && ("source" in k && k.source && k.source[0] === ":" ? i(k, "MISSING_CHAR", `Missing space after : in ${l}`) : i(_.start, "MISSING_CHAR", `Missing , or : between ${l} items`));
|
|
2671
|
+
const J = k ? s(t, k, _, i) : _.found ? e(t, _.end, w, null, _, i) : null;
|
|
2672
|
+
J ? nt(k) && i(J.range, "BLOCK_IN_FLOW", st) : _.comment && (g.comment ? g.comment += `
|
|
2669
2673
|
` + _.comment : g.comment = _.comment);
|
|
2670
|
-
const te = new
|
|
2674
|
+
const te = new v(g, J);
|
|
2671
2675
|
if (t.options.keepSourceTokens && (te.srcToken = b), o) {
|
|
2672
2676
|
const C = c;
|
|
2673
|
-
gs(t, C.items, g) && i(
|
|
2677
|
+
gs(t, C.items, g) && i(I, "DUPLICATE_KEY", "Map keys must be unique"), C.items.push(te);
|
|
2674
2678
|
} else {
|
|
2675
2679
|
const C = new K(t.schema);
|
|
2676
2680
|
C.flow = !0, C.items.push(te);
|
|
@@ -2718,14 +2722,14 @@ function hn(s, e, t, n, i) {
|
|
|
2718
2722
|
else
|
|
2719
2723
|
return h != null && h.collection ? i(r, "BAD_COLLECTION_TYPE", `${h.tag} used for ${l} collection, but expects ${h.collection}`, !0) : i(r, "TAG_RESOLVE_FAILED", `Unresolved tag: ${o}`, !0), it(s, e, t, i, o);
|
|
2720
2724
|
}
|
|
2721
|
-
const c = it(s, e, t, i, o, a), p = ((d = a.resolve) == null ? void 0 : d.call(a, c, (h) => i(r, "TAG_RESOLVE_FAILED", h), e.options)) ?? c, f = $(p) ? p : new
|
|
2725
|
+
const c = it(s, e, t, i, o, a), p = ((d = a.resolve) == null ? void 0 : d.call(a, c, (h) => i(r, "TAG_RESOLVE_FAILED", h), e.options)) ?? c, f = $(p) ? p : new A(p);
|
|
2722
2726
|
return f.range = c.range, f.tag = o, a != null && a.format && (f.format = a.format), f;
|
|
2723
2727
|
}
|
|
2724
2728
|
function bs(s, e, t) {
|
|
2725
2729
|
const n = e.offset, i = dn(e, s.options.strict, t);
|
|
2726
2730
|
if (!i)
|
|
2727
2731
|
return { value: "", type: null, comment: "", range: [n, n, n] };
|
|
2728
|
-
const r = i.mode === ">" ?
|
|
2732
|
+
const r = i.mode === ">" ? A.BLOCK_FOLDED : A.BLOCK_LITERAL, o = e.source ? pn(e.source) : [];
|
|
2729
2733
|
let l = o.length;
|
|
2730
2734
|
for (let u = o.length - 1; u >= 0; --u) {
|
|
2731
2735
|
const m = o[u][1];
|
|
@@ -2760,12 +2764,12 @@ function bs(s, e, t) {
|
|
|
2760
2764
|
for (let u = p; u < l; ++u) {
|
|
2761
2765
|
let [m, b] = o[u];
|
|
2762
2766
|
c += m.length + b.length + 1;
|
|
2763
|
-
const
|
|
2764
|
-
if (
|
|
2765
|
-
const
|
|
2766
|
-
t(c - b.length - (
|
|
2767
|
+
const S = b[b.length - 1] === "\r";
|
|
2768
|
+
if (S && (b = b.slice(0, -1)), b && m.length < a) {
|
|
2769
|
+
const w = `Block scalar lines must not be less indented than their ${i.indent ? "explicit indentation indicator" : "first line"}`;
|
|
2770
|
+
t(c - b.length - (S ? 2 : 1), "BAD_INDENT", w), m = "";
|
|
2767
2771
|
}
|
|
2768
|
-
r ===
|
|
2772
|
+
r === A.BLOCK_LITERAL ? (f += d + m.slice(a) + b, d = `
|
|
2769
2773
|
`) : m.length > a || b[0] === " " ? (d === " " ? d = `
|
|
2770
2774
|
` : !h && d === `
|
|
2771
2775
|
` && (d = `
|
|
@@ -2815,6 +2819,7 @@ function dn({ offset: s, props: e }, t, n) {
|
|
|
2815
2819
|
switch (h.type) {
|
|
2816
2820
|
case "space":
|
|
2817
2821
|
c = !0;
|
|
2822
|
+
// fallthrough
|
|
2818
2823
|
case "newline":
|
|
2819
2824
|
f += h.source.length;
|
|
2820
2825
|
break;
|
|
@@ -2824,6 +2829,7 @@ function dn({ offset: s, props: e }, t, n) {
|
|
|
2824
2829
|
case "error":
|
|
2825
2830
|
n(h, "UNEXPECTED_TOKEN", h.message), f += h.source.length;
|
|
2826
2831
|
break;
|
|
2832
|
+
/* istanbul ignore next should not happen */
|
|
2827
2833
|
default: {
|
|
2828
2834
|
const y = `Unexpected token in block scalar header: ${h.type}`;
|
|
2829
2835
|
n(h, "UNEXPECTED_TOKEN", y);
|
|
@@ -2846,14 +2852,15 @@ function ws(s, e, t) {
|
|
|
2846
2852
|
const c = (d, h, y) => t(n + d, h, y);
|
|
2847
2853
|
switch (i) {
|
|
2848
2854
|
case "scalar":
|
|
2849
|
-
l =
|
|
2855
|
+
l = A.PLAIN, a = mn(r, c);
|
|
2850
2856
|
break;
|
|
2851
2857
|
case "single-quoted-scalar":
|
|
2852
|
-
l =
|
|
2858
|
+
l = A.QUOTE_SINGLE, a = yn(r, c);
|
|
2853
2859
|
break;
|
|
2854
2860
|
case "double-quoted-scalar":
|
|
2855
|
-
l =
|
|
2861
|
+
l = A.QUOTE_DOUBLE, a = gn(r, c);
|
|
2856
2862
|
break;
|
|
2863
|
+
/* istanbul ignore next should not happen */
|
|
2857
2864
|
default:
|
|
2858
2865
|
return t(s, "UNEXPECTED_TOKEN", `Expected a flow scalar value, but found: ${i}`), {
|
|
2859
2866
|
value: "",
|
|
@@ -2873,6 +2880,7 @@ function ws(s, e, t) {
|
|
|
2873
2880
|
function mn(s, e) {
|
|
2874
2881
|
let t = "";
|
|
2875
2882
|
switch (s[0]) {
|
|
2883
|
+
/* istanbul ignore next should not happen */
|
|
2876
2884
|
case " ":
|
|
2877
2885
|
t = "a tab character";
|
|
2878
2886
|
break;
|
|
@@ -3016,21 +3024,21 @@ function Sn(s, e, t, n) {
|
|
|
3016
3024
|
function ks(s, e, t, n) {
|
|
3017
3025
|
const { value: i, type: r, comment: o, range: l } = e.type === "block-scalar" ? bs(s, e, n) : ws(e, s.options.strict, n), a = t ? s.directives.tagName(t.source, (f) => n(t, "TAG_RESOLVE_FAILED", f)) : null;
|
|
3018
3026
|
let c;
|
|
3019
|
-
s.options.stringKeys && s.atKey ? c = s.schema[
|
|
3027
|
+
s.options.stringKeys && s.atKey ? c = s.schema[R] : a ? c = kn(s.schema, i, a, t, n) : e.type === "scalar" ? c = Nn(s, i, e, n) : c = s.schema[R];
|
|
3020
3028
|
let p;
|
|
3021
3029
|
try {
|
|
3022
3030
|
const f = c.resolve(i, (d) => n(t ?? e, "TAG_RESOLVE_FAILED", d), s.options);
|
|
3023
|
-
p = E(f) ? f : new
|
|
3031
|
+
p = E(f) ? f : new A(f);
|
|
3024
3032
|
} catch (f) {
|
|
3025
3033
|
const d = f instanceof Error ? f.message : String(f);
|
|
3026
|
-
n(t ?? e, "TAG_RESOLVE_FAILED", d), p = new
|
|
3034
|
+
n(t ?? e, "TAG_RESOLVE_FAILED", d), p = new A(i);
|
|
3027
3035
|
}
|
|
3028
3036
|
return p.range = l, p.source = i, r && (p.type = r), a && (p.tag = a), c.format && (p.format = c.format), o && (p.comment = o), p;
|
|
3029
3037
|
}
|
|
3030
3038
|
function kn(s, e, t, n, i) {
|
|
3031
3039
|
var l;
|
|
3032
3040
|
if (t === "!")
|
|
3033
|
-
return s[
|
|
3041
|
+
return s[R];
|
|
3034
3042
|
const r = [];
|
|
3035
3043
|
for (const a of s.tags)
|
|
3036
3044
|
if (!a.collection && a.tag === t)
|
|
@@ -3042,18 +3050,18 @@ function kn(s, e, t, n, i) {
|
|
|
3042
3050
|
if ((l = a.test) != null && l.test(e))
|
|
3043
3051
|
return a;
|
|
3044
3052
|
const o = s.knownTags[t];
|
|
3045
|
-
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[
|
|
3053
|
+
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[R]);
|
|
3046
3054
|
}
|
|
3047
3055
|
function Nn({ atKey: s, directives: e, schema: t }, n, i, r) {
|
|
3048
3056
|
const o = t.tags.find((l) => {
|
|
3049
3057
|
var a;
|
|
3050
3058
|
return (l.default === !0 || s && l.default === "key") && ((a = l.test) == null ? void 0 : a.test(n));
|
|
3051
|
-
}) || t[
|
|
3059
|
+
}) || t[R];
|
|
3052
3060
|
if (t.compat) {
|
|
3053
3061
|
const l = t.compat.find((a) => {
|
|
3054
3062
|
var c;
|
|
3055
3063
|
return a.default && ((c = a.test) == null ? void 0 : c.test(n));
|
|
3056
|
-
}) ?? t[
|
|
3064
|
+
}) ?? t[R];
|
|
3057
3065
|
if (o.tag !== l.tag) {
|
|
3058
3066
|
const a = e.tagString(o.tag), c = e.tagString(l.tag), p = `Value may be parsed as either ${a} or ${c}`;
|
|
3059
3067
|
r(i, "TAG_RESOLVE_FAILED", p, !0);
|
|
@@ -3116,7 +3124,7 @@ function Et(s, e, t, n, { spaceBefore: i, comment: r, anchor: o, tag: l, end: a
|
|
|
3116
3124
|
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;
|
|
3117
3125
|
}
|
|
3118
3126
|
function En({ options: s }, { offset: e, source: t, end: n }, i) {
|
|
3119
|
-
const r = new
|
|
3127
|
+
const r = new Re(t.substring(1));
|
|
3120
3128
|
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);
|
|
3121
3129
|
const o = e + t.length, l = Ie(n, o, s.strict, i);
|
|
3122
3130
|
return r.range = [e, o, l.offset], l.comment && (r.comment = l.comment), r;
|
|
@@ -3174,7 +3182,7 @@ class It {
|
|
|
3174
3182
|
this.doc = null, this.atDirectives = !1, this.prelude = [], this.errors = [], this.warnings = [], this.onError = (t, n, i, r) => {
|
|
3175
3183
|
const o = be(t);
|
|
3176
3184
|
r ? this.warnings.push(new ys(o, n, i)) : this.errors.push(new z(o, n, i));
|
|
3177
|
-
}, this.directives = new
|
|
3185
|
+
}, this.directives = new B({ version: e.version || "1.2" }), this.options = e;
|
|
3178
3186
|
}
|
|
3179
3187
|
decorate(e, t) {
|
|
3180
3188
|
const { comment: n, afterEmptyLine: i } = Kt(this.prelude);
|
|
@@ -3187,7 +3195,7 @@ ${n}` : n;
|
|
|
3187
3195
|
e.commentBefore = n;
|
|
3188
3196
|
else if (L(r) && !r.flow && r.items.length > 0) {
|
|
3189
3197
|
let o = r.items[0];
|
|
3190
|
-
|
|
3198
|
+
T(o) && (o = o.key);
|
|
3191
3199
|
const l = o.commentBefore;
|
|
3192
3200
|
o.commentBefore = l ? `${n}
|
|
3193
3201
|
${l}` : n;
|
|
@@ -3487,12 +3495,12 @@ function Ke({ start: s, key: e, sep: t, value: n }) {
|
|
|
3487
3495
|
i += r.source;
|
|
3488
3496
|
return n && (i += qe(n)), i;
|
|
3489
3497
|
}
|
|
3490
|
-
const ht = Symbol("break visit"),
|
|
3498
|
+
const ht = Symbol("break visit"), vn = Symbol("skip children"), As = Symbol("remove item");
|
|
3491
3499
|
function Z(s, e) {
|
|
3492
3500
|
"type" in s && s.type === "document" && (s = { start: s.start, value: s.value }), Es(Object.freeze([]), s, e);
|
|
3493
3501
|
}
|
|
3494
3502
|
Z.BREAK = ht;
|
|
3495
|
-
Z.SKIP =
|
|
3503
|
+
Z.SKIP = vn;
|
|
3496
3504
|
Z.REMOVE = As;
|
|
3497
3505
|
Z.itemAtPath = (s, e) => {
|
|
3498
3506
|
let t = s;
|
|
@@ -3533,7 +3541,7 @@ function Es(s, e, t) {
|
|
|
3533
3541
|
}
|
|
3534
3542
|
return typeof n == "function" ? n(e, s) : n;
|
|
3535
3543
|
}
|
|
3536
|
-
const ze = "\uFEFF", Ze = "", xe = "", Oe = "",
|
|
3544
|
+
const ze = "\uFEFF", Ze = "", xe = "", Oe = "", Bn = (s) => !!s && "items" in s, Mn = (s) => !!s && (s.type === "scalar" || s.type === "single-quoted-scalar" || s.type === "double-quoted-scalar" || s.type === "block-scalar");
|
|
3537
3545
|
function Kn(s) {
|
|
3538
3546
|
switch (s) {
|
|
3539
3547
|
case ze:
|
|
@@ -3616,7 +3624,7 @@ const Pn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
3616
3624
|
FLOW_END: xe,
|
|
3617
3625
|
SCALAR: Oe,
|
|
3618
3626
|
createScalarToken: Ln,
|
|
3619
|
-
isCollection:
|
|
3627
|
+
isCollection: Bn,
|
|
3620
3628
|
isScalar: Mn,
|
|
3621
3629
|
prettyToken: Kn,
|
|
3622
3630
|
resolveAsScalar: Tn,
|
|
@@ -3790,6 +3798,7 @@ class Ts {
|
|
|
3790
3798
|
switch (e[t]) {
|
|
3791
3799
|
case "#":
|
|
3792
3800
|
yield* this.pushCount(e.length - t);
|
|
3801
|
+
// fallthrough
|
|
3793
3802
|
case void 0:
|
|
3794
3803
|
return yield* this.pushNewline(), yield* this.parseLineStart();
|
|
3795
3804
|
case "{":
|
|
@@ -3844,6 +3853,7 @@ class Ts {
|
|
|
3844
3853
|
if (this.flowKey || D(o) || o === ",")
|
|
3845
3854
|
return this.flowKey = !1, yield* this.pushCount(1), yield* this.pushSpaces(!0), "flow";
|
|
3846
3855
|
}
|
|
3856
|
+
// fallthrough
|
|
3847
3857
|
default:
|
|
3848
3858
|
return this.flowKey = !1, yield* this.parsePlainScalar();
|
|
3849
3859
|
}
|
|
@@ -3916,6 +3926,7 @@ class Ts {
|
|
|
3916
3926
|
`)
|
|
3917
3927
|
break;
|
|
3918
3928
|
}
|
|
3929
|
+
// fallthrough
|
|
3919
3930
|
default:
|
|
3920
3931
|
break e;
|
|
3921
3932
|
}
|
|
@@ -4002,7 +4013,9 @@ class Ts {
|
|
|
4002
4013
|
case "&":
|
|
4003
4014
|
return (yield* this.pushUntil(ot)) + (yield* this.pushSpaces(!0)) + (yield* this.pushIndicators());
|
|
4004
4015
|
case "-":
|
|
4016
|
+
// this is an error
|
|
4005
4017
|
case "?":
|
|
4018
|
+
// this is an error outside flow collections
|
|
4006
4019
|
case ":": {
|
|
4007
4020
|
const e = this.flowLevel > 0, t = this.charAt(1);
|
|
4008
4021
|
if (D(t) || e && _e.has(t))
|
|
@@ -4107,6 +4120,7 @@ function Ce(s) {
|
|
|
4107
4120
|
}
|
|
4108
4121
|
case "block-seq":
|
|
4109
4122
|
return s.items[s.items.length - 1].start;
|
|
4123
|
+
/* istanbul ignore next should not happen */
|
|
4110
4124
|
default:
|
|
4111
4125
|
return [];
|
|
4112
4126
|
}
|
|
@@ -4283,6 +4297,7 @@ class Tt {
|
|
|
4283
4297
|
!i || i.value ? n.items.push({ start: [], key: t, sep: [] }) : i.sep ? i.value = t : Object.assign(i, { key: t, sep: [] });
|
|
4284
4298
|
return;
|
|
4285
4299
|
}
|
|
4300
|
+
/* istanbul ignore next should not happen */
|
|
4286
4301
|
default:
|
|
4287
4302
|
yield* this.pop(), yield* this.pop(t);
|
|
4288
4303
|
}
|
|
@@ -4377,6 +4392,7 @@ class Tt {
|
|
|
4377
4392
|
}
|
|
4378
4393
|
yield* this.pop();
|
|
4379
4394
|
break;
|
|
4395
|
+
/* istanbul ignore next should not happen */
|
|
4380
4396
|
default:
|
|
4381
4397
|
yield* this.pop(), yield* this.step();
|
|
4382
4398
|
}
|
|
@@ -4697,6 +4713,7 @@ class Tt {
|
|
|
4697
4713
|
break;
|
|
4698
4714
|
case "newline":
|
|
4699
4715
|
this.onKeyLine = !1;
|
|
4716
|
+
// fallthrough
|
|
4700
4717
|
case "space":
|
|
4701
4718
|
case "comment":
|
|
4702
4719
|
default:
|
|
@@ -4727,7 +4744,7 @@ function Cs(s, e = {}) {
|
|
|
4727
4744
|
}
|
|
4728
4745
|
return n && t && (o.errors.forEach(De(s, t)), o.warnings.forEach(De(s, t))), o;
|
|
4729
4746
|
}
|
|
4730
|
-
function
|
|
4747
|
+
function Fn(s, e, t) {
|
|
4731
4748
|
let n;
|
|
4732
4749
|
typeof e == "function" ? n = e : t === void 0 && e && typeof e == "object" && (t = e);
|
|
4733
4750
|
const i = Cs(s, t);
|
|
@@ -4740,7 +4757,7 @@ function Rn(s, e, t) {
|
|
|
4740
4757
|
}
|
|
4741
4758
|
return i.toJS(Object.assign({ reviver: n }, t));
|
|
4742
4759
|
}
|
|
4743
|
-
function
|
|
4760
|
+
function Rn(s, e, t) {
|
|
4744
4761
|
let n = null;
|
|
4745
4762
|
if (typeof e == "function" || Array.isArray(e) ? n = e : t === void 0 && e && (t = e), typeof t == "string" && (t = t.length), typeof t == "number") {
|
|
4746
4763
|
const i = Math.round(t);
|
|
@@ -4753,17 +4770,17 @@ function Un(s, e, t) {
|
|
|
4753
4770
|
}
|
|
4754
4771
|
return ee(s) && !n ? s.toString(t) : new ge(s, n, t).toString(t);
|
|
4755
4772
|
}
|
|
4756
|
-
const
|
|
4773
|
+
const Un = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4757
4774
|
__proto__: null,
|
|
4758
|
-
Alias:
|
|
4775
|
+
Alias: Re,
|
|
4759
4776
|
CST: Pn,
|
|
4760
4777
|
Composer: It,
|
|
4761
4778
|
Document: ge,
|
|
4762
4779
|
Lexer: Ts,
|
|
4763
4780
|
LineCounter: Ls,
|
|
4764
|
-
Pair:
|
|
4781
|
+
Pair: v,
|
|
4765
4782
|
Parser: Tt,
|
|
4766
|
-
Scalar:
|
|
4783
|
+
Scalar: A,
|
|
4767
4784
|
Schema: Xe,
|
|
4768
4785
|
YAMLError: At,
|
|
4769
4786
|
YAMLMap: K,
|
|
@@ -4775,46 +4792,46 @@ const Fn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
4775
4792
|
isDocument: ee,
|
|
4776
4793
|
isMap: de,
|
|
4777
4794
|
isNode: $,
|
|
4778
|
-
isPair:
|
|
4795
|
+
isPair: T,
|
|
4779
4796
|
isScalar: E,
|
|
4780
4797
|
isSeq: pe,
|
|
4781
|
-
parse:
|
|
4798
|
+
parse: Fn,
|
|
4782
4799
|
parseAllDocuments: qn,
|
|
4783
4800
|
parseDocument: Cs,
|
|
4784
|
-
stringify:
|
|
4801
|
+
stringify: Rn,
|
|
4785
4802
|
visit: G,
|
|
4786
|
-
visitAsync:
|
|
4803
|
+
visitAsync: Fe
|
|
4787
4804
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4788
4805
|
export {
|
|
4789
|
-
|
|
4806
|
+
Re as Alias,
|
|
4790
4807
|
Pn as CST,
|
|
4791
4808
|
It as Composer,
|
|
4792
4809
|
ge as Document,
|
|
4793
4810
|
Ts as Lexer,
|
|
4794
4811
|
Ls as LineCounter,
|
|
4795
|
-
|
|
4812
|
+
v as Pair,
|
|
4796
4813
|
Tt as Parser,
|
|
4797
|
-
|
|
4814
|
+
A as Scalar,
|
|
4798
4815
|
Xe as Schema,
|
|
4799
4816
|
At as YAMLError,
|
|
4800
4817
|
K as YAMLMap,
|
|
4801
4818
|
z as YAMLParseError,
|
|
4802
4819
|
Q as YAMLSeq,
|
|
4803
4820
|
ys as YAMLWarning,
|
|
4804
|
-
|
|
4821
|
+
Un as default,
|
|
4805
4822
|
x as isAlias,
|
|
4806
4823
|
L as isCollection,
|
|
4807
4824
|
ee as isDocument,
|
|
4808
4825
|
de as isMap,
|
|
4809
4826
|
$ as isNode,
|
|
4810
|
-
|
|
4827
|
+
T as isPair,
|
|
4811
4828
|
E as isScalar,
|
|
4812
4829
|
pe as isSeq,
|
|
4813
|
-
|
|
4830
|
+
Fn as parse,
|
|
4814
4831
|
qn as parseAllDocuments,
|
|
4815
4832
|
Cs as parseDocument,
|
|
4816
|
-
|
|
4833
|
+
Rn as stringify,
|
|
4817
4834
|
G as visit,
|
|
4818
|
-
|
|
4835
|
+
Fe as visitAsync
|
|
4819
4836
|
};
|
|
4820
|
-
//# sourceMappingURL=index-
|
|
4837
|
+
//# sourceMappingURL=index-Dl3Yl0yb.js.map
|