zudoku 0.0.0-e09234c → 0.0.0-e097cbb
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 +121 -0
- package/cli.js +3 -0
- package/dist/app/ZuploBuildConfig.d.ts +155 -0
- package/dist/app/ZuploBuildConfig.js +29 -0
- package/dist/app/ZuploBuildConfig.js.map +1 -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 -1
- package/dist/app/entry.client.js.map +1 -1
- package/dist/app/entry.server.d.ts +9 -6
- package/dist/app/entry.server.js +18 -14
- package/dist/app/entry.server.js.map +1 -1
- package/dist/app/env.d.ts +33 -0
- package/dist/app/env.js +29 -0
- package/dist/app/env.js.map +1 -0
- package/dist/app/main.d.ts +3 -3
- package/dist/app/main.js +33 -17
- 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 +9 -1
- package/dist/cli/build/handler.js.map +1 -1
- package/dist/cli/cli.js +18 -5
- 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 +5 -0
- 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 +1 -0
- 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/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 +15 -12
- package/dist/cli/dev/handler.js.map +1 -1
- 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 +20 -16
- package/dist/config/loader.d.ts +6 -0
- package/dist/config/loader.js +65 -0
- package/dist/config/loader.js.map +1 -0
- package/dist/config/validators/BuildSchema.d.ts +60 -0
- package/dist/config/validators/BuildSchema.js +31 -0
- package/dist/config/validators/BuildSchema.js.map +1 -0
- package/dist/config/validators/InputSidebarSchema.d.ts +50 -34
- 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 +73 -32
- package/dist/config/validators/SidebarSchema.js.map +1 -1
- package/dist/config/validators/common.d.ts +7676 -0
- package/dist/config/validators/common.js +402 -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 +1869 -540
- package/dist/config/validators/validate.js +9 -213
- package/dist/config/validators/validate.js.map +1 -1
- package/dist/index.d.ts +4 -3
- 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 +21 -31
- package/dist/lib/authentication/components/CallbackHandler.js.map +1 -1
- package/dist/lib/authentication/components/SignIn.d.ts +1 -1
- package/dist/lib/authentication/components/SignIn.js +5 -2
- 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/components/SignUp.d.ts +1 -1
- package/dist/lib/authentication/components/SignUp.js +4 -1
- package/dist/lib/authentication/components/SignUp.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 +15 -5
- package/dist/lib/authentication/providers/openid.js +62 -46
- 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 +5 -3
- package/dist/lib/components/Bootstrap.js +13 -6
- package/dist/lib/components/Bootstrap.js.map +1 -1
- package/dist/lib/components/BuildCheck.d.ts +4 -0
- package/dist/lib/components/BuildCheck.js +38 -0
- package/dist/lib/components/BuildCheck.js.map +1 -0
- 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/Footer.d.ts +1 -0
- package/dist/lib/components/Footer.js +32 -0
- package/dist/lib/components/Footer.js.map +1 -0
- package/dist/lib/components/Header.js +22 -15
- 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 +9 -20
- 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 +12 -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 +11 -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 +9 -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 +6 -0
- package/dist/lib/components/TopNavigation.js +45 -17
- 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} +22 -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/BypassProtectedRoutesContext.d.ts +1 -0
- package/dist/lib/components/context/BypassProtectedRoutesContext.js +3 -0
- package/dist/lib/components/context/BypassProtectedRoutesContext.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 +29 -23
- package/dist/lib/components/context/ViewportAnchorContext.js.map +1 -1
- package/dist/lib/components/context/ZudokuContext.d.ts +8 -7
- package/dist/lib/components/context/ZudokuContext.js +28 -20
- 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 +58 -17
- package/dist/lib/components/index.js +27 -6
- package/dist/lib/components/index.js.map +1 -1
- package/dist/lib/components/navigation/PoweredByZudoku.d.ts +3 -0
- package/dist/lib/components/navigation/PoweredByZudoku.js +7 -0
- package/dist/lib/components/navigation/PoweredByZudoku.js.map +1 -0
- package/dist/lib/components/navigation/Sidebar.d.ts +5 -1
- package/dist/lib/components/navigation/Sidebar.js +3 -7
- 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 +26 -21
- 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 -17
- package/dist/lib/components/navigation/SidebarItem.js.map +1 -1
- package/dist/lib/components/navigation/SidebarWrapper.d.ts +7 -6
- package/dist/lib/components/navigation/SidebarWrapper.js +18 -3
- 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/ZudokuLogo.d.ts +6 -0
- package/dist/lib/components/navigation/ZudokuLogo.js +5 -0
- package/dist/lib/components/navigation/ZudokuLogo.js.map +1 -0
- package/dist/lib/components/navigation/ZuploLogo.d.ts +3 -0
- package/dist/lib/components/navigation/ZuploLogo.js +4 -0
- package/dist/lib/components/navigation/ZuploLogo.js.map +1 -0
- package/dist/lib/components/navigation/utils.js +3 -3
- package/dist/lib/components/navigation/utils.js.map +1 -1
- package/dist/lib/core/RouteGuard.d.ts +2 -0
- package/dist/lib/core/RouteGuard.js +52 -0
- package/dist/lib/core/RouteGuard.js.map +1 -0
- package/dist/lib/core/{DevPortalContext.d.ts → ZudokuContext.d.ts} +39 -15
- package/dist/lib/core/ZudokuContext.js +69 -0
- package/dist/lib/core/ZudokuContext.js.map +1 -0
- package/dist/lib/core/plugins.d.ts +31 -17
- package/dist/lib/core/plugins.js +3 -0
- package/dist/lib/core/plugins.js.map +1 -1
- package/dist/lib/errors/ErrorAlert.d.ts +1 -1
- package/dist/lib/errors/ErrorAlert.js +13 -3
- 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 +2 -23
- 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 +22 -22
- 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 +5 -3
- package/dist/lib/plugins/markdown/index.js +1 -1
- package/dist/lib/plugins/markdown/index.js.map +1 -1
- package/dist/lib/plugins/markdown/resolver.d.ts +0 -6
- package/dist/lib/plugins/markdown/resolver.js +0 -29
- package/dist/lib/plugins/markdown/resolver.js.map +1 -1
- 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 +107 -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 +43 -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 +19 -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/ConstValue.d.ts +5 -0
- package/dist/lib/plugins/openapi/components/ConstValue.js +6 -0
- package/dist/lib/plugins/openapi/components/ConstValue.js.map +1 -0
- package/dist/lib/plugins/openapi/components/EnumValues.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 +133 -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.js +56 -0
- package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.test.js.map +1 -0
- package/dist/lib/plugins/openapi/processors/removeExtensions.d.ts +8 -0
- package/dist/lib/plugins/openapi/processors/removeExtensions.js +16 -0
- package/dist/lib/plugins/openapi/processors/removeExtensions.js.map +1 -0
- package/dist/lib/plugins/openapi/processors/removeExtensions.test.d.ts +1 -0
- package/dist/lib/plugins/openapi/processors/removeExtensions.test.js +194 -0
- package/dist/lib/plugins/openapi/processors/removeExtensions.test.js.map +1 -0
- package/dist/lib/plugins/openapi/processors/removeParameters.d.ts +12 -0
- package/dist/lib/plugins/openapi/processors/removeParameters.js +66 -0
- package/dist/lib/plugins/openapi/processors/removeParameters.js.map +1 -0
- package/dist/lib/plugins/openapi/processors/removeParameters.test.d.ts +1 -0
- package/dist/lib/plugins/openapi/processors/removeParameters.test.js +159 -0
- package/dist/lib/plugins/openapi/processors/removeParameters.test.js.map +1 -0
- package/dist/lib/plugins/openapi/processors/removePaths.d.ts +13 -0
- package/dist/lib/plugins/openapi/processors/removePaths.js +33 -0
- package/dist/lib/plugins/openapi/processors/removePaths.js.map +1 -0
- package/dist/lib/plugins/openapi/processors/removePaths.test.d.ts +1 -0
- package/dist/lib/plugins/openapi/processors/removePaths.test.js +144 -0
- package/dist/lib/plugins/openapi/processors/removePaths.test.js.map +1 -0
- package/dist/lib/plugins/openapi/processors/traverse.d.ts +1 -0
- package/dist/lib/plugins/openapi/processors/traverse.js +2 -0
- package/dist/lib/plugins/openapi/processors/traverse.js.map +1 -0
- package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.d.ts +1 -2
- package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.js +2 -2
- package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.js.map +1 -1
- package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupConnector.d.ts +2 -1
- package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupConnector.js +2 -2
- package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupConnector.js.map +1 -1
- package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupItem.d.ts +0 -1
- package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupItem.js +1 -1
- package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupItem.js.map +1 -1
- package/dist/lib/plugins/openapi/schema/SchemaExampleAndDefault.d.ts +4 -0
- package/dist/lib/plugins/openapi/schema/SchemaExampleAndDefault.js +12 -0
- package/dist/lib/plugins/openapi/schema/SchemaExampleAndDefault.js.map +1 -0
- package/dist/lib/plugins/openapi/schema/{SchemaComponents.d.ts → SchemaPropertyItem.d.ts} +2 -4
- package/dist/lib/plugins/openapi/schema/SchemaPropertyItem.js +45 -0
- package/dist/lib/plugins/openapi/schema/SchemaPropertyItem.js.map +1 -0
- package/dist/lib/plugins/openapi/schema/SchemaView.d.ts +1 -2
- package/dist/lib/plugins/openapi/schema/SchemaView.js +38 -48
- package/dist/lib/plugins/openapi/schema/SchemaView.js.map +1 -1
- package/dist/lib/plugins/openapi/schema/utils.d.ts +3 -0
- package/dist/lib/plugins/openapi/schema/utils.js +8 -1
- 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 +73 -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 +87 -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 +80 -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 +32 -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 +6 -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 +24 -21
- package/dist/lib/util/MdxComponents.js +10 -7
- package/dist/lib/util/MdxComponents.js.map +1 -1
- package/dist/lib/util/createVariantComponent.d.ts +2 -2
- package/dist/lib/util/detectOS.d.ts +1 -0
- package/dist/lib/util/detectOS.js +11 -0
- package/dist/lib/util/detectOS.js.map +1 -0
- package/dist/lib/util/ensureArray.d.ts +1 -0
- package/dist/lib/util/ensureArray.js +2 -0
- package/dist/lib/util/ensureArray.js.map +1 -0
- package/dist/lib/util/invariant.d.ts +9 -0
- package/dist/lib/util/invariant.js +7 -3
- package/dist/lib/util/invariant.js.map +1 -1
- 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/SchemaManager.d.ts +36 -0
- package/dist/vite/api/SchemaManager.js +120 -0
- package/dist/vite/api/SchemaManager.js.map +1 -0
- package/dist/vite/api/SchemaManager.test.d.ts +1 -0
- package/dist/vite/api/SchemaManager.test.js +106 -0
- package/dist/vite/api/SchemaManager.test.js.map +1 -0
- package/dist/vite/api/schema-codegen.d.ts +12 -0
- package/dist/vite/api/schema-codegen.js +85 -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 +43 -14
- package/dist/vite/build.js.map +1 -1
- package/dist/vite/config.d.ts +7 -14
- package/dist/vite/config.js +125 -112
- 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/dev-server.d.ts +5 -2
- package/dist/vite/dev-server.js +66 -16
- 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 +145 -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 +13 -8
- 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 +23 -6
- 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 +3 -0
- package/dist/vite/plugin-search.js +30 -0
- package/dist/vite/plugin-search.js.map +1 -0
- package/dist/vite/plugin-sidebar.d.ts +5 -3
- package/dist/vite/plugin-sidebar.js +24 -11
- 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 +10 -6
- package/dist/vite/plugin.js.map +1 -1
- package/dist/vite/prerender/FileWritingResponse.d.ts +25 -0
- package/dist/vite/prerender/FileWritingResponse.js +51 -0
- package/dist/vite/prerender/FileWritingResponse.js.map +1 -0
- package/dist/vite/prerender/InMemoryResponse.d.ts +16 -0
- package/dist/vite/prerender/InMemoryResponse.js +32 -0
- package/dist/vite/prerender/InMemoryResponse.js.map +1 -0
- package/dist/vite/prerender/PrerenderResponse.d.ts +10 -0
- package/dist/vite/prerender/PrerenderResponse.js +2 -0
- package/dist/vite/prerender/PrerenderResponse.js.map +1 -0
- package/dist/vite/prerender/prerender.d.ts +15 -0
- package/dist/vite/prerender/prerender.js +109 -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 +59 -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 +185 -0
- package/dist/zuplo/enrich-with-zuplo.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 +6 -0
- package/dist/zuplo/with-zuplo.js +10 -0
- package/dist/zuplo/with-zuplo.js.map +1 -0
- package/lib/AuthenticationPlugin-ByDF051g.js +99 -0
- package/lib/AuthenticationPlugin-ByDF051g.js.map +1 -0
- package/lib/Button-BBNrKpQd.js +49 -0
- package/lib/Button-BBNrKpQd.js.map +1 -0
- package/lib/Callout-D3Ja4OPX.js +230 -0
- package/lib/Callout-D3Ja4OPX.js.map +1 -0
- package/lib/Card-BtheiD7j.js +61 -0
- package/lib/Card-BtheiD7j.js.map +1 -0
- package/lib/CategoryHeading-D06WK_Wo.js +10 -0
- package/lib/{CategoryHeading-B7TlPvuN.js.map → CategoryHeading-D06WK_Wo.js.map} +1 -1
- package/lib/ClientOnly-E7hGysn1.js +11 -0
- package/lib/ClientOnly-E7hGysn1.js.map +1 -0
- package/lib/Dialog-ByYz4ABw.js +98 -0
- package/lib/Dialog-ByYz4ABw.js.map +1 -0
- package/lib/Drawer-CEwbkLDb.js +1133 -0
- package/lib/Drawer-CEwbkLDb.js.map +1 -0
- package/lib/Markdown-mFpg_n9p.js +17125 -0
- package/lib/Markdown-mFpg_n9p.js.map +1 -0
- package/lib/MdxPage-Cm7atiW3.js +85 -0
- package/lib/MdxPage-Cm7atiW3.js.map +1 -0
- package/lib/OasProvider-DBJ3ZUTp.js +34 -0
- package/lib/OasProvider-DBJ3ZUTp.js.map +1 -0
- package/lib/OperationList-zUAJl5qO.js +5125 -0
- package/lib/OperationList-zUAJl5qO.js.map +1 -0
- package/lib/Pagination-DLPL5z77.js +48 -0
- package/lib/Pagination-DLPL5z77.js.map +1 -0
- package/lib/RouteGuard-DRtEu9nh.js +744 -0
- package/lib/RouteGuard-DRtEu9nh.js.map +1 -0
- package/lib/SchemaList-YsfrEmpL.js +148 -0
- package/lib/SchemaList-YsfrEmpL.js.map +1 -0
- package/lib/SchemaView-C3JbhWHn.js +367 -0
- package/lib/SchemaView-C3JbhWHn.js.map +1 -0
- package/lib/Select-CT64Ou40.js +223 -0
- package/lib/Select-CT64Ou40.js.map +1 -0
- package/lib/SlotletProvider-CS_nO-XT.js +340 -0
- package/lib/SlotletProvider-CS_nO-XT.js.map +1 -0
- package/lib/{Spinner-3cQDBVGr.js → Spinner-mNLZ6awP.js} +2 -2
- package/lib/{Spinner-3cQDBVGr.js.map → Spinner-mNLZ6awP.js.map} +1 -1
- package/lib/SyntaxHighlight-CxhyyMkF.js +2890 -0
- package/lib/SyntaxHighlight-CxhyyMkF.js.map +1 -0
- package/lib/Toc-D_tV8_Ri.js +92 -0
- package/lib/Toc-D_tV8_Ri.js.map +1 -0
- package/lib/_commonjsHelpers-B4e78b8K.js +29 -0
- package/lib/_commonjsHelpers-B4e78b8K.js.map +1 -0
- package/lib/chunk-BAXFHI7N-BVBOl9s0.js +1826 -0
- package/lib/chunk-BAXFHI7N-BVBOl9s0.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-Lrf2Y9bR.js +22 -0
- package/lib/context-Lrf2Y9bR.js.map +1 -0
- package/lib/createServer-IW7v5hWm.js +12318 -0
- package/lib/createServer-IW7v5hWm.js.map +1 -0
- package/lib/hook-CldJlP5c.js +1478 -0
- package/lib/hook-CldJlP5c.js.map +1 -0
- package/lib/index-BBgdF7h4.js +2184 -0
- package/lib/index-BBgdF7h4.js.map +1 -0
- package/lib/index-Bn6Lc9tq.js +9 -0
- package/lib/{index-DJqnphbT.js.map → index-Bn6Lc9tq.js.map} +1 -1
- package/lib/index-CPNSgwSb.js +36 -0
- package/lib/index-CPNSgwSb.js.map +1 -0
- package/lib/index-CuBIgTKC.js +316 -0
- package/lib/index-CuBIgTKC.js.map +1 -0
- package/lib/{index-CkwDvuPt.js → index-DcHeSvkE.js} +348 -318
- package/lib/index-DcHeSvkE.js.map +1 -0
- package/lib/index-DnQftvP4.js +5031 -0
- package/lib/index-DnQftvP4.js.map +1 -0
- package/lib/index-DwT-v3zK.js +86 -0
- package/lib/index-DwT-v3zK.js.map +1 -0
- package/lib/{index-D06ATMgg.js → index-LNp6rxyU.js} +2 -2
- package/lib/{index-D06ATMgg.js.map → index-LNp6rxyU.js.map} +1 -1
- package/lib/index.esm-D2ZUREQN.js +1216 -0
- package/lib/index.esm-D2ZUREQN.js.map +1 -0
- package/lib/invariant-Caa8-XvF.js +26 -0
- package/lib/invariant-Caa8-XvF.js.map +1 -0
- package/lib/jsx-runtime-C5mzlN2N.js +285 -0
- package/lib/jsx-runtime-C5mzlN2N.js.map +1 -0
- package/lib/mutation-DBQh7AOZ.js +211 -0
- package/lib/mutation-DBQh7AOZ.js.map +1 -0
- package/lib/objectEntries-yMIkr2mI.js +5 -0
- package/lib/objectEntries-yMIkr2mI.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-C43x1RY2.js +63 -0
- package/lib/{prism-csharp.min-Yizuc34Y.js.map → prism-csharp.min-C43x1RY2.js.map} +1 -1
- package/lib/prism-java.min-CQzr40NQ.js +35 -0
- package/lib/{prism-java.min-d5iT_mOd.js.map → prism-java.min-CQzr40NQ.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-L9OdQ6tU.js +38 -0
- package/lib/{prism-ruby.min-C7LwcKyz.js.map → prism-ruby.min-L9OdQ6tU.js.map} +1 -1
- package/lib/prism-typescript.min-qTySPvCh.js +34 -0
- package/lib/{prism-typescript.min-oSVeWCAd.js.map → prism-typescript.min-qTySPvCh.js.map} +1 -1
- package/lib/processors/removeExtensions.js +11 -0
- package/lib/processors/removeExtensions.js.map +1 -0
- package/lib/processors/removeParameters.js +48 -0
- package/lib/processors/removeParameters.js.map +1 -0
- package/lib/processors/removePaths.js +28 -0
- package/lib/processors/removePaths.js.map +1 -0
- package/lib/processors/traverse.js +15 -0
- package/lib/processors/traverse.js.map +1 -0
- 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 +96 -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-DbIZXspi.js +9 -0
- package/lib/useExposedProps-DbIZXspi.js.map +1 -0
- package/lib/useLatest-hmRS46UF.js +11 -0
- package/lib/useLatest-hmRS46UF.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 +643 -679
- package/lib/zudoku.auth-openid.js.map +1 -1
- package/lib/zudoku.components.js +33 -3450
- 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 +117 -0
- package/lib/zudoku.plugin-api-catalog.js.map +1 -0
- package/lib/zudoku.plugin-api-keys.js +104 -108
- 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 +27 -47
- 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 -28
- package/lib/zudoku.plugin-search-inkeep.js.map +1 -1
- package/lib/zudoku.plugin-search-pagefind.js +233 -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 +157 -80
- package/src/app/ZuploBuildConfig.ts +33 -0
- package/src/app/demo-cdn.html +31 -31
- package/src/app/demo.tsx +1 -5
- package/src/app/entry.client.tsx +26 -1
- package/src/app/entry.server.tsx +80 -63
- package/src/app/env.ts +35 -0
- package/src/app/main.css +101 -40
- package/src/app/main.tsx +61 -19
- package/src/app/sentry.ts +24 -0
- package/src/app/standalone.tsx +1 -5
- 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 +20 -51
- package/src/lib/authentication/components/SignIn.tsx +35 -2
- package/src/lib/authentication/components/SignOut.tsx +3 -2
- package/src/lib/authentication/components/SignUp.tsx +35 -1
- 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 +86 -58
- 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 +43 -16
- package/src/lib/components/BuildCheck.tsx +75 -0
- package/src/lib/components/ClientOnly.tsx +6 -3
- package/src/lib/components/DeveloperHint.tsx +6 -1
- package/src/lib/components/Footer.tsx +139 -0
- package/src/lib/components/Header.tsx +96 -53
- package/src/lib/components/Heading.tsx +13 -13
- package/src/lib/components/InlineCode.tsx +13 -16
- package/src/lib/components/Layout.tsx +33 -54
- package/src/lib/components/Main.tsx +50 -0
- package/src/lib/components/Markdown.tsx +15 -16
- package/src/lib/components/MobileTopNavigation.tsx +40 -30
- package/src/lib/components/NotFoundPage.tsx +1 -1
- package/src/lib/components/Pagination.tsx +50 -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 +17 -6
- 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 +84 -36
- package/src/lib/components/Zudoku.tsx +119 -0
- package/src/lib/components/cache.ts +23 -0
- package/src/lib/components/context/BypassProtectedRoutesContext.ts +3 -0
- package/src/lib/components/context/RouterEventsEmitter.tsx +19 -0
- package/src/lib/components/context/ViewportAnchorContext.tsx +34 -36
- package/src/lib/components/context/ZudokuContext.ts +39 -22
- package/src/lib/components/context/ZudokuProvider.tsx +2 -2
- package/src/lib/components/index.ts +33 -6
- package/src/lib/components/navigation/PoweredByZudoku.tsx +28 -0
- package/src/lib/components/navigation/Sidebar.tsx +38 -29
- package/src/lib/components/navigation/SidebarBadge.tsx +17 -12
- package/src/lib/components/navigation/SidebarCategory.tsx +59 -56
- package/src/lib/components/navigation/SidebarItem.tsx +30 -39
- package/src/lib/components/navigation/SidebarWrapper.tsx +42 -22
- package/src/lib/{plugins/markdown → components/navigation}/Toc.tsx +5 -14
- package/src/lib/components/navigation/ZudokuLogo.tsx +25 -0
- package/src/lib/components/navigation/ZuploLogo.tsx +14 -0
- package/src/lib/components/navigation/utils.ts +3 -3
- package/src/lib/core/RouteGuard.tsx +96 -0
- package/src/lib/core/{DevPortalContext.ts → ZudokuContext.ts} +76 -32
- package/src/lib/core/plugins.ts +44 -22
- package/src/lib/errors/ErrorAlert.tsx +36 -15
- 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 +9 -30
- package/src/lib/oas/parser/upgrade/index.ts +25 -30
- package/src/lib/plugins/api-catalog/Catalog.tsx +73 -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 +43 -41
- package/src/lib/plugins/markdown/index.tsx +7 -4
- package/src/lib/plugins/markdown/resolver.ts +2 -37
- 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 +240 -70
- package/src/lib/plugins/openapi/OperationListItem.tsx +136 -88
- package/src/lib/plugins/openapi/ParamInfos.tsx +88 -0
- package/src/lib/plugins/openapi/ParameterList.tsx +4 -0
- package/src/lib/plugins/openapi/ParameterListItem.tsx +78 -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/ConstValue.tsx +24 -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 -245
- 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/processors/removeExtensions.test.ts +222 -0
- package/src/lib/plugins/openapi/processors/removeExtensions.ts +29 -0
- package/src/lib/plugins/openapi/processors/removeParameters.test.ts +182 -0
- package/src/lib/plugins/openapi/processors/removeParameters.ts +103 -0
- package/src/lib/plugins/openapi/processors/removePaths.test.ts +167 -0
- package/src/lib/plugins/openapi/processors/removePaths.ts +57 -0
- package/src/lib/plugins/openapi/processors/traverse.ts +1 -0
- package/src/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.tsx +1 -8
- package/src/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupConnector.tsx +3 -0
- package/src/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupItem.tsx +6 -3
- package/src/lib/plugins/openapi/schema/SchemaExampleAndDefault.tsx +36 -0
- package/src/lib/plugins/openapi/schema/SchemaPropertyItem.tsx +153 -0
- package/src/lib/plugins/openapi/schema/SchemaView.tsx +87 -135
- package/src/lib/plugins/openapi/schema/utils.ts +16 -1
- 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 +88 -43
- package/src/lib/plugins/openapi/util/getRoutes.tsx +134 -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 +164 -0
- package/src/lib/plugins/search-pagefind/ResultList.tsx +105 -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 +29 -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 +12 -12
- package/src/lib/util/createVariantComponent.tsx +2 -2
- package/src/lib/util/detectOS.ts +9 -0
- package/src/lib/util/ensureArray.ts +3 -0
- package/src/lib/util/invariant.ts +15 -3
- 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/client.d.ts +0 -1
- 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/PluginSystem.js +0 -2
- package/dist/lib/components/context/PluginSystem.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/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.d.ts +0 -21
- package/dist/vite/prerender.js +0 -88
- package/dist/vite/prerender.js.map +0 -1
- package/lib/AnchorLink-DNsmBTRp.js +0 -705
- package/lib/AnchorLink-DNsmBTRp.js.map +0 -1
- package/lib/AuthenticationPlugin-CKyNe953.js +0 -55
- package/lib/AuthenticationPlugin-CKyNe953.js.map +0 -1
- package/lib/CategoryHeading-B7TlPvuN.js +0 -10
- package/lib/DeveloperHint-B_QCCafl.js +0 -16
- package/lib/DeveloperHint-B_QCCafl.js.map +0 -1
- package/lib/ErrorPage-DqqAV1dr.js +0 -16
- package/lib/ErrorPage-DqqAV1dr.js.map +0 -1
- package/lib/InkeepCustomTrigger-CE5-K5ex.js +0 -6
- package/lib/InkeepCustomTrigger-CE5-K5ex.js.map +0 -1
- package/lib/Input-RKErK8rC.js +0 -2229
- package/lib/Input-RKErK8rC.js.map +0 -1
- package/lib/Markdown-Y__eLG0x.js +0 -20441
- package/lib/Markdown-Y__eLG0x.js.map +0 -1
- package/lib/MdxPage-Df0B_t9t.js +0 -173
- package/lib/MdxPage-Df0B_t9t.js.map +0 -1
- package/lib/OperationList-yuVHI6ul.js +0 -601
- package/lib/OperationList-yuVHI6ul.js.map +0 -1
- package/lib/Route-BaAjY0N-.js +0 -13
- package/lib/Route-BaAjY0N-.js.map +0 -1
- package/lib/SidebarBadge-DGTOim55.js +0 -503
- package/lib/SidebarBadge-DGTOim55.js.map +0 -1
- package/lib/SlotletProvider-DmqWiVFt.js +0 -239
- package/lib/SlotletProvider-DmqWiVFt.js.map +0 -1
- package/lib/ZudokuContext-D-TANjzJ.js +0 -1222
- package/lib/ZudokuContext-D-TANjzJ.js.map +0 -1
- package/lib/__vite-browser-external-BYRIRx8p.js +0 -9
- package/lib/__vite-browser-external-BYRIRx8p.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-DaFlmuyf.js +0 -18111
- package/lib/assets/worker-DaFlmuyf.js.map +0 -1
- package/lib/index-CkwDvuPt.js.map +0 -1
- package/lib/index-D7tBXCIO.js +0 -124
- package/lib/index-D7tBXCIO.js.map +0 -1
- package/lib/index-DFN92YJN.js +0 -1782
- package/lib/index-DFN92YJN.js.map +0 -1
- package/lib/index-DG-VRw9t.js +0 -2867
- package/lib/index-DG-VRw9t.js.map +0 -1
- package/lib/index-DJqnphbT.js +0 -35
- package/lib/index-vPSN3k3e.js +0 -5952
- package/lib/index-vPSN3k3e.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-BWwxa-Hg.js +0 -9
- package/lib/useExposedProps-BWwxa-Hg.js.map +0 -1
- package/lib/zudoku.openapi-worker.js +0 -16255
- 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/PluginSystem.ts +0 -0
- package/src/lib/components/context/ThemeContext.tsx +0 -8
- package/src/lib/components/context/ThemeProvider.tsx +0 -27
- 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/schema/SchemaComponents.tsx +0 -126
- 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/{components/context/PluginSystem.d.ts → hooks/useEvent.test.d.ts} +0 -0
- /package/dist/lib/plugins/openapi/{client/worker.d.ts → playground/result-panel/convertToTypes.test.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,8 +1,8 @@
|
|
|
1
|
-
const dt = Symbol.for("yaml.alias"), lt = Symbol.for("yaml.document"),
|
|
1
|
+
const dt = Symbol.for("yaml.alias"), lt = Symbol.for("yaml.document"), G = 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] === G, 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]) {
|
|
5
|
-
case
|
|
5
|
+
case G:
|
|
6
6
|
case he:
|
|
7
7
|
return !0;
|
|
8
8
|
}
|
|
@@ -12,24 +12,24 @@ function $(s) {
|
|
|
12
12
|
if (s && typeof s == "object")
|
|
13
13
|
switch (s[j]) {
|
|
14
14
|
case dt:
|
|
15
|
-
case
|
|
16
|
-
case
|
|
15
|
+
case G:
|
|
16
|
+
case R:
|
|
17
17
|
case he:
|
|
18
18
|
return !0;
|
|
19
19
|
}
|
|
20
20
|
return !1;
|
|
21
21
|
}
|
|
22
|
-
const
|
|
23
|
-
function
|
|
24
|
-
const t =
|
|
25
|
-
ee(s) ? ie(null, s.contents, t, Object.freeze([s])) ===
|
|
22
|
+
const vs = (s) => (E(s) || L(s)) && !!s.anchor, M = Symbol("break visit"), Ft = Symbol("skip children"), F = Symbol("remove node");
|
|
23
|
+
function Q(s, e) {
|
|
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
|
-
|
|
28
|
-
|
|
29
|
-
|
|
27
|
+
Q.BREAK = M;
|
|
28
|
+
Q.SKIP = Ft;
|
|
29
|
+
Q.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": {
|
|
@@ -244,7 +244,7 @@ class v {
|
|
|
244
244
|
let i;
|
|
245
245
|
if (e && n.length > 0 && $(e.contents)) {
|
|
246
246
|
const r = {};
|
|
247
|
-
|
|
247
|
+
Q(e.contents, (o, l) => {
|
|
248
248
|
$(l) && l.tag && (r[l.tag] = !0);
|
|
249
249
|
}), i = Object.keys(r);
|
|
250
250
|
} else
|
|
@@ -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)}`;
|
|
@@ -266,7 +266,7 @@ function Jt(s) {
|
|
|
266
266
|
}
|
|
267
267
|
function Yt(s) {
|
|
268
268
|
const e = /* @__PURE__ */ new Set();
|
|
269
|
-
return
|
|
269
|
+
return Q(s, {
|
|
270
270
|
Value(t, n) {
|
|
271
271
|
n.anchor && e.add(n.anchor);
|
|
272
272
|
}
|
|
@@ -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() {
|
|
@@ -387,10 +387,10 @@ class Ue extends pt {
|
|
|
387
387
|
*/
|
|
388
388
|
resolve(e) {
|
|
389
389
|
let t;
|
|
390
|
-
return
|
|
390
|
+
return Q(e, {
|
|
391
391
|
Node: (n, i) => {
|
|
392
392
|
if (i === this)
|
|
393
|
-
return
|
|
393
|
+
return Q.BREAK;
|
|
394
394
|
i.anchor === this.source && (t = i);
|
|
395
395
|
}
|
|
396
396
|
}), t;
|
|
@@ -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,8 +478,8 @@ 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 (
|
|
482
|
-
const y = (d = (f = t.schema[
|
|
481
|
+
if (T(s)) {
|
|
482
|
+
const y = (d = (f = t.schema[G]).createNode) == null ? void 0 : d.call(f, t.schema, null, t);
|
|
483
483
|
return y.items.push(s), y;
|
|
484
484
|
}
|
|
485
485
|
(s instanceof String || s instanceof Number || s instanceof Boolean || typeof BigInt < "u" && s instanceof BigInt) && (s = s.valueOf());
|
|
@@ -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
|
-
c = s instanceof Map ? o[
|
|
500
|
+
c = s instanceof Map ? o[G] : Symbol.iterator in Object(s) ? o[he] : o[G];
|
|
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 {
|
|
@@ -1272,7 +1279,7 @@ class K extends Wt {
|
|
|
1272
1279
|
return "tag:yaml.org,2002:map";
|
|
1273
1280
|
}
|
|
1274
1281
|
constructor(e) {
|
|
1275
|
-
super(
|
|
1282
|
+
super(G, e), this.items = [];
|
|
1276
1283
|
}
|
|
1277
1284
|
/**
|
|
1278
1285
|
* A generic collection parsing method that can be extended
|
|
@@ -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: "",
|
|
@@ -1366,7 +1373,7 @@ const me = {
|
|
|
1366
1373
|
},
|
|
1367
1374
|
createNode: (s, e, t) => K.from(s, e, t)
|
|
1368
1375
|
};
|
|
1369
|
-
class
|
|
1376
|
+
class W extends Wt {
|
|
1370
1377
|
static get tagName() {
|
|
1371
1378
|
return "tag:yaml.org,2002:seq";
|
|
1372
1379
|
}
|
|
@@ -1458,12 +1465,12 @@ function Le(s) {
|
|
|
1458
1465
|
const ye = {
|
|
1459
1466
|
collection: "seq",
|
|
1460
1467
|
default: !0,
|
|
1461
|
-
nodeClass:
|
|
1468
|
+
nodeClass: W,
|
|
1462
1469
|
tag: "tag:yaml.org,2002:seq",
|
|
1463
1470
|
resolve(s, e) {
|
|
1464
1471
|
return pe(s) || e("Expected a sequence for this tag"), s;
|
|
1465
1472
|
},
|
|
1466
|
-
createNode: (s, e, t) =>
|
|
1473
|
+
createNode: (s, e, t) => W.from(s, e, t)
|
|
1467
1474
|
}, Ye = {
|
|
1468
1475
|
identify: (s) => typeof s == "string",
|
|
1469
1476
|
default: !0,
|
|
@@ -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)
|
|
@@ -1656,22 +1661,22 @@ const $e = ({ value: s }) => JSON.stringify(s), Hs = [
|
|
|
1656
1661
|
return e("This environment does not support reading binary tags; either Buffer or atob is required"), s;
|
|
1657
1662
|
},
|
|
1658
1663
|
stringify({ comment: s, type: e, value: t }, n, i, r) {
|
|
1664
|
+
if (!t)
|
|
1665
|
+
return "";
|
|
1659
1666
|
const o = t;
|
|
1660
1667
|
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") {
|
|
1668
|
+
if (typeof btoa == "function") {
|
|
1664
1669
|
let a = "";
|
|
1665
1670
|
for (let c = 0; c < o.length; ++c)
|
|
1666
1671
|
a += String.fromCharCode(o[c]);
|
|
1667
1672
|
l = btoa(a);
|
|
1668
1673
|
} else
|
|
1669
1674
|
throw new Error("This environment does not support writing binary tags; either Buffer or btoa is required");
|
|
1670
|
-
if (e || (e =
|
|
1675
|
+
if (e || (e = A.BLOCK_LITERAL), e !== A.QUOTE_DOUBLE) {
|
|
1671
1676
|
const a = Math.max(n.options.lineWidth - n.indent.length, n.options.minContentWidth), c = Math.ceil(l.length / a), p = new Array(c);
|
|
1672
1677
|
for (let f = 0, d = 0; f < c; ++f, d += a)
|
|
1673
1678
|
p[f] = l.substr(d, a);
|
|
1674
|
-
l = p.join(e ===
|
|
1679
|
+
l = p.join(e === A.BLOCK_LITERAL ? `
|
|
1675
1680
|
` : " ");
|
|
1676
1681
|
}
|
|
1677
1682
|
return Ae({ comment: s, type: e, value: l }, n, i, r);
|
|
@@ -1681,10 +1686,10 @@ function as(s, e) {
|
|
|
1681
1686
|
if (pe(s))
|
|
1682
1687
|
for (let t = 0; t < s.items.length; ++t) {
|
|
1683
1688
|
let n = s.items[t];
|
|
1684
|
-
if (!
|
|
1689
|
+
if (!T(n)) {
|
|
1685
1690
|
if (de(n)) {
|
|
1686
1691
|
n.items.length > 1 && e("Each pair must have its own sequence indicator");
|
|
1687
|
-
const i = n.items[0] || new
|
|
1692
|
+
const i = n.items[0] || new v(new A(null));
|
|
1688
1693
|
if (n.commentBefore && (i.key.commentBefore = i.key.commentBefore ? `${n.commentBefore}
|
|
1689
1694
|
${i.key.commentBefore}` : n.commentBefore), n.comment) {
|
|
1690
1695
|
const r = i.value ?? i.key;
|
|
@@ -1693,7 +1698,7 @@ ${r.comment}` : n.comment;
|
|
|
1693
1698
|
}
|
|
1694
1699
|
n = i;
|
|
1695
1700
|
}
|
|
1696
|
-
s.items[t] =
|
|
1701
|
+
s.items[t] = T(n) ? n : new v(n);
|
|
1697
1702
|
}
|
|
1698
1703
|
}
|
|
1699
1704
|
else
|
|
@@ -1701,7 +1706,7 @@ ${r.comment}` : n.comment;
|
|
|
1701
1706
|
return s;
|
|
1702
1707
|
}
|
|
1703
1708
|
function cs(s, e, t) {
|
|
1704
|
-
const { replacer: n } = t, i = new
|
|
1709
|
+
const { replacer: n } = t, i = new W(s);
|
|
1705
1710
|
i.tag = "tag:yaml.org,2002:pairs";
|
|
1706
1711
|
let r = 0;
|
|
1707
1712
|
if (e && Symbol.iterator in Object(e))
|
|
@@ -1732,7 +1737,7 @@ const wt = {
|
|
|
1732
1737
|
resolve: as,
|
|
1733
1738
|
createNode: cs
|
|
1734
1739
|
};
|
|
1735
|
-
class ae extends
|
|
1740
|
+
class ae extends W {
|
|
1736
1741
|
constructor() {
|
|
1737
1742
|
super(), this.add = K.prototype.add.bind(this), this.delete = K.prototype.delete.bind(this), this.get = K.prototype.get.bind(this), this.has = K.prototype.has.bind(this), this.set = K.prototype.set.bind(this), this.tag = ae.tag;
|
|
1738
1743
|
}
|
|
@@ -1747,7 +1752,7 @@ class ae extends Q {
|
|
|
1747
1752
|
t != null && t.onCreate && t.onCreate(n);
|
|
1748
1753
|
for (const i of this.items) {
|
|
1749
1754
|
let r, o;
|
|
1750
|
-
if (
|
|
1755
|
+
if (T(i) ? (r = P(i.key, "", t), o = P(i.value, r, t)) : r = P(i, "", t), n.has(r))
|
|
1751
1756
|
throw new Error("Ordered maps must not include duplicate keys");
|
|
1752
1757
|
n.set(r, o);
|
|
1753
1758
|
}
|
|
@@ -1781,14 +1786,14 @@ const us = {
|
|
|
1781
1786
|
default: !0,
|
|
1782
1787
|
tag: "tag:yaml.org,2002:bool",
|
|
1783
1788
|
test: /^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,
|
|
1784
|
-
resolve: () => new
|
|
1789
|
+
resolve: () => new A(!0),
|
|
1785
1790
|
stringify: fs
|
|
1786
1791
|
}, hs = {
|
|
1787
1792
|
identify: (s) => s === !1,
|
|
1788
1793
|
default: !0,
|
|
1789
1794
|
tag: "tag:yaml.org,2002:bool",
|
|
1790
1795
|
test: /^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/,
|
|
1791
|
-
resolve: () => new
|
|
1796
|
+
resolve: () => new A(!1),
|
|
1792
1797
|
stringify: fs
|
|
1793
1798
|
}, Zs = {
|
|
1794
1799
|
identify: (s) => typeof s == "number",
|
|
@@ -1814,7 +1819,7 @@ const us = {
|
|
|
1814
1819
|
tag: "tag:yaml.org,2002:float",
|
|
1815
1820
|
test: /^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,
|
|
1816
1821
|
resolve(s) {
|
|
1817
|
-
const e = new
|
|
1822
|
+
const e = new A(parseFloat(s.replace(/_/g, ""))), t = s.indexOf(".");
|
|
1818
1823
|
if (t !== -1) {
|
|
1819
1824
|
const n = s.substring(t + 1).replace(/_/g, "");
|
|
1820
1825
|
n[n.length - 1] === "0" && (e.minFractionDigits = n.length);
|
|
@@ -1889,7 +1894,7 @@ class ce extends K {
|
|
|
1889
1894
|
}
|
|
1890
1895
|
add(e) {
|
|
1891
1896
|
let t;
|
|
1892
|
-
|
|
1897
|
+
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
1898
|
}
|
|
1894
1899
|
/**
|
|
1895
1900
|
* If `keepPair` is `true`, returns the Pair matching `key`.
|
|
@@ -1897,13 +1902,13 @@ class ce extends K {
|
|
|
1897
1902
|
*/
|
|
1898
1903
|
get(e, t) {
|
|
1899
1904
|
const n = X(this.items, e);
|
|
1900
|
-
return !t &&
|
|
1905
|
+
return !t && T(n) ? E(n.key) ? n.key.value : n.key : n;
|
|
1901
1906
|
}
|
|
1902
1907
|
set(e, t) {
|
|
1903
1908
|
if (typeof t != "boolean")
|
|
1904
1909
|
throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof t}`);
|
|
1905
1910
|
const n = X(this.items, e);
|
|
1906
|
-
n && !t ? this.items.splice(this.items.indexOf(n), 1) : !n && t && this.items.push(new
|
|
1911
|
+
n && !t ? this.items.splice(this.items.indexOf(n), 1) : !n && t && this.items.push(new v(e));
|
|
1907
1912
|
}
|
|
1908
1913
|
toJSON(e, t) {
|
|
1909
1914
|
return super.toJSON(e, t, Set);
|
|
@@ -1993,7 +1998,7 @@ const ps = {
|
|
|
1993
1998
|
}
|
|
1994
1999
|
return new Date(c);
|
|
1995
2000
|
},
|
|
1996
|
-
stringify: ({ value: s }) => s.toISOString().replace(/(
|
|
2001
|
+
stringify: ({ value: s }) => (s == null ? void 0 : s.toISOString().replace(/(T00:00:00)?\.000Z$/, "")) ?? ""
|
|
1997
2002
|
}, Ct = [
|
|
1998
2003
|
me,
|
|
1999
2004
|
ye,
|
|
@@ -2016,13 +2021,13 @@ const ps = {
|
|
|
2016
2021
|
ps,
|
|
2017
2022
|
ms,
|
|
2018
2023
|
He
|
|
2019
|
-
],
|
|
2024
|
+
], vt = /* @__PURE__ */ new Map([
|
|
2020
2025
|
["core", Ws],
|
|
2021
2026
|
["failsafe", [me, ye, Ye]],
|
|
2022
2027
|
["json", zs],
|
|
2023
2028
|
["yaml11", Ct],
|
|
2024
2029
|
["yaml-1.1", Ct]
|
|
2025
|
-
]),
|
|
2030
|
+
]), Bt = {
|
|
2026
2031
|
binary: bt,
|
|
2027
2032
|
bool: yt,
|
|
2028
2033
|
float: ns,
|
|
@@ -2050,7 +2055,7 @@ const ps = {
|
|
|
2050
2055
|
"tag:yaml.org,2002:timestamp": He
|
|
2051
2056
|
};
|
|
2052
2057
|
function tt(s, e, t) {
|
|
2053
|
-
const n =
|
|
2058
|
+
const n = vt.get(e);
|
|
2054
2059
|
if (n && !s)
|
|
2055
2060
|
return t && !n.includes(V) ? n.concat(V) : n.slice();
|
|
2056
2061
|
let i = n;
|
|
@@ -2058,7 +2063,7 @@ function tt(s, e, t) {
|
|
|
2058
2063
|
if (Array.isArray(s))
|
|
2059
2064
|
i = [];
|
|
2060
2065
|
else {
|
|
2061
|
-
const r = Array.from(
|
|
2066
|
+
const r = Array.from(vt.keys()).filter((o) => o !== "yaml11").map((o) => JSON.stringify(o)).join(", ");
|
|
2062
2067
|
throw new Error(`Unknown schema "${e}"; use one of ${r} or define customTags array`);
|
|
2063
2068
|
}
|
|
2064
2069
|
if (Array.isArray(s))
|
|
@@ -2066,9 +2071,9 @@ function tt(s, e, t) {
|
|
|
2066
2071
|
i = i.concat(r);
|
|
2067
2072
|
else typeof s == "function" && (i = s(i.slice()));
|
|
2068
2073
|
return t && (i = i.concat(V)), i.reduce((r, o) => {
|
|
2069
|
-
const l = typeof o == "string" ?
|
|
2074
|
+
const l = typeof o == "string" ? Bt[o] : o;
|
|
2070
2075
|
if (!l) {
|
|
2071
|
-
const a = JSON.stringify(o), c = Object.keys(
|
|
2076
|
+
const a = JSON.stringify(o), c = Object.keys(Bt).map((p) => JSON.stringify(p)).join(", ");
|
|
2072
2077
|
throw new Error(`Unknown custom tag ${a}; use one of ${c}`);
|
|
2073
2078
|
}
|
|
2074
2079
|
return r.includes(l) || r.push(l), r;
|
|
@@ -2077,7 +2082,7 @@ function tt(s, e, t) {
|
|
|
2077
2082
|
const ln = (s, e) => s.key < e.key ? -1 : s.key > e.key ? 1 : 0;
|
|
2078
2083
|
class Xe {
|
|
2079
2084
|
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,
|
|
2085
|
+
this.compat = Array.isArray(e) ? tt(e, "compat") : e ? tt(null, e) : null, this.name = typeof r == "string" && r || "core", this.knownTags = i ? on : {}, this.tags = tt(t, this.name, n), this.toStringOptions = l ?? null, Object.defineProperty(this, G, { value: me }), Object.defineProperty(this, R, { value: Ye }), Object.defineProperty(this, he, { value: ye }), this.sortMapEntries = typeof o == "function" ? o : o === !0 ? ln : null;
|
|
2081
2086
|
}
|
|
2082
2087
|
clone() {
|
|
2083
2088
|
const e = Object.create(Xe.prototype, Object.getOwnPropertyDescriptors(this));
|
|
@@ -2097,14 +2102,14 @@ function an(s, e) {
|
|
|
2097
2102
|
if (s.commentBefore) {
|
|
2098
2103
|
t.length !== 1 && t.unshift("");
|
|
2099
2104
|
const c = r(s.commentBefore);
|
|
2100
|
-
t.unshift(
|
|
2105
|
+
t.unshift(U(c, ""));
|
|
2101
2106
|
}
|
|
2102
2107
|
let o = !1, l = null;
|
|
2103
2108
|
if (s.contents) {
|
|
2104
2109
|
if ($(s.contents)) {
|
|
2105
2110
|
if (s.contents.spaceBefore && n && t.push(""), s.contents.commentBefore) {
|
|
2106
2111
|
const f = r(s.contents.commentBefore);
|
|
2107
|
-
t.push(
|
|
2112
|
+
t.push(U(f, ""));
|
|
2108
2113
|
}
|
|
2109
2114
|
i.forceBlockIndent = !!s.comment, l = s.contents.comment;
|
|
2110
2115
|
}
|
|
@@ -2117,12 +2122,12 @@ function an(s, e) {
|
|
|
2117
2122
|
if (s.comment) {
|
|
2118
2123
|
const c = r(s.comment);
|
|
2119
2124
|
c.includes(`
|
|
2120
|
-
`) ? (t.push("..."), t.push(
|
|
2125
|
+
`) ? (t.push("..."), t.push(U(c, ""))) : t.push(`... ${c}`);
|
|
2121
2126
|
} else
|
|
2122
2127
|
t.push("...");
|
|
2123
2128
|
else {
|
|
2124
2129
|
let c = s.comment;
|
|
2125
|
-
c && o && (c = c.replace(/^\n+/, "")), c && ((!o || l) && t[t.length - 1] !== "" && t.push(""), t.push(
|
|
2130
|
+
c && o && (c = c.replace(/^\n+/, "")), c && ((!o || l) && t[t.length - 1] !== "" && t.push(""), t.push(U(r(c), "")));
|
|
2126
2131
|
}
|
|
2127
2132
|
return t.join(`
|
|
2128
2133
|
`) + `
|
|
@@ -2145,7 +2150,7 @@ class ge {
|
|
|
2145
2150
|
}, n);
|
|
2146
2151
|
this.options = r;
|
|
2147
2152
|
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
|
|
2153
|
+
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
2154
|
}
|
|
2150
2155
|
/**
|
|
2151
2156
|
* Create a deep copy of this Document and its contents.
|
|
@@ -2181,14 +2186,14 @@ class ge {
|
|
|
2181
2186
|
e.anchor = // eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing
|
|
2182
2187
|
!t || n.has(t) ? Gt(t || "a", n) : t;
|
|
2183
2188
|
}
|
|
2184
|
-
return new
|
|
2189
|
+
return new Re(e.anchor);
|
|
2185
2190
|
}
|
|
2186
2191
|
createNode(e, t, n) {
|
|
2187
2192
|
let i;
|
|
2188
2193
|
if (typeof t == "function")
|
|
2189
2194
|
e = t.call({ "": e }, "", e), i = t;
|
|
2190
2195
|
else if (Array.isArray(t)) {
|
|
2191
|
-
const m = (
|
|
2196
|
+
const m = (S) => typeof S == "number" || S instanceof String || S instanceof Number, b = t.filter(m).map(String);
|
|
2192
2197
|
b.length > 0 && (t = t.concat(b)), i = t;
|
|
2193
2198
|
} else n === void 0 && t && (n = t, t = void 0);
|
|
2194
2199
|
const { aliasDuplicateObjects: r, anchorPrefix: o, flow: l, keepUndefined: a, onTagObj: c, tag: p } = n ?? {}, { onAnchor: f, setAnchors: d, sourceObjects: h } = Ks(
|
|
@@ -2212,7 +2217,7 @@ class ge {
|
|
|
2212
2217
|
*/
|
|
2213
2218
|
createPair(e, t, n = {}) {
|
|
2214
2219
|
const i = this.createNode(e, null, n), r = this.createNode(t, null, n);
|
|
2215
|
-
return new
|
|
2220
|
+
return new v(i, r);
|
|
2216
2221
|
}
|
|
2217
2222
|
/**
|
|
2218
2223
|
* Removes a value from the document.
|
|
@@ -2282,11 +2287,11 @@ class ge {
|
|
|
2282
2287
|
let n;
|
|
2283
2288
|
switch (e) {
|
|
2284
2289
|
case "1.1":
|
|
2285
|
-
this.directives ? this.directives.yaml.version = "1.1" : this.directives = new
|
|
2290
|
+
this.directives ? this.directives.yaml.version = "1.1" : this.directives = new B({ version: "1.1" }), n = { resolveKnownTags: !1, schema: "yaml-1.1" };
|
|
2286
2291
|
break;
|
|
2287
2292
|
case "1.2":
|
|
2288
2293
|
case "next":
|
|
2289
|
-
this.directives ? this.directives.yaml.version = e : this.directives = new
|
|
2294
|
+
this.directives ? this.directives.yaml.version = e : this.directives = new B({ version: e }), n = { resolveKnownTags: !0, schema: "core" };
|
|
2290
2295
|
break;
|
|
2291
2296
|
case null:
|
|
2292
2297
|
this.directives && delete this.directives, n = null;
|
|
@@ -2387,7 +2392,7 @@ ${c}
|
|
|
2387
2392
|
}
|
|
2388
2393
|
};
|
|
2389
2394
|
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,
|
|
2395
|
+
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
2396
|
for (const g of s)
|
|
2392
2397
|
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
2398
|
case "space":
|
|
@@ -2400,38 +2405,39 @@ function ue(s, { flow: e, indicator: t, next: n, offset: i, onError: r, parentIn
|
|
|
2400
2405
|
break;
|
|
2401
2406
|
}
|
|
2402
2407
|
case "newline":
|
|
2403
|
-
c ? f ? f += g.source : a = !0 : d += g.source, c = !0, h = !0, (m || b) && (
|
|
2408
|
+
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
2409
|
break;
|
|
2405
2410
|
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,
|
|
2411
|
+
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
2412
|
break;
|
|
2408
2413
|
case "tag": {
|
|
2409
|
-
b && r(g, "MULTIPLE_TAGS", "A node can have at most one tag"), b = g,
|
|
2414
|
+
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
2415
|
break;
|
|
2411
2416
|
}
|
|
2412
2417
|
case t:
|
|
2413
|
-
(m || b) && r(g, "BAD_PROP_ORDER", `Anchors and tags must be after the ${g.source} indicator`),
|
|
2418
|
+
(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
2419
|
break;
|
|
2415
2420
|
case "comma":
|
|
2416
2421
|
if (e) {
|
|
2417
2422
|
N && r(g, "UNEXPECTED_TOKEN", `Unexpected , in ${e}`), N = g, c = !1, p = !1;
|
|
2418
2423
|
break;
|
|
2419
2424
|
}
|
|
2425
|
+
// else fallthrough
|
|
2420
2426
|
default:
|
|
2421
2427
|
r(g, "UNEXPECTED_TOKEN", `Unexpected ${g.type} token`), c = !1, p = !1;
|
|
2422
2428
|
}
|
|
2423
|
-
const
|
|
2429
|
+
const O = s[s.length - 1], I = O ? O.offset + O.source.length : i;
|
|
2424
2430
|
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
2431
|
comma: N,
|
|
2426
|
-
found:
|
|
2432
|
+
found: w,
|
|
2427
2433
|
spaceBefore: a,
|
|
2428
2434
|
comment: f,
|
|
2429
2435
|
hasNewline: h,
|
|
2430
2436
|
anchor: m,
|
|
2431
2437
|
tag: b,
|
|
2432
|
-
newlineAfterProp:
|
|
2433
|
-
end:
|
|
2434
|
-
start:
|
|
2438
|
+
newlineAfterProp: S,
|
|
2439
|
+
end: I,
|
|
2440
|
+
start: k ?? I
|
|
2435
2441
|
};
|
|
2436
2442
|
}
|
|
2437
2443
|
function Ne(s) {
|
|
@@ -2506,9 +2512,9 @@ function cn({ composeNode: s, composeEmptyNode: e }, t, n, i, r) {
|
|
|
2506
2512
|
(m.newlineAfterProp || Ne(h)) && i(h ?? d[d.length - 1], "MULTILINE_IMPLICIT_KEY", "Implicit keys need to be on a single line");
|
|
2507
2513
|
} else ((p = m.found) == null ? void 0 : p.indent) !== n.indent && i(a, "BAD_INDENT", Mt);
|
|
2508
2514
|
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
|
|
2515
|
+
const S = m.end, N = h ? s(t, h, m, i) : e(t, S, d, null, m, i);
|
|
2516
|
+
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");
|
|
2517
|
+
const w = ue(y ?? [], {
|
|
2512
2518
|
indicator: "map-value-ind",
|
|
2513
2519
|
next: u,
|
|
2514
2520
|
offset: N.range[2],
|
|
@@ -2516,23 +2522,23 @@ function cn({ composeNode: s, composeEmptyNode: e }, t, n, i, r) {
|
|
|
2516
2522
|
parentIndent: n.indent,
|
|
2517
2523
|
startOnNewline: !h || h.type === "block-scalar"
|
|
2518
2524
|
});
|
|
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 && (
|
|
2525
|
+
if (a = w.end, w.found) {
|
|
2526
|
+
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"));
|
|
2527
|
+
const k = u ? s(t, u, w, i) : e(t, a, y, null, w, i);
|
|
2528
|
+
t.schema.compat && ut(n.indent, u, i), a = k.range[2];
|
|
2529
|
+
const O = new v(N, k);
|
|
2530
|
+
t.options.keepSourceTokens && (O.srcToken = f), l.items.push(O);
|
|
2525
2531
|
} 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 && (
|
|
2532
|
+
b && i(N.range, "MISSING_CHAR", "Implicit map keys need to be followed by map values"), w.comment && (N.comment ? N.comment += `
|
|
2533
|
+
` + w.comment : N.comment = w.comment);
|
|
2534
|
+
const k = new v(N);
|
|
2535
|
+
t.options.keepSourceTokens && (k.srcToken = f), l.items.push(k);
|
|
2530
2536
|
}
|
|
2531
2537
|
}
|
|
2532
2538
|
return c && c < a && i(c, "IMPOSSIBLE", "Map comment with trailing content"), l.range = [n.offset, a, c ?? a], l;
|
|
2533
2539
|
}
|
|
2534
2540
|
function fn({ composeNode: s, composeEmptyNode: e }, t, n, i, r) {
|
|
2535
|
-
const o = (r == null ? void 0 : r.nodeClass) ??
|
|
2541
|
+
const o = (r == null ? void 0 : r.nodeClass) ?? W, l = new o(t.schema);
|
|
2536
2542
|
t.atRoot && (t.atRoot = !1), t.atKey && (t.atKey = !1);
|
|
2537
2543
|
let a = n.offset, c = null;
|
|
2538
2544
|
for (const { start: p, value: f } of n.items) {
|
|
@@ -2585,25 +2591,25 @@ function Ie(s, e, t, n) {
|
|
|
2585
2591
|
}
|
|
2586
2592
|
const st = "Block collections are not allowed within flow collections", nt = (s) => s && (s.type === "block-map" || s.type === "block-seq");
|
|
2587
2593
|
function un({ composeNode: s, composeEmptyNode: e }, t, n, i, r) {
|
|
2588
|
-
const o = n.start.source === "{", l = o ? "flow map" : "flow sequence", a = (r == null ? void 0 : r.nodeClass) ?? (o ? K :
|
|
2594
|
+
const o = n.start.source === "{", l = o ? "flow map" : "flow sequence", a = (r == null ? void 0 : r.nodeClass) ?? (o ? K : W), c = new a(t.schema);
|
|
2589
2595
|
c.flow = !0;
|
|
2590
2596
|
const p = t.atRoot;
|
|
2591
2597
|
p && (t.atRoot = !1), t.atKey && (t.atKey = !1);
|
|
2592
2598
|
let f = n.offset + n.start.source.length;
|
|
2593
2599
|
for (let m = 0; m < n.items.length; ++m) {
|
|
2594
|
-
const b = n.items[m], { start:
|
|
2600
|
+
const b = n.items[m], { start: S, key: N, sep: w, value: k } = b, O = ue(S, {
|
|
2595
2601
|
flow: l,
|
|
2596
2602
|
indicator: "explicit-key-ind",
|
|
2597
|
-
next: N ?? (
|
|
2603
|
+
next: N ?? (w == null ? void 0 : w[0]),
|
|
2598
2604
|
offset: f,
|
|
2599
2605
|
onError: i,
|
|
2600
2606
|
parentIndent: n.indent,
|
|
2601
2607
|
startOnNewline: !1
|
|
2602
2608
|
});
|
|
2603
|
-
if (!
|
|
2604
|
-
if (!
|
|
2605
|
-
m === 0 &&
|
|
2606
|
-
` +
|
|
2609
|
+
if (!O.found) {
|
|
2610
|
+
if (!O.anchor && !O.tag && !w && !k) {
|
|
2611
|
+
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 += `
|
|
2612
|
+
` + O.comment : c.comment = O.comment), f = O.end;
|
|
2607
2613
|
continue;
|
|
2608
2614
|
}
|
|
2609
2615
|
!o && t.options.strict && Ne(N) && i(
|
|
@@ -2614,46 +2620,46 @@ function un({ composeNode: s, composeEmptyNode: e }, t, n, i, r) {
|
|
|
2614
2620
|
);
|
|
2615
2621
|
}
|
|
2616
2622
|
if (m === 0)
|
|
2617
|
-
|
|
2618
|
-
else if (
|
|
2619
|
-
let
|
|
2620
|
-
e: for (const g of
|
|
2623
|
+
O.comma && i(O.comma, "UNEXPECTED_TOKEN", `Unexpected , in ${l}`);
|
|
2624
|
+
else if (O.comma || i(O.start, "MISSING_CHAR", `Missing , between ${l} items`), O.comment) {
|
|
2625
|
+
let I = "";
|
|
2626
|
+
e: for (const g of S)
|
|
2621
2627
|
switch (g.type) {
|
|
2622
2628
|
case "comma":
|
|
2623
2629
|
case "space":
|
|
2624
2630
|
break;
|
|
2625
2631
|
case "comment":
|
|
2626
|
-
|
|
2632
|
+
I = g.source.substring(1);
|
|
2627
2633
|
break e;
|
|
2628
2634
|
default:
|
|
2629
2635
|
break e;
|
|
2630
2636
|
}
|
|
2631
|
-
if (
|
|
2637
|
+
if (I) {
|
|
2632
2638
|
let g = c.items[c.items.length - 1];
|
|
2633
|
-
|
|
2634
|
-
` +
|
|
2639
|
+
T(g) && (g = g.value ?? g.key), g.comment ? g.comment += `
|
|
2640
|
+
` + I : g.comment = I, O.comment = O.comment.substring(I.length + 1);
|
|
2635
2641
|
}
|
|
2636
2642
|
}
|
|
2637
|
-
if (!o && !
|
|
2638
|
-
const
|
|
2639
|
-
c.items.push(
|
|
2643
|
+
if (!o && !w && !O.found) {
|
|
2644
|
+
const I = k ? s(t, k, O, i) : e(t, O.end, w, null, O, i);
|
|
2645
|
+
c.items.push(I), f = I.range[2], nt(k) && i(I.range, "BLOCK_IN_FLOW", st);
|
|
2640
2646
|
} else {
|
|
2641
2647
|
t.atKey = !0;
|
|
2642
|
-
const
|
|
2648
|
+
const I = O.end, g = N ? s(t, N, O, i) : e(t, I, S, null, O, i);
|
|
2643
2649
|
nt(N) && i(g.range, "BLOCK_IN_FLOW", st), t.atKey = !1;
|
|
2644
|
-
const _ = ue(
|
|
2650
|
+
const _ = ue(w ?? [], {
|
|
2645
2651
|
flow: l,
|
|
2646
2652
|
indicator: "map-value-ind",
|
|
2647
|
-
next:
|
|
2653
|
+
next: k,
|
|
2648
2654
|
offset: g.range[2],
|
|
2649
2655
|
onError: i,
|
|
2650
2656
|
parentIndent: n.indent,
|
|
2651
2657
|
startOnNewline: !1
|
|
2652
2658
|
});
|
|
2653
2659
|
if (_.found) {
|
|
2654
|
-
if (!o && !
|
|
2655
|
-
if (
|
|
2656
|
-
for (const C of
|
|
2660
|
+
if (!o && !O.found && t.options.strict) {
|
|
2661
|
+
if (w)
|
|
2662
|
+
for (const C of w) {
|
|
2657
2663
|
if (C === _.found)
|
|
2658
2664
|
break;
|
|
2659
2665
|
if (C.type === "newline") {
|
|
@@ -2661,16 +2667,16 @@ function un({ composeNode: s, composeEmptyNode: e }, t, n, i, r) {
|
|
|
2661
2667
|
break;
|
|
2662
2668
|
}
|
|
2663
2669
|
}
|
|
2664
|
-
|
|
2670
|
+
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
2671
|
}
|
|
2666
|
-
} else
|
|
2667
|
-
const J =
|
|
2668
|
-
J ? nt(
|
|
2672
|
+
} 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`));
|
|
2673
|
+
const J = k ? s(t, k, _, i) : _.found ? e(t, _.end, w, null, _, i) : null;
|
|
2674
|
+
J ? nt(k) && i(J.range, "BLOCK_IN_FLOW", st) : _.comment && (g.comment ? g.comment += `
|
|
2669
2675
|
` + _.comment : g.comment = _.comment);
|
|
2670
|
-
const te = new
|
|
2676
|
+
const te = new v(g, J);
|
|
2671
2677
|
if (t.options.keepSourceTokens && (te.srcToken = b), o) {
|
|
2672
2678
|
const C = c;
|
|
2673
|
-
gs(t, C.items, g) && i(
|
|
2679
|
+
gs(t, C.items, g) && i(I, "DUPLICATE_KEY", "Map keys must be unique"), C.items.push(te);
|
|
2674
2680
|
} else {
|
|
2675
2681
|
const C = new K(t.schema);
|
|
2676
2682
|
C.flow = !0, C.items.push(te);
|
|
@@ -2708,7 +2714,7 @@ function hn(s, e, t, n, i) {
|
|
|
2708
2714
|
u && (!y || y.offset < u.offset) && i(u, "MISSING_CHAR", "Missing newline after block sequence props");
|
|
2709
2715
|
}
|
|
2710
2716
|
const l = t.type === "block-map" ? "map" : t.type === "block-seq" ? "seq" : t.start.source === "{" ? "map" : "seq";
|
|
2711
|
-
if (!r || !o || o === "!" || o === K.tagName && l === "map" || o ===
|
|
2717
|
+
if (!r || !o || o === "!" || o === K.tagName && l === "map" || o === W.tagName && l === "seq")
|
|
2712
2718
|
return it(s, e, t, i, o);
|
|
2713
2719
|
let a = e.schema.tags.find((h) => h.tag === o && h.collection === l);
|
|
2714
2720
|
if (!a) {
|
|
@@ -2716,16 +2722,16 @@ function hn(s, e, t, n, i) {
|
|
|
2716
2722
|
if (h && h.collection === l)
|
|
2717
2723
|
e.schema.tags.push(Object.assign({}, h, { default: !1 })), a = h;
|
|
2718
2724
|
else
|
|
2719
|
-
return h
|
|
2725
|
+
return h ? i(r, "BAD_COLLECTION_TYPE", `${h.tag} used for ${l} collection, but expects ${h.collection ?? "scalar"}`, !0) : i(r, "TAG_RESOLVE_FAILED", `Unresolved tag: ${o}`, !0), it(s, e, t, i, o);
|
|
2720
2726
|
}
|
|
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
|
|
2727
|
+
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
2728
|
return f.range = c.range, f.tag = o, a != null && a.format && (f.format = a.format), f;
|
|
2723
2729
|
}
|
|
2724
2730
|
function bs(s, e, t) {
|
|
2725
2731
|
const n = e.offset, i = dn(e, s.options.strict, t);
|
|
2726
2732
|
if (!i)
|
|
2727
2733
|
return { value: "", type: null, comment: "", range: [n, n, n] };
|
|
2728
|
-
const r = i.mode === ">" ?
|
|
2734
|
+
const r = i.mode === ">" ? A.BLOCK_FOLDED : A.BLOCK_LITERAL, o = e.source ? pn(e.source) : [];
|
|
2729
2735
|
let l = o.length;
|
|
2730
2736
|
for (let u = o.length - 1; u >= 0; --u) {
|
|
2731
2737
|
const m = o[u][1];
|
|
@@ -2760,12 +2766,12 @@ function bs(s, e, t) {
|
|
|
2760
2766
|
for (let u = p; u < l; ++u) {
|
|
2761
2767
|
let [m, b] = o[u];
|
|
2762
2768
|
c += m.length + b.length + 1;
|
|
2763
|
-
const
|
|
2764
|
-
if (
|
|
2765
|
-
const
|
|
2766
|
-
t(c - b.length - (
|
|
2769
|
+
const S = b[b.length - 1] === "\r";
|
|
2770
|
+
if (S && (b = b.slice(0, -1)), b && m.length < a) {
|
|
2771
|
+
const w = `Block scalar lines must not be less indented than their ${i.indent ? "explicit indentation indicator" : "first line"}`;
|
|
2772
|
+
t(c - b.length - (S ? 2 : 1), "BAD_INDENT", w), m = "";
|
|
2767
2773
|
}
|
|
2768
|
-
r ===
|
|
2774
|
+
r === A.BLOCK_LITERAL ? (f += d + m.slice(a) + b, d = `
|
|
2769
2775
|
`) : m.length > a || b[0] === " " ? (d === " " ? d = `
|
|
2770
2776
|
` : !h && d === `
|
|
2771
2777
|
` && (d = `
|
|
@@ -2815,6 +2821,7 @@ function dn({ offset: s, props: e }, t, n) {
|
|
|
2815
2821
|
switch (h.type) {
|
|
2816
2822
|
case "space":
|
|
2817
2823
|
c = !0;
|
|
2824
|
+
// fallthrough
|
|
2818
2825
|
case "newline":
|
|
2819
2826
|
f += h.source.length;
|
|
2820
2827
|
break;
|
|
@@ -2824,6 +2831,7 @@ function dn({ offset: s, props: e }, t, n) {
|
|
|
2824
2831
|
case "error":
|
|
2825
2832
|
n(h, "UNEXPECTED_TOKEN", h.message), f += h.source.length;
|
|
2826
2833
|
break;
|
|
2834
|
+
/* istanbul ignore next should not happen */
|
|
2827
2835
|
default: {
|
|
2828
2836
|
const y = `Unexpected token in block scalar header: ${h.type}`;
|
|
2829
2837
|
n(h, "UNEXPECTED_TOKEN", y);
|
|
@@ -2846,14 +2854,15 @@ function ws(s, e, t) {
|
|
|
2846
2854
|
const c = (d, h, y) => t(n + d, h, y);
|
|
2847
2855
|
switch (i) {
|
|
2848
2856
|
case "scalar":
|
|
2849
|
-
l =
|
|
2857
|
+
l = A.PLAIN, a = mn(r, c);
|
|
2850
2858
|
break;
|
|
2851
2859
|
case "single-quoted-scalar":
|
|
2852
|
-
l =
|
|
2860
|
+
l = A.QUOTE_SINGLE, a = yn(r, c);
|
|
2853
2861
|
break;
|
|
2854
2862
|
case "double-quoted-scalar":
|
|
2855
|
-
l =
|
|
2863
|
+
l = A.QUOTE_DOUBLE, a = gn(r, c);
|
|
2856
2864
|
break;
|
|
2865
|
+
/* istanbul ignore next should not happen */
|
|
2857
2866
|
default:
|
|
2858
2867
|
return t(s, "UNEXPECTED_TOKEN", `Expected a flow scalar value, but found: ${i}`), {
|
|
2859
2868
|
value: "",
|
|
@@ -2873,6 +2882,7 @@ function ws(s, e, t) {
|
|
|
2873
2882
|
function mn(s, e) {
|
|
2874
2883
|
let t = "";
|
|
2875
2884
|
switch (s[0]) {
|
|
2885
|
+
/* istanbul ignore next should not happen */
|
|
2876
2886
|
case " ":
|
|
2877
2887
|
t = "a tab character";
|
|
2878
2888
|
break;
|
|
@@ -3016,21 +3026,21 @@ function Sn(s, e, t, n) {
|
|
|
3016
3026
|
function ks(s, e, t, n) {
|
|
3017
3027
|
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
3028
|
let c;
|
|
3019
|
-
s.options.stringKeys && s.atKey ? c = s.schema[
|
|
3029
|
+
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
3030
|
let p;
|
|
3021
3031
|
try {
|
|
3022
3032
|
const f = c.resolve(i, (d) => n(t ?? e, "TAG_RESOLVE_FAILED", d), s.options);
|
|
3023
|
-
p = E(f) ? f : new
|
|
3033
|
+
p = E(f) ? f : new A(f);
|
|
3024
3034
|
} catch (f) {
|
|
3025
3035
|
const d = f instanceof Error ? f.message : String(f);
|
|
3026
|
-
n(t ?? e, "TAG_RESOLVE_FAILED", d), p = new
|
|
3036
|
+
n(t ?? e, "TAG_RESOLVE_FAILED", d), p = new A(i);
|
|
3027
3037
|
}
|
|
3028
3038
|
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
3039
|
}
|
|
3030
3040
|
function kn(s, e, t, n, i) {
|
|
3031
3041
|
var l;
|
|
3032
3042
|
if (t === "!")
|
|
3033
|
-
return s[
|
|
3043
|
+
return s[R];
|
|
3034
3044
|
const r = [];
|
|
3035
3045
|
for (const a of s.tags)
|
|
3036
3046
|
if (!a.collection && a.tag === t)
|
|
@@ -3042,18 +3052,18 @@ function kn(s, e, t, n, i) {
|
|
|
3042
3052
|
if ((l = a.test) != null && l.test(e))
|
|
3043
3053
|
return a;
|
|
3044
3054
|
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[
|
|
3055
|
+
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
3056
|
}
|
|
3047
3057
|
function Nn({ atKey: s, directives: e, schema: t }, n, i, r) {
|
|
3048
3058
|
const o = t.tags.find((l) => {
|
|
3049
3059
|
var a;
|
|
3050
3060
|
return (l.default === !0 || s && l.default === "key") && ((a = l.test) == null ? void 0 : a.test(n));
|
|
3051
|
-
}) || t[
|
|
3061
|
+
}) || t[R];
|
|
3052
3062
|
if (t.compat) {
|
|
3053
3063
|
const l = t.compat.find((a) => {
|
|
3054
3064
|
var c;
|
|
3055
3065
|
return a.default && ((c = a.test) == null ? void 0 : c.test(n));
|
|
3056
|
-
}) ?? t[
|
|
3066
|
+
}) ?? t[R];
|
|
3057
3067
|
if (o.tag !== l.tag) {
|
|
3058
3068
|
const a = e.tagString(o.tag), c = e.tagString(l.tag), p = `Value may be parsed as either ${a} or ${c}`;
|
|
3059
3069
|
r(i, "TAG_RESOLVE_FAILED", p, !0);
|
|
@@ -3116,7 +3126,7 @@ function Et(s, e, t, n, { spaceBefore: i, comment: r, anchor: o, tag: l, end: a
|
|
|
3116
3126
|
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
3127
|
}
|
|
3118
3128
|
function En({ options: s }, { offset: e, source: t, end: n }, i) {
|
|
3119
|
-
const r = new
|
|
3129
|
+
const r = new Re(t.substring(1));
|
|
3120
3130
|
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
3131
|
const o = e + t.length, l = Ie(n, o, s.strict, i);
|
|
3122
3132
|
return r.range = [e, o, l.offset], l.comment && (r.comment = l.comment), r;
|
|
@@ -3174,7 +3184,7 @@ class It {
|
|
|
3174
3184
|
this.doc = null, this.atDirectives = !1, this.prelude = [], this.errors = [], this.warnings = [], this.onError = (t, n, i, r) => {
|
|
3175
3185
|
const o = be(t);
|
|
3176
3186
|
r ? this.warnings.push(new ys(o, n, i)) : this.errors.push(new z(o, n, i));
|
|
3177
|
-
}, this.directives = new
|
|
3187
|
+
}, this.directives = new B({ version: e.version || "1.2" }), this.options = e;
|
|
3178
3188
|
}
|
|
3179
3189
|
decorate(e, t) {
|
|
3180
3190
|
const { comment: n, afterEmptyLine: i } = Kt(this.prelude);
|
|
@@ -3187,7 +3197,7 @@ ${n}` : n;
|
|
|
3187
3197
|
e.commentBefore = n;
|
|
3188
3198
|
else if (L(r) && !r.flow && r.items.length > 0) {
|
|
3189
3199
|
let o = r.items[0];
|
|
3190
|
-
|
|
3200
|
+
T(o) && (o = o.key);
|
|
3191
3201
|
const l = o.commentBefore;
|
|
3192
3202
|
o.commentBefore = l ? `${n}
|
|
3193
3203
|
${l}` : n;
|
|
@@ -3487,12 +3497,12 @@ function Ke({ start: s, key: e, sep: t, value: n }) {
|
|
|
3487
3497
|
i += r.source;
|
|
3488
3498
|
return n && (i += qe(n)), i;
|
|
3489
3499
|
}
|
|
3490
|
-
const ht = Symbol("break visit"),
|
|
3500
|
+
const ht = Symbol("break visit"), vn = Symbol("skip children"), As = Symbol("remove item");
|
|
3491
3501
|
function Z(s, e) {
|
|
3492
3502
|
"type" in s && s.type === "document" && (s = { start: s.start, value: s.value }), Es(Object.freeze([]), s, e);
|
|
3493
3503
|
}
|
|
3494
3504
|
Z.BREAK = ht;
|
|
3495
|
-
Z.SKIP =
|
|
3505
|
+
Z.SKIP = vn;
|
|
3496
3506
|
Z.REMOVE = As;
|
|
3497
3507
|
Z.itemAtPath = (s, e) => {
|
|
3498
3508
|
let t = s;
|
|
@@ -3533,7 +3543,7 @@ function Es(s, e, t) {
|
|
|
3533
3543
|
}
|
|
3534
3544
|
return typeof n == "function" ? n(e, s) : n;
|
|
3535
3545
|
}
|
|
3536
|
-
const ze = "\uFEFF", Ze = "", xe = "", Oe = "",
|
|
3546
|
+
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
3547
|
function Kn(s) {
|
|
3538
3548
|
switch (s) {
|
|
3539
3549
|
case ze:
|
|
@@ -3616,7 +3626,7 @@ const Pn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
3616
3626
|
FLOW_END: xe,
|
|
3617
3627
|
SCALAR: Oe,
|
|
3618
3628
|
createScalarToken: Ln,
|
|
3619
|
-
isCollection:
|
|
3629
|
+
isCollection: Bn,
|
|
3620
3630
|
isScalar: Mn,
|
|
3621
3631
|
prettyToken: Kn,
|
|
3622
3632
|
resolveAsScalar: Tn,
|
|
@@ -3790,6 +3800,7 @@ class Ts {
|
|
|
3790
3800
|
switch (e[t]) {
|
|
3791
3801
|
case "#":
|
|
3792
3802
|
yield* this.pushCount(e.length - t);
|
|
3803
|
+
// fallthrough
|
|
3793
3804
|
case void 0:
|
|
3794
3805
|
return yield* this.pushNewline(), yield* this.parseLineStart();
|
|
3795
3806
|
case "{":
|
|
@@ -3844,6 +3855,7 @@ class Ts {
|
|
|
3844
3855
|
if (this.flowKey || D(o) || o === ",")
|
|
3845
3856
|
return this.flowKey = !1, yield* this.pushCount(1), yield* this.pushSpaces(!0), "flow";
|
|
3846
3857
|
}
|
|
3858
|
+
// fallthrough
|
|
3847
3859
|
default:
|
|
3848
3860
|
return this.flowKey = !1, yield* this.parsePlainScalar();
|
|
3849
3861
|
}
|
|
@@ -3916,6 +3928,7 @@ class Ts {
|
|
|
3916
3928
|
`)
|
|
3917
3929
|
break;
|
|
3918
3930
|
}
|
|
3931
|
+
// fallthrough
|
|
3919
3932
|
default:
|
|
3920
3933
|
break e;
|
|
3921
3934
|
}
|
|
@@ -4002,7 +4015,9 @@ class Ts {
|
|
|
4002
4015
|
case "&":
|
|
4003
4016
|
return (yield* this.pushUntil(ot)) + (yield* this.pushSpaces(!0)) + (yield* this.pushIndicators());
|
|
4004
4017
|
case "-":
|
|
4018
|
+
// this is an error
|
|
4005
4019
|
case "?":
|
|
4020
|
+
// this is an error outside flow collections
|
|
4006
4021
|
case ":": {
|
|
4007
4022
|
const e = this.flowLevel > 0, t = this.charAt(1);
|
|
4008
4023
|
if (D(t) || e && _e.has(t))
|
|
@@ -4067,7 +4082,7 @@ class Ls {
|
|
|
4067
4082
|
};
|
|
4068
4083
|
}
|
|
4069
4084
|
}
|
|
4070
|
-
function
|
|
4085
|
+
function Y(s, e) {
|
|
4071
4086
|
for (let t = 0; t < s.length; ++t)
|
|
4072
4087
|
if (s[t].type === e)
|
|
4073
4088
|
return !0;
|
|
@@ -4107,6 +4122,7 @@ function Ce(s) {
|
|
|
4107
4122
|
}
|
|
4108
4123
|
case "block-seq":
|
|
4109
4124
|
return s.items[s.items.length - 1].start;
|
|
4125
|
+
/* istanbul ignore next should not happen */
|
|
4110
4126
|
default:
|
|
4111
4127
|
return [];
|
|
4112
4128
|
}
|
|
@@ -4132,7 +4148,7 @@ function ne(s) {
|
|
|
4132
4148
|
function Dt(s) {
|
|
4133
4149
|
if (s.start.type === "flow-seq-start")
|
|
4134
4150
|
for (const e of s.items)
|
|
4135
|
-
e.sep && !e.value && !
|
|
4151
|
+
e.sep && !e.value && !Y(e.start, "explicit-key-ind") && !Y(e.sep, "map-value-ind") && (e.key && (e.value = e.key), delete e.key, $s(e.value) ? e.value.end ? Array.prototype.push.apply(e.value.end, e.sep) : e.value.end = e.sep : Array.prototype.push.apply(e.start, e.sep), delete e.sep);
|
|
4136
4152
|
}
|
|
4137
4153
|
class Tt {
|
|
4138
4154
|
/**
|
|
@@ -4283,6 +4299,7 @@ class Tt {
|
|
|
4283
4299
|
!i || i.value ? n.items.push({ start: [], key: t, sep: [] }) : i.sep ? i.value = t : Object.assign(i, { key: t, sep: [] });
|
|
4284
4300
|
return;
|
|
4285
4301
|
}
|
|
4302
|
+
/* istanbul ignore next should not happen */
|
|
4286
4303
|
default:
|
|
4287
4304
|
yield* this.pop(), yield* this.pop(t);
|
|
4288
4305
|
}
|
|
@@ -4377,6 +4394,7 @@ class Tt {
|
|
|
4377
4394
|
}
|
|
4378
4395
|
yield* this.pop();
|
|
4379
4396
|
break;
|
|
4397
|
+
/* istanbul ignore next should not happen */
|
|
4380
4398
|
default:
|
|
4381
4399
|
yield* this.pop(), yield* this.step();
|
|
4382
4400
|
}
|
|
@@ -4449,14 +4467,14 @@ class Tt {
|
|
|
4449
4467
|
if (t.sep)
|
|
4450
4468
|
if (t.value)
|
|
4451
4469
|
e.items.push({ start: [], key: null, sep: [this.sourceToken] });
|
|
4452
|
-
else if (
|
|
4470
|
+
else if (Y(t.sep, "map-value-ind"))
|
|
4453
4471
|
this.stack.push({
|
|
4454
4472
|
type: "block-map",
|
|
4455
4473
|
offset: this.offset,
|
|
4456
4474
|
indent: this.indent,
|
|
4457
4475
|
items: [{ start: o, key: null, sep: [this.sourceToken] }]
|
|
4458
4476
|
});
|
|
4459
|
-
else if ($s(t.key) && !
|
|
4477
|
+
else if ($s(t.key) && !Y(t.sep, "newline")) {
|
|
4460
4478
|
const l = ne(t.start), a = t.key, c = t.sep;
|
|
4461
4479
|
c.push(this.sourceToken), delete t.key, delete t.sep, this.stack.push({
|
|
4462
4480
|
type: "block-map",
|
|
@@ -4465,7 +4483,7 @@ class Tt {
|
|
|
4465
4483
|
items: [{ start: l, key: a, sep: c }]
|
|
4466
4484
|
});
|
|
4467
4485
|
} else o.length > 0 ? t.sep = t.sep.concat(o, this.sourceToken) : t.sep.push(this.sourceToken);
|
|
4468
|
-
else if (
|
|
4486
|
+
else if (Y(t.start, "newline"))
|
|
4469
4487
|
Object.assign(t, { key: null, sep: [this.sourceToken] });
|
|
4470
4488
|
else {
|
|
4471
4489
|
const l = ne(t.start);
|
|
@@ -4477,7 +4495,7 @@ class Tt {
|
|
|
4477
4495
|
});
|
|
4478
4496
|
}
|
|
4479
4497
|
else
|
|
4480
|
-
t.sep ? t.value || r ? e.items.push({ start: o, key: null, sep: [this.sourceToken] }) :
|
|
4498
|
+
t.sep ? t.value || r ? e.items.push({ start: o, key: null, sep: [this.sourceToken] }) : Y(t.sep, "map-value-ind") ? this.stack.push({
|
|
4481
4499
|
type: "block-map",
|
|
4482
4500
|
offset: this.offset,
|
|
4483
4501
|
indent: this.indent,
|
|
@@ -4496,7 +4514,18 @@ class Tt {
|
|
|
4496
4514
|
default: {
|
|
4497
4515
|
const l = this.startBlockValue(e);
|
|
4498
4516
|
if (l) {
|
|
4499
|
-
|
|
4517
|
+
if (l.type === "block-seq") {
|
|
4518
|
+
if (!t.explicitKey && t.sep && !Y(t.sep, "newline")) {
|
|
4519
|
+
yield* this.pop({
|
|
4520
|
+
type: "error",
|
|
4521
|
+
offset: this.offset,
|
|
4522
|
+
message: "Unexpected block-seq-ind on same line with key",
|
|
4523
|
+
source: this.source
|
|
4524
|
+
});
|
|
4525
|
+
return;
|
|
4526
|
+
}
|
|
4527
|
+
} else i && e.items.push({ start: o });
|
|
4528
|
+
this.stack.push(l);
|
|
4500
4529
|
return;
|
|
4501
4530
|
}
|
|
4502
4531
|
}
|
|
@@ -4539,7 +4568,7 @@ class Tt {
|
|
|
4539
4568
|
case "seq-item-ind":
|
|
4540
4569
|
if (this.indent !== e.indent)
|
|
4541
4570
|
break;
|
|
4542
|
-
t.value ||
|
|
4571
|
+
t.value || Y(t.start, "seq-item-ind") ? e.items.push({ start: [this.sourceToken] }) : t.start.push(this.sourceToken);
|
|
4543
4572
|
return;
|
|
4544
4573
|
}
|
|
4545
4574
|
if (this.indent > e.indent) {
|
|
@@ -4697,6 +4726,7 @@ class Tt {
|
|
|
4697
4726
|
break;
|
|
4698
4727
|
case "newline":
|
|
4699
4728
|
this.onKeyLine = !1;
|
|
4729
|
+
// fallthrough
|
|
4700
4730
|
case "space":
|
|
4701
4731
|
case "comment":
|
|
4702
4732
|
default:
|
|
@@ -4727,7 +4757,7 @@ function Cs(s, e = {}) {
|
|
|
4727
4757
|
}
|
|
4728
4758
|
return n && t && (o.errors.forEach(De(s, t)), o.warnings.forEach(De(s, t))), o;
|
|
4729
4759
|
}
|
|
4730
|
-
function
|
|
4760
|
+
function Fn(s, e, t) {
|
|
4731
4761
|
let n;
|
|
4732
4762
|
typeof e == "function" ? n = e : t === void 0 && e && typeof e == "object" && (t = e);
|
|
4733
4763
|
const i = Cs(s, t);
|
|
@@ -4740,7 +4770,7 @@ function Rn(s, e, t) {
|
|
|
4740
4770
|
}
|
|
4741
4771
|
return i.toJS(Object.assign({ reviver: n }, t));
|
|
4742
4772
|
}
|
|
4743
|
-
function
|
|
4773
|
+
function Rn(s, e, t) {
|
|
4744
4774
|
let n = null;
|
|
4745
4775
|
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
4776
|
const i = Math.round(t);
|
|
@@ -4753,68 +4783,68 @@ function Un(s, e, t) {
|
|
|
4753
4783
|
}
|
|
4754
4784
|
return ee(s) && !n ? s.toString(t) : new ge(s, n, t).toString(t);
|
|
4755
4785
|
}
|
|
4756
|
-
const
|
|
4786
|
+
const Un = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4757
4787
|
__proto__: null,
|
|
4758
|
-
Alias:
|
|
4788
|
+
Alias: Re,
|
|
4759
4789
|
CST: Pn,
|
|
4760
4790
|
Composer: It,
|
|
4761
4791
|
Document: ge,
|
|
4762
4792
|
Lexer: Ts,
|
|
4763
4793
|
LineCounter: Ls,
|
|
4764
|
-
Pair:
|
|
4794
|
+
Pair: v,
|
|
4765
4795
|
Parser: Tt,
|
|
4766
|
-
Scalar:
|
|
4796
|
+
Scalar: A,
|
|
4767
4797
|
Schema: Xe,
|
|
4768
4798
|
YAMLError: At,
|
|
4769
4799
|
YAMLMap: K,
|
|
4770
4800
|
YAMLParseError: z,
|
|
4771
|
-
YAMLSeq:
|
|
4801
|
+
YAMLSeq: W,
|
|
4772
4802
|
YAMLWarning: ys,
|
|
4773
4803
|
isAlias: x,
|
|
4774
4804
|
isCollection: L,
|
|
4775
4805
|
isDocument: ee,
|
|
4776
4806
|
isMap: de,
|
|
4777
4807
|
isNode: $,
|
|
4778
|
-
isPair:
|
|
4808
|
+
isPair: T,
|
|
4779
4809
|
isScalar: E,
|
|
4780
4810
|
isSeq: pe,
|
|
4781
|
-
parse:
|
|
4811
|
+
parse: Fn,
|
|
4782
4812
|
parseAllDocuments: qn,
|
|
4783
4813
|
parseDocument: Cs,
|
|
4784
|
-
stringify:
|
|
4785
|
-
visit:
|
|
4786
|
-
visitAsync:
|
|
4814
|
+
stringify: Rn,
|
|
4815
|
+
visit: Q,
|
|
4816
|
+
visitAsync: Fe
|
|
4787
4817
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4788
4818
|
export {
|
|
4789
|
-
|
|
4819
|
+
Re as Alias,
|
|
4790
4820
|
Pn as CST,
|
|
4791
4821
|
It as Composer,
|
|
4792
4822
|
ge as Document,
|
|
4793
4823
|
Ts as Lexer,
|
|
4794
4824
|
Ls as LineCounter,
|
|
4795
|
-
|
|
4825
|
+
v as Pair,
|
|
4796
4826
|
Tt as Parser,
|
|
4797
|
-
|
|
4827
|
+
A as Scalar,
|
|
4798
4828
|
Xe as Schema,
|
|
4799
4829
|
At as YAMLError,
|
|
4800
4830
|
K as YAMLMap,
|
|
4801
4831
|
z as YAMLParseError,
|
|
4802
|
-
|
|
4832
|
+
W as YAMLSeq,
|
|
4803
4833
|
ys as YAMLWarning,
|
|
4804
|
-
|
|
4834
|
+
Un as default,
|
|
4805
4835
|
x as isAlias,
|
|
4806
4836
|
L as isCollection,
|
|
4807
4837
|
ee as isDocument,
|
|
4808
4838
|
de as isMap,
|
|
4809
4839
|
$ as isNode,
|
|
4810
|
-
|
|
4840
|
+
T as isPair,
|
|
4811
4841
|
E as isScalar,
|
|
4812
4842
|
pe as isSeq,
|
|
4813
|
-
|
|
4843
|
+
Fn as parse,
|
|
4814
4844
|
qn as parseAllDocuments,
|
|
4815
4845
|
Cs as parseDocument,
|
|
4816
|
-
|
|
4817
|
-
|
|
4818
|
-
|
|
4846
|
+
Rn as stringify,
|
|
4847
|
+
Q as visit,
|
|
4848
|
+
Fe as visitAsync
|
|
4819
4849
|
};
|
|
4820
|
-
//# sourceMappingURL=index-
|
|
4850
|
+
//# sourceMappingURL=index-DcHeSvkE.js.map
|