@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,48 @@
|
|
|
1
|
+
import{jsx as e,jsxs as a}from"react/jsx-runtime";import{styled as o}from"styled-components";import{memo as b,useCallback as h,useState as B}from"react";import{CopyButton as k}from"@redocly/theme/components/Buttons/CopyButton";import{DatabaseIcon as y}from"@redocly/theme/icons/DatabaseIcon/DatabaseIcon";import{KafkaIcon as M}from"@redocly/theme/icons/KafkaIcon/KafkaIcon";import{RabbitMQIcon as w}from"@redocly/theme/icons/RabbitMQIcon/RabbitMQIcon";import{useModalScrollLock as I}from"@redocly/theme/core/hooks";import{Portal as L}from"@redocly/theme/components/Portal/Portal";import{Panel as S}from"@redocly/theme/components/Panel/Panel";import{MoreDetailsButton as j}from"../../../common/MoreDetailsButton.js";import{useSpecTranslate as P}from"../../../../hooks/useTranslate.js";import{useTelemetry as z}from"../../../../hooks/useTelemetry.js";import{resolveText as C}from"../../../../utils/resolveText.js";import{BrokerModal as T}from"./BrokerModal.js";import{HostList as D}from"./BrokerPanel.styled.js";function H(t){switch(t){case"kafka":return e(M,{size:"20px"});case"amqp":return e(w,{size:"20px"});default:return e(y,{size:"20px"})}}const O=b(function({broker:r,showMoreDetailsButton:i,onOpenModal:s}){return a(Q,{"data-component-name":"BrokerPanel/BrokerItem",children:[a(_,{children:[e(W,{children:H(r.protocol)}),e(q,{children:r.name})]}),r.url&&a(E,{children:[e(D,{children:r.url.split(" ").map((l,c)=>e("span",{children:l},c))}),e(k,{data:r.url},r.url)]}),!i&&e(N,{onClick:()=>s(r),children:e(j,{expanded:!1})})]})});function ie({node:t}){const r=t.children[0],i=r?.brokers??[],s=P(),l=z(),c=C(s,t.titleTranslationKey,t.title),v=r?.panelLabel||c||"Brokers",p=!t.title,[d,m]=B(null);I(d!==null);const g=h(n=>{l.sendServerModalOpenedMessage([{id:"serverModalButton",object:"button",uri:"urn:redocly:redoc:ui:button:serverModalButton",server:n.name??n.url??"unknown"}]),m(n)},[l]),x=h(()=>{m(null)},[]),u=e(A,{children:i.map(n=>e(O,{broker:n,showMoreDetailsButton:p,onOpenModal:g},n.name))}),f=d&&e(L,{mountId:"api-content",children:e(T,{broker:d,onClose:x,panelLabel:v})});return p?a(K,{children:[u,f]}):a(R,{header:t.title,className:"panel-api-docs",isExpandable:!1,children:[u,f]})}const R=o(S)`
|
|
2
|
+
[data-component-name='Panel/PanelBody'] {
|
|
3
|
+
padding: 0;
|
|
4
|
+
}
|
|
5
|
+
`,K=o.div`
|
|
6
|
+
background-color: var(--layer-color);
|
|
7
|
+
border: var(--panel-border);
|
|
8
|
+
border-radius: var(--panel-border-radius);
|
|
9
|
+
overflow: hidden;
|
|
10
|
+
|
|
11
|
+
&:not(:last-child) {
|
|
12
|
+
margin-bottom: var(--panel-gap-vertical);
|
|
13
|
+
}
|
|
14
|
+
`,W=o.div`
|
|
15
|
+
width: 20px;
|
|
16
|
+
height: 20px;
|
|
17
|
+
display: flex;
|
|
18
|
+
align-items: center;
|
|
19
|
+
justify-content: center;
|
|
20
|
+
`,_=o.div`
|
|
21
|
+
display: flex;
|
|
22
|
+
flex-direction: row;
|
|
23
|
+
align-items: center;
|
|
24
|
+
gap: var(--spacing-xxs);
|
|
25
|
+
`,q=o.span`
|
|
26
|
+
font-weight: var(--font-weight-semibold);
|
|
27
|
+
text-transform: capitalize;
|
|
28
|
+
`,E=o.span`
|
|
29
|
+
padding-left: var(--spacing-lg);
|
|
30
|
+
min-height: 24px;
|
|
31
|
+
display: flex;
|
|
32
|
+
align-items: center;
|
|
33
|
+
justify-content: space-between;
|
|
34
|
+
`,N=o.div`
|
|
35
|
+
padding-left: var(--spacing-lg);
|
|
36
|
+
`,Q=o.div`
|
|
37
|
+
display: flex;
|
|
38
|
+
flex-direction: column;
|
|
39
|
+
gap: var(--spacing-xxs);
|
|
40
|
+
padding: var(--spacing-sm) var(--spacing-md);
|
|
41
|
+
font-size: var(--font-size-base);
|
|
42
|
+
line-height: var(--line-height-base);
|
|
43
|
+
color: var(--panel-body-text-color);
|
|
44
|
+
`,A=o.div`
|
|
45
|
+
> *:not(:last-child) {
|
|
46
|
+
border-bottom: var(--panel-border-local, 1px solid var(--border-color-secondary));
|
|
47
|
+
}
|
|
48
|
+
`;export{ie as BrokerPanelItem};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import{Fragment as j,jsx as e,jsxs as t}from"react/jsx-runtime";import{styled as m}from"styled-components";import{useAtomValue as I}from"jotai";import{memo as f,useState as k}from"react";import{JsonViewer as B}from"@redocly/theme/components/JsonViewer/JsonViewer";import{globalOptionsAtom as T}from"../../../../jotai/store.js";import{MoreDetailsButton as V}from"../../../common/MoreDetailsButton.js";import{BindingPanel as b,BindingTag as l,JsonViewerWrapper as w,Label as s,Row as c,ValueCell as d,omitBindingVersion as D,JsonBindingPanel as E}from"../common/bindingPanel.js";const O={"cleanup.policy":"Cleanup policy","retention.ms":"Retention, ms","retention.bytes":"Retention, bytes","delete.retention.ms":"Delete retention, ms","max.message.bytes":"Max message bytes","confluent.key.schema.validation":"Confluent key schema validation","confluent.key.subject.name.strategy":"Confluent key subject name strategy","confluent.value.schema.validation":"Confluent value schema validation","confluent.value.subject.name.strategy":"Confluent value subject name strategy"},R=f(function({topicConfiguration:r}){return e(A,{children:Object.entries(r).map(([i,a])=>t(F,{children:[e("span",{children:O[i]??i}),e("span",{children:Array.isArray(a)?a.join(", "):String(a)})]},i))})}),y=f(function({bindingValue:r,jsonSamplesDepth:i}){return e(w,{children:e(B,{data:D(r),expandLevel:i,controls:!1})})});function K({node:o}){const r=o.children[0],[i,a]=k(!1),{jsonSamplesDepth:g}=I(T);if(!r)return e(b,{header:o.title,className:"panel-api-docs",isExpandable:!1});const{bindingKey:v,bindingValue:p}=r;if(v==="kafka"){const n=p,{topicConfiguration:u}=n,h=u&&Object.keys(u).length>0,x=n.topic||n.partitions!=null||n.replicas!=null||h,C=n.groupId||n.clientId;return t(b,{header:o.title,className:"panel-api-docs",isExpandable:!1,children:[n.topic&&t(c,{children:[e(s,{children:"Topic"}),e(d,{children:e(l,{borderless:!0,children:n.topic})})]}),n.partitions!=null&&t(c,{children:[e(s,{children:"Partitions"}),e(d,{children:e(l,{borderless:!0,color:"blue",children:n.partitions})})]}),n.replicas!=null&&t(c,{children:[e(s,{children:"Replicas"}),e(d,{children:e(l,{borderless:!0,color:"green",children:n.replicas})})]}),n.groupId&&t(c,{children:[e(s,{children:"Group ID"}),e(d,{children:e(l,{borderless:!0,children:n.groupId.enum?n.groupId.enum.join(", "):n.groupId.type})})]}),n.clientId&&t(c,{children:[e(s,{children:"Client ID"}),e(d,{children:e(l,{borderless:!0,children:n.clientId.enum?n.clientId.enum.join(", "):n.clientId.type})})]}),h&&t(j,{children:[e(S,{onClick:()=>a(!i),children:e(V,{expanded:i})}),i&&e(R,{topicConfiguration:u})]}),!x&&!C&&e(y,{bindingValue:p,jsonSamplesDepth:g})]})}return e(E,{header:o.title,className:"panel-api-docs",isExpandable:!1,children:e(y,{bindingValue:p,jsonSamplesDepth:g})})}const S=m.div`
|
|
2
|
+
min-height: 40px;
|
|
3
|
+
padding: var(--spacing-xs) var(--spacing-md);
|
|
4
|
+
align-items: center;
|
|
5
|
+
display: flex;
|
|
6
|
+
width: 100%;
|
|
7
|
+
gap: var(--spacing-md);
|
|
8
|
+
background-color: var(--layer-color);
|
|
9
|
+
cursor: pointer;
|
|
10
|
+
|
|
11
|
+
&:hover {
|
|
12
|
+
background-color: var(--layer-color-ontonal-hover);
|
|
13
|
+
}
|
|
14
|
+
`,A=m.div`
|
|
15
|
+
padding-left: var(--spacing-xs);
|
|
16
|
+
background-color: var(--layer-color);
|
|
17
|
+
|
|
18
|
+
& div {
|
|
19
|
+
border-bottom: none;
|
|
20
|
+
}
|
|
21
|
+
`,F=m.div`
|
|
22
|
+
min-height: 30px;
|
|
23
|
+
padding: var(--spacing-xs) var(--spacing-md);
|
|
24
|
+
align-items: start;
|
|
25
|
+
display: flex;
|
|
26
|
+
width: 100%;
|
|
27
|
+
gap: var(--spacing-md);
|
|
28
|
+
|
|
29
|
+
& > * {
|
|
30
|
+
flex: 1;
|
|
31
|
+
}
|
|
32
|
+
`;export{K as ChannelBindingPanelItem};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Fragment as S,jsx as e,jsxs as t}from"react/jsx-runtime";import{useAtomValue as f}from"jotai";import{memo as u,useContext as b,useMemo as k}from"react";import{JsonViewer as K}from"@redocly/theme/components/JsonViewer/JsonViewer";import{globalOptionsAtom as j}from"../../../../jotai/store.js";import{itemStoreFieldAtom as C}from"../../../../jotai/itemStore.js";import{ItemIdContext as L}from"../../../../hooks/useDeepLinkSection.js";import{SchemaView as v}from"../../../Schema/SchemaView.js";import{BindingPanel as y,BindingTag as r,JsonViewerWrapper as D,Label as c,Row as l,SchemaWrapper as E,ValueCell as d,omitBindingVersion as J,JsonBindingPanel as M}from"../common/bindingPanel.js";const P=u(function({keySchemaId:a,bindingValue:n}){return t(S,{children:[a&&e(E,{children:e(v,{schemaId:a,expandByDefault:!0,level:1})}),n.schemaIdLocation&&t(l,{children:[e(c,{children:"Schema ID Location"}),e(d,{children:e(r,{borderless:!0,children:n.schemaIdLocation})})]}),n.schemaIdPayloadEncoding&&t(l,{children:[e(c,{children:"Schema ID payload encoding"}),e(d,{children:e(r,{borderless:!0,children:n.schemaIdPayloadEncoding})})]}),n.schemaLookupStrategy&&t(l,{children:[e(c,{children:"Schema lookup strategy"}),e(d,{children:e(r,{borderless:!0,children:n.schemaLookupStrategy})})]})]})}),w=u(function({bindingValue:a,jsonSamplesDepth:n}){return e(D,{children:e(K,{data:J(a),expandLevel:n,controls:!1})})});function q({node:i}){const a=i.children[0],{jsonSamplesDepth:n}=f(j),m=b(L)??"",o=f(k(()=>C({itemId:m,key:"activeMessageKey"}),[m]));if(!a)return e(y,{header:i.title,className:"panel-api-docs",isExpandable:!1});const{bindingsByMessageKey:s}=a,I=Object.keys(s),h=o&&s[o]?o:I[0],p=h?s[h]:void 0;if(!p)return null;const{bindingKey:x,bindingValue:g,keySchemaId:B}=p;return x==="kafka"?e(y,{header:i.title,className:"panel-api-docs",isExpandable:!1,children:e(P,{keySchemaId:B,bindingValue:g})}):e(M,{header:i.title,className:"panel-api-docs",isExpandable:!1,children:e(w,{bindingValue:g,jsonSamplesDepth:n})})}export{q as MessageBindingPanelItem};
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import{Fragment as b,jsx as t,jsxs as m}from"react/jsx-runtime";import{styled as s}from"styled-components";import{useAtomValue as C}from"jotai";import{memo as M,useCallback as f,useContext as j,useMemo as A}from"react";import{Link as q}from"react-router-dom";import{Panel as K}from"@redocly/theme/components/Panel/Panel";import{Typography as P}from"@redocly/theme/components/Typography/Typography";import{ListIcon as S}from"../../../../icons/ListIcon/ListIcon.js";import{visitedChannelsAtom as T}from"../../../../jotai/app.js";import{itemStoreFieldAtom as $}from"../../../../jotai/itemStore.js";import{ItemIdContext as E}from"../../../../hooks/useDeepLinkSection.js";import{useNavigationUrlNormalizer as F}from"../../../../hooks/useNormalizeUrl.js";import{useTelemetry as N}from"../../../../hooks/useTelemetry.js";function U(o){const n=[];return o.exchanges.length>0&&n.push(`${o.exchanges.length} exchange${o.exchanges.length>1?"s":""}`),o.queues.length>0&&n.push(`${o.queues.length} queue${o.queues.length>1?"s":""}`),n.length===0?"":`Used in ${n.join(" and ")}`}const I=M(function({reference:n,to:l,isActive:c,onReferencedInClick:r}){const d=f(()=>r(n.label),[r,n.label]);return m(B,{children:[t(D,{size:"22px",color:c?"var(--color-info-border)":"var(--border-color-primary)"}),t(Q,{to:l,onClick:d,children:n.label})]})});function ie({node:o}){const n=o.children[0],l=j(E)??"",c=C(T),r=f(e=>(c??[]).some(a=>a.endsWith(e.toLowerCase())),[c]),d=F(),u=N(),h=C(A(()=>$({itemId:l,key:"activeMessageKey"}),[l])),v=f(e=>{u.sendReferencedInClickedMessage([{id:"asyncapiDocsChannelLink",object:"link",uri:"urn:redocly:redoc:ui:link:asyncapiDocsChannelLink",referencedIn:e}])},[u]);if(!n)return t(b,{});const{referencesByMessageKey:g}=n,w=Object.keys(g),x=h&&g[h]?h:w[0],i=x?g[x]:void 0;if(!i||i.exchanges.length===0&&i.queues.length===0)return t(b,{});const L=U(i),y=i.exchanges.map(e=>({reference:e,to:d(e.link)})),k=i.queues.map(e=>({reference:e,to:d(e.link)}));return m(_,{header:L,className:"panel-api-docs",isExpandable:!1,children:[y.length>0&&m(z,{children:[t(R,{children:"Exchanges"}),y.map(({reference:e,to:a})=>{const p=r(e.key);return t(I,{reference:e,to:a,isActive:p,onReferencedInClick:v},e.key)})]}),k.length>0&&m(z,{children:[t(R,{children:"Queues"}),k.map(({reference:e,to:a})=>{const p=r(e.key);return t(I,{reference:e,to:a,isActive:p,onReferencedInClick:v},e.key)})]})]})}const _=s(K)`
|
|
2
|
+
[data-component-name='Panel/PanelBody'] {
|
|
3
|
+
background-color: var(--layer-color-ontonal);
|
|
4
|
+
padding: 0;
|
|
5
|
+
display: flex;
|
|
6
|
+
flex-direction: column;
|
|
7
|
+
}
|
|
8
|
+
`,z=s.div`
|
|
9
|
+
display: flex;
|
|
10
|
+
flex-direction: column;
|
|
11
|
+
padding: var(--spacing-xxs) 0;
|
|
12
|
+
|
|
13
|
+
&:not(:last-child) {
|
|
14
|
+
border-bottom: var(--panel-border-local);
|
|
15
|
+
}
|
|
16
|
+
`,R=s(P)`
|
|
17
|
+
font-weight: var(--font-weight-semibold);
|
|
18
|
+
font-size: var(--font-size-sm);
|
|
19
|
+
padding: var(--spacing-xxs) var(--spacing-md);
|
|
20
|
+
`,B=s.div`
|
|
21
|
+
display: flex;
|
|
22
|
+
align-items: center;
|
|
23
|
+
padding: var(--spacing-xxs) var(--spacing-md);
|
|
24
|
+
`,D=s(S)`
|
|
25
|
+
margin-right: var(--spacing-xs);
|
|
26
|
+
flex-shrink: 0;
|
|
27
|
+
`,Q=s(q)`
|
|
28
|
+
text-decoration: var(--link-decoration);
|
|
29
|
+
color: var(--link-color-primary);
|
|
30
|
+
font-weight: var(--link-font-weight);
|
|
31
|
+
font-size: var(--font-size-base);
|
|
32
|
+
|
|
33
|
+
&:visited {
|
|
34
|
+
color: var(--link-color-visited);
|
|
35
|
+
text-decoration: var(--link-decoration-visited);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
&:hover {
|
|
39
|
+
color: var(--link-color-primary-hover);
|
|
40
|
+
text-decoration: var(--link-decoration-hover);
|
|
41
|
+
}
|
|
42
|
+
`;export{ie as MessageReferencesPanelItem};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsx as e,jsxs as m}from"react/jsx-runtime";import{useAtomValue as c}from"jotai";import{JsonViewer as f}from"@redocly/theme/components/JsonViewer/JsonViewer";import{globalOptionsAtom as h}from"../../../../jotai/store.js";import{SchemaView as l}from"../../../Schema/SchemaView.js";import{BindingPanel as s,JsonViewerWrapper as u,SchemaWrapper as t,omitBindingVersion as x,JsonBindingPanel as g}from"../common/bindingPanel.js";function v({node:a}){const r=a.children[0],{jsonSamplesDepth:o}=c(h);if(!r)return e(s,{header:a.title,className:"panel-api-docs",isExpandable:!1});const{bindingKey:d,bindingValue:p,groupIdSchemaId:i,clientIdSchemaId:n}=r;return d==="kafka"&&(i||n)?m(s,{header:a.title,className:"panel-api-docs",isExpandable:!1,children:[i&&e(t,{children:e(l,{schemaId:i,expandByDefault:!0,level:1})}),n&&e(t,{children:e(l,{schemaId:n,expandByDefault:!0,level:1})})]}):e(g,{header:a.title,className:"panel-api-docs",isExpandable:!1,children:e(u,{children:e(f,{data:x(p),expandLevel:o,controls:!1})})})}export{v as OperationBindingPanelItem};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { Panel } from '@redocly/theme/components/Panel/Panel';
|
|
2
|
+
import { Tag } from '@redocly/theme/components/Tag/Tag';
|
|
3
|
+
export declare function omitBindingVersion(value: Record<string, unknown>): Record<string, unknown>;
|
|
4
|
+
export declare const BindingPanel: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("@redocly/theme").PanelProps & {
|
|
5
|
+
children?: import("react").ReactNode | undefined;
|
|
6
|
+
}, never> & Partial<Pick<import("@redocly/theme").PanelProps & {
|
|
7
|
+
children?: import("react").ReactNode | undefined;
|
|
8
|
+
}, never>>> & string & Omit<typeof Panel, keyof import("react").Component<any, {}, any>>;
|
|
9
|
+
export declare const JsonBindingPanel: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<import("styled-components").FastOmit<import("@redocly/theme").PanelProps & {
|
|
10
|
+
children?: import("react").ReactNode | undefined;
|
|
11
|
+
}, never> & Partial<Pick<import("@redocly/theme").PanelProps & {
|
|
12
|
+
children?: import("react").ReactNode | undefined;
|
|
13
|
+
}, never>>, "as" | "forwardedAs"> & {
|
|
14
|
+
as?: import("styled-components").WebTarget | undefined;
|
|
15
|
+
forwardedAs?: import("styled-components").WebTarget | undefined;
|
|
16
|
+
}, never> & Partial<Pick<import("styled-components").FastOmit<import("styled-components").FastOmit<import("@redocly/theme").PanelProps & {
|
|
17
|
+
children?: import("react").ReactNode | undefined;
|
|
18
|
+
}, never> & Partial<Pick<import("@redocly/theme").PanelProps & {
|
|
19
|
+
children?: import("react").ReactNode | undefined;
|
|
20
|
+
}, never>>, "as" | "forwardedAs"> & {
|
|
21
|
+
as?: import("styled-components").WebTarget | undefined;
|
|
22
|
+
forwardedAs?: import("styled-components").WebTarget | undefined;
|
|
23
|
+
}, never>>> & string;
|
|
24
|
+
export declare const Row: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never> & Partial<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>> & string;
|
|
25
|
+
export declare const Label: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, never> & Partial<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, never>>> & string;
|
|
26
|
+
export declare const ValueCell: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, never> & Partial<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, never>>> & string;
|
|
27
|
+
export declare const BindingTag: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("@redocly/theme").TagProps, never> & Partial<Pick<import("@redocly/theme").TagProps, never>>> & string & Omit<typeof Tag, keyof import("react").Component<any, {}, any>>;
|
|
28
|
+
export declare const SchemaWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never> & Partial<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>> & string;
|
|
29
|
+
export declare const JsonViewerWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never> & Partial<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>> & string;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import{styled as n}from"styled-components";import{Panel as a}from"@redocly/theme/components/Panel/Panel";import{Tag as i}from"@redocly/theme/components/Tag/Tag";function l(e){const{bindingVersion:t,...o}=e;return o}const r=n(a)`
|
|
2
|
+
[data-component-name='Panel/PanelBody'] {
|
|
3
|
+
background-color: var(--layer-color-ontonal);
|
|
4
|
+
padding: 0;
|
|
5
|
+
|
|
6
|
+
> *:not(:last-child) {
|
|
7
|
+
border-bottom: var(--panel-border-local);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
& div {
|
|
11
|
+
border-bottom: none;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
`,c=n(r)`
|
|
15
|
+
[data-component-name='Panel/PanelBody'] {
|
|
16
|
+
& div {
|
|
17
|
+
padding: 0;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
`,g=n.div`
|
|
21
|
+
min-height: 40px;
|
|
22
|
+
padding: var(--spacing-xs) var(--spacing-md);
|
|
23
|
+
align-items: center;
|
|
24
|
+
display: flex;
|
|
25
|
+
width: 100%;
|
|
26
|
+
gap: var(--spacing-md);
|
|
27
|
+
|
|
28
|
+
& > *:first-child {
|
|
29
|
+
flex: 1;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
& > *:nth-child(2) {
|
|
33
|
+
flex: 2;
|
|
34
|
+
}
|
|
35
|
+
`,m=n.span`
|
|
36
|
+
color: var(--text-color-description);
|
|
37
|
+
font-size: var(--font-size-base);
|
|
38
|
+
line-height: var(--line-height-base);
|
|
39
|
+
`,x=n.span`
|
|
40
|
+
display: inline-flex;
|
|
41
|
+
align-items: center;
|
|
42
|
+
`,v=n(i)`
|
|
43
|
+
text-transform: none;
|
|
44
|
+
`,f=n.div`
|
|
45
|
+
padding: var(--spacing-xs) var(--spacing-md);
|
|
46
|
+
`,h=n.div`
|
|
47
|
+
padding: var(--spacing-sm) var(--spacing-md);
|
|
48
|
+
`;export{r as BindingPanel,v as BindingTag,c as JsonBindingPanel,h as JsonViewerWrapper,m as Label,g as Row,f as SchemaWrapper,x as ValueCell,l as omitBindingVersion};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare const PanelWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never> & Partial<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>> & string;
|
|
2
|
+
export declare const PanelHeading: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never> & Partial<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>> & string;
|
|
3
|
+
export declare const PanelBody: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never> & Partial<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>> & string;
|
|
4
|
+
export declare const PanelListItem: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never> & Partial<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>> & string;
|
|
5
|
+
export declare const StyledListIcon: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").SVGProps<SVGSVGElement>, never> & Partial<Pick<import("react").SVGProps<SVGSVGElement>, never>>> & string;
|
|
6
|
+
export declare function ListIcon({ clipId }: {
|
|
7
|
+
clipId?: string;
|
|
8
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import{jsx as r,jsxs as e}from"react/jsx-runtime";import{styled as o}from"styled-components";const s=o.div`
|
|
2
|
+
border: 1px solid var(--border-color-secondary, var(--border-color-primary));
|
|
3
|
+
border-radius: var(--border-radius);
|
|
4
|
+
background-color: var(--panel-bg-color, var(--bg-color));
|
|
5
|
+
margin-top: var(--spacing-base);
|
|
6
|
+
`,l=o.div`
|
|
7
|
+
font-family: var(--font-family-base);
|
|
8
|
+
font-size: var(--font-size-base);
|
|
9
|
+
font-weight: var(--font-weight-semibold);
|
|
10
|
+
padding: calc(var(--spacing-sm, 12px) + 2px) var(--spacing-md) calc(var(--spacing-xs) + 2px);
|
|
11
|
+
border-bottom: 1px solid var(--border-color-secondary, var(--border-color-primary));
|
|
12
|
+
`,c=o.div`
|
|
13
|
+
display: flex;
|
|
14
|
+
flex-direction: column;
|
|
15
|
+
padding: var(--spacing-sm, 12px) var(--spacing-md) var(--spacing-md);
|
|
16
|
+
gap: var(--spacing-xs);
|
|
17
|
+
max-height: 400px;
|
|
18
|
+
overflow-y: auto;
|
|
19
|
+
`,d=o.div`
|
|
20
|
+
display: flex;
|
|
21
|
+
font-family: var(--font-family-base);
|
|
22
|
+
font-size: var(--font-size-base);
|
|
23
|
+
font-weight: var(--font-weight-semibold);
|
|
24
|
+
line-height: var(--line-height-md, var(--line-height-base));
|
|
25
|
+
color: var(--text-color-secondary);
|
|
26
|
+
align-items: center;
|
|
27
|
+
`,i=o.svg`
|
|
28
|
+
width: 22px;
|
|
29
|
+
height: 22px;
|
|
30
|
+
flex-shrink: 0;
|
|
31
|
+
margin-right: var(--spacing-sm, 12px);
|
|
32
|
+
|
|
33
|
+
path,
|
|
34
|
+
circle {
|
|
35
|
+
fill: var(--border-color-primary);
|
|
36
|
+
stroke: var(--border-color-primary);
|
|
37
|
+
}
|
|
38
|
+
`;function p({clipId:a="clip_panel"}){return e(i,{viewBox:"0 0 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[e("g",{clipPath:`url(#${a})`,children:[r("path",{d:"M0 11H22",strokeLinecap:"round"}),r("circle",{cx:"4",cy:"11",r:"4"})]}),r("defs",{children:r("clipPath",{id:a,children:r("rect",{width:"22",height:"22",fill:"white"})})})]})}export{p as ListIcon,c as PanelBody,l as PanelHeading,d as PanelListItem,s as PanelWrapper,i as StyledListIcon};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Panel } from '@redocly/theme/components/Panel/Panel';
|
|
2
|
+
import { CodeBlock } from '@redocly/theme/components/CodeBlock/CodeBlock';
|
|
3
|
+
export declare const CodeBlockPanel: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("@redocly/theme").PanelProps & {
|
|
4
|
+
children?: import("react").ReactNode | undefined;
|
|
5
|
+
}, never> & Partial<Pick<import("@redocly/theme").PanelProps & {
|
|
6
|
+
children?: import("react").ReactNode | undefined;
|
|
7
|
+
}, never>>> & string & Omit<typeof Panel, keyof import("react").Component<any, {}, any>>;
|
|
8
|
+
export declare const OverviewPanel: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("@redocly/theme").PanelProps & {
|
|
9
|
+
children?: import("react").ReactNode | undefined;
|
|
10
|
+
}, never> & Partial<Pick<import("@redocly/theme").PanelProps & {
|
|
11
|
+
children?: import("react").ReactNode | undefined;
|
|
12
|
+
}, never>>> & string & Omit<typeof Panel, keyof import("react").Component<any, {}, any>>;
|
|
13
|
+
export declare const StyledCodeBlock: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("@redocly/theme").CodeBlockProps & {
|
|
14
|
+
children?: import("react").ReactNode | undefined;
|
|
15
|
+
}, never> & Partial<Pick<import("@redocly/theme").CodeBlockProps & {
|
|
16
|
+
children?: import("react").ReactNode | undefined;
|
|
17
|
+
}, never>>> & string & Omit<typeof CodeBlock, keyof import("react").Component<any, {}, any>>;
|
|
18
|
+
export declare const StyledJsonViewer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("@redocly/theme").JsonProps, never> & Partial<Pick<import("@redocly/theme").JsonProps, never>>> & string & Omit<import("react").NamedExoticComponent<import("@redocly/theme").JsonProps>, keyof import("react").Component<any, {}, any>>;
|
|
19
|
+
export declare const SectionHeader: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never> & Partial<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>> & string;
|
|
20
|
+
export declare const VariablesContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never> & Partial<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>> & string;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import{styled as o}from"styled-components";import{Panel as e}from"@redocly/theme/components/Panel/Panel";import{CodeBlock as a}from"@redocly/theme/components/CodeBlock/CodeBlock";import{JsonViewer as n}from"@redocly/theme/components/JsonViewer/JsonViewer";const p=o(e)`
|
|
2
|
+
[data-component-name='Panel/PanelBody'] {
|
|
3
|
+
padding: var(--spacing-sm) 0 0;
|
|
4
|
+
}
|
|
5
|
+
`,c=o(e)`
|
|
6
|
+
[data-component-name='Panel/PanelHeader'],
|
|
7
|
+
[data-component-name='Panel/PanelBody'] {
|
|
8
|
+
padding: var(--spacing-sm);
|
|
9
|
+
}
|
|
10
|
+
`,l=o(a)`
|
|
11
|
+
border: none;
|
|
12
|
+
margin: 0;
|
|
13
|
+
--code-block-padding: var(--spacing-xs) 0 var(--spacing-xs) 20px;
|
|
14
|
+
|
|
15
|
+
.code-block-header {
|
|
16
|
+
border-bottom: 0;
|
|
17
|
+
padding-right: var(--spacing-sm);
|
|
18
|
+
margin-top: 0;
|
|
19
|
+
}
|
|
20
|
+
`,s=o(n)`
|
|
21
|
+
--code-block-padding: var(--spacing-xs) 0 var(--spacing-xs) 20px;
|
|
22
|
+
`,g=o.div`
|
|
23
|
+
font-weight: var(--panel-heading-font-weight-local);
|
|
24
|
+
line-height: var(--line-height-base);
|
|
25
|
+
color: var(--panel-heading-text-color);
|
|
26
|
+
`,m=o.div`
|
|
27
|
+
border-top: 1px solid var(--border-color-secondary);
|
|
28
|
+
`;export{p as CodeBlockPanel,c as OverviewPanel,g as SectionHeader,l as StyledCodeBlock,s as StyledJsonViewer,m as VariablesContainer};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { ReactElement } from 'react';
|
|
2
|
+
import type { CodeSamplePanelItem } from '../../types/content.js';
|
|
3
|
+
export type RedocCodeSampleProps = {
|
|
4
|
+
node: CodeSamplePanelItem;
|
|
5
|
+
mimeType?: string;
|
|
6
|
+
exampleKey?: string;
|
|
7
|
+
requestBody?: unknown;
|
|
8
|
+
parameters?: Record<string, object | undefined>;
|
|
9
|
+
environment?: string;
|
|
10
|
+
environments?: Record<string, Record<string, string>>;
|
|
11
|
+
};
|
|
12
|
+
export declare function RedocCodeSample({ node, ...embed }: RedocCodeSampleProps): ReactElement;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsx as h,jsxs as C}from"react/jsx-runtime";import{useEffect as a,useId as x}from"react";import{useAtom as l,useAtomValue as S}from"jotai";import{environmentAtom as j,mediaTypeOverrideAtom as y,requestValuesAtom as A}from"../../jotai/app.js";import{exampleStoreAtom as k}from"../../jotai/examples.js";import{mediaTypeContainingKey as R}from"../../services/code-samples/example-key.js";import{CodeSampleItem as T}from"../panels/ExampleItem/CodeSampleItem.js";import{ContentWrapper as _}from"../common/ContentWrapper.js";import{ItemIdContext as b,SYNTHETIC_ITEM_ID_PREFIX as q}from"../../hooks/useDeepLinkSection.js";function $(e){return`${e.source.method.toLowerCase()}:${e.source.path}`}function M({node:e,mimeType:n,exampleKey:t,requestBody:u,parameters:o,environment:r,environments:s}){const[,c]=l(y),[,p]=l(A),[,E]=l(j),I=S(k);return a(()=>{if(n){c(n);return}const d=R(e.source.requestBody,t,m=>I[m]);d&&c(d)},[n,t,e,I,c]),a(()=>{(r!==void 0||s!==void 0)&&E({environment:r,environments:s})},[r,s,E]),a(()=>{const d=$(e),m=o&&Object.values(o).some(f=>f!=null&&typeof f=="object");!(u!==void 0)&&!m&&!(t!==void 0)||p(f=>{const i={...f[d]};return u!==void 0&&(i.body=u),o?.header&&(i.headers=o.header),o?.query&&(i.queryString=o.query),o?.path&&(i.path=o.path),o?.cookie&&(i.cookies=o.cookie),t!==void 0&&(i.activeExampleName=t),{...f,[d]:i}})},[e,u,o,t,p]),null}function W({node:e,...n}){const t=`${q}${x()}`;return h(b.Provider,{value:t,children:C(_,{children:[h(M,{node:e,...n}),h(T,{node:e})]})})}export{W as RedocCodeSample};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import{Fragment as n,jsx as e}from"react/jsx-runtime";import{useAtomValue as l}from"jotai";import{styled as c}from"styled-components";import{refPointerToStoreId as i}from"../../utils/refPointer.js";import{ContentWrapper as f}from"../common/ContentWrapper.js";import{exampleStoreAtom as u}from"../../jotai/examples.js";import{PayloadDisplay as x}from"../panels/ExampleItem/selectors.js";const A=({pointer:r,value:o,mimeType:p})=>{const a=l(u);if(o===void 0&&!r)return e(n,{});const s=r?i(r):void 0,m=r&&/\/value$/.test(r)?i(r.replace(/\/value$/,"")):void 0,d=a[s??""]??a[m??""],t=o!==void 0?o:d?.value;return t===void 0?e(n,{}):e(f,{children:e(y,{children:e(x,{payload:t,mediaType:p,description:d?.description})})})},y=c.div`
|
|
2
|
+
padding: calc(var(--spacing-unit) * 4);
|
|
3
|
+
border-radius: var(--panel-border-radius);
|
|
4
|
+
border: var(--panel-samples-border);
|
|
5
|
+
background-color: var(--panel-samples-bg-color);
|
|
6
|
+
width: 100%;
|
|
7
|
+
`;export{A as RedocExample};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { ReactElement } from 'react';
|
|
2
|
+
import type { ResponseCodeEntry } from '../../types/content.js';
|
|
3
|
+
export type { ResponseCodeEntry as ResponseCodeItem };
|
|
4
|
+
type RedocResponseSamplesProps = {
|
|
5
|
+
responseCodes: ResponseCodeEntry[];
|
|
6
|
+
exampleKey?: string;
|
|
7
|
+
schemaId?: string;
|
|
8
|
+
};
|
|
9
|
+
export declare function RedocResponseSamples({ responseCodes, exampleKey, schemaId, }: RedocResponseSamplesProps): ReactElement;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsx as r}from"react/jsx-runtime";import{useId as l,useMemo as u}from"react";import{useAtomValue as a}from"jotai";import{panelKind as c}from"../../types/common.js";import{exampleStoreAtom as R}from"../../jotai/examples.js";import{responseCodesContainingKey as I}from"../../services/code-samples/example-key.js";import{ResponseExampleItem as E}from"../panels/ExampleItem/ResponseExampleItem.js";import{ContentWrapper as S}from"../common/ContentWrapper.js";import{ItemIdContext as x,SYNTHETIC_ITEM_ID_PREFIX as C}from"../../hooks/useDeepLinkSection.js";function N({responseCodes:o,exampleKey:n,schemaId:t}){const m=a(R),s=`${C}${l()}`,i=u(()=>{const e=I(o,n,f=>m[f]);return e.length===1?e:o},[o,n,m]),p=t===void 0?i:i.map(e=>e.schemaId?e:{...e,schemaId:t}),d={kind:c.RESPONSE,headerTitle:"Response",responseCodes:p,examples:[],...o.length===0&&t!==void 0&&{schemaId:t},...n!==void 0&&{exampleKey:n}};return r(x.Provider,{value:s,children:r(S,{children:r(E,{node:d})})})}export{N as RedocResponseSamples};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { ReactElement } from 'react';
|
|
2
|
+
import type { OpenAPISchema } from '../../types/index.js';
|
|
3
|
+
import type { OneOfChangeParams } from '../../types/pluggable.js';
|
|
4
|
+
type RedocSchemaProps = {
|
|
5
|
+
pointer?: string;
|
|
6
|
+
schema?: OpenAPISchema;
|
|
7
|
+
disableDeepLinks?: boolean;
|
|
8
|
+
slug?: string;
|
|
9
|
+
onOneOfChange?: (params: OneOfChangeParams) => void;
|
|
10
|
+
};
|
|
11
|
+
export declare const RedocSchema: ({ pointer, schema, onOneOfChange }: RedocSchemaProps) => ReactElement;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Fragment as i,jsx as e}from"react/jsx-runtime";import{useId as l}from"react";import{ItemIdContext as a,SYNTHETIC_ITEM_ID_PREFIX as c}from"../../hooks/useDeepLinkSection.js";import{refPointerToStoreId as s}from"../../utils/refPointer.js";import{ContentWrapper as d}from"../common/ContentWrapper.js";import{SchemaView as f}from"../Schema/SchemaView.js";const P=({pointer:r,schema:o,onOneOfChange:t})=>{const n=`${c}${l()}`;if(!o&&!r)return e(i,{});if(o)return e(a.Provider,{value:n,children:e(d,{children:e(f,{schema:o,level:1,expandByDefault:!0,onOneOfChange:t,rootJsonPointer:r??"#"})})});const m=s(r);return m?e(a.Provider,{value:n,children:e(d,{children:e(f,{schemaId:m,level:1,expandByDefault:!0,onOneOfChange:t,rootJsonPointer:r})})}):e(i,{})};export{P as RedocSchema};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { RedocSchema } from './RedocSchema.js';
|
|
2
|
+
export { RedocExample } from './RedocExample.js';
|
|
3
|
+
export { RedocResponseSamples } from './RedocResponseSamples.js';
|
|
4
|
+
export { RedocCodeSample } from './RedocCodeSample.js';
|
|
5
|
+
export type { ResponseCodeItem } from './RedocResponseSamples.js';
|
|
6
|
+
export type { OneOfChangeParams } from '../../types/pluggable.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{RedocSchema as m}from"./RedocSchema.js";import{RedocExample as r}from"./RedocExample.js";import{RedocResponseSamples as d}from"./RedocResponseSamples.js";import{RedocCodeSample as R}from"./RedocCodeSample.js";export{R as RedocCodeSample,r as RedocExample,d as RedocResponseSamples,m as RedocSchema};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { ObjectValues } from '../types/common';
|
|
2
|
+
export declare const WindowReferenceOptions: {
|
|
3
|
+
readonly ON_DEEP_LINK_CLICK: 'onDeepLinkClick';
|
|
4
|
+
readonly HOOKS: 'hooks';
|
|
5
|
+
};
|
|
6
|
+
export type WindowReferenceOptions = (typeof WindowReferenceOptions)[keyof typeof WindowReferenceOptions];
|
|
7
|
+
export declare const SECTION_ATTR = "data-section-id";
|
|
8
|
+
export declare const GROUP_DEPTH = 0;
|
|
9
|
+
export declare const DEFAULT_TAG_SLUG = "other";
|
|
10
|
+
export declare const DEFAULT_WEBHOOKS_TAG_NAME = "webhooks";
|
|
11
|
+
export declare const MAX_NESTING_TAGS_LEVEL = 5;
|
|
12
|
+
export declare const WEBHOOKS_GROUP_TITLE = "Webhooks";
|
|
13
|
+
export declare const LOADING_STATE: {
|
|
14
|
+
readonly NOT_LOADED: 'NOT_LOADED';
|
|
15
|
+
readonly LOADING: 'LOADING';
|
|
16
|
+
readonly LOADED: 'LOADED';
|
|
17
|
+
};
|
|
18
|
+
export declare const MediaTypes: {
|
|
19
|
+
readonly OCTET_STREAM: 'application/octet-stream';
|
|
20
|
+
readonly MULTIPART: 'multipart/form-data';
|
|
21
|
+
readonly MULTIPART_MIXED: 'multipart/mixed';
|
|
22
|
+
readonly URL_ENCODED: 'application/x-www-form-urlencoded';
|
|
23
|
+
readonly JSON: 'application/json';
|
|
24
|
+
readonly XML: 'application/xml';
|
|
25
|
+
readonly JSONL: 'application/jsonl';
|
|
26
|
+
readonly NDJSON: 'application/x-ndjson';
|
|
27
|
+
readonly JSON_SEQ: 'application/json-seq';
|
|
28
|
+
readonly EVENT_STREAM: 'text/event-stream';
|
|
29
|
+
};
|
|
30
|
+
export type MediaTypes = ObjectValues<typeof MediaTypes>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const o={ON_DEEP_LINK_CLICK:"onDeepLinkClick",HOOKS:"hooks"},t="data-section-id",e=0,n="other",p="webhooks",E=5,O="Webhooks",T={NOT_LOADED:"NOT_LOADED",LOADING:"LOADING",LOADED:"LOADED"},i={OCTET_STREAM:"application/octet-stream",MULTIPART:"multipart/form-data",MULTIPART_MIXED:"multipart/mixed",URL_ENCODED:"application/x-www-form-urlencoded",JSON:"application/json",XML:"application/xml",JSONL:"application/jsonl",NDJSON:"application/x-ndjson",JSON_SEQ:"application/json-seq",EVENT_STREAM:"text/event-stream"};export{n as DEFAULT_TAG_SLUG,p as DEFAULT_WEBHOOKS_TAG_NAME,e as GROUP_DEPTH,T as LOADING_STATE,E as MAX_NESTING_TAGS_LEVEL,i as MediaTypes,t as SECTION_ATTR,O as WEBHOOKS_GROUP_TITLE,o as WindowReferenceOptions};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Maximum number of characters of a single string value rendered inline in
|
|
3
|
+
* payload/response sample panels. Longer strings (e.g. multi-KB base64 blobs
|
|
4
|
+
* used as schema examples) are truncated at render time with a "Show more"
|
|
5
|
+
* toggle to avoid huge SSR/DOM output and layout of monster text lines.
|
|
6
|
+
* Copy controls always receive the full, untruncated value.
|
|
7
|
+
*/
|
|
8
|
+
export declare const MAX_DISPLAYED_STRING_LENGTH = 1000;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const _=1e3;export{_ as MAX_DISPLAYED_STRING_LENGTH};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
export type { MarkdownParser } from '../adapters/utils/parseMarkdown.js';
|
|
3
|
+
/**
|
|
4
|
+
* Host-provided markdown handling. api-docs core does not bundle a markdown engine — embedders
|
|
5
|
+
* supply an adapter so they own how descriptions become React:
|
|
6
|
+
* - `parse` normalizes a source — a raw markdown string, or an already-parsed AST — into whatever
|
|
7
|
+
* `render` consumes. It is opaque to api-docs. Item descriptions are parsed at build, so they
|
|
8
|
+
* reach `parse` as ASTs; the lazily-rendered schema descriptions reach it as raw strings.
|
|
9
|
+
* - `render` turns the parsed value into React.
|
|
10
|
+
*
|
|
11
|
+
* The standalone build supplies a Markdoc-based adapter (`createMarkdocAdapter`). Embedders that
|
|
12
|
+
* pre-parse upstream (e.g. realm) supply a `parse` no-op plus their own `render`, so the Markdoc
|
|
13
|
+
* parser never enters their client bundle.
|
|
14
|
+
*/
|
|
15
|
+
export type MarkdownRenderer = (parsed: unknown) => ReactNode;
|
|
16
|
+
export type MarkdownAdapter = {
|
|
17
|
+
parse: (source: unknown) => unknown;
|
|
18
|
+
render: MarkdownRenderer;
|
|
19
|
+
};
|
|
20
|
+
export declare const MarkdownAdapterProvider: import("react").Provider<MarkdownAdapter | null>;
|
|
21
|
+
export declare function useMarkdownAdapter(): MarkdownAdapter;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{createContext as r,useContext as e}from"react";const t=r(null),n=t.Provider;function d(){const o=e(t);if(!o)throw new Error("No markdown adapter found \u2014 pass `markdownAdapter` to <RedoclyApiDocs> (the standalone build supplies one automatically).");return o}export{n as MarkdownAdapterProvider,d as useMarkdownAdapter};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{createContext as e,useContext as t}from"react";import{RedocTelemetry as o}from"../telemetry/RedocTelemetry.js";const r=new o({specType:"openapi",disabled:!0}),n=e(r);function c(){return t(n)}export{n as TelemetryContext,c as useRedocTelemetry};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const parseHTML: () => never;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const r=()=>{throw new Error("linkedom is not available in browser bundles")};export{r as parseHTML};
|
package/lib/empty.d.ts
ADDED
package/lib/empty.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const t=()=>{},e=()=>{};var o={isatty:t,createRequire:e};export{e as createRequire,o as default,t as isatty};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{createTrackingEvent as m}from"./creator.js";import{AnalyticsEvent as n}from"./types.js";const d=m(n.CodeSampleCopied),l=({operation:e,type:o,lang:t="",label:p="",activeMimeName:a,activeExampleName:r})=>d({resource:"Redocly_CodeSample",action:"CodeSampleCopied",operationId:e.id,operationPath:e.path,operationHttpVerb:e.httpVerb,operationSummary:e.name,exampleId:r,exampleMimeType:a,label:p,lang:t,type:o});export{l as createCodeSampleCopyEvent};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function r(e){return n=>({...n,eventType:e})}export{r as createTrackingEvent};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export type { Events, AnalyticsEventType } from '../types/events.js';
|
|
2
|
+
export { AnalyticsEvent } from './types.js';
|
|
3
|
+
export { createLanguageSwitchEvent } from './languageSwitch.js';
|
|
4
|
+
export { createPanelToggleEvent } from './panelToggle.js';
|
|
5
|
+
export { createCodeSampleCopyEvent } from './codeSampleCopy.js';
|
|
6
|
+
export { createTargetServerSwitchEvent } from './serverSwitch.js';
|
|
7
|
+
export { createTryItOpenEvent } from './tryItOpen.js';
|
|
8
|
+
export { createTryItSentEvent } from './tryItSent.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{AnalyticsEvent as r}from"./types.js";import{createLanguageSwitchEvent as a}from"./languageSwitch.js";import{createPanelToggleEvent as p}from"./panelToggle.js";import{createCodeSampleCopyEvent as m}from"./codeSampleCopy.js";import{createTargetServerSwitchEvent as f}from"./serverSwitch.js";import{createTryItOpenEvent as E}from"./tryItOpen.js";import{createTryItSentEvent as S}from"./tryItSent.js";export{r as AnalyticsEvent,m as createCodeSampleCopyEvent,a as createLanguageSwitchEvent,p as createPanelToggleEvent,f as createTargetServerSwitchEvent,E as createTryItOpenEvent,S as createTryItSentEvent};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{createTrackingEvent as o}from"./creator.js";import{AnalyticsEvent as r}from"./types.js";const c=o(r.CodeSampleLanguageSwitched),l=({operation:t,sample:e})=>{const a=typeof e.lang=="string"?e.lang:"",n=typeof e.label=="string"?e.label:"";return c({resource:"Redocly_CodeSample",action:"LanguageSwitched",operationId:t.id,operationPath:t.path,operationHttpVerb:t.httpVerb,operationSummary:t.name,label:n||a,lang:a})};export{l as createLanguageSwitchEvent};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{createTrackingEvent as n}from"./creator.js";import{AnalyticsEvent as o}from"./types.js";const r=n(o.PanelToggle),c=({operation:e,isExpanded:t,panelType:a})=>r({resource:"Redocly_Operation",action:"PanelToggled",operationId:e.id,operationPath:e.path,operationHttpVerb:e.httpVerb,operationSummary:e.name,panelType:a,state:t?"expanded":"collapsed"});export{c as createPanelToggleEvent};
|