@redocly/api-docs 0.0.2
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/LICENSE.md +1 -0
- package/README.md +3 -0
- package/lib/.tsbuildinfo +1 -0
- package/lib/RedoclyApiDocs.d.ts +22 -0
- package/lib/RedoclyApiDocs.js +1 -0
- package/lib/RedoclyApiDocsStandalone.d.ts +18 -0
- package/lib/RedoclyApiDocsStandalone.js +26 -0
- package/lib/adapters/asyncapi/build/context.d.ts +10 -0
- package/lib/adapters/asyncapi/build/context.js +1 -0
- package/lib/adapters/asyncapi/build/navigation.d.ts +2 -0
- package/lib/adapters/asyncapi/build/navigation.js +1 -0
- package/lib/adapters/asyncapi/build/utils.d.ts +3 -0
- package/lib/adapters/asyncapi/build/utils.js +1 -0
- package/lib/adapters/asyncapi/buildContext.d.ts +2 -0
- package/lib/adapters/asyncapi/buildContext.js +1 -0
- package/lib/adapters/asyncapi/index.d.ts +14 -0
- package/lib/adapters/asyncapi/index.js +1 -0
- package/lib/adapters/asyncapi/items/channel/content.d.ts +5 -0
- package/lib/adapters/asyncapi/items/channel/content.js +1 -0
- package/lib/adapters/asyncapi/items/channel/item.d.ts +13 -0
- package/lib/adapters/asyncapi/items/channel/item.js +1 -0
- package/lib/adapters/asyncapi/items/operation/content.d.ts +4 -0
- package/lib/adapters/asyncapi/items/operation/content.js +3 -0
- package/lib/adapters/asyncapi/items/operation/item.d.ts +15 -0
- package/lib/adapters/asyncapi/items/operation/item.js +1 -0
- package/lib/adapters/asyncapi/items/overview/content.d.ts +10 -0
- package/lib/adapters/asyncapi/items/overview/content.js +1 -0
- package/lib/adapters/asyncapi/items/overview/item.d.ts +16 -0
- package/lib/adapters/asyncapi/items/overview/item.js +1 -0
- package/lib/adapters/asyncapi/panels/brokers.d.ts +4 -0
- package/lib/adapters/asyncapi/panels/brokers.js +1 -0
- package/lib/adapters/asyncapi/panels/download.d.ts +3 -0
- package/lib/adapters/asyncapi/panels/download.js +1 -0
- package/lib/adapters/asyncapi/panels/group.d.ts +16 -0
- package/lib/adapters/asyncapi/panels/group.js +1 -0
- package/lib/adapters/asyncapi/panels/overview.d.ts +3 -0
- package/lib/adapters/asyncapi/panels/overview.js +1 -0
- package/lib/adapters/asyncapi/store.d.ts +4 -0
- package/lib/adapters/asyncapi/store.js +1 -0
- package/lib/adapters/asyncapi/utils/avro-to-json-schema.d.ts +4 -0
- package/lib/adapters/asyncapi/utils/avro-to-json-schema.js +1 -0
- package/lib/adapters/asyncapi/utils/get-channel-label.d.ts +3 -0
- package/lib/adapters/asyncapi/utils/get-channel-label.js +1 -0
- package/lib/adapters/asyncapi/utils/get-protocol-labels.d.ts +24 -0
- package/lib/adapters/asyncapi/utils/get-protocol-labels.js +1 -0
- package/lib/adapters/asyncapi/utils/get-server-host.d.ts +3 -0
- package/lib/adapters/asyncapi/utils/get-server-host.js +1 -0
- package/lib/adapters/asyncapi/utils/resolve-schema.d.ts +2 -0
- package/lib/adapters/asyncapi/utils/resolve-schema.js +1 -0
- package/lib/adapters/asyncapi/utils/resolveInDoc.d.ts +2 -0
- package/lib/adapters/asyncapi/utils/resolveInDoc.js +1 -0
- package/lib/adapters/build.d.ts +31 -0
- package/lib/adapters/build.js +1 -0
- package/lib/adapters/graphql/build/context.d.ts +9 -0
- package/lib/adapters/graphql/build/context.js +1 -0
- package/lib/adapters/graphql/buildContext.d.ts +2 -0
- package/lib/adapters/graphql/buildContext.js +1 -0
- package/lib/adapters/graphql/buildStoreFromSdl.d.ts +2 -0
- package/lib/adapters/graphql/buildStoreFromSdl.js +1 -0
- package/lib/adapters/graphql/group/custom.d.ts +2 -0
- package/lib/adapters/graphql/group/custom.js +1 -0
- package/lib/adapters/graphql/group/default.d.ts +2 -0
- package/lib/adapters/graphql/group/default.js +1 -0
- package/lib/adapters/graphql/group/errors.d.ts +1 -0
- package/lib/adapters/graphql/group/errors.js +1 -0
- package/lib/adapters/graphql/group/itemBuilders.d.ts +5 -0
- package/lib/adapters/graphql/group/itemBuilders.js +1 -0
- package/lib/adapters/graphql/group/utils.d.ts +8 -0
- package/lib/adapters/graphql/group/utils.js +1 -0
- package/lib/adapters/graphql/index.d.ts +10 -0
- package/lib/adapters/graphql/index.js +1 -0
- package/lib/adapters/graphql/items/directive/content.d.ts +4 -0
- package/lib/adapters/graphql/items/directive/content.js +1 -0
- package/lib/adapters/graphql/items/directive/item.d.ts +3 -0
- package/lib/adapters/graphql/items/directive/item.js +1 -0
- package/lib/adapters/graphql/items/enum/content.d.ts +4 -0
- package/lib/adapters/graphql/items/enum/content.js +1 -0
- package/lib/adapters/graphql/items/enum/item.d.ts +3 -0
- package/lib/adapters/graphql/items/enum/item.js +1 -0
- package/lib/adapters/graphql/items/input/content.d.ts +4 -0
- package/lib/adapters/graphql/items/input/content.js +1 -0
- package/lib/adapters/graphql/items/input/item.d.ts +3 -0
- package/lib/adapters/graphql/items/input/item.js +1 -0
- package/lib/adapters/graphql/items/interface/content.d.ts +4 -0
- package/lib/adapters/graphql/items/interface/content.js +1 -0
- package/lib/adapters/graphql/items/interface/item.d.ts +3 -0
- package/lib/adapters/graphql/items/interface/item.js +1 -0
- package/lib/adapters/graphql/items/mutation/content.d.ts +4 -0
- package/lib/adapters/graphql/items/mutation/content.js +1 -0
- package/lib/adapters/graphql/items/mutation/item.d.ts +3 -0
- package/lib/adapters/graphql/items/mutation/item.js +1 -0
- package/lib/adapters/graphql/items/object/content.d.ts +4 -0
- package/lib/adapters/graphql/items/object/content.js +1 -0
- package/lib/adapters/graphql/items/object/item.d.ts +3 -0
- package/lib/adapters/graphql/items/object/item.js +1 -0
- package/lib/adapters/graphql/items/operation/content.d.ts +7 -0
- package/lib/adapters/graphql/items/operation/content.js +1 -0
- package/lib/adapters/graphql/items/overview/content.d.ts +11 -0
- package/lib/adapters/graphql/items/overview/content.js +1 -0
- package/lib/adapters/graphql/items/overview/item.d.ts +4 -0
- package/lib/adapters/graphql/items/overview/item.js +1 -0
- package/lib/adapters/graphql/items/query/content.d.ts +4 -0
- package/lib/adapters/graphql/items/query/content.js +1 -0
- package/lib/adapters/graphql/items/query/item.d.ts +3 -0
- package/lib/adapters/graphql/items/query/item.js +1 -0
- package/lib/adapters/graphql/items/scalar/content.d.ts +4 -0
- package/lib/adapters/graphql/items/scalar/content.js +1 -0
- package/lib/adapters/graphql/items/scalar/item.d.ts +3 -0
- package/lib/adapters/graphql/items/scalar/item.js +1 -0
- package/lib/adapters/graphql/items/subscription/content.d.ts +4 -0
- package/lib/adapters/graphql/items/subscription/content.js +1 -0
- package/lib/adapters/graphql/items/subscription/item.d.ts +3 -0
- package/lib/adapters/graphql/items/subscription/item.js +1 -0
- package/lib/adapters/graphql/items/types.d.ts +7 -0
- package/lib/adapters/graphql/items/types.js +0 -0
- package/lib/adapters/graphql/items/union/content.d.ts +4 -0
- package/lib/adapters/graphql/items/union/content.js +1 -0
- package/lib/adapters/graphql/items/union/item.d.ts +3 -0
- package/lib/adapters/graphql/items/union/item.js +1 -0
- package/lib/adapters/graphql/panels/download.d.ts +3 -0
- package/lib/adapters/graphql/panels/download.js +1 -0
- package/lib/adapters/graphql/panels/group-items.d.ts +4 -0
- package/lib/adapters/graphql/panels/group-items.js +1 -0
- package/lib/adapters/graphql/panels/overview.d.ts +3 -0
- package/lib/adapters/graphql/panels/overview.js +1 -0
- package/lib/adapters/graphql/serializeType.d.ts +5 -0
- package/lib/adapters/graphql/serializeType.js +1 -0
- package/lib/adapters/graphql/store.d.ts +3 -0
- package/lib/adapters/graphql/store.js +1 -0
- package/lib/adapters/graphql/utils/appendGraphqlItemFeedback.d.ts +2 -0
- package/lib/adapters/graphql/utils/appendGraphqlItemFeedback.js +1 -0
- package/lib/adapters/graphql/utils/configMetadataRows.d.ts +3 -0
- package/lib/adapters/graphql/utils/configMetadataRows.js +1 -0
- package/lib/adapters/graphql/utils/constants.d.ts +23 -0
- package/lib/adapters/graphql/utils/constants.js +1 -0
- package/lib/adapters/graphql/utils/createApiItem.d.ts +15 -0
- package/lib/adapters/graphql/utils/createApiItem.js +1 -0
- package/lib/adapters/graphql/utils/getBadges.d.ts +4 -0
- package/lib/adapters/graphql/utils/getBadges.js +1 -0
- package/lib/adapters/graphql/utils/ignoreInternalItems.d.ts +3 -0
- package/lib/adapters/graphql/utils/ignoreInternalItems.js +1 -0
- package/lib/adapters/graphql/utils/isRootType.d.ts +2 -0
- package/lib/adapters/graphql/utils/isRootType.js +1 -0
- package/lib/adapters/graphql/utils/menuSlashRegex.d.ts +1 -0
- package/lib/adapters/graphql/utils/menuSlashRegex.js +1 -0
- package/lib/adapters/graphql/utils/normalizeMenu.d.ts +3 -0
- package/lib/adapters/graphql/utils/normalizeMenu.js +1 -0
- package/lib/adapters/graphql/utils/shouldIncludeItem.d.ts +2 -0
- package/lib/adapters/graphql/utils/shouldIncludeItem.js +1 -0
- package/lib/adapters/graphql/utils/summary.d.ts +4 -0
- package/lib/adapters/graphql/utils/summary.js +1 -0
- package/lib/adapters/graphql/utils/validateMenuConfig.d.ts +3 -0
- package/lib/adapters/graphql/utils/validateMenuConfig.js +1 -0
- package/lib/adapters/helpers.d.ts +47 -0
- package/lib/adapters/helpers.js +1 -0
- package/lib/adapters/openapi/build/context.d.ts +13 -0
- package/lib/adapters/openapi/build/context.js +1 -0
- package/lib/adapters/openapi/build-code-sample-source.d.ts +5 -0
- package/lib/adapters/openapi/build-code-sample-source.js +1 -0
- package/lib/adapters/openapi/buildContext.d.ts +2 -0
- package/lib/adapters/openapi/buildContext.js +1 -0
- package/lib/adapters/openapi/configure/apply-request-values.d.ts +3 -0
- package/lib/adapters/openapi/configure/apply-request-values.js +1 -0
- package/lib/adapters/openapi/configure/index.d.ts +3 -0
- package/lib/adapters/openapi/configure/index.js +1 -0
- package/lib/adapters/openapi/configure/merge-utils.d.ts +32 -0
- package/lib/adapters/openapi/configure/merge-utils.js +1 -0
- package/lib/adapters/openapi/configure/resolve-request-values.d.ts +17 -0
- package/lib/adapters/openapi/configure/resolve-request-values.js +1 -0
- package/lib/adapters/openapi/constants.d.ts +4 -0
- package/lib/adapters/openapi/constants.js +1 -0
- package/lib/adapters/openapi/group/content.d.ts +28 -0
- package/lib/adapters/openapi/group/content.js +1 -0
- package/lib/adapters/openapi/group/item.d.ts +11 -0
- package/lib/adapters/openapi/group/item.js +1 -0
- package/lib/adapters/openapi/index.d.ts +13 -0
- package/lib/adapters/openapi/index.js +1 -0
- package/lib/adapters/openapi/items/mcp/content.d.ts +5 -0
- package/lib/adapters/openapi/items/mcp/content.js +1 -0
- package/lib/adapters/openapi/items/mcp/item.d.ts +9 -0
- package/lib/adapters/openapi/items/mcp/item.js +1 -0
- package/lib/adapters/openapi/items/operation/content.d.ts +3 -0
- package/lib/adapters/openapi/items/operation/content.js +1 -0
- package/lib/adapters/openapi/items/operation/item.d.ts +9 -0
- package/lib/adapters/openapi/items/operation/item.js +1 -0
- package/lib/adapters/openapi/items/overview/content.d.ts +18 -0
- package/lib/adapters/openapi/items/overview/content.js +1 -0
- package/lib/adapters/openapi/items/overview/item.d.ts +3 -0
- package/lib/adapters/openapi/items/overview/item.js +1 -0
- package/lib/adapters/openapi/items/schema/content.d.ts +3 -0
- package/lib/adapters/openapi/items/schema/content.js +1 -0
- package/lib/adapters/openapi/items/schema/item.d.ts +9 -0
- package/lib/adapters/openapi/items/schema/item.js +1 -0
- package/lib/adapters/openapi/panels/download.d.ts +3 -0
- package/lib/adapters/openapi/panels/download.js +1 -0
- package/lib/adapters/openapi/panels/languages.d.ts +3 -0
- package/lib/adapters/openapi/panels/languages.js +1 -0
- package/lib/adapters/openapi/panels/mcp.d.ts +3 -0
- package/lib/adapters/openapi/panels/mcp.js +1 -0
- package/lib/adapters/openapi/panels/overview.d.ts +3 -0
- package/lib/adapters/openapi/panels/overview.js +1 -0
- package/lib/adapters/openapi/panels/servers.d.ts +3 -0
- package/lib/adapters/openapi/panels/servers.js +1 -0
- package/lib/adapters/openapi/resolve-openapi-example-value.d.ts +3 -0
- package/lib/adapters/openapi/resolve-openapi-example-value.js +1 -0
- package/lib/adapters/openapi/store.d.ts +4 -0
- package/lib/adapters/openapi/store.js +1 -0
- package/lib/adapters/openapi/utils/JsonPointer.d.ts +51 -0
- package/lib/adapters/openapi/utils/JsonPointer.js +1 -0
- package/lib/adapters/openapi/utils/applyIgnoreNamedSchemasDeep.d.ts +1 -0
- package/lib/adapters/openapi/utils/applyIgnoreNamedSchemasDeep.js +1 -0
- package/lib/adapters/openapi/utils/helpers.d.ts +14 -0
- package/lib/adapters/openapi/utils/helpers.js +1 -0
- package/lib/adapters/openapi/utils/merge-mock-server.d.ts +15 -0
- package/lib/adapters/openapi/utils/merge-mock-server.js +1 -0
- package/lib/adapters/openapi/utils/operation.d.ts +23 -0
- package/lib/adapters/openapi/utils/operation.js +1 -0
- package/lib/adapters/openapi/utils/resolvePathItemRef.d.ts +2 -0
- package/lib/adapters/openapi/utils/resolvePathItemRef.js +1 -0
- package/lib/adapters/openapi/utils/url.d.ts +2 -0
- package/lib/adapters/openapi/utils/url.js +1 -0
- package/lib/adapters/rbac-schema-propagation.d.ts +2 -0
- package/lib/adapters/rbac-schema-propagation.js +1 -0
- package/lib/adapters/scopedContext.d.ts +5 -0
- package/lib/adapters/scopedContext.js +1 -0
- package/lib/adapters/utils/convertSwagger2OpenAPI.d.ts +2 -0
- package/lib/adapters/utils/convertSwagger2OpenAPI.js +1 -0
- package/lib/adapters/utils/dompurify.d.ts +5 -0
- package/lib/adapters/utils/dompurify.js +1 -0
- package/lib/adapters/utils/infoMetadata.d.ts +5 -0
- package/lib/adapters/utils/infoMetadata.js +1 -0
- package/lib/adapters/utils/isPlainText.d.ts +6 -0
- package/lib/adapters/utils/isPlainText.js +1 -0
- package/lib/adapters/utils/markdoc.d.ts +38 -0
- package/lib/adapters/utils/markdoc.js +1 -0
- package/lib/adapters/utils/parseMarkdown.d.ts +8 -0
- package/lib/adapters/utils/parseMarkdown.js +1 -0
- package/lib/adapters/utils/seo.d.ts +3 -0
- package/lib/adapters/utils/seo.js +1 -0
- package/lib/adapters/utils/simplifyAstStructure.d.ts +2 -0
- package/lib/adapters/utils/simplifyAstStructure.js +1 -0
- package/lib/components/AdmonitionItem.d.ts +6 -0
- package/lib/components/AdmonitionItem.js +1 -0
- package/lib/components/ChannelAddressItem.d.ts +7 -0
- package/lib/components/ChannelAddressItem.js +31 -0
- package/lib/components/ContainerItem.d.ts +9 -0
- package/lib/components/ContainerItem.js +1 -0
- package/lib/components/EmptyMessageItem.d.ts +6 -0
- package/lib/components/EmptyMessageItem.js +6 -0
- package/lib/components/ErrorBoundary.d.ts +18 -0
- package/lib/components/ErrorBoundary.js +1 -0
- package/lib/components/ExtensionsItem.d.ts +7 -0
- package/lib/components/ExtensionsItem.js +1 -0
- package/lib/components/ExternalDocsItem.d.ts +8 -0
- package/lib/components/ExternalDocsItem.js +1 -0
- package/lib/components/FeedbackItem.d.ts +9 -0
- package/lib/components/FeedbackItem.js +17 -0
- package/lib/components/Header/HeaderItem.d.ts +91 -0
- package/lib/components/Header/HeaderItem.js +105 -0
- package/lib/components/Header/HeaderResponseCodeTabs.d.ts +8 -0
- package/lib/components/Header/HeaderResponseCodeTabs.js +1 -0
- package/lib/components/Header/ResponseDeepLinkAnchor.d.ts +9 -0
- package/lib/components/Header/ResponseDeepLinkAnchor.js +1 -0
- package/lib/components/Header/hooks.d.ts +5 -0
- package/lib/components/Header/hooks.js +1 -0
- package/lib/components/InfoMetadataItem.d.ts +7 -0
- package/lib/components/InfoMetadataItem.js +1 -0
- package/lib/components/ItemContent/ItemContentRenderer.d.ts +8 -0
- package/lib/components/ItemContent/ItemContentRenderer.js +11 -0
- package/lib/components/ItemContent/SectionHeader.d.ts +8 -0
- package/lib/components/ItemContent/SectionHeader.js +14 -0
- package/lib/components/ItemContent/hooks.d.ts +5 -0
- package/lib/components/ItemContent/hooks.js +1 -0
- package/lib/components/ItemContent/sections/BodyMimeTypeField.d.ts +12 -0
- package/lib/components/ItemContent/sections/BodyMimeTypeField.js +60 -0
- package/lib/components/ItemContent/sections/BodySection.d.ts +7 -0
- package/lib/components/ItemContent/sections/BodySection.js +13 -0
- package/lib/components/ItemContent/sections/CallbacksSection.d.ts +5 -0
- package/lib/components/ItemContent/sections/CallbacksSection.js +131 -0
- package/lib/components/ItemContent/sections/FieldsSection.d.ts +7 -0
- package/lib/components/ItemContent/sections/FieldsSection.js +79 -0
- package/lib/components/ItemContent/sections/MessagesSection.d.ts +5 -0
- package/lib/components/ItemContent/sections/MessagesSection.js +58 -0
- package/lib/components/ItemContent/sections/ParametersSection.d.ts +6 -0
- package/lib/components/ItemContent/sections/ParametersSection.js +4 -0
- package/lib/components/ItemContent/sections/ResponsesSection.d.ts +5 -0
- package/lib/components/ItemContent/sections/ResponsesSection.js +28 -0
- package/lib/components/ItemContent/sections/ValuesSection.d.ts +5 -0
- package/lib/components/ItemContent/sections/ValuesSection.js +26 -0
- package/lib/components/LicenseOverlay.d.ts +6 -0
- package/lib/components/LicenseOverlay.js +42 -0
- package/lib/components/Mapper.d.ts +25 -0
- package/lib/components/Mapper.js +1 -0
- package/lib/components/MarkdownItem.d.ts +6 -0
- package/lib/components/MarkdownItem.js +1 -0
- package/lib/components/Mcp/McpPrompt.d.ts +8 -0
- package/lib/components/Mcp/McpPrompt.js +1 -0
- package/lib/components/Mcp/McpResource.d.ts +8 -0
- package/lib/components/Mcp/McpResource.js +3 -0
- package/lib/components/Mcp/McpTool.d.ts +8 -0
- package/lib/components/Mcp/McpTool.js +1 -0
- package/lib/components/Mcp/styled.d.ts +19 -0
- package/lib/components/Mcp/styled.js +22 -0
- package/lib/components/Mcp/utils.d.ts +6 -0
- package/lib/components/Mcp/utils.js +1 -0
- package/lib/components/MessageLinksItem.d.ts +7 -0
- package/lib/components/MessageLinksItem.js +30 -0
- package/lib/components/RenderHook.d.ts +6 -0
- package/lib/components/RenderHook.js +1 -0
- package/lib/components/Replay/EmbeddedReplay.d.ts +16 -0
- package/lib/components/Replay/EmbeddedReplay.js +10 -0
- package/lib/components/Replay/Replay.d.ts +13 -0
- package/lib/components/Replay/Replay.js +1 -0
- package/lib/components/Replay/adapterToMarkdownParser.d.ts +12 -0
- package/lib/components/Replay/adapterToMarkdownParser.js +1 -0
- package/lib/components/Replay/index.d.ts +2 -0
- package/lib/components/Replay/index.js +1 -0
- package/lib/components/Schema/SchemaDescription.d.ts +5 -0
- package/lib/components/Schema/SchemaDescription.js +1 -0
- package/lib/components/Schema/SchemaView.d.ts +20 -0
- package/lib/components/Schema/SchemaView.js +1 -0
- package/lib/components/Schema/helpers.d.ts +1 -0
- package/lib/components/Schema/helpers.js +1 -0
- package/lib/components/Schema/hooks/useSchemaDocument.d.ts +7 -0
- package/lib/components/Schema/hooks/useSchemaDocument.js +1 -0
- package/lib/components/Schema/hooks/useSchemaFieldDeepLink.d.ts +5 -0
- package/lib/components/Schema/hooks/useSchemaFieldDeepLink.js +1 -0
- package/lib/components/Schema/hooks/useVariantIndexFromHash.d.ts +1 -0
- package/lib/components/Schema/hooks/useVariantIndexFromHash.js +1 -0
- package/lib/components/Schema/styled.d.ts +146 -0
- package/lib/components/Schema/styled.js +342 -0
- package/lib/components/Schema/utils.d.ts +26 -0
- package/lib/components/Schema/utils.js +1 -0
- package/lib/components/Schema/views/ArrayRenderer.d.ts +13 -0
- package/lib/components/Schema/views/ArrayRenderer.js +1 -0
- package/lib/components/Schema/views/CollapsibleNestedFields.d.ts +25 -0
- package/lib/components/Schema/views/CollapsibleNestedFields.js +1 -0
- package/lib/components/Schema/views/DefaultMappingOptionLabel.d.ts +5 -0
- package/lib/components/Schema/views/DefaultMappingOptionLabel.js +15 -0
- package/lib/components/Schema/views/DiscriminatorPropertyRow.d.ts +13 -0
- package/lib/components/Schema/views/DiscriminatorPropertyRow.js +1 -0
- package/lib/components/Schema/views/Examples.d.ts +7 -0
- package/lib/components/Schema/views/Examples.js +1 -0
- package/lib/components/Schema/views/ExpandableExample.d.ts +4 -0
- package/lib/components/Schema/views/ExpandableExample.js +3 -0
- package/lib/components/Schema/views/ObjectRenderer.d.ts +14 -0
- package/lib/components/Schema/views/ObjectRenderer.js +1 -0
- package/lib/components/Schema/views/Pattern.d.ts +6 -0
- package/lib/components/Schema/views/Pattern.js +1 -0
- package/lib/components/Schema/views/PrimitiveRenderer.d.ts +5 -0
- package/lib/components/Schema/views/PrimitiveRenderer.js +1 -0
- package/lib/components/Schema/views/PropertyFieldRow.d.ts +16 -0
- package/lib/components/Schema/views/PropertyFieldRow.js +1 -0
- package/lib/components/Schema/views/PropertyRenderer.d.ts +15 -0
- package/lib/components/Schema/views/PropertyRenderer.js +1 -0
- package/lib/components/Schema/views/SchemaEnumDescriptions.d.ts +9 -0
- package/lib/components/Schema/views/SchemaEnumDescriptions.js +5 -0
- package/lib/components/Schema/views/SchemaEnumValues.d.ts +8 -0
- package/lib/components/Schema/views/SchemaEnumValues.js +1 -0
- package/lib/components/Schema/views/SchemaTitleLabel.d.ts +5 -0
- package/lib/components/Schema/views/SchemaTitleLabel.js +1 -0
- package/lib/components/Schema/views/SchemaVariantSelector.d.ts +11 -0
- package/lib/components/Schema/views/SchemaVariantSelector.js +1 -0
- package/lib/components/Schema/views/SwitcherRenderer.d.ts +14 -0
- package/lib/components/Schema/views/SwitcherRenderer.js +1 -0
- package/lib/components/Schema/views/VariantDropdown.d.ts +14 -0
- package/lib/components/Schema/views/VariantDropdown.js +99 -0
- package/lib/components/SchemaCatalogLink.d.ts +6 -0
- package/lib/components/SchemaCatalogLink.js +35 -0
- package/lib/components/Security/Divider.d.ts +4 -0
- package/lib/components/Security/Divider.js +15 -0
- package/lib/components/Security/RequiredScopes.d.ts +4 -0
- package/lib/components/Security/RequiredScopes.js +5 -0
- package/lib/components/Security/ScopeTagWithTooltip.d.ts +11 -0
- package/lib/components/Security/ScopeTagWithTooltip.js +28 -0
- package/lib/components/Security/SecurityButtonPanel.d.ts +5 -0
- package/lib/components/Security/SecurityButtonPanel.js +1 -0
- package/lib/components/Security/SecurityFlowDetail.d.ts +5 -0
- package/lib/components/Security/SecurityFlowDetail.js +1 -0
- package/lib/components/Security/SecurityModal.d.ts +6 -0
- package/lib/components/Security/SecurityModal.js +1 -0
- package/lib/components/Security/SecuritySection.d.ts +3 -0
- package/lib/components/Security/SecuritySection.js +1 -0
- package/lib/components/Security/styled.d.ts +83 -0
- package/lib/components/Security/styled.js +219 -0
- package/lib/components/Security/types.d.ts +3 -0
- package/lib/components/Security/types.js +0 -0
- package/lib/components/SideMenu/SideMenu.d.ts +7 -0
- package/lib/components/SideMenu/SideMenu.js +4 -0
- package/lib/components/SideMenu/buildMenuItems.d.ts +29 -0
- package/lib/components/SideMenu/buildMenuItems.js +1 -0
- package/lib/components/SideMenu/useMenuItems.d.ts +14 -0
- package/lib/components/SideMenu/useMenuItems.js +1 -0
- package/lib/components/StickySidebar/SidebarActions.d.ts +1 -0
- package/lib/components/StickySidebar/SidebarActions.js +5 -0
- package/lib/components/StickySidebar/StickySidebar.d.ts +7 -0
- package/lib/components/StickySidebar/StickySidebar.js +22 -0
- package/lib/components/common/Badge.d.ts +43 -0
- package/lib/components/common/Badge.js +33 -0
- package/lib/components/common/Breadcrumbs.d.ts +11 -0
- package/lib/components/common/Breadcrumbs.js +43 -0
- package/lib/components/common/ContentWrapper.d.ts +25 -0
- package/lib/components/common/ContentWrapper.js +106 -0
- package/lib/components/common/DeepLinkAnchor.d.ts +20 -0
- package/lib/components/common/DeepLinkAnchor.js +32 -0
- package/lib/components/common/ExpandAllButton.d.ts +6 -0
- package/lib/components/common/ExpandAllButton.js +3 -0
- package/lib/components/common/ExternalDocumentation.d.ts +10 -0
- package/lib/components/common/ExternalDocumentation.js +10 -0
- package/lib/components/common/LazyMount.d.ts +9 -0
- package/lib/components/common/LazyMount.js +3 -0
- package/lib/components/common/LazySection.d.ts +14 -0
- package/lib/components/common/LazySection.js +9 -0
- package/lib/components/common/Markdown.d.ts +7 -0
- package/lib/components/common/Markdown.js +1 -0
- package/lib/components/common/MoreDetailsButton.d.ts +5 -0
- package/lib/components/common/MoreDetailsButton.js +12 -0
- package/lib/components/common/NestedToggleButton.d.ts +10 -0
- package/lib/components/common/NestedToggleButton.js +16 -0
- package/lib/components/common/PanelItem.d.ts +70 -0
- package/lib/components/common/PanelItem.js +62 -0
- package/lib/components/common/ResponseCodeTabs.d.ts +8 -0
- package/lib/components/common/ResponseCodeTabs.js +36 -0
- package/lib/components/common/Tag.d.ts +1 -0
- package/lib/components/common/Tag.js +11 -0
- package/lib/components/common/VendorExtensions.d.ts +7 -0
- package/lib/components/common/VendorExtensions.js +5 -0
- package/lib/components/common/ViewNested.d.ts +14 -0
- package/lib/components/common/ViewNested.js +31 -0
- package/lib/components/graphql/ArrowIcon.d.ts +9 -0
- package/lib/components/graphql/ArrowIcon.js +4 -0
- package/lib/components/graphql/GraphQLArgumentsSection.d.ts +10 -0
- package/lib/components/graphql/GraphQLArgumentsSection.js +1 -0
- package/lib/components/graphql/GraphQLEnumEmbedded.d.ts +5 -0
- package/lib/components/graphql/GraphQLEnumEmbedded.js +3 -0
- package/lib/components/graphql/GraphQLFieldView.d.ts +12 -0
- package/lib/components/graphql/GraphQLFieldView.js +1 -0
- package/lib/components/graphql/GraphQLFieldsEmbedded.d.ts +9 -0
- package/lib/components/graphql/GraphQLFieldsEmbedded.js +1 -0
- package/lib/components/graphql/GraphQLGroupTypeList.d.ts +5 -0
- package/lib/components/graphql/GraphQLGroupTypeList.js +11 -0
- package/lib/components/graphql/GraphQLHeaderExtras.d.ts +7 -0
- package/lib/components/graphql/GraphQLHeaderExtras.js +1 -0
- package/lib/components/graphql/GraphQLReturnTypeDetails.d.ts +11 -0
- package/lib/components/graphql/GraphQLReturnTypeDetails.js +18 -0
- package/lib/components/graphql/GraphQLTypeView.d.ts +9 -0
- package/lib/components/graphql/GraphQLTypeView.js +1 -0
- package/lib/components/graphql/GraphQLUnionEmbedded.d.ts +5 -0
- package/lib/components/graphql/GraphQLUnionEmbedded.js +1 -0
- package/lib/components/graphql/RequiresScopesButton.d.ts +9 -0
- package/lib/components/graphql/RequiresScopesButton.js +38 -0
- package/lib/components/graphql/RequiresScopesModal.d.ts +9 -0
- package/lib/components/graphql/RequiresScopesModal.js +88 -0
- package/lib/components/graphql/ViewNested.d.ts +14 -0
- package/lib/components/graphql/ViewNested.js +46 -0
- package/lib/components/graphql/renderDescription.d.ts +2 -0
- package/lib/components/graphql/renderDescription.js +1 -0
- package/lib/components/graphql/sections/GraphQLArgsSection.d.ts +5 -0
- package/lib/components/graphql/sections/GraphQLArgsSection.js +7 -0
- package/lib/components/graphql/sections/GraphQLFieldsSection.d.ts +5 -0
- package/lib/components/graphql/sections/GraphQLFieldsSection.js +1 -0
- package/lib/components/graphql/sections/ImplementedBySection.d.ts +5 -0
- package/lib/components/graphql/sections/ImplementedBySection.js +1 -0
- package/lib/components/graphql/sections/ImplementsSection.d.ts +5 -0
- package/lib/components/graphql/sections/ImplementsSection.js +1 -0
- package/lib/components/graphql/sections/PossibleTypesSection.d.ts +5 -0
- package/lib/components/graphql/sections/PossibleTypesSection.js +1 -0
- package/lib/components/graphql/sections/RequiresScopesSection.d.ts +5 -0
- package/lib/components/graphql/sections/RequiresScopesSection.js +1 -0
- package/lib/components/graphql/sections/ReturnTypeSection.d.ts +5 -0
- package/lib/components/graphql/sections/ReturnTypeSection.js +7 -0
- package/lib/components/graphql/styled.d.ts +45 -0
- package/lib/components/graphql/styled.js +124 -0
- package/lib/components/markdoc/Heading.d.ts +11 -0
- package/lib/components/markdoc/Heading.js +6 -0
- package/lib/components/markdoc/SchemaDefinition.d.ts +11 -0
- package/lib/components/markdoc/SchemaDefinition.js +6 -0
- package/lib/components/markdoc/apiDocsMarkdocComponents.d.ts +6 -0
- package/lib/components/markdoc/apiDocsMarkdocComponents.js +1 -0
- package/lib/components/markdoc/buildMarkdocOptions.d.ts +9 -0
- package/lib/components/markdoc/buildMarkdocOptions.js +1 -0
- package/lib/components/markdoc/defaultMarkdocConfig.d.ts +14 -0
- package/lib/components/markdoc/defaultMarkdocConfig.js +1 -0
- package/lib/components/markdoc/markdocAdapter.d.ts +11 -0
- package/lib/components/markdoc/markdocAdapter.js +1 -0
- package/lib/components/markdoc/markdocParser.d.ts +6 -0
- package/lib/components/markdoc/markdocParser.js +1 -0
- package/lib/components/markdoc/markdocRenderer.d.ts +8 -0
- package/lib/components/markdoc/markdocRenderer.js +3 -0
- package/lib/components/markdoc/tags/mcp-tag-schemas.d.ts +2 -0
- package/lib/components/markdoc/tags/mcp-tag-schemas.js +1 -0
- package/lib/components/markdoc/tags/schema-definition-tag.d.ts +2 -0
- package/lib/components/markdoc/tags/schema-definition-tag.js +1 -0
- package/lib/components/panels/DownloadPanelItem.d.ts +5 -0
- package/lib/components/panels/DownloadPanelItem.js +26 -0
- package/lib/components/panels/ExampleItem/CallbackPayloadItem.d.ts +5 -0
- package/lib/components/panels/ExampleItem/CallbackPayloadItem.js +5 -0
- package/lib/components/panels/ExampleItem/CodeSampleItem.d.ts +5 -0
- package/lib/components/panels/ExampleItem/CodeSampleItem.js +1 -0
- package/lib/components/panels/ExampleItem/ExamplesPanelItem.d.ts +3 -0
- package/lib/components/panels/ExampleItem/ExamplesPanelItem.js +1 -0
- package/lib/components/panels/ExampleItem/GraphQLQueryItem.d.ts +5 -0
- package/lib/components/panels/ExampleItem/GraphQLQueryItem.js +1 -0
- package/lib/components/panels/ExampleItem/GraphQLResponseItem.d.ts +5 -0
- package/lib/components/panels/ExampleItem/GraphQLResponseItem.js +1 -0
- package/lib/components/panels/ExampleItem/GraphQLTypeSampleItem.d.ts +5 -0
- package/lib/components/panels/ExampleItem/GraphQLTypeSampleItem.js +1 -0
- package/lib/components/panels/ExampleItem/GraphQLVariablesItem.d.ts +5 -0
- package/lib/components/panels/ExampleItem/GraphQLVariablesItem.js +1 -0
- package/lib/components/panels/ExampleItem/PayloadExampleItem.d.ts +5 -0
- package/lib/components/panels/ExampleItem/PayloadExampleItem.js +4 -0
- package/lib/components/panels/ExampleItem/ResponseExampleItem.d.ts +5 -0
- package/lib/components/panels/ExampleItem/ResponseExampleItem.js +1 -0
- package/lib/components/panels/ExampleItem/ServerDropdown.d.ts +17 -0
- package/lib/components/panels/ExampleItem/ServerDropdown.js +11 -0
- package/lib/components/panels/ExampleItem/hooks.d.ts +25 -0
- package/lib/components/panels/ExampleItem/hooks.js +1 -0
- package/lib/components/panels/ExampleItem/selectors.d.ts +36 -0
- package/lib/components/panels/ExampleItem/selectors.js +1 -0
- package/lib/components/panels/ExampleItem/styled.d.ts +164 -0
- package/lib/components/panels/ExampleItem/styled.js +128 -0
- package/lib/components/panels/ExampleItem/types.d.ts +9 -0
- package/lib/components/panels/ExampleItem/types.js +0 -0
- package/lib/components/panels/GroupPanelItem.d.ts +5 -0
- package/lib/components/panels/GroupPanelItem.js +116 -0
- package/lib/components/panels/LanguageItem/LanguageDropdown.d.ts +15 -0
- package/lib/components/panels/LanguageItem/LanguageDropdown.js +1 -0
- package/lib/components/panels/LanguageItem/LanguageItem.d.ts +11 -0
- package/lib/components/panels/LanguageItem/LanguageItem.js +1 -0
- package/lib/components/panels/LanguageItem/LanguageList.d.ts +10 -0
- package/lib/components/panels/LanguageItem/LanguageList.js +1 -0
- package/lib/components/panels/LanguageItem/LanguageListSkeleton.d.ts +4 -0
- package/lib/components/panels/LanguageItem/LanguageListSkeleton.js +22 -0
- package/lib/components/panels/LanguageItem/LanguagePanelItem.d.ts +5 -0
- package/lib/components/panels/LanguageItem/LanguagePanelItem.js +1 -0
- package/lib/components/panels/LanguageItem/constants.d.ts +2 -0
- package/lib/components/panels/LanguageItem/constants.js +1 -0
- package/lib/components/panels/LanguageItem/styled.d.ts +94 -0
- package/lib/components/panels/LanguageItem/styled.js +96 -0
- package/lib/components/panels/LocationsPanelItem.d.ts +5 -0
- package/lib/components/panels/LocationsPanelItem.js +1 -0
- package/lib/components/panels/McpExamplePanelItem.d.ts +5 -0
- package/lib/components/panels/McpExamplePanelItem.js +6 -0
- package/lib/components/panels/McpPanelItem.d.ts +3 -0
- package/lib/components/panels/McpPanelItem.js +54 -0
- package/lib/components/panels/OverviewPanelItem.d.ts +3 -0
- package/lib/components/panels/OverviewPanelItem.js +17 -0
- package/lib/components/panels/PanelMapper.d.ts +5 -0
- package/lib/components/panels/PanelMapper.js +1 -0
- package/lib/components/panels/PanelNodeProps.d.ts +4 -0
- package/lib/components/panels/PanelNodeProps.js +0 -0
- package/lib/components/panels/ReferencesPanelItem.d.ts +5 -0
- package/lib/components/panels/ReferencesPanelItem.js +19 -0
- package/lib/components/panels/ServerItem/ServerDescriptionTooltip.d.ts +4 -0
- package/lib/components/panels/ServerItem/ServerDescriptionTooltip.js +1 -0
- package/lib/components/panels/ServerItem/ServerItem.d.ts +5 -0
- package/lib/components/panels/ServerItem/ServerItem.js +40 -0
- package/lib/components/panels/ServerItem/ServerPanelItem.d.ts +5 -0
- package/lib/components/panels/ServerItem/ServerPanelItem.js +1 -0
- package/lib/components/panels/asyncapi/BrokerItem/BrokerBindingsSection.d.ts +7 -0
- package/lib/components/panels/asyncapi/BrokerItem/BrokerBindingsSection.js +1 -0
- package/lib/components/panels/asyncapi/BrokerItem/BrokerModal.d.ts +8 -0
- package/lib/components/panels/asyncapi/BrokerItem/BrokerModal.js +49 -0
- package/lib/components/panels/asyncapi/BrokerItem/BrokerOverviewSection.d.ts +6 -0
- package/lib/components/panels/asyncapi/BrokerItem/BrokerOverviewSection.js +25 -0
- package/lib/components/panels/asyncapi/BrokerItem/BrokerPanel.styled.d.ts +7 -0
- package/lib/components/panels/asyncapi/BrokerItem/BrokerPanel.styled.js +25 -0
- package/lib/components/panels/asyncapi/BrokerItem/BrokerPanelItem.d.ts +5 -0
- package/lib/components/panels/asyncapi/BrokerItem/BrokerPanelItem.js +48 -0
- package/lib/components/panels/asyncapi/ChannelBindingItem/ChannelBindingItem.d.ts +5 -0
- package/lib/components/panels/asyncapi/ChannelBindingItem/ChannelBindingItem.js +32 -0
- package/lib/components/panels/asyncapi/MessageBindingItem/MessageBindingItem.d.ts +5 -0
- package/lib/components/panels/asyncapi/MessageBindingItem/MessageBindingItem.js +1 -0
- package/lib/components/panels/asyncapi/MessageReferencesItem/MessageReferencesItem.d.ts +5 -0
- package/lib/components/panels/asyncapi/MessageReferencesItem/MessageReferencesItem.js +42 -0
- package/lib/components/panels/asyncapi/OperationBindingItem/OperationBindingItem.d.ts +5 -0
- package/lib/components/panels/asyncapi/OperationBindingItem/OperationBindingItem.js +1 -0
- package/lib/components/panels/asyncapi/common/bindingPanel.d.ts +29 -0
- package/lib/components/panels/asyncapi/common/bindingPanel.js +48 -0
- package/lib/components/panels/shared-panel-styles.d.ts +8 -0
- package/lib/components/panels/shared-panel-styles.js +38 -0
- package/lib/components/panels/styled.d.ts +20 -0
- package/lib/components/panels/styled.js +28 -0
- package/lib/components/pluggable/RedocCodeSample.d.ts +12 -0
- package/lib/components/pluggable/RedocCodeSample.js +1 -0
- package/lib/components/pluggable/RedocExample.d.ts +8 -0
- package/lib/components/pluggable/RedocExample.js +7 -0
- package/lib/components/pluggable/RedocResponseSamples.d.ts +9 -0
- package/lib/components/pluggable/RedocResponseSamples.js +1 -0
- package/lib/components/pluggable/RedocSchema.d.ts +12 -0
- package/lib/components/pluggable/RedocSchema.js +1 -0
- package/lib/components/pluggable/index.d.ts +6 -0
- package/lib/components/pluggable/index.js +1 -0
- package/lib/constants/openapi.d.ts +30 -0
- package/lib/constants/openapi.js +1 -0
- package/lib/constants/rendering.d.ts +8 -0
- package/lib/constants/rendering.js +1 -0
- package/lib/contexts/markdownAdapter.d.ts +21 -0
- package/lib/contexts/markdownAdapter.js +1 -0
- package/lib/contexts/telemetry.d.ts +3 -0
- package/lib/contexts/telemetry.js +1 -0
- package/lib/empty-linkedom.d.ts +1 -0
- package/lib/empty-linkedom.js +1 -0
- package/lib/empty.d.ts +7 -0
- package/lib/empty.js +1 -0
- package/lib/events/codeSampleCopy.d.ts +2 -0
- package/lib/events/codeSampleCopy.js +1 -0
- package/lib/events/creator.d.ts +2 -0
- package/lib/events/creator.js +1 -0
- package/lib/events/index.d.ts +8 -0
- package/lib/events/index.js +1 -0
- package/lib/events/languageSwitch.d.ts +2 -0
- package/lib/events/languageSwitch.js +1 -0
- package/lib/events/panelToggle.d.ts +2 -0
- package/lib/events/panelToggle.js +1 -0
- package/lib/events/serverSwitch.d.ts +2 -0
- package/lib/events/serverSwitch.js +1 -0
- package/lib/events/tryItOpen.d.ts +2 -0
- package/lib/events/tryItOpen.js +1 -0
- package/lib/events/tryItSent.d.ts +2 -0
- package/lib/events/tryItSent.js +1 -0
- package/lib/events/types.d.ts +9 -0
- package/lib/events/types.js +1 -0
- package/lib/hoc/withItemId.d.ts +6 -0
- package/lib/hoc/withItemId.js +1 -0
- package/lib/hoc/withReplayPrefetch.d.ts +14 -0
- package/lib/hoc/withReplayPrefetch.js +1 -0
- package/lib/hoc/withRouter.d.ts +4 -0
- package/lib/hoc/withRouter.js +1 -0
- package/lib/hoc/withStoreProvider.d.ts +23 -0
- package/lib/hoc/withStoreProvider.js +1 -0
- package/lib/hooks/useApiDocsRoutes.d.ts +8 -0
- package/lib/hooks/useApiDocsRoutes.js +1 -0
- package/lib/hooks/useApiDocsScroll.d.ts +9 -0
- package/lib/hooks/useApiDocsScroll.js +1 -0
- package/lib/hooks/useBodyScrollLock.d.ts +1 -0
- package/lib/hooks/useBodyScrollLock.js +1 -0
- package/lib/hooks/useCodeHighlight.d.ts +28 -0
- package/lib/hooks/useCodeHighlight.js +1 -0
- package/lib/hooks/useCopyCodeTelemetry.d.ts +13 -0
- package/lib/hooks/useCopyCodeTelemetry.js +1 -0
- package/lib/hooks/useDeepLinkSection.d.ts +16 -0
- package/lib/hooks/useDeepLinkSection.js +1 -0
- package/lib/hooks/useExpandableSection.d.ts +4 -0
- package/lib/hooks/useExpandableSection.js +1 -0
- package/lib/hooks/useHashLinkRedirect.d.ts +4 -0
- package/lib/hooks/useHashLinkRedirect.js +1 -0
- package/lib/hooks/useIsExpanded.d.ts +1 -0
- package/lib/hooks/useIsExpanded.js +1 -0
- package/lib/hooks/useIsHydrated.d.ts +4 -0
- package/lib/hooks/useIsHydrated.js +1 -0
- package/lib/hooks/useLicense.d.ts +6 -0
- package/lib/hooks/useLicense.js +1 -0
- package/lib/hooks/useManualScrollAnchor.d.ts +19 -0
- package/lib/hooks/useManualScrollAnchor.js +1 -0
- package/lib/hooks/useModalDismiss.d.ts +2 -0
- package/lib/hooks/useModalDismiss.js +1 -0
- package/lib/hooks/useNormalizeUrl.d.ts +2 -0
- package/lib/hooks/useNormalizeUrl.js +1 -0
- package/lib/hooks/useRouterHashBridge.d.ts +21 -0
- package/lib/hooks/useRouterHashBridge.js +1 -0
- package/lib/hooks/useScrollSpyUrlSync.d.ts +3 -0
- package/lib/hooks/useScrollSpyUrlSync.js +1 -0
- package/lib/hooks/useTelemetry.d.ts +2 -0
- package/lib/hooks/useTelemetry.js +1 -0
- package/lib/hooks/useTelemetryPageMetrics.d.ts +12 -0
- package/lib/hooks/useTelemetryPageMetrics.js +1 -0
- package/lib/hooks/useTranslate.d.ts +5 -0
- package/lib/hooks/useTranslate.js +1 -0
- package/lib/hooks/useUrlHash.d.ts +7 -0
- package/lib/hooks/useUrlHash.js +1 -0
- package/lib/hooks/useUserScrollIntent.d.ts +18 -0
- package/lib/hooks/useUserScrollIntent.js +1 -0
- package/lib/hooks/useVisitedChannelsTracker.d.ts +6 -0
- package/lib/hooks/useVisitedChannelsTracker.js +1 -0
- package/lib/icons/CSharpIcon/CSharpIcon.d.ts +2 -0
- package/lib/icons/CSharpIcon/CSharpIcon.js +1 -0
- package/lib/icons/CSharpIcon/index.d.ts +1 -0
- package/lib/icons/CSharpIcon/index.js +1 -0
- package/lib/icons/CurlIcon/CurlIcon.d.ts +4 -0
- package/lib/icons/CurlIcon/CurlIcon.js +16 -0
- package/lib/icons/CurlIcon/index.d.ts +1 -0
- package/lib/icons/CurlIcon/index.js +1 -0
- package/lib/icons/DefaultMappingIcon/DefaultMappingIcon.d.ts +4 -0
- package/lib/icons/DefaultMappingIcon/DefaultMappingIcon.js +10 -0
- package/lib/icons/DefaultMappingIcon/index.d.ts +1 -0
- package/lib/icons/DefaultMappingIcon/index.js +1 -0
- package/lib/icons/GOIcon/GOIcon.d.ts +2 -0
- package/lib/icons/GOIcon/GOIcon.js +1 -0
- package/lib/icons/GOIcon/index.d.ts +1 -0
- package/lib/icons/GOIcon/index.js +1 -0
- package/lib/icons/JavaIcon/JavaIcon.d.ts +2 -0
- package/lib/icons/JavaIcon/JavaIcon.js +1 -0
- package/lib/icons/JavaIcon/index.d.ts +1 -0
- package/lib/icons/JavaIcon/index.js +1 -0
- package/lib/icons/JavaScriptIcon/JavaScriptIcon.d.ts +2 -0
- package/lib/icons/JavaScriptIcon/JavaScriptIcon.js +1 -0
- package/lib/icons/JavaScriptIcon/index.d.ts +1 -0
- package/lib/icons/JavaScriptIcon/index.js +1 -0
- package/lib/icons/ListIcon/ListIcon.d.ts +14 -0
- package/lib/icons/ListIcon/ListIcon.js +10 -0
- package/lib/icons/NodeJSIcon/NodeJSIcon.d.ts +2 -0
- package/lib/icons/NodeJSIcon/NodeJSIcon.js +1 -0
- package/lib/icons/NodeJSIcon/index.d.ts +1 -0
- package/lib/icons/NodeJSIcon/index.js +1 -0
- package/lib/icons/PHPIcon/PHPIcon.d.ts +2 -0
- package/lib/icons/PHPIcon/PHPIcon.js +1 -0
- package/lib/icons/PHPIcon/index.d.ts +1 -0
- package/lib/icons/PHPIcon/index.js +1 -0
- package/lib/icons/PayloadIcon/PayloadIcon.d.ts +2 -0
- package/lib/icons/PayloadIcon/PayloadIcon.js +1 -0
- package/lib/icons/PayloadIcon/index.d.ts +1 -0
- package/lib/icons/PayloadIcon/index.js +1 -0
- package/lib/icons/PlusCircleIcon/PlusCircleIcon.d.ts +7 -0
- package/lib/icons/PlusCircleIcon/PlusCircleIcon.js +10 -0
- package/lib/icons/PythonIcon/PythonIcon.d.ts +2 -0
- package/lib/icons/PythonIcon/PythonIcon.js +1 -0
- package/lib/icons/PythonIcon/index.d.ts +1 -0
- package/lib/icons/PythonIcon/index.js +1 -0
- package/lib/icons/RIcon/RIcon.d.ts +2 -0
- package/lib/icons/RIcon/RIcon.js +1 -0
- package/lib/icons/RIcon/index.d.ts +1 -0
- package/lib/icons/RIcon/index.js +1 -0
- package/lib/icons/RubyIcon/RubyIcon.d.ts +2 -0
- package/lib/icons/RubyIcon/RubyIcon.js +1 -0
- package/lib/icons/RubyIcon/index.d.ts +1 -0
- package/lib/icons/RubyIcon/index.js +1 -0
- package/lib/index.d.ts +60 -0
- package/lib/index.js +1 -0
- package/lib/jotai/app.d.ts +76 -0
- package/lib/jotai/app.js +1 -0
- package/lib/jotai/examples.d.ts +5 -0
- package/lib/jotai/examples.js +1 -0
- package/lib/jotai/graphql.d.ts +10 -0
- package/lib/jotai/graphql.js +1 -0
- package/lib/jotai/itemStore.d.ts +49 -0
- package/lib/jotai/itemStore.js +1 -0
- package/lib/jotai/routes.d.ts +4 -0
- package/lib/jotai/routes.js +1 -0
- package/lib/jotai/schema.d.ts +3 -0
- package/lib/jotai/schema.js +1 -0
- package/lib/jotai/store.d.ts +25 -0
- package/lib/jotai/store.js +1 -0
- package/lib/options/constants.d.ts +16 -0
- package/lib/options/constants.js +1 -0
- package/lib/options/helpers.d.ts +26 -0
- package/lib/options/helpers.js +1 -0
- package/lib/options/normalizeOptions.d.ts +2 -0
- package/lib/options/normalizeOptions.js +1 -0
- package/lib/pages/EntryPage.d.ts +25 -0
- package/lib/pages/EntryPage.js +5 -0
- package/lib/pages/GroupPage.d.ts +1 -0
- package/lib/pages/GroupPage.js +47 -0
- package/lib/pages/ItemPage.d.ts +1 -0
- package/lib/pages/ItemPage.js +26 -0
- package/lib/pages/NotFoundPage.d.ts +6 -0
- package/lib/pages/NotFoundPage.js +1 -0
- package/lib/pages/OverviewPage.d.ts +1 -0
- package/lib/pages/OverviewPage.js +11 -0
- package/lib/pages/TopLevelEntryView.d.ts +17 -0
- package/lib/pages/TopLevelEntryView.js +1 -0
- package/lib/services/code-samples/builder.d.ts +38 -0
- package/lib/services/code-samples/builder.js +1 -0
- package/lib/services/code-samples/constants/try-it-loading-state.d.ts +6 -0
- package/lib/services/code-samples/constants/try-it-loading-state.js +1 -0
- package/lib/services/code-samples/convertSampleToString.d.ts +3 -0
- package/lib/services/code-samples/convertSampleToString.js +17 -0
- package/lib/services/code-samples/discriminator.d.ts +39 -0
- package/lib/services/code-samples/discriminator.js +1 -0
- package/lib/services/code-samples/example-key.d.ts +25 -0
- package/lib/services/code-samples/example-key.js +1 -0
- package/lib/services/code-samples/generators/csharp-newtonsoft.d.ts +9 -0
- package/lib/services/code-samples/generators/csharp-newtonsoft.js +2 -0
- package/lib/services/code-samples/generators/csharp.d.ts +9 -0
- package/lib/services/code-samples/generators/csharp.js +2 -0
- package/lib/services/code-samples/generators/curl.d.ts +8 -0
- package/lib/services/code-samples/generators/curl.js +7 -0
- package/lib/services/code-samples/generators/go.d.ts +13 -0
- package/lib/services/code-samples/generators/go.js +3 -0
- package/lib/services/code-samples/generators/helpers/code-builder.d.ts +56 -0
- package/lib/services/code-samples/generators/helpers/code-builder.js +3 -0
- package/lib/services/code-samples/generators/helpers/mime.d.ts +1 -0
- package/lib/services/code-samples/generators/helpers/mime.js +1 -0
- package/lib/services/code-samples/generators/helpers/oauth2-snippets.d.ts +21 -0
- package/lib/services/code-samples/generators/helpers/oauth2-snippets.js +1 -0
- package/lib/services/code-samples/generators/helpers/php-array.d.ts +6 -0
- package/lib/services/code-samples/generators/helpers/php-array.js +5 -0
- package/lib/services/code-samples/generators/helpers/r-utils.d.ts +7 -0
- package/lib/services/code-samples/generators/helpers/r-utils.js +6 -0
- package/lib/services/code-samples/generators/helpers/shell.d.ts +8 -0
- package/lib/services/code-samples/generators/helpers/shell.js +1 -0
- package/lib/services/code-samples/generators/helpers/string-utils.d.ts +4 -0
- package/lib/services/code-samples/generators/helpers/string-utils.js +1 -0
- package/lib/services/code-samples/generators/helpers/stringify-js.d.ts +11 -0
- package/lib/services/code-samples/generators/helpers/stringify-js.js +8 -0
- package/lib/services/code-samples/generators/helpers/sub-request.d.ts +2 -0
- package/lib/services/code-samples/generators/helpers/sub-request.js +1 -0
- package/lib/services/code-samples/generators/helpers/url-helpers.d.ts +17 -0
- package/lib/services/code-samples/generators/helpers/url-helpers.js +2 -0
- package/lib/services/code-samples/generators/index.d.ts +16 -0
- package/lib/services/code-samples/generators/index.js +1 -0
- package/lib/services/code-samples/generators/java.d.ts +9 -0
- package/lib/services/code-samples/generators/java.js +3 -0
- package/lib/services/code-samples/generators/java8.d.ts +9 -0
- package/lib/services/code-samples/generators/java8.js +2 -0
- package/lib/services/code-samples/generators/javascript.d.ts +9 -0
- package/lib/services/code-samples/generators/javascript.js +1 -0
- package/lib/services/code-samples/generators/node.d.ts +10 -0
- package/lib/services/code-samples/generators/node.js +1 -0
- package/lib/services/code-samples/generators/php.d.ts +13 -0
- package/lib/services/code-samples/generators/php.js +6 -0
- package/lib/services/code-samples/generators/python.d.ts +3 -0
- package/lib/services/code-samples/generators/python.js +9 -0
- package/lib/services/code-samples/generators/r.d.ts +10 -0
- package/lib/services/code-samples/generators/r.js +7 -0
- package/lib/services/code-samples/generators/ruby.d.ts +10 -0
- package/lib/services/code-samples/generators/ruby.js +1 -0
- package/lib/services/code-samples/generators/types.d.ts +6 -0
- package/lib/services/code-samples/generators/types.js +0 -0
- package/lib/services/code-samples/har.d.ts +45 -0
- package/lib/services/code-samples/har.js +0 -0
- package/lib/services/code-samples/index.d.ts +8 -0
- package/lib/services/code-samples/index.js +1 -0
- package/lib/services/code-samples/replay/embedded-replay-converter.d.ts +6 -0
- package/lib/services/code-samples/replay/embedded-replay-converter.js +1 -0
- package/lib/services/code-samples/replay/from-openapi-document.d.ts +12 -0
- package/lib/services/code-samples/replay/from-openapi-document.js +1 -0
- package/lib/services/code-samples/replay/har-to-code-sample-har.d.ts +41 -0
- package/lib/services/code-samples/replay/har-to-code-sample-har.js +1 -0
- package/lib/services/code-samples/replay/index.d.ts +8 -0
- package/lib/services/code-samples/replay/index.js +1 -0
- package/lib/services/code-samples/replay/map-servers.d.ts +19 -0
- package/lib/services/code-samples/replay/map-servers.js +1 -0
- package/lib/services/code-samples/replay/merge-configure-into-source.d.ts +17 -0
- package/lib/services/code-samples/replay/merge-configure-into-source.js +1 -0
- package/lib/services/code-samples/replay/normalize-servers.d.ts +3 -0
- package/lib/services/code-samples/replay/normalize-servers.js +1 -0
- package/lib/services/code-samples/replay/overlay-converter.d.ts +15 -0
- package/lib/services/code-samples/replay/overlay-converter.js +1 -0
- package/lib/services/code-samples/replay/replay-adapter.d.ts +5 -0
- package/lib/services/code-samples/replay/replay-adapter.js +1 -0
- package/lib/services/code-samples/replay/replay-handler.d.ts +5 -0
- package/lib/services/code-samples/replay/replay-handler.js +1 -0
- package/lib/services/code-samples/replay/replay-predefined-env.d.ts +4 -0
- package/lib/services/code-samples/replay/replay-predefined-env.js +1 -0
- package/lib/services/code-samples/replay/replay-types.d.ts +75 -0
- package/lib/services/code-samples/replay/replay-types.js +0 -0
- package/lib/services/code-samples/resolvers.d.ts +5 -0
- package/lib/services/code-samples/resolvers.js +1 -0
- package/lib/services/code-samples/sample-har.d.ts +41 -0
- package/lib/services/code-samples/sample-har.js +0 -0
- package/lib/services/code-samples/server-variables.d.ts +11 -0
- package/lib/services/code-samples/server-variables.js +1 -0
- package/lib/services/code-samples/source.d.ts +107 -0
- package/lib/services/code-samples/source.js +0 -0
- package/lib/services/code-samples/use-resolvers.d.ts +2 -0
- package/lib/services/code-samples/use-resolvers.js +1 -0
- package/lib/services/code-samples/utils/map-request-values.d.ts +6 -0
- package/lib/services/code-samples/utils/map-request-values.js +1 -0
- package/lib/services/license/check.d.ts +14 -0
- package/lib/services/license/check.js +1 -0
- package/lib/services/operation-samples/index.d.ts +14 -0
- package/lib/services/operation-samples/index.js +2 -0
- package/lib/services/operation-samples/types.d.ts +37 -0
- package/lib/services/operation-samples/types.js +0 -0
- package/lib/services/schema/dialects/graphqlSchema.d.ts +1 -0
- package/lib/services/schema/dialects/graphqlSchema.js +1 -0
- package/lib/services/schema/dialects/jsonSchema.d.ts +3 -0
- package/lib/services/schema/dialects/jsonSchema.js +1 -0
- package/lib/services/schema/index.d.ts +1 -0
- package/lib/services/schema/index.js +1 -0
- package/lib/services/schema/propertyBuilder.d.ts +32 -0
- package/lib/services/schema/propertyBuilder.js +1 -0
- package/lib/services/schema/propertyTreeBuilder.d.ts +21 -0
- package/lib/services/schema/propertyTreeBuilder.js +1 -0
- package/lib/services/schema/schemaProcessor.d.ts +2 -0
- package/lib/services/schema/schemaProcessor.js +1 -0
- package/lib/services/schema/variant-label.d.ts +6 -0
- package/lib/services/schema/variant-label.js +1 -0
- package/lib/telemetry/RedocTelemetry.d.ts +15 -0
- package/lib/telemetry/RedocTelemetry.js +1 -0
- package/lib/types/asyncapi.d.ts +367 -0
- package/lib/types/asyncapi.js +1 -0
- package/lib/types/common.d.ts +168 -0
- package/lib/types/common.js +1 -0
- package/lib/types/content.d.ts +535 -0
- package/lib/types/content.js +0 -0
- package/lib/types/events.d.ts +75 -0
- package/lib/types/events.js +0 -0
- package/lib/types/graphql-store.d.ts +60 -0
- package/lib/types/graphql-store.js +1 -0
- package/lib/types/graphql.d.ts +54 -0
- package/lib/types/graphql.js +0 -0
- package/lib/types/index.d.ts +10 -0
- package/lib/types/index.js +1 -0
- package/lib/types/openapi.d.ts +586 -0
- package/lib/types/openapi.js +1 -0
- package/lib/types/options.d.ts +260 -0
- package/lib/types/options.js +0 -0
- package/lib/types/pluggable.d.ts +4 -0
- package/lib/types/pluggable.js +0 -0
- package/lib/types/schema.d.ts +155 -0
- package/lib/types/schema.js +1 -0
- package/lib/types/store.d.ts +182 -0
- package/lib/types/store.js +0 -0
- package/lib/utils/calculateMaxLength.d.ts +6 -0
- package/lib/utils/calculateMaxLength.js +1 -0
- package/lib/utils/compose.d.ts +7 -0
- package/lib/utils/compose.js +1 -0
- package/lib/utils/cookies.d.ts +7 -0
- package/lib/utils/cookies.js +1 -0
- package/lib/utils/deep-link.d.ts +146 -0
- package/lib/utils/deep-link.js +1 -0
- package/lib/utils/environments.d.ts +6 -0
- package/lib/utils/environments.js +1 -0
- package/lib/utils/expansion.d.ts +3 -0
- package/lib/utils/expansion.js +1 -0
- package/lib/utils/extract-extensions.d.ts +4 -0
- package/lib/utils/extract-extensions.js +1 -0
- package/lib/utils/fetch-openapi-definition.d.ts +6 -0
- package/lib/utils/fetch-openapi-definition.js +1 -0
- package/lib/utils/form-urlencoded.d.ts +6 -0
- package/lib/utils/form-urlencoded.js +1 -0
- package/lib/utils/graphql-directive-utils.d.ts +6 -0
- package/lib/utils/graphql-directive-utils.js +3 -0
- package/lib/utils/graphql-reference-map.d.ts +3 -0
- package/lib/utils/graphql-reference-map.js +1 -0
- package/lib/utils/graphql-samples.d.ts +25 -0
- package/lib/utils/graphql-samples.js +17 -0
- package/lib/utils/graphql-scopes.d.ts +6 -0
- package/lib/utils/graphql-scopes.js +1 -0
- package/lib/utils/graphql-type-expansion.d.ts +5 -0
- package/lib/utils/graphql-type-expansion.js +1 -0
- package/lib/utils/http-methods.d.ts +8 -0
- package/lib/utils/http-methods.js +1 -0
- package/lib/utils/languages.d.ts +18 -0
- package/lib/utils/languages.js +1 -0
- package/lib/utils/loadAndBundleSpec.d.ts +4 -0
- package/lib/utils/loadAndBundleSpec.js +1 -0
- package/lib/utils/logo.d.ts +8 -0
- package/lib/utils/logo.js +1 -0
- package/lib/utils/media-type.d.ts +7 -0
- package/lib/utils/media-type.js +1 -0
- package/lib/utils/multipart.d.ts +7 -0
- package/lib/utils/multipart.js +1 -0
- package/lib/utils/refPointer.d.ts +2 -0
- package/lib/utils/refPointer.js +1 -0
- package/lib/utils/resolveText.d.ts +2 -0
- package/lib/utils/resolveText.js +1 -0
- package/lib/utils/routing.d.ts +49 -0
- package/lib/utils/routing.js +1 -0
- package/lib/utils/scroll-anchoring.d.ts +3 -0
- package/lib/utils/scroll-anchoring.js +1 -0
- package/lib/utils/security-scope.d.ts +3 -0
- package/lib/utils/security-scope.js +1 -0
- package/lib/utils/serialize-parameter.d.ts +8 -0
- package/lib/utils/serialize-parameter.js +1 -0
- package/lib/utils/serialize-querystring.d.ts +6 -0
- package/lib/utils/serialize-querystring.js +1 -0
- package/lib/utils/session-storage.d.ts +2 -0
- package/lib/utils/session-storage.js +1 -0
- package/lib/utils/split-badges-by-position.d.ts +5 -0
- package/lib/utils/split-badges-by-position.js +1 -0
- package/lib/utils/status-code.d.ts +1 -0
- package/lib/utils/status-code.js +1 -0
- package/lib/utils/string.d.ts +18 -0
- package/lib/utils/string.js +1 -0
- package/lib/utils/telemetry.d.ts +1 -0
- package/lib/utils/telemetry.js +1 -0
- package/lib/utils/url.d.ts +9 -0
- package/lib/utils/url.js +1 -0
- package/lib/utils/xml.d.ts +1 -0
- package/lib/utils/xml.js +1 -0
- package/package.json +97 -0
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
import type { RouteIndex } from './routing.js';
|
|
2
|
+
/**
|
|
3
|
+
* Serialize key-value params into a query-string fragment.
|
|
4
|
+
* Matches openapi-docs `constructFieldDeepFragment` output:
|
|
5
|
+
* keys in insertion order, no encoding, undefined values omitted.
|
|
6
|
+
*/
|
|
7
|
+
export declare function serializeFieldParams(params: Record<string, string | undefined>): string;
|
|
8
|
+
/**
|
|
9
|
+
* Build a deep-link path+hash string for a given operation slug and suffix.
|
|
10
|
+
* Semantics match openapi-docs `makeDeepLink`:
|
|
11
|
+
* `/{operationId}#{operationId}/{suffix}` (all lowercased, backslashes encoded).
|
|
12
|
+
*
|
|
13
|
+
* `operationId` must be a basePath-free slug (e.g. `cafe/placeorder`) — a
|
|
14
|
+
* leading slash is stripped defensively so the output is well-formed even
|
|
15
|
+
* if a caller hands in `/cafe/placeorder`.
|
|
16
|
+
*/
|
|
17
|
+
export declare function makeDeepLink(operationId: string, suffix: string): string;
|
|
18
|
+
/**
|
|
19
|
+
* Build a full deep-link URL by combining routing base, operation id, and suffix.
|
|
20
|
+
*/
|
|
21
|
+
export declare function buildDeepLinkUrl(routingBasePath: string, operationId: string, suffix: string): string;
|
|
22
|
+
/**
|
|
23
|
+
* Extract element id from a URL hash (strip `#`, decode, lowercase).
|
|
24
|
+
* The returned value can be passed to `document.getElementById`.
|
|
25
|
+
*/
|
|
26
|
+
export declare function hashToElementId(hash: string): string;
|
|
27
|
+
/**
|
|
28
|
+
* Extract the hash fragment from a deep link URL for use as an element id.
|
|
29
|
+
* Given `/petstore/pet/getpetbyid#pet/getpetbyid/request`, returns `pet/getpetbyid/request`.
|
|
30
|
+
* Returns empty string if no hash is present.
|
|
31
|
+
*/
|
|
32
|
+
export declare function deepLinkToId(deepLink: string): string;
|
|
33
|
+
interface OpenApiFieldParams {
|
|
34
|
+
/** "request" | "response" */
|
|
35
|
+
t?: string;
|
|
36
|
+
/** "query" | "header" | "path" | "cookie" */
|
|
37
|
+
in?: string;
|
|
38
|
+
/** Response status code (responses only) */
|
|
39
|
+
c?: string;
|
|
40
|
+
/** Callback id (callbacks only) */
|
|
41
|
+
cb?: string;
|
|
42
|
+
/** Content-type name (when multiple media types) */
|
|
43
|
+
ct?: string;
|
|
44
|
+
/** Field deep path */
|
|
45
|
+
path?: string;
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Build a suffix for an OpenAPI request/response/callback field.
|
|
49
|
+
* Same shape as openapi-docs `constructFieldDeepFragment`.
|
|
50
|
+
*/
|
|
51
|
+
export declare function buildOpenApiFieldSuffix(params: OpenApiFieldParams): string;
|
|
52
|
+
/**
|
|
53
|
+
* Build section-level suffix for OpenAPI requests/responses.
|
|
54
|
+
*
|
|
55
|
+
* Examples:
|
|
56
|
+
* buildOpenApiSectionSuffix('request') -> "request"
|
|
57
|
+
* buildOpenApiSectionSuffix('request', 'query') -> "request/query"
|
|
58
|
+
* buildOpenApiSectionSuffix('response', undefined, '200') -> "response&c=200"
|
|
59
|
+
* buildOpenApiSectionSuffix('response', 'body', '200') -> "response&c=200/body"
|
|
60
|
+
* buildOpenApiSectionSuffix('response', 'headers', '200') -> "response&c=200/headers"
|
|
61
|
+
* buildOpenApiSectionSuffix('callbacks') -> "callbacks"
|
|
62
|
+
* buildOpenApiSectionSuffix('callbacks', 'myCallback') -> "callbacks/myCallback"
|
|
63
|
+
*/
|
|
64
|
+
export declare function buildOpenApiSectionSuffix(section: string, subSection?: string, responseCode?: string): string;
|
|
65
|
+
export interface AsyncApiSuffixParams {
|
|
66
|
+
/** "send" | "receive" | "parameters" | "messages" */
|
|
67
|
+
section: string;
|
|
68
|
+
/** Message key/name (when linking to a specific message) */
|
|
69
|
+
messageKey?: string;
|
|
70
|
+
/** Sub-section: "headers" | "payload" */
|
|
71
|
+
subsection?: string;
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* Build a suffix for AsyncAPI sections.
|
|
75
|
+
*
|
|
76
|
+
* Examples:
|
|
77
|
+
* { section: 'send' } -> "send"
|
|
78
|
+
* { section: 'parameters' } -> "parameters"
|
|
79
|
+
* { section: 'messages', messageKey: 'userSignedUp' } -> "messages&m=userSignedUp"
|
|
80
|
+
* { section: 'messages', messageKey: 'msg1', subsection: 'headers' }
|
|
81
|
+
* -> "messages&m=msg1&t=headers"
|
|
82
|
+
* { section: 'messages', messageKey: 'msg1', subsection: 'payload' }
|
|
83
|
+
* -> "messages&m=msg1&t=payload"
|
|
84
|
+
*/
|
|
85
|
+
export declare function buildAsyncApiSuffix(params: AsyncApiSuffixParams): string;
|
|
86
|
+
export interface GraphqlSuffixParams {
|
|
87
|
+
/** Section type: "field" | "argument" | "return-type" | "possible-types" |
|
|
88
|
+
* "implements" | "directive" | "enum-value" | "scalar" */
|
|
89
|
+
t: string;
|
|
90
|
+
/** Stable path: e.g. "Query.hero", "User.friends" */
|
|
91
|
+
path?: string;
|
|
92
|
+
/** Argument name (when t=argument or nested under a field) */
|
|
93
|
+
arg?: string;
|
|
94
|
+
/** Return-type anchor ("1" or nested path when expanded) */
|
|
95
|
+
rt?: string;
|
|
96
|
+
}
|
|
97
|
+
/**
|
|
98
|
+
* Build a suffix for GraphQL deep links.
|
|
99
|
+
*
|
|
100
|
+
* Examples:
|
|
101
|
+
* { t: 'field', path: 'Query.hero' } -> "t=field&path=Query.hero"
|
|
102
|
+
* { t: 'argument', path: 'Query.hero', arg: 'id' }
|
|
103
|
+
* -> "t=argument&path=Query.hero&arg=id"
|
|
104
|
+
* { t: 'return-type', path: 'Query.hero', rt: '1' }
|
|
105
|
+
* -> "t=return-type&path=Query.hero&rt=1"
|
|
106
|
+
*/
|
|
107
|
+
export declare function buildGraphqlSuffix(params: GraphqlSuffixParams): string;
|
|
108
|
+
export declare function isGraphqlDeepLinkAncestor(hash: string, path: string): boolean;
|
|
109
|
+
/**
|
|
110
|
+
* Convert a deep-link URL to an element id, returning `undefined` for empty/missing links.
|
|
111
|
+
* Shorthand for the common pattern `id={url ? deepLinkToId(url) : undefined}`.
|
|
112
|
+
*/
|
|
113
|
+
export declare function getDeepLinkId(deepLink: string | undefined): string | undefined;
|
|
114
|
+
export declare function appendVariantSuffix(fieldParentsName: string[] | undefined, suffix: string): string[];
|
|
115
|
+
/**
|
|
116
|
+
* Remove variant deep-link markers (`&oneof=N`, `&d=N`) from a field-parent path
|
|
117
|
+
* piece, leaving the human-readable name(s). The markers can sit mid-path
|
|
118
|
+
* (e.g. `_embedded.quote&d=0.order` -> `_embedded.quote.order`), so they must be
|
|
119
|
+
* stripped in place rather than split off. Returns `''` when the piece was only a
|
|
120
|
+
* marker (e.g. `&d=0`), so callers can skip it in the breadcrumb.
|
|
121
|
+
*/
|
|
122
|
+
export declare function stripVariantMarkers(name: string): string;
|
|
123
|
+
/**
|
|
124
|
+
* Remove `[]` array-item markers from a deep-link path piece.
|
|
125
|
+
* Legacy (openapi-docs) support.
|
|
126
|
+
*/
|
|
127
|
+
export declare function stripArrayMarkers(value: string): string;
|
|
128
|
+
/**
|
|
129
|
+
* Keep only the variant markers (`&oneof=N` / `&d=N`) from each parent path piece,
|
|
130
|
+
* dropping plain field-name bases. Used at shallow render levels where breadcrumbs are
|
|
131
|
+
* suppressed, so a switched tab stays reload-reachable without showing a field prefix.
|
|
132
|
+
*/
|
|
133
|
+
export declare function variantMarkersOnly(fieldParentsName: string[] | undefined): string[];
|
|
134
|
+
/**
|
|
135
|
+
* Extract a deep-link parameter value from a URL hash.
|
|
136
|
+
* The search is case-insensitive and values are returned lowercased.
|
|
137
|
+
*/
|
|
138
|
+
export declare function extractDeepLinkParamFromHash(hash: string, key: 'c' | 'm'): string | undefined;
|
|
139
|
+
/**
|
|
140
|
+
* Detect legacy openapi hash patterns and return normalized suffix.
|
|
141
|
+
* Matches: #tag/..., #operation/..., #paths/...
|
|
142
|
+
*/
|
|
143
|
+
export declare function getLegacyHash(hash: string): string;
|
|
144
|
+
/** Map a legacy single-page hash (`#section/…`, `#tag/…`, `#operation/…`) to its route in the multi-page engine; `undefined` for a genuine in-page anchor (e.g. a field deep link). */
|
|
145
|
+
export declare function resolveLegacyHashToRoute(hash: string, basePath: string, routeIndex: RouteIndex): string | undefined;
|
|
146
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{encodeBackSlashes as l,tryDecodeURIComponent as o}from"./string.js";import{joinWithSeparator as c,normalizePath as s}from"./url.js";import{resolveRouteByPathname as d}from"./routing.js";function a(e){const t=[];for(const[n,r]of Object.entries(e))r!==void 0&&t.push(`${n}=${r}`);return t.join("&")}function x(e,t){return e=l(e).replace(/^\/+/,""),(`/${e}#`+c(e,t)).toLowerCase()}function $(e,t,n){const r=x(t,n);return s(c(e,r))}function m(e){const t=e.startsWith("#")?e.slice(1):e;return o(t).toLowerCase()}function L(e){const t=o(e),n=t.indexOf("#");return n>=0?t.slice(n+1):""}function A(e){return a({t:e.t,in:e.in,c:e.c,cb:e.cb,ct:e.ct,path:e.path})}function R(e,t,n){let r=e;return n&&(r=`${r}&c=${n}`),t&&(r=c(r,t)),r}function b(e){const{section:t,messageKey:n,subsection:r}=e;if(!n)return t;let i=`${t}&m=${n}`;return r&&(i+=`&t=${r}`),i}function C(e){return a({t:e.t,path:e.path,arg:e.arg,rt:e.rt})}function S(e,t){return!e||!t?!1:o(e.startsWith("#")?e.slice(1):e).toLowerCase().includes(`path=${t.toLowerCase()}.`)}function D(e){return e&&L(e)||void 0}function O(e,t){const n=[...e??[]];return n.length>0?n[n.length-1]+=t:n.push(t),n}const g=/&(?:oneof|d)=\d+/g;function W(e){return e.replace(g,"")}function v(e){return e.replace(/\[\]/g,"")}function z(e){return(e??[]).filter(t=>t.includes("&")).map(t=>t.slice(t.indexOf("&")))}function E(e,t){return e?o(e.startsWith("#")?e.slice(1):e).toLowerCase().match(new RegExp(`(?:^|[&/])${t}=([^/&]+)`))?.[1]:void 0}function h(e){const t=["#tag","#operation","#paths"];for(const n of t)if(e.includes(n))return e.replace(n,"").toLowerCase();return""}function H(e,t,n){const r=m(e);if(!r)return;const i=s(c(t,r));if(d(n,i))return i;const u=h(e);if(u){const f=n.allRoutes.find(p=>p.path.toLowerCase().endsWith(u));if(f)return f.path}}export{O as appendVariantSuffix,b as buildAsyncApiSuffix,$ as buildDeepLinkUrl,C as buildGraphqlSuffix,A as buildOpenApiFieldSuffix,R as buildOpenApiSectionSuffix,L as deepLinkToId,E as extractDeepLinkParamFromHash,D as getDeepLinkId,h as getLegacyHash,m as hashToElementId,S as isGraphqlDeepLinkAncestor,x as makeDeepLink,H as resolveLegacyHashToRoute,a as serializeFieldParams,v as stripArrayMarkers,W as stripVariantMarkers,z as variantMarkersOnly};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { Node } from '@markdoc/markdoc';
|
|
2
|
+
import type { OpenAPIServer } from '../types/openapi.js';
|
|
3
|
+
export type EnvironmentData = Record<string, Record<string, string>>;
|
|
4
|
+
export declare function mergeEnvData(env1: EnvironmentData, env2?: EnvironmentData): EnvironmentData;
|
|
5
|
+
export declare function getServerEnvName(server: Pick<OpenAPIServer, 'name' | 'description' | 'url'>): string | Node[] | Node;
|
|
6
|
+
export declare const IS_BROWSER: boolean;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function i(e,t){return t?Array.from(new Set([...Object.keys(e),...Object.keys(t)])).reduce((r,n)=>(r[n]={...e[n],...t[n]},r),{}):e}function u(e){return e.name||e.description||e.url}const a=typeof window<"u"&&"HTMLElement"in window;export{a as IS_BROWSER,u as getServerEnvName,i as mergeEnvData};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export declare function isWithinExpansionLevel(level: number, schemasExpansionLevel: number | undefined, fallbackLevel: number): boolean;
|
|
2
|
+
export declare const REQUIRED_EXPAND_LEVEL = 4;
|
|
3
|
+
export declare function isRequiredAutoExpanded(level: number, required: boolean | undefined, schemasExpansionLevel: number | undefined): boolean;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function o(e,n,t){return e<(n??t)}const i=4;function r(e,n,t){return t!==void 0?!1:!!n&&e<=i}export{i as REQUIRED_EXPAND_LEVEL,r as isRequiredAutoExpanded,o as isWithinExpansionLevel};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export type GenericObject = Record<string, unknown>;
|
|
2
|
+
export declare function isRedocExtension(key: string): boolean;
|
|
3
|
+
export declare function extractExtensions(obj: GenericObject, showExtensions: string[] | true): GenericObject;
|
|
4
|
+
export declare function getExtensionsForDisplay(obj: GenericObject, showExtensions: string[] | boolean): GenericObject;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const x={"x-circular-ref":!0,"x-complex":!0,"x-parentRefs":!0,"x-refsStack":!0,"x-codeSamples":!0,"x-displayName":!0,"x-examples":!0,"x-logo":!0,"x-nullable":!0,"x-servers":!0,"x-tagGroups":!0,"x-traitTag":!0,"x-additionalPropertiesName":!0,"x-explicitMappingOnly":!0,"x-enumDescriptions":!0,"x-badges":!0,"x-hideReplay":!0,"x-feedback":!0,"x-assertionType":!0,"x-rbac":!0,"x-seo":!0};function n(r){return r in x}function i(r,t){return Object.keys(r).filter(e=>t===!0?e.startsWith("x-")&&!n(e):e.startsWith("x-")&&t.indexOf(e)>-1).reduce((e,u)=>(e[u]=r[u],e),{})}function a(r,t){return t===!1||t===void 0?{}:i(r,t)}export{i as extractExtensions,a as getExtensionsForDisplay,n as isRedocExtension};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { OpenAPIDefinition } from '../types/openapi.js';
|
|
2
|
+
import type { NormalizedDownloadUrl } from '../types/options.js';
|
|
3
|
+
export declare function pickReplayDefinitionDownloadUrl(downloadUrls: NormalizedDownloadUrl[] | undefined): string | undefined;
|
|
4
|
+
export declare function fetchOpenApiDefinition(url: string): Promise<OpenAPIDefinition>;
|
|
5
|
+
/** Fetches and parses the OpenAPI document, deduplicating concurrent/in-flight requests per URL. */
|
|
6
|
+
export declare function fetchOpenApiDefinitionCached(url: string): Promise<OpenAPIDefinition>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{JSON_SCHEMA as s,load as a,types as i}from"js-yaml";const f=s.extend({implicit:[i.merge],explicit:[i.binary,i.omap,i.pairs,i.set]});function p(t){return a(t,{schema:f})}const o=new Map;function u(t){return t?.length?t.find(e=>/\.json(\?|$)/i.test(e.url))?.url??t[0].url:void 0}function c(t){return/^https?:\/\//i.test(t)?t:typeof globalThis.location?.href=="string"?new URL(t,globalThis.location.href).href:t}async function l(t){const n=c(t),e=await fetch(n);if(!e.ok)throw new Error(`Failed to load API definition (${e.status})`);const r=await e.text();try{return JSON.parse(r)}catch{return p(r)}}function d(t){const n=c(t);let e=o.get(n);return e||(e=l(t),o.set(n,e),e.catch(()=>o.delete(n))),e}export{l as fetchOpenApiDefinition,d as fetchOpenApiDefinitionCached,u as pickReplayDefinitionDownloadUrl};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{serializeParameterValue as o}from"./serialize-parameter.js";function s(n,i={}){return n==null?"":typeof n!="object"?String(n):(Array.isArray(n)?n.map((r,e)=>[String(e),r]):Object.entries(n)).map(([r,e])=>{const t=i[r];return t?o({name:r,in:"query",style:t.style,explode:t.explode},e):`${encodeURIComponent(r)}=${encodeURIComponent(f(e))}`}).join("&")}function f(n){return n==null?"":typeof n=="object"?JSON.stringify(n):String(n)}export{s as formUrlEncodeValue,f as stringifyFormFieldValue};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { GraphQLNamedType, GraphQLEnumValue, GraphQLField, GraphQLArgument, GraphQLInputField, GraphQLSchema } from 'graphql';
|
|
2
|
+
import type { GraphQLInfo } from '../types/graphql.js';
|
|
3
|
+
import type { RequiresScopesDirective } from './graphql-scopes.js';
|
|
4
|
+
export type DirectiveTarget = GraphQLNamedType | GraphQLEnumValue | GraphQLField<any, any> | GraphQLArgument | GraphQLInputField;
|
|
5
|
+
export declare function getRequiresScopesDirective(type: DirectiveTarget): RequiresScopesDirective | null;
|
|
6
|
+
export declare function extractInfoFromDirectives(schema: GraphQLSchema): GraphQLInfo | undefined;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import{Kind as a}from"graphql";function g(n){if(!n.astNode?.directives)return null;const e=n.astNode.directives.find(r=>r.name.value==="requiresScopes");if(!e)return null;const i=m(e);return!i||i.length===0?null:{scopes:i}}function m(n){const e=n.arguments?.find(i=>i.name.value==="scopes");return!e||!e.value?null:v(e.value)}function v(n){if(n.kind!==a.LIST)return null;const e=[];for(const i of n.values)i.kind===a.LIST&&e.push(i.values.map(r=>r.value));return e.length>0?e:null}function D(n){const e=n.astNode;if(!e)return;const i=t=>e.directives?.find(o=>o.name.value===t),r=i("redocly_info"),u=i("redocly_contact"),f=i("redocly_license"),s=p(e.description?.value);if(!r&&!u&&!f&&!s)return;const c={};if(s?.title&&(c.title=s.title),s?.description&&(c.description=s.description),r){const t=d(r);t.title&&(c.title=t.title),t.version&&(c.version=t.version),t.description&&(c.description=t.description),t.termsOfService&&(c.termsOfService=t.termsOfService)}if(u){const{name:t,url:o,email:l}=d(u);c.contact={name:t,url:o,email:l}}if(f){const{name:t,url:o,identifier:l}=d(f);c.license={name:t,url:o,identifier:l}}return c}function d(n){const e={};return n.arguments?.forEach(i=>{i.value.kind===a.STRING&&(e[i.name.value]=i.value.value)}),e}function p(n){const e=n?.trim();if(!e)return null;const[i,...r]=e.split(`
|
|
2
|
+
`);return i.trim().startsWith("# ")?{title:i.trim().slice(2).trim()||void 0,description:r.join(`
|
|
3
|
+
`).trim()||void 0}:{description:e}}export{D as extractInfoFromDirectives,g as getRequiresScopesDirective};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { SchemaEntry } from '../types/store.js';
|
|
2
|
+
import type { GraphqlStoreMeta, GraphqlTypeReference } from '../types/graphql-store.js';
|
|
3
|
+
export declare function buildGraphqlReferenceMap(schemaStore: Record<string, SchemaEntry>, rootTypes?: GraphqlStoreMeta['rootTypes']): Record<string, GraphqlTypeReference[]>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{GRAPHQL_TYPE_ENTRY_PREFIX as r}from"../types/graphql-store.js";function m(f,s={}){const t={},i=new Set(Object.values(s));function a(n,e){t[n]||(t[n]=[]),t[n].push(e)}for(const n of Object.values(f)){if(!n.id.startsWith(r))continue;const e=n.data;if(!i.has(e.name)){for(const o of e.fields??[])a(o.type.name,{name:e.name,field:o.name});for(const o of e.possibleTypes??[])a(o,{name:e.name})}}return t}export{m as buildGraphqlReferenceMap};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { ApiStore, SchemaEntry } from '../types/store.js';
|
|
2
|
+
import type { GraphqlStoreFieldData, GraphqlTypeData } from '../types/graphql-store.js';
|
|
3
|
+
export type GraphqlTypeLookup = (name: string) => GraphqlTypeData | undefined;
|
|
4
|
+
export declare function createGraphqlTypeLookup(schemaStore: Record<string, SchemaEntry>): GraphqlTypeLookup;
|
|
5
|
+
export declare function getOperationFromStore(store: Pick<ApiStore, 'schemaStore' | 'graphqlMeta'>, operationType: 'query' | 'mutation' | 'subscription', operationName: string): GraphqlStoreFieldData | undefined;
|
|
6
|
+
export type ParsedTypeNotation = {
|
|
7
|
+
kind: 'named';
|
|
8
|
+
name: string;
|
|
9
|
+
} | {
|
|
10
|
+
kind: 'list';
|
|
11
|
+
ofType: ParsedTypeNotation;
|
|
12
|
+
} | {
|
|
13
|
+
kind: 'non-null';
|
|
14
|
+
ofType: ParsedTypeNotation;
|
|
15
|
+
};
|
|
16
|
+
export declare function parseTypeNotation(display: string): ParsedTypeNotation;
|
|
17
|
+
export declare function getTypeExample(display: string, lookup: GraphqlTypeLookup, expandLevel: number, level?: number): unknown;
|
|
18
|
+
type SampleLabels = {
|
|
19
|
+
argumentsHere: string;
|
|
20
|
+
fragment: string;
|
|
21
|
+
};
|
|
22
|
+
export declare function generateOperationExample(operationType: 'query' | 'mutation' | 'subscription', operation: GraphqlStoreFieldData, lookup: GraphqlTypeLookup, expandLevel: number, multilineArguments?: boolean, labels?: Partial<SampleLabels>): string;
|
|
23
|
+
export declare function generateOperationVariablesExample(args: GraphqlStoreFieldData[], lookup: GraphqlTypeLookup, expandLevel: number): Record<string, unknown>;
|
|
24
|
+
export declare function generateOperationResponseExample(typeDisplay: string, lookup: GraphqlTypeLookup, expandLevel: number): object;
|
|
25
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import{graphqlTypeEntryId as d}from"../types/graphql-store.js";const l=" ",y=new Set(["edges","nodes","node","pageInfo"]);function F(n){return t=>n[d(t)]?.data}function _(n,t,e){const r=n.graphqlMeta?.rootTypes[t];return r?n.schemaStore[d(r)]?.data?.fields?.find(i=>i.name===e):void 0}function p(n){const t=n.trim();return t.endsWith("!")?{kind:"non-null",ofType:p(t.slice(0,-1))}:t.startsWith("[")&&t.endsWith("]")?{kind:"list",ofType:p(t.slice(1,-1))}:{kind:"named",name:t}}function f(n){return l.repeat(n)}function x(n){switch(n){case"Int":return 40;case"Float":return 40;case"String":return"Example String";case"Boolean":return!0;case"ID":return"9cfb1c81-4c79-452f-b1f5-8ee6571276b4";default:return"Example Custom Scalar"}}function $(n,t,e,r=0){return g(p(n),t,e,r)}function g(n,t,e,r){return n.kind==="non-null"?g(n.ofType,t,e,r):n.kind==="list"?[g(n.ofType,t,e,r)]:E(n.name,t,e,r)}function E(n,t,e,r){const a=t(n);if(!a||a.variant==="scalar")return x(n);if(a.variant==="object"||a.variant==="interface")return T(a,t,e,r,!0);if(a.variant==="input")return T(a,t,e,r,!1);if(a.variant==="union"){const i=a.possibleTypes?.[0];return i?E(i,t,e,r):{}}return a.variant==="enum"?a.enumValues?.[0]?.name:{}}function T(n,t,e,r,a){if(r===e)return{__typename:n.name};const i={};for(const o of n.fields??[]){const s=a&&y.has(o.name)?r:r+1;i[o.name]=$(o.type.display,t,e,s)}return i}const b={argumentsHere:"Arguments Here",fragment:"Fragment"};function j(n,t){return n.length===0?"":t?`(
|
|
2
|
+
${n.map(r=>`${f(1)}$${r.name}: ${r.type.display}`).join(`
|
|
3
|
+
`)}
|
|
4
|
+
)`:`(${n.map(e=>`$${e.name}: ${e.type.display}`).join(", ")})`}function I(n,t,e,r,a){if(n.length===0)return"";if(r>0){const i=f(e+1),o=f(e);return`(
|
|
5
|
+
${i}# ${a.argumentsHere}
|
|
6
|
+
${o})`}if(t){const i=f(e),o=f(e+1);return`(
|
|
7
|
+
${n.map(c=>`${o}${c.name}: $${c.name}`).join(`
|
|
8
|
+
`)}
|
|
9
|
+
${i})`}return`(${n.map(i=>`${i.name}: $${i.name}`).join(", ")})`}function h(n,t,e,r,a,i,o){const s=t(n);if(!s)return"";if(s.variant==="object"||s.variant==="interface")return N(s,t,e,r,a,i,o);if(s.variant==="union"){const c=s.possibleTypes?.[0];return c?h(c,t,e,r,a,i,o):""}return""}function N(n,t,e,r,a,i,o){const s=f(r);if(i===a){const u=f(r+1);return`{
|
|
10
|
+
${u}__typename
|
|
11
|
+
${u}# ...${n.name}${o.fragment}
|
|
12
|
+
${s}}`}return`{
|
|
13
|
+
${(n.fields??[]).map(u=>{const m=y.has(u.name)?i:i+1;return S(u,t,e,r+1,a,m,o)}).join(`
|
|
14
|
+
`)}
|
|
15
|
+
${s}}`}function S(n,t,e,r,a,i,o){const s=I(n.args??[],e,r,i,o),c=h(n.type.name,t,e,r,a,i,o),u=c?" ":"";return`${f(r)}${n.name}${s}${u}${c}`}function A(n,t,e,r,a,i={}){const o=t.args??[],s=a??o.length>4,c=j(o,s),u={...b,...i},m=S(t,e,s,1,r,0,u);return`${n} ${t.name}${c} {
|
|
16
|
+
${m}
|
|
17
|
+
}`}function w(n,t,e){const r={};for(const a of n)r[a.name]=$(a.type.display,t,e);return r}function D(n,t,e){return{data:$(n,t,e)}}export{F as createGraphqlTypeLookup,A as generateOperationExample,D as generateOperationResponseExample,w as generateOperationVariablesExample,_ as getOperationFromStore,$ as getTypeExample,p as parseTypeNotation};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { GraphqlRequiresScopes } from '../types/graphql-store.js';
|
|
2
|
+
export interface RequiresScopesDirective {
|
|
3
|
+
scopes: string[][];
|
|
4
|
+
parentScopes?: string[][];
|
|
5
|
+
}
|
|
6
|
+
export declare function mergeRequiresScopes(fieldScopes: GraphqlRequiresScopes | null | undefined, parentScopes: GraphqlRequiresScopes | null | undefined): RequiresScopesDirective | null;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function u(s,r){return!s&&!r?null:s&&!r?{scopes:s.scopes}:!s&&r?{scopes:[],parentScopes:r.scopes}:{scopes:s?.scopes??[],parentScopes:r?.scopes??[]}}export{u as mergeRequiresScopes};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { GraphqlStoreFieldData, GraphqlTypeData } from '../types/graphql-store.js';
|
|
2
|
+
import type { GraphqlTypeLookup } from './graphql-samples.js';
|
|
3
|
+
export declare function isGraphqlFieldExpandable(field: GraphqlStoreFieldData, fieldExpandLevel: number, maxFieldExpandLevel: number, lookup: GraphqlTypeLookup): boolean;
|
|
4
|
+
export declare function graphqlTypeHasExpandableFields(data: GraphqlTypeData | undefined, fieldExpandLevel: number, maxFieldExpandLevel: number, lookup: GraphqlTypeLookup): boolean;
|
|
5
|
+
export declare function countNamedTypeFields(typeName: string, lookup: GraphqlTypeLookup): number;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function s(e){return!e||e.variant==="scalar"}function i(e){return e?.variant==="object"||e?.variant==="interface"||e?.variant==="input"}function l(e,r,n,t){return r>=n?!1:(e.args?.length??0)>0||!s(t(e.type.name))}function u(e,r,n,t){return i(e)?(e.fields??[]).some(a=>l(a,r,n,t)):!1}function o(e,r){const n=r(e);return i(n)?n.fields?.length??0:0}export{o as countNamedTypeFields,u as graphqlTypeHasExpandableFields,l as isGraphqlFieldExpandable};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* OpenAPI operation (HTTP method) keys recognized on a path item, including
|
|
3
|
+
* the OpenAPI 3.2 `query` / vendor `x-query` operations. Shared by the
|
|
4
|
+
* adapter build context and the public `isOperationName` guard.
|
|
5
|
+
*/
|
|
6
|
+
export declare const HTTP_METHODS: ReadonlySet<string>;
|
|
7
|
+
/** Returns `true` when `key` names an OpenAPI operation on a path item. */
|
|
8
|
+
export declare function isOperationName(key: string): boolean;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const t=new Set(["get","post","put","delete","patch","head","options","trace","query","x-query"]);function o(e){return t.has(e.toLowerCase())}export{t as HTTP_METHODS,o as isOperationName};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { Language } from '../types/openapi.js';
|
|
2
|
+
/** Every language `codeSamples.languages` accepts. `label` is what users write in config. */
|
|
3
|
+
export declare const DEFAULT_LANGUAGES: Language[];
|
|
4
|
+
/** Tab identity — a custom `label` names the tab. */
|
|
5
|
+
export declare function getLangKey({ lang, label }: {
|
|
6
|
+
lang: string;
|
|
7
|
+
label?: string;
|
|
8
|
+
}): string;
|
|
9
|
+
/** Language to generate code in — a custom `label` never changes it. */
|
|
10
|
+
export declare function getGeneratorKey({ lang }: {
|
|
11
|
+
lang: string;
|
|
12
|
+
}): string;
|
|
13
|
+
/**
|
|
14
|
+
* Grammar for the syntax highlighter, resolved from the configured language name. Keep this the
|
|
15
|
+
* only place a language is turned into a grammar: it is many-to-one (`Node.js` and `JavaScript`
|
|
16
|
+
* both highlight as JavaScript, `Payload` as JSON), so a grammar can never identify a language.
|
|
17
|
+
*/
|
|
18
|
+
export declare function getSyntaxHighlightLang(lang: string): string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const l=[{key:"curl",label:"curl",lang:"bash"},{key:"javascript",label:"JavaScript",lang:"javascript"},{key:"node",label:"Node.js",lang:"javascript"},{key:"python",label:"Python",lang:"python"},{key:"java",label:"Java",lang:"java"},{key:"csharp",label:"C#",lang:"csharp"},{key:"php",label:"PHP",lang:"php"},{key:"go",label:"Go",lang:"go"},{key:"ruby",label:"Ruby",lang:"ruby"},{key:"r",label:"R",lang:"r"},{key:"payload",label:"Payload",lang:"payload"}],n=[{key:"csharpnewtonsoft",label:"C#+Newtonsoft",lang:"csharp"},{key:"java8",label:"Java8+Apache",lang:"java"}],o=new Map([...l,...n].map(a=>[a.label.toLowerCase(),a]));function p({lang:a,label:t}){const e=(t||a).toLowerCase();return o.get(e)?.key??e}function y({lang:a}){return o.get(a.toLowerCase())?.key??a.toLowerCase()}const r={curl:"bash",javascript:"javascript","node.js":"javascript",python:"python",java:"java","java8+apache":"java","c#":"csharp","c#+newtonsoft":"csharp",php:"php",go:"go",ruby:"ruby",r:"r",payload:"json"};function s(a){return r[a.toLowerCase()]??a.toLowerCase()}export{l as DEFAULT_LANGUAGES,y as getGeneratorKey,p as getLangKey,s as getSyntaxHighlightLang};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { RedocConfig } from '@redocly/config';
|
|
2
|
+
import type { OpenAPIDefinition } from '../types/openapi.js';
|
|
3
|
+
export declare function loadOpenapiConfig(): Promise<RedocConfig>;
|
|
4
|
+
export declare function loadAndBundleDefinition(specUrlOrObject: Record<string, unknown> | string): Promise<OpenAPIDefinition>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{createEmptyRedoclyConfig as i}from"@redocly/openapi-core/lib/bundle-oas";import{bundle as c}from"@redocly/openapi-core";import{IS_BROWSER as r}from"@redocly/theme/core/openapi";import{convertSwagger2OpenAPI as f}from"../adapters/utils/convertSwagger2OpenAPI.js";async function p(){try{return i()?.resolvedConfig.openapi||{}}catch{return{}}}async function g(o){const t=i(),e={config:t,base:r?window.location.origin:typeof globalThis.process<"u"?globalThis.process.cwd():""};r&&(t.resolve.http.customFetch=globalThis.fetch),typeof o=="object"&&o!==null?e.doc=a(o):e.ref=o;const{bundle:{parsed:n}}=await c(e);return n.swagger!==void 0?f(n):n}function a(o){return{source:{absoluteRef:""},parsed:o}}export{g as loadAndBundleDefinition,p as loadOpenapiConfig};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { RawLogo, SidebarLogo } from '../types/common.js';
|
|
2
|
+
/**
|
|
3
|
+
* Normalizes an authored `{ url }` logo (OpenAPI `info.x-logo`, the standalone `logo` prop) into
|
|
4
|
+
* the `{ imageUrl }` shape the sidebar renders. `hrefFallback` covers OpenAPI's `info.contact.url`,
|
|
5
|
+
* as legacy did. Without an image there is nothing to render, hence `undefined` — which is also
|
|
6
|
+
* what lets callers fall through to the next logo source with `??`.
|
|
7
|
+
*/
|
|
8
|
+
export declare function toSidebarLogo(raw: RawLogo | undefined, hrefFallback?: string): SidebarLogo | undefined;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function r(e,o){if(e?.url)return{imageUrl:e.url,href:e.href||o,altText:e.altText,backgroundColor:e.backgroundColor}}export{r as toSidebarLogo};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { FormFieldEncoding } from './form-urlencoded.js';
|
|
2
|
+
export declare function isSequentialMediaType(contentType: string | undefined): boolean;
|
|
3
|
+
export declare function isJsonLikeMediaType(contentType: string | undefined): boolean;
|
|
4
|
+
export declare function langFromMime(contentType: string | undefined): string;
|
|
5
|
+
export declare function normalizeLanguageForHighlight(language: string | undefined): string;
|
|
6
|
+
export declare function isSampleableMediaType(contentType: string | undefined): boolean;
|
|
7
|
+
export declare function encodeExampleForMediaType(value: unknown, mimeType: string, encoding?: Record<string, FormFieldEncoding>): string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{MediaTypes as e}from"../constants/openapi.js";import{formUrlEncodeValue as f}from"./form-urlencoded.js";import{jsonToXml as l}from"./xml.js";const a=new Set([e.JSONL,e.NDJSON,e.JSON_SEQ,e.EVENT_STREAM,e.MULTIPART_MIXED]);function n(r){return r?a.has(r.toLowerCase()):!1}function t(r){return r?r.search(/json/i)!==-1:!1}function d(r){if(!r)return"clike";const i=r.toLowerCase();return i.includes("xml")?"xml":i.includes("application/json-seq")?"json-seq":i.includes("application/jsonl")||i.includes("application/x-ndjson")?"jsonl":i.includes("multipart/mixed")?"multipart-mixed":i.includes("text/event-stream")?"yaml":i.includes("json")?"json":"clike"}function S(r){if(!r)return"clike";const i=r.toLowerCase();return i.includes("/")?d(i):i}function o(r){return/xml/i.test(r)}function s(r){return r.toLowerCase().includes(e.URL_ENCODED)}function c(r){return r.toLowerCase().includes(e.MULTIPART)}function x(r){return r?t(r)||o(r)||n(r)||s(r)||c(r):!1}function E(r,i,u){if(r===void 0)return"";if(t(i)&&!n(i))try{return JSON.stringify(typeof r=="string"?JSON.parse(r):r,null,2)??""}catch{return String(r)}return typeof r=="object"&&r!==null?s(i)?f(r,u):o(i)?l(r):JSON.stringify(r,null,2):String(r)}export{E as encodeExampleForMediaType,t as isJsonLikeMediaType,x as isSampleableMediaType,n as isSequentialMediaType,d as langFromMime,S as normalizeLanguageForHighlight};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const p=/Content-Disposition:\s*form-data;\s*name="([^"]+)"(?:;\s*filename="([^"]+)")?/i,u=/Content-Type:\s*([^\r\n]+)/i,m=/\r?\n\r?\n([\s\S]*?)(?:\r?\n)?$/,E=/[.*+?^${}()|[\]\\]/g;function h(t){if(typeof t!="string"||t.length===0)return;const o=t.replace(/^\s+/,"").match(/^--([^\r\n]+)/);if(!o)return;const c=o[1].replace(E,"\\$&"),f=t.split(new RegExp(`--${c}(?:--)?`,"g")).filter(n=>n.trim().length>0),e=[];for(const n of f){const r=n.match(p);if(!r)continue;const[,s,i]=r,a=n.match(u)?.[1].trim();if(i){e.push({name:s,fileName:i,...a?{contentType:a}:{}});continue}e.push({name:s,value:n.match(m)?.[1].trim()??""})}return e.length>0?e:void 0}export{h as parseMultipartFormData};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function n(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}function r(e){if(!e)return;const t=e.startsWith("#")?e.slice(1):e;return t.startsWith("/")?t.slice(1):t}export{n as encodeJsonPointerSegment,r as refPointerToStoreId};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function f(u,r,e){return r?u(r,e??r):e??""}export{f as resolveText};
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import type { ApiItem, ApiItemContent } from '../types/store.js';
|
|
2
|
+
import type { BadgeData } from '../types/common.js';
|
|
3
|
+
export type RouteItem = {
|
|
4
|
+
path: string;
|
|
5
|
+
label: string;
|
|
6
|
+
content: ApiItemContent;
|
|
7
|
+
badges?: BadgeData[];
|
|
8
|
+
deprecated?: boolean;
|
|
9
|
+
eager?: boolean;
|
|
10
|
+
};
|
|
11
|
+
export type TagWithItems = {
|
|
12
|
+
tag: RouteItem;
|
|
13
|
+
items: RouteItem[];
|
|
14
|
+
};
|
|
15
|
+
export type RouteIndex = {
|
|
16
|
+
allRoutes: RouteItem[];
|
|
17
|
+
tagByPath: Map<string, TagWithItems>;
|
|
18
|
+
itemToParentTag: Map<string, TagWithItems>;
|
|
19
|
+
routeIndexByPath: Map<string, number>;
|
|
20
|
+
rootPage: RouteItem | undefined;
|
|
21
|
+
tags: RouteItem[];
|
|
22
|
+
};
|
|
23
|
+
type CollectRoutesParams = {
|
|
24
|
+
apiItems: ApiItem[];
|
|
25
|
+
allRoutes: RouteItem[];
|
|
26
|
+
tagsWithItems: TagWithItems[];
|
|
27
|
+
parentTag: TagWithItems | null;
|
|
28
|
+
allTagsWithItems?: TagWithItems[];
|
|
29
|
+
};
|
|
30
|
+
export declare function buildRouteIndex(allRoutes: RouteItem[], tagsWithItems: TagWithItems[], _basePath: string, allTagsWithItems?: TagWithItems[]): RouteIndex;
|
|
31
|
+
export declare function resolveRouteByPathname(routeIndex: RouteIndex, pathname: string): RouteItem | undefined;
|
|
32
|
+
export declare function collectRoutesRecursively({ apiItems, allRoutes, tagsWithItems, parentTag, allTagsWithItems, }: CollectRoutesParams): void;
|
|
33
|
+
export type FlatDescendant = RouteItem & {
|
|
34
|
+
/** Path of the hub whose open state gates this descendant's render. For
|
|
35
|
+
* items under a GROUP sub-tag this is the sub-tag itself; items under a
|
|
36
|
+
* non-GROUP sub-tag (an AsyncAPI channel) inherit the channel's own gate,
|
|
37
|
+
* so a channel's operations render whenever the channel does. */
|
|
38
|
+
gatePath: string;
|
|
39
|
+
};
|
|
40
|
+
export type TopLevelEntry = {
|
|
41
|
+
sectionId: string;
|
|
42
|
+
content: NonNullable<RouteItem['content']>;
|
|
43
|
+
path: string;
|
|
44
|
+
/** Descendants flattened (tag's direct items + any nested sub-tags + their items, in source order). */
|
|
45
|
+
children: FlatDescendant[];
|
|
46
|
+
};
|
|
47
|
+
export declare function buildTopLevelEntries(routeIndex: RouteIndex): TopLevelEntry[];
|
|
48
|
+
export declare function buildEagerSlugs(activeRoute: RouteItem | undefined, routeIndex: RouteIndex): Set<string>;
|
|
49
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{contentType as g}from"../types/common.js";import{tryDecodeURIComponent as f}from"./string.js";function b(t,a,n,o){const s=new Map,e=new Map,i=new Map,r=o??a;for(const c of r){s.set(c.tag.path,c);for(const p of c.items)e.set(p.path,c)}for(let c=0;c<t.length;c++){const p=t[c];i.set(p.path,c);const d=f(p.path);d!==p.path&&i.set(d,c)}return{allRoutes:t,tagByPath:s,itemToParentTag:e,routeIndexByPath:i,rootPage:t[0],tags:a.map(c=>c.tag)}}const m=/\/index(\.(ya?ml|json|graphql|gql))?$/;function D(t,a){const n=f(a||"/").toLowerCase(),o=t.routeIndexByPath.get(n);if(o!==void 0)return t.allRoutes[o];const s=n.replace(m,"");if(s!==n){const e=t.routeIndexByPath.get(s||"/");if(e!==void 0)return t.allRoutes[e]}if(n==="/")return t.allRoutes[0]}function u({apiItems:t,allRoutes:a,tagsWithItems:n,parentTag:o,allTagsWithItems:s}){for(const e of t){if(e.type==="link"&&e.link){const i=h(e);a.push(i),o&&o.items.push(i);continue}if(e.type==="group"){if(e.link){const i=h(e);a.push(i);const r={tag:i,items:[]};o?o.items.push(i):r.tag.content!==null&&n.push(r),s&&s.push(r),e.items&&u({apiItems:e.items,allRoutes:a,tagsWithItems:n,parentTag:r,allTagsWithItems:s})}else e.items&&u({apiItems:e.items,allRoutes:a,tagsWithItems:n,parentTag:o,allTagsWithItems:s});continue}e.type==="separator"&&e.items&&u({apiItems:e.items,allRoutes:a,tagsWithItems:n,parentTag:o,allTagsWithItems:s})}}function h(t){const a=f(t.routeSlug??t.link??"").toLowerCase(),n="badges"in t?t.badges:void 0,o="deprecated"in t?t.deprecated:void 0;return{path:a,label:t.label??"",content:t.content,badges:n,deprecated:o}}function w(t){const a=[];for(const n of t.allRoutes){if(n.content===null||t.itemToParentTag.has(n.path))continue;const o=t.tagByPath.get(n.path),s=o?l(o,t.tagByPath):[];a.push({sectionId:n.path,content:n.content,path:n.path,children:s})}return a}function l(t,a,n=t.tag.path){const o=[];for(const s of t.items){o.push({...s,gatePath:n});const e=a.get(s.path);if(e){const i=e.tag.content?.contentType===g.ITEM?n:e.tag.path;o.push(...l(e,a,i))}}return o}function B(t,a){const n=new Set;if(!t)return n;if(t.content===null&&a.rootPage)return n.add(a.rootPage.path),n;n.add(t.path);const o=a.tagByPath.get(t.path);if(o){const s=o.items.find(e=>e.content!==null);s&&n.add(s.path)}return n}export{B as buildEagerSlugs,b as buildRouteIndex,w as buildTopLevelEntries,u as collectRoutesRecursively,D as resolveRouteByPathname};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{SECTION_READING_LINE_OFFSET as o}from"@redocly/theme/core/openapi";import{IS_BROWSER as c}from"./environments.js";import{SECTION_ATTR as i}from"../constants/openapi.js";let n=!1;function m(){if(!c||n)return;const e=f();e&&(n=!0,requestAnimationFrame(()=>{if(n=!1,!e.isConnected)return;const{top:t,bottom:r}=e.getBoundingClientRect();(r<=0||t>=window.innerHeight)&&e.scrollIntoView({block:"nearest"})}))}function f(){for(const e of document.querySelectorAll(`[${i}]`)){if(e.parentElement?.closest(`[${i}]`))continue;const t=e.getBoundingClientRect();if(t.top<=o&&t.bottom>o)return e}return null}export{m as keepReadingSectionAnchored};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function e(r,t){return r.length>t}function n(r,t){return e(r,t)?`${r.slice(0,t)}...`:r}function i(r){return!r||r.length===0?[]:Array.from(new Set(r.map(t=>t.trim()).filter(Boolean)))}export{n as getVisibleScopeLabel,e as isScopeTruncated,i as normalizeScopes};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function g(t,e){if(e==null)return"";const o=t.style??$(t.in),n=t.explode??o==="form";switch(t.in){case"path":return p(t.name,o,n,e);case"query":case"querystring":return f(t.name,o,n,e);case"header":return m(o,n,e);case"cookie":return s(t.name,o,n,e);default:return String(e)}}function $(t){switch(t){case"query":case"querystring":case"cookie":return"form";case"path":case"header":return"simple";default:return"simple"}}function p(t,e,o,n){if(Array.isArray(n)){const r=o?e==="label"?".":e==="matrix"?`;${t}=`:",":e==="label"?".":",";return(e==="label"?".":e==="matrix"?`;${t}=`:"")+n.map(String).join(r)}if(typeof n=="object"&&n!==null){const r=Object.entries(n);return e==="label"?"."+r.map(([i,c])=>o?`${i}=${String(c)}`:`${i},${String(c)}`).join("."):e==="matrix"?o?r.map(([i,c])=>`;${i}=${String(c)}`).join(""):`;${t}=`+r.map(([i,c])=>`${i},${String(c)}`).join(","):o?r.map(([i,c])=>`${i}=${String(c)}`).join(","):r.map(([i,c])=>`${i},${String(c)}`).join(",")}return e==="label"?"."+String(n):e==="matrix"?`;${t}=${String(n)}`:String(n)}function f(t,e,o,n){if(Array.isArray(n))return e==="form"?o?n.map(r=>`${encodeURIComponent(t)}=${encodeURIComponent(String(r))}`).join("&"):`${encodeURIComponent(t)}=${n.map(r=>encodeURIComponent(String(r))).join(",")}`:e==="spaceDelimited"?`${encodeURIComponent(t)}=${n.map(r=>encodeURIComponent(String(r))).join("%20")}`:e==="pipeDelimited"?`${encodeURIComponent(t)}=${n.map(r=>encodeURIComponent(String(r))).join("|")}`:`${encodeURIComponent(t)}=${n.map(r=>encodeURIComponent(String(r))).join(",")}`;if(typeof n=="object"&&n!==null){const r=Object.entries(n);return e==="deepObject"?r.map(([i,c])=>`${encodeURIComponent(t)}[${encodeURIComponent(i)}]=${encodeURIComponent(String(c??""))}`).join("&"):e==="form"&&o?r.map(([i,c])=>`${encodeURIComponent(i)}=${encodeURIComponent(String(c??""))}`).join("&"):`${encodeURIComponent(t)}=${r.map(([i,c])=>`${encodeURIComponent(i)},${encodeURIComponent(String(c??""))}`).join(",")}`}return`${encodeURIComponent(t)}=${encodeURIComponent(String(n))}`}function m(t,e,o){if(Array.isArray(o))return o.map(String).join(",");if(typeof o=="object"&&o!==null){const n=Object.entries(o);return e?n.map(([r,i])=>`${r}=${String(i)}`).join(","):n.map(([r,i])=>`${r},${String(i)}`).join(",")}return String(o)}function s(t,e,o,n){if(Array.isArray(n))return o?n.map(r=>`${t}=${String(r)}`).join("; "):`${t}=${n.map(String).join(",")}`;if(typeof n=="object"&&n!==null){const r=Object.entries(n);return o?r.map(([i,c])=>`${i}=${String(c)}`).join("; "):`${t}=${r.map(([i,c])=>`${i},${String(c)}`).join(",")}`}return`${t}=${String(n)}`}export{g as serializeParameterValue};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function u(r,e=""){const s=[];if(!r||typeof r!="object")return s;const o=Array.isArray(r)?r.map((n,t)=>[String(t),n]):Object.entries(r);for(const[n,t]of o){const c=e?`${e}[${n}]`:n;if(typeof t=="object"&&t!==null)s.push(...u(t,c));else{const i=Array.isArray(r)&&e?e:c;s.push({name:i,value:String(t)})}}return s}export{u as objectToHarParams};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{IS_BROWSER as e}from"./environments.js";function n(o,t){e&&window.sessionStorage.setItem("redoc."+o,t)}function i(o){return e&&window.sessionStorage.getItem("redoc."+o)||""}export{i as fromSessionStorage,n as toSessionStorage};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function t(e){return e?.length?{before:e.filter(r=>r.position==="before"),after:e.filter(r=>r.position!=="before")}:{before:[],after:[]}}export{t as splitBadgesByPosition};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function isStatusCode(code: string): boolean;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function e(t){return t==="default"||/^\d+$/.test(t)||/^[1-5]xx$/i.test(t)}export{e as isStatusCode};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/** Spec values are untrusted: keep truthy scalars, drop objects, arrays and nullish. */
|
|
2
|
+
export declare function asString(value: unknown): string | undefined;
|
|
3
|
+
export declare function strikethroughText(text: string): string;
|
|
4
|
+
export declare function encodeBackSlashes(str: string): string;
|
|
5
|
+
export declare function tryDecodeURIComponent(str: string): string;
|
|
6
|
+
/**
|
|
7
|
+
* slugify() returns empty string when failed to slugify.
|
|
8
|
+
* so try to return minimum slugified-string with failed one which keeps original value
|
|
9
|
+
* the regex codes are referenced with https://gist.github.com/mathewbyrne/1280286
|
|
10
|
+
*/
|
|
11
|
+
export declare function safeSlugify(value: string): string;
|
|
12
|
+
export declare function safeJsonParse<T = unknown>(str: string, fallback?: T): T;
|
|
13
|
+
/**
|
|
14
|
+
* Generates href from item id
|
|
15
|
+
*/
|
|
16
|
+
export declare function getHref(id: string): string;
|
|
17
|
+
export declare function getFileExtension(value: string): string;
|
|
18
|
+
export declare function transformStringToTelemetryId(...args: string[]): string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import t from"slugify";function i(e){if(e){if(typeof e=="string")return e;if(typeof e=="number"||typeof e=="boolean")return String(e)}}function c(e){return e.split("").map(r=>r+"\u0335").join("")}function n(e){return e.replace(/\\/g,"%5C")}function p(e){try{return decodeURIComponent(e)}catch(r){return console.error("Decoding failed: %s",e,r),e}}function f(e){return t(e)||e.toString().toLowerCase().replace(/\s+/g,"-").replace(/&/g,"-and-").replace(/--+/g,"-").replace(/^-+/,"").replace(/-+$/,"")}function u(e,r={}){try{return JSON.parse(e)}catch{return r}}function s(e){return n(`/${e}`.toLowerCase())}function a(e){const r=e.split(".");return r.length>1?r[r.length-1].toLowerCase():"file"}function l(...e){return e.join("_").replaceAll(" ","_").replaceAll(".","_").toLowerCase()}export{i as asString,n as encodeBackSlashes,a as getFileExtension,s as getHref,u as safeJsonParse,f as safeSlugify,c as strikethroughText,l as transformStringToTelemetryId,p as tryDecodeURIComponent};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function getDefaultCollectorUrl(): string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{withPathPrefix as o}from"@redocly/theme/core/openapi";import{IS_BROWSER as t}from"./environments.js";function i(){return process.env.NODE_ENV==="development"?"http://localhost:4318":t?window.location.origin+o("/_otel"):""}export{i as getDefaultCollectorUrl};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare function joinWithSeparator(base?: string, path?: string, sep?: string): string;
|
|
2
|
+
export declare function normalizePath(path: string): string;
|
|
3
|
+
export declare function stripLeadingSlash(path: string): string;
|
|
4
|
+
/**
|
|
5
|
+
* The relative item slug used as the wrapper element id (e.g. `pet/getpetbyid`).
|
|
6
|
+
* Legacy openapi-docs stamped this id, and e2e/consumer locators depend on it.
|
|
7
|
+
*/
|
|
8
|
+
export declare function toElementId(itemPath: string, basePath: string): string | undefined;
|
|
9
|
+
export declare function toRelativePath(absolutePath: string, basePath: string): string;
|
package/lib/utils/url.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function l(n="",i="",r="/"){return n.endsWith(r)&&n!==r&&(n=n.slice(0,-r.length)),i.startsWith(r)&&(i=i.slice(r.length)),!n||!i||n===r?n+i:n+r+i}function e(n){return n.length>1&&n.endsWith("/")&&(n=n.slice(0,-1)),n.startsWith("/")||(n="/"+n),n}function o(n){return n.startsWith("/")?n.slice(1):n}function u(n,i){return o(f(n,i))||void 0}function f(n,i){if(!i)return n;const r=e(n),t=e(i);return r===t?"":r.startsWith(t+"/")?r.slice(t.length+1):n}export{l as joinWithSeparator,e as normalizePath,o as stripLeadingSlash,u as toElementId,f as toRelativePath};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function jsonToXml(value: unknown): string;
|
package/lib/utils/xml.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{XMLBuilder as n}from"fast-xml-parser";const o=new n({format:!0,cdataPropName:"#cdata"});function d(r){if(r==null)return"";if(typeof r!="object")return String(r);const t=Array.isArray(r)?r:{root:r};return o.build(t).trimEnd()}export{d as jsonToXml};
|