@redocly/asyncapi-docs 0.5.0-next.2 → 0.5.0-next.4
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/lib/index.js +1 -0
- package/package.json +13 -24
- package/lib/src/RedoclyAsyncAPIDocs.d.ts +0 -17
- package/lib/src/RedoclyAsyncAPIDocs.js +0 -1
- package/lib/src/RedoclyAsyncAPIDocs.js.map +0 -1
- package/lib/src/components/AppRouter.d.ts +0 -5
- package/lib/src/components/AppRouter.js +0 -1
- package/lib/src/components/AppRouter.js.map +0 -1
- package/lib/src/components/AsyncApiDocs.d.ts +0 -7
- package/lib/src/components/AsyncApiDocs.js +0 -3
- package/lib/src/components/AsyncApiDocs.js.map +0 -1
- package/lib/src/components/Breadcrumbs.d.ts +0 -2
- package/lib/src/components/Breadcrumbs.js +0 -7
- package/lib/src/components/Breadcrumbs.js.map +0 -1
- package/lib/src/components/ChannelBinding.d.ts +0 -9
- package/lib/src/components/ChannelBinding.js +0 -1
- package/lib/src/components/ChannelBinding.js.map +0 -1
- package/lib/src/components/ChannelLinkItem.d.ts +0 -7
- package/lib/src/components/ChannelLinkItem.js +0 -21
- package/lib/src/components/ChannelLinkItem.js.map +0 -1
- package/lib/src/components/ChannelParameters.d.ts +0 -7
- package/lib/src/components/ChannelParameters.js +0 -10
- package/lib/src/components/ChannelParameters.js.map +0 -1
- package/lib/src/components/ChannelSection.d.ts +0 -7
- package/lib/src/components/ChannelSection.js +0 -24
- package/lib/src/components/ChannelSection.js.map +0 -1
- package/lib/src/components/DownloadSpecification.d.ts +0 -4
- package/lib/src/components/DownloadSpecification.js +0 -39
- package/lib/src/components/DownloadSpecification.js.map +0 -1
- package/lib/src/components/ItemsNavigation.d.ts +0 -7
- package/lib/src/components/ItemsNavigation.js +0 -45
- package/lib/src/components/ItemsNavigation.js.map +0 -1
- package/lib/src/components/JsonSchema.d.ts +0 -11
- package/lib/src/components/JsonSchema.js +0 -1
- package/lib/src/components/JsonSchema.js.map +0 -1
- package/lib/src/components/Message.d.ts +0 -10
- package/lib/src/components/Message.js +0 -18
- package/lib/src/components/Message.js.map +0 -1
- package/lib/src/components/MessageAMQPReferences.d.ts +0 -6
- package/lib/src/components/MessageAMQPReferences.js +0 -25
- package/lib/src/components/MessageAMQPReferences.js.map +0 -1
- package/lib/src/components/MessageBinding.d.ts +0 -10
- package/lib/src/components/MessageBinding.js +0 -1
- package/lib/src/components/MessageBinding.js.map +0 -1
- package/lib/src/components/MessageReferences.d.ts +0 -5
- package/lib/src/components/MessageReferences.js +0 -1
- package/lib/src/components/MessageReferences.js.map +0 -1
- package/lib/src/components/MessageSection.d.ts +0 -11
- package/lib/src/components/MessageSection.js +0 -25
- package/lib/src/components/MessageSection.js.map +0 -1
- package/lib/src/components/Operation.d.ts +0 -11
- package/lib/src/components/Operation.js +0 -45
- package/lib/src/components/Operation.js.map +0 -1
- package/lib/src/components/OperationBinding.d.ts +0 -10
- package/lib/src/components/OperationBinding.js +0 -1
- package/lib/src/components/OperationBinding.js.map +0 -1
- package/lib/src/components/OperationSection.d.ts +0 -9
- package/lib/src/components/OperationSection.js +0 -17
- package/lib/src/components/OperationSection.js.map +0 -1
- package/lib/src/components/RightPanel.d.ts +0 -8
- package/lib/src/components/RightPanel.js +0 -1
- package/lib/src/components/RightPanel.js.map +0 -1
- package/lib/src/components/SamplesPanel.d.ts +0 -6
- package/lib/src/components/SamplesPanel.js +0 -10
- package/lib/src/components/SamplesPanel.js.map +0 -1
- package/lib/src/components/Server.d.ts +0 -10
- package/lib/src/components/Server.js +0 -28
- package/lib/src/components/Server.js.map +0 -1
- package/lib/src/components/ServerBindingsSection.d.ts +0 -6
- package/lib/src/components/ServerBindingsSection.js +0 -1
- package/lib/src/components/ServerBindingsSection.js.map +0 -1
- package/lib/src/components/ServerModal.d.ts +0 -10
- package/lib/src/components/ServerModal.js +0 -49
- package/lib/src/components/ServerModal.js.map +0 -1
- package/lib/src/components/ServerOverviewSection.d.ts +0 -6
- package/lib/src/components/ServerOverviewSection.js +0 -25
- package/lib/src/components/ServerOverviewSection.js.map +0 -1
- package/lib/src/components/ServersListPanel.d.ts +0 -12
- package/lib/src/components/ServersListPanel.js +0 -8
- package/lib/src/components/ServersListPanel.js.map +0 -1
- package/lib/src/components/TagBlock.d.ts +0 -7
- package/lib/src/components/TagBlock.js +0 -24
- package/lib/src/components/TagBlock.js.map +0 -1
- package/lib/src/components/common/BindingPanel.d.ts +0 -9
- package/lib/src/components/common/BindingPanel.js +0 -30
- package/lib/src/components/common/BindingPanel.js.map +0 -1
- package/lib/src/components/common/Information.d.ts +0 -12
- package/lib/src/components/common/Information.js +0 -6
- package/lib/src/components/common/Information.js.map +0 -1
- package/lib/src/components/common/Link.d.ts +0 -18
- package/lib/src/components/common/Link.js +0 -38
- package/lib/src/components/common/Link.js.map +0 -1
- package/lib/src/components/common/ListIcon.d.ts +0 -8
- package/lib/src/components/common/ListIcon.js +0 -10
- package/lib/src/components/common/ListIcon.js.map +0 -1
- package/lib/src/components/common/MoreDetailsButton.d.ts +0 -5
- package/lib/src/components/common/MoreDetailsButton.js +0 -12
- package/lib/src/components/common/MoreDetailsButton.js.map +0 -1
- package/lib/src/components/common/TagWithIcon.d.ts +0 -11
- package/lib/src/components/common/TagWithIcon.js +0 -30
- package/lib/src/components/common/TagWithIcon.js.map +0 -1
- package/lib/src/components/common/index.d.ts +0 -6
- package/lib/src/components/common/index.js +0 -1
- package/lib/src/components/common/index.js.map +0 -1
- package/lib/src/components/common/styles.d.ts +0 -15
- package/lib/src/components/common/styles.js +0 -77
- package/lib/src/components/common/styles.js.map +0 -1
- package/lib/src/hooks/index.d.ts +0 -5
- package/lib/src/hooks/index.js +0 -1
- package/lib/src/hooks/index.js.map +0 -1
- package/lib/src/hooks/use-auto-scroll.d.ts +0 -1
- package/lib/src/hooks/use-auto-scroll.js +0 -1
- package/lib/src/hooks/use-auto-scroll.js.map +0 -1
- package/lib/src/hooks/use-performance-metrics.d.ts +0 -5
- package/lib/src/hooks/use-performance-metrics.js +0 -1
- package/lib/src/hooks/use-performance-metrics.js.map +0 -1
- package/lib/src/hooks/use-protocol-labels.d.ts +0 -16
- package/lib/src/hooks/use-protocol-labels.js +0 -1
- package/lib/src/hooks/use-protocol-labels.js.map +0 -1
- package/lib/src/hooks/use-telemetry.d.ts +0 -2
- package/lib/src/hooks/use-telemetry.js +0 -1
- package/lib/src/hooks/use-telemetry.js.map +0 -1
- package/lib/src/hooks/use-translate.d.ts +0 -2
- package/lib/src/hooks/use-translate.js +0 -1
- package/lib/src/hooks/use-translate.js.map +0 -1
- package/lib/src/index.d.ts +0 -2
- package/lib/src/index.js +0 -1
- package/lib/src/index.js.map +0 -1
- package/lib/src/jotai/Provider.d.ts +0 -15
- package/lib/src/jotai/Provider.js +0 -1
- package/lib/src/jotai/Provider.js.map +0 -1
- package/lib/src/jotai/app.d.ts +0 -18
- package/lib/src/jotai/app.js +0 -1
- package/lib/src/jotai/app.js.map +0 -1
- package/lib/src/types/apiItem.d.ts +0 -22
- package/lib/src/types/apiItem.js +0 -1
- package/lib/src/types/apiItem.js.map +0 -1
- package/lib/src/types/async-api.d.ts +0 -245
- package/lib/src/types/async-api.js +0 -1
- package/lib/src/types/async-api.js.map +0 -1
- package/lib/src/types/index.d.ts +0 -4
- package/lib/src/types/index.js +0 -1
- package/lib/src/types/index.js.map +0 -1
- package/lib/src/types/protocol.d.ts +0 -5
- package/lib/src/types/protocol.js +0 -1
- package/lib/src/types/protocol.js.map +0 -1
- package/lib/src/types/shared-data.d.ts +0 -10
- package/lib/src/types/shared-data.js +0 -1
- package/lib/src/types/shared-data.js.map +0 -1
- package/lib/src/utils/avro-to-json-schema.d.ts +0 -2
- package/lib/src/utils/avro-to-json-schema.js +0 -1
- package/lib/src/utils/avro-to-json-schema.js.map +0 -1
- package/lib/src/utils/generate-channel-link.d.ts +0 -2
- package/lib/src/utils/generate-channel-link.js +0 -1
- package/lib/src/utils/generate-channel-link.js.map +0 -1
- package/lib/src/utils/generate-message-references-header.d.ts +0 -7
- package/lib/src/utils/generate-message-references-header.js +0 -1
- package/lib/src/utils/generate-message-references-header.js.map +0 -1
- package/lib/src/utils/get-schema.d.ts +0 -1
- package/lib/src/utils/get-schema.js +0 -1
- package/lib/src/utils/get-schema.js.map +0 -1
- package/lib/src/utils/index.d.ts +0 -7
- package/lib/src/utils/index.js +0 -1
- package/lib/src/utils/index.js.map +0 -1
- package/lib/src/utils/is-equal.d.ts +0 -1
- package/lib/src/utils/is-equal.js +0 -1
- package/lib/src/utils/is-equal.js.map +0 -1
- package/lib/src/utils/modify-payload.d.ts +0 -9
- package/lib/src/utils/modify-payload.js +0 -1
- package/lib/src/utils/modify-payload.js.map +0 -1
- package/lib/src/utils/try-decode-url-component.d.ts +0 -1
- package/lib/src/utils/try-decode-url-component.js +0 -1
- package/lib/src/utils/try-decode-url-component.js.map +0 -1
- package/lib/tsconfig.build.tsbuildinfo +0 -1
- package/lib-esm/src/RedoclyAsyncAPIDocs.d.ts +0 -17
- package/lib-esm/src/RedoclyAsyncAPIDocs.js +0 -1
- package/lib-esm/src/RedoclyAsyncAPIDocs.js.map +0 -1
- package/lib-esm/src/components/AppRouter.d.ts +0 -5
- package/lib-esm/src/components/AppRouter.js +0 -1
- package/lib-esm/src/components/AppRouter.js.map +0 -1
- package/lib-esm/src/components/AsyncApiDocs.d.ts +0 -7
- package/lib-esm/src/components/AsyncApiDocs.js +0 -3
- package/lib-esm/src/components/AsyncApiDocs.js.map +0 -1
- package/lib-esm/src/components/Breadcrumbs.d.ts +0 -2
- package/lib-esm/src/components/Breadcrumbs.js +0 -7
- package/lib-esm/src/components/Breadcrumbs.js.map +0 -1
- package/lib-esm/src/components/ChannelBinding.d.ts +0 -9
- package/lib-esm/src/components/ChannelBinding.js +0 -1
- package/lib-esm/src/components/ChannelBinding.js.map +0 -1
- package/lib-esm/src/components/ChannelLinkItem.d.ts +0 -7
- package/lib-esm/src/components/ChannelLinkItem.js +0 -21
- package/lib-esm/src/components/ChannelLinkItem.js.map +0 -1
- package/lib-esm/src/components/ChannelParameters.d.ts +0 -7
- package/lib-esm/src/components/ChannelParameters.js +0 -10
- package/lib-esm/src/components/ChannelParameters.js.map +0 -1
- package/lib-esm/src/components/ChannelSection.d.ts +0 -7
- package/lib-esm/src/components/ChannelSection.js +0 -24
- package/lib-esm/src/components/ChannelSection.js.map +0 -1
- package/lib-esm/src/components/DownloadSpecification.d.ts +0 -4
- package/lib-esm/src/components/DownloadSpecification.js +0 -39
- package/lib-esm/src/components/DownloadSpecification.js.map +0 -1
- package/lib-esm/src/components/ItemsNavigation.d.ts +0 -7
- package/lib-esm/src/components/ItemsNavigation.js +0 -45
- package/lib-esm/src/components/ItemsNavigation.js.map +0 -1
- package/lib-esm/src/components/JsonSchema.d.ts +0 -11
- package/lib-esm/src/components/JsonSchema.js +0 -1
- package/lib-esm/src/components/JsonSchema.js.map +0 -1
- package/lib-esm/src/components/Message.d.ts +0 -10
- package/lib-esm/src/components/Message.js +0 -18
- package/lib-esm/src/components/Message.js.map +0 -1
- package/lib-esm/src/components/MessageAMQPReferences.d.ts +0 -6
- package/lib-esm/src/components/MessageAMQPReferences.js +0 -25
- package/lib-esm/src/components/MessageAMQPReferences.js.map +0 -1
- package/lib-esm/src/components/MessageBinding.d.ts +0 -10
- package/lib-esm/src/components/MessageBinding.js +0 -1
- package/lib-esm/src/components/MessageBinding.js.map +0 -1
- package/lib-esm/src/components/MessageReferences.d.ts +0 -5
- package/lib-esm/src/components/MessageReferences.js +0 -1
- package/lib-esm/src/components/MessageReferences.js.map +0 -1
- package/lib-esm/src/components/MessageSection.d.ts +0 -11
- package/lib-esm/src/components/MessageSection.js +0 -25
- package/lib-esm/src/components/MessageSection.js.map +0 -1
- package/lib-esm/src/components/Operation.d.ts +0 -11
- package/lib-esm/src/components/Operation.js +0 -45
- package/lib-esm/src/components/Operation.js.map +0 -1
- package/lib-esm/src/components/OperationBinding.d.ts +0 -10
- package/lib-esm/src/components/OperationBinding.js +0 -1
- package/lib-esm/src/components/OperationBinding.js.map +0 -1
- package/lib-esm/src/components/OperationSection.d.ts +0 -9
- package/lib-esm/src/components/OperationSection.js +0 -17
- package/lib-esm/src/components/OperationSection.js.map +0 -1
- package/lib-esm/src/components/RightPanel.d.ts +0 -8
- package/lib-esm/src/components/RightPanel.js +0 -1
- package/lib-esm/src/components/RightPanel.js.map +0 -1
- package/lib-esm/src/components/SamplesPanel.d.ts +0 -6
- package/lib-esm/src/components/SamplesPanel.js +0 -10
- package/lib-esm/src/components/SamplesPanel.js.map +0 -1
- package/lib-esm/src/components/Server.d.ts +0 -10
- package/lib-esm/src/components/Server.js +0 -28
- package/lib-esm/src/components/Server.js.map +0 -1
- package/lib-esm/src/components/ServerBindingsSection.d.ts +0 -6
- package/lib-esm/src/components/ServerBindingsSection.js +0 -1
- package/lib-esm/src/components/ServerBindingsSection.js.map +0 -1
- package/lib-esm/src/components/ServerModal.d.ts +0 -10
- package/lib-esm/src/components/ServerModal.js +0 -49
- package/lib-esm/src/components/ServerModal.js.map +0 -1
- package/lib-esm/src/components/ServerOverviewSection.d.ts +0 -6
- package/lib-esm/src/components/ServerOverviewSection.js +0 -25
- package/lib-esm/src/components/ServerOverviewSection.js.map +0 -1
- package/lib-esm/src/components/ServersListPanel.d.ts +0 -12
- package/lib-esm/src/components/ServersListPanel.js +0 -8
- package/lib-esm/src/components/ServersListPanel.js.map +0 -1
- package/lib-esm/src/components/TagBlock.d.ts +0 -7
- package/lib-esm/src/components/TagBlock.js +0 -24
- package/lib-esm/src/components/TagBlock.js.map +0 -1
- package/lib-esm/src/components/common/BindingPanel.d.ts +0 -9
- package/lib-esm/src/components/common/BindingPanel.js +0 -30
- package/lib-esm/src/components/common/BindingPanel.js.map +0 -1
- package/lib-esm/src/components/common/Information.d.ts +0 -12
- package/lib-esm/src/components/common/Information.js +0 -6
- package/lib-esm/src/components/common/Information.js.map +0 -1
- package/lib-esm/src/components/common/Link.d.ts +0 -18
- package/lib-esm/src/components/common/Link.js +0 -38
- package/lib-esm/src/components/common/Link.js.map +0 -1
- package/lib-esm/src/components/common/ListIcon.d.ts +0 -8
- package/lib-esm/src/components/common/ListIcon.js +0 -10
- package/lib-esm/src/components/common/ListIcon.js.map +0 -1
- package/lib-esm/src/components/common/MoreDetailsButton.d.ts +0 -5
- package/lib-esm/src/components/common/MoreDetailsButton.js +0 -12
- package/lib-esm/src/components/common/MoreDetailsButton.js.map +0 -1
- package/lib-esm/src/components/common/TagWithIcon.d.ts +0 -11
- package/lib-esm/src/components/common/TagWithIcon.js +0 -30
- package/lib-esm/src/components/common/TagWithIcon.js.map +0 -1
- package/lib-esm/src/components/common/index.d.ts +0 -6
- package/lib-esm/src/components/common/index.js +0 -1
- package/lib-esm/src/components/common/index.js.map +0 -1
- package/lib-esm/src/components/common/styles.d.ts +0 -15
- package/lib-esm/src/components/common/styles.js +0 -77
- package/lib-esm/src/components/common/styles.js.map +0 -1
- package/lib-esm/src/hooks/index.d.ts +0 -5
- package/lib-esm/src/hooks/index.js +0 -1
- package/lib-esm/src/hooks/index.js.map +0 -1
- package/lib-esm/src/hooks/use-auto-scroll.d.ts +0 -1
- package/lib-esm/src/hooks/use-auto-scroll.js +0 -1
- package/lib-esm/src/hooks/use-auto-scroll.js.map +0 -1
- package/lib-esm/src/hooks/use-performance-metrics.d.ts +0 -5
- package/lib-esm/src/hooks/use-performance-metrics.js +0 -1
- package/lib-esm/src/hooks/use-performance-metrics.js.map +0 -1
- package/lib-esm/src/hooks/use-protocol-labels.d.ts +0 -16
- package/lib-esm/src/hooks/use-protocol-labels.js +0 -1
- package/lib-esm/src/hooks/use-protocol-labels.js.map +0 -1
- package/lib-esm/src/hooks/use-telemetry.d.ts +0 -2
- package/lib-esm/src/hooks/use-telemetry.js +0 -1
- package/lib-esm/src/hooks/use-telemetry.js.map +0 -1
- package/lib-esm/src/hooks/use-translate.d.ts +0 -2
- package/lib-esm/src/hooks/use-translate.js +0 -1
- package/lib-esm/src/hooks/use-translate.js.map +0 -1
- package/lib-esm/src/index.d.ts +0 -2
- package/lib-esm/src/index.js +0 -1
- package/lib-esm/src/index.js.map +0 -1
- package/lib-esm/src/jotai/Provider.d.ts +0 -15
- package/lib-esm/src/jotai/Provider.js +0 -1
- package/lib-esm/src/jotai/Provider.js.map +0 -1
- package/lib-esm/src/jotai/app.d.ts +0 -18
- package/lib-esm/src/jotai/app.js +0 -1
- package/lib-esm/src/jotai/app.js.map +0 -1
- package/lib-esm/src/types/apiItem.d.ts +0 -22
- package/lib-esm/src/types/apiItem.js +0 -0
- package/lib-esm/src/types/apiItem.js.map +0 -1
- package/lib-esm/src/types/async-api.d.ts +0 -245
- package/lib-esm/src/types/async-api.js +0 -0
- package/lib-esm/src/types/async-api.js.map +0 -1
- package/lib-esm/src/types/index.d.ts +0 -4
- package/lib-esm/src/types/index.js +0 -1
- package/lib-esm/src/types/index.js.map +0 -1
- package/lib-esm/src/types/protocol.d.ts +0 -5
- package/lib-esm/src/types/protocol.js +0 -1
- package/lib-esm/src/types/protocol.js.map +0 -1
- package/lib-esm/src/types/shared-data.d.ts +0 -10
- package/lib-esm/src/types/shared-data.js +0 -0
- package/lib-esm/src/types/shared-data.js.map +0 -1
- package/lib-esm/src/utils/avro-to-json-schema.d.ts +0 -2
- package/lib-esm/src/utils/avro-to-json-schema.js +0 -1
- package/lib-esm/src/utils/avro-to-json-schema.js.map +0 -1
- package/lib-esm/src/utils/generate-channel-link.d.ts +0 -2
- package/lib-esm/src/utils/generate-channel-link.js +0 -1
- package/lib-esm/src/utils/generate-channel-link.js.map +0 -1
- package/lib-esm/src/utils/generate-message-references-header.d.ts +0 -7
- package/lib-esm/src/utils/generate-message-references-header.js +0 -1
- package/lib-esm/src/utils/generate-message-references-header.js.map +0 -1
- package/lib-esm/src/utils/get-schema.d.ts +0 -1
- package/lib-esm/src/utils/get-schema.js +0 -1
- package/lib-esm/src/utils/get-schema.js.map +0 -1
- package/lib-esm/src/utils/index.d.ts +0 -7
- package/lib-esm/src/utils/index.js +0 -1
- package/lib-esm/src/utils/index.js.map +0 -1
- package/lib-esm/src/utils/is-equal.d.ts +0 -1
- package/lib-esm/src/utils/is-equal.js +0 -1
- package/lib-esm/src/utils/is-equal.js.map +0 -1
- package/lib-esm/src/utils/modify-payload.d.ts +0 -9
- package/lib-esm/src/utils/modify-payload.js +0 -1
- package/lib-esm/src/utils/modify-payload.js.map +0 -1
- package/lib-esm/src/utils/try-decode-url-component.d.ts +0 -1
- package/lib-esm/src/utils/try-decode-url-component.js +0 -1
- package/lib-esm/src/utils/try-decode-url-component.js.map +0 -1
- package/lib-esm/tsconfig.esm.tsbuildinfo +0 -1
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import{jsx as r,jsxs as n}from"react/jsx-runtime";import{Button as s,ChevronDownIcon as t,ChevronRightIcon as i}from"@redocly/theme";import a from"styled-components";const m=({expanded:o})=>n(e,{children:[r("span",{children:"More details"}),r(s,{icon:o?r(t,{}):r(i,{}),size:"small",variant:"ghost"})]}),e=a.span`
|
|
2
|
-
cursor: pointer;
|
|
3
|
-
align-items: center;
|
|
4
|
-
display: flex;
|
|
5
|
-
& > span {
|
|
6
|
-
color: var(--link-color-primary);
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
& path {
|
|
10
|
-
fill: var(--link-color-primary);
|
|
11
|
-
}
|
|
12
|
-
`;export{m as MoreDetailsButton};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"MoreDetailsButton.js","sourceRoot":"","sources":["../../../../src/components/common/MoreDetailsButton.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAC3E,OAAO,MAAM,MAAM,mBAAmB,CAAC;AAMvC,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,EAAE,QAAQ,EAA0B,EAAE,EAAE;IACxE,OAAO,CACL,MAAC,OAAO,eACN,0CAAyB,EACzB,KAAC,MAAM,IACL,IAAI,EAAE,QAAQ,CAAC,CAAC,CAAC,KAAC,eAAe,KAAG,CAAC,CAAC,CAAC,KAAC,gBAAgB,KAAG,EAC3D,IAAI,EAAC,OAAO,EACZ,OAAO,EAAC,OAAO,GACf,IACM,CACX,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,OAAO,GAAG,MAAM,CAAC,IAAI,CAAA;;;;;;;;;;;CAW1B,CAAC"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { ReactNode } from 'react';
|
|
2
|
-
type TagWithIconProps = {
|
|
3
|
-
icon: ReactNode;
|
|
4
|
-
children: ReactNode;
|
|
5
|
-
info?: ReactNode;
|
|
6
|
-
capitalize?: boolean;
|
|
7
|
-
className?: string;
|
|
8
|
-
onClick?: () => void;
|
|
9
|
-
};
|
|
10
|
-
export declare const TagWithIcon: ({ icon, info, children, capitalize, className, onClick, }: TagWithIconProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
-
export {};
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import{jsx as o,jsxs as c}from"react/jsx-runtime";import e from"styled-components";import{Tag as l}from"@redocly/theme";const v=({icon:r,info:a,children:i,capitalize:t,className:s,onClick:n})=>c(d,{className:s,onClick:n,children:[r&&o(p,{children:r}),o(h,{borderless:!0,capitalize:t,children:i}),a&&o(g,{children:a})]}),d=e.div`
|
|
2
|
-
display: flex;
|
|
3
|
-
gap: var(--spacing-xxs);
|
|
4
|
-
`,p=e.div`
|
|
5
|
-
width: 24px;
|
|
6
|
-
height: 24px;
|
|
7
|
-
border-radius: 50%;
|
|
8
|
-
align-items: center;
|
|
9
|
-
justify-content: center;
|
|
10
|
-
display: flex;
|
|
11
|
-
flex-shrink: 0;
|
|
12
|
-
background-color: var(--layer-color-hover);
|
|
13
|
-
`,h=e(l)`
|
|
14
|
-
text-transform: ${({capitalize:r})=>r?"capitalize":"initial"};
|
|
15
|
-
margin: 0;
|
|
16
|
-
background-color: var(--layer-color-hover);
|
|
17
|
-
color: inherit;
|
|
18
|
-
& span {
|
|
19
|
-
font-weight: 600;
|
|
20
|
-
}
|
|
21
|
-
`,g=e.div`
|
|
22
|
-
width: 24px;
|
|
23
|
-
height: 24px;
|
|
24
|
-
border-radius: var(--border-radius);
|
|
25
|
-
align-items: center;
|
|
26
|
-
justify-content: center;
|
|
27
|
-
background-color: var(--layer-color-hover);
|
|
28
|
-
display: flex;
|
|
29
|
-
cursor: pointer;
|
|
30
|
-
`;export{v as TagWithIcon};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TagWithIcon.js","sourceRoot":"","sources":["../../../../src/components/common/TagWithIcon.tsx"],"names":[],"mappings":";AAAA,OAAO,MAAM,MAAM,mBAAmB,CAAC;AACvC,OAAO,EAAE,GAAG,EAAE,MAAM,gBAAgB,CAAC;AAarC,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,EAC1B,IAAI,EACJ,IAAI,EACJ,QAAQ,EACR,UAAU,EACV,SAAS,EACT,OAAO,GACU,EAAE,EAAE,CAAC,CACtB,MAAC,UAAU,IAAC,SAAS,EAAE,SAAS,EAAE,OAAO,EAAE,OAAO,aAC/C,IAAI,IAAI,KAAC,WAAW,cAAE,IAAI,GAAe,EAC1C,KAAC,SAAS,IAAC,UAAU,QAAC,UAAU,EAAE,UAAU,YACzC,QAAQ,GACC,EACX,IAAI,IAAI,KAAC,cAAc,cAAE,IAAI,GAAkB,IACrC,CACd,CAAC;AAEF,MAAM,UAAU,GAAG,MAAM,CAAC,GAAG,CAAA;;;CAG5B,CAAC;AAEF,MAAM,WAAW,GAAG,MAAM,CAAC,GAAG,CAAA;;;;;;;;;CAS7B,CAAC;AAEF,MAAM,SAAS,GAAG,MAAM,CAAC,GAAG,CAAC,CAA0B;oBACnC,CAAC,EAAE,UAAU,EAAE,EAAE,EAAE,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,SAAS,CAAC;;;;;;;CAO9E,CAAC;AAEF,MAAM,cAAc,GAAG,MAAM,CAAC,GAAG,CAAA;;;;;;;;;CAShC,CAAC"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
export { Block, Header, Section, Label, Value, ExternalDocumentationWrapper, HeaderWrapper, TagStyled, TopicConfiguration, TopicConfigurationWrapper, ActionTag, HostList, } from './styles';
|
|
2
|
-
export { Information } from './Information';
|
|
3
|
-
export { TagWithIcon } from './TagWithIcon';
|
|
4
|
-
export { BindingPanel } from './BindingPanel';
|
|
5
|
-
export { MoreDetailsButton } from './MoreDetailsButton';
|
|
6
|
-
export { ShareLink, LinkToField } from './Link';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Block as e,Header as t,Section as a,Label as i,Value as n,ExternalDocumentationWrapper as p,HeaderWrapper as f,TagStyled as l,TopicConfiguration as m,TopicConfigurationWrapper as c,ActionTag as x,HostList as g}from"./styles";import{Information as d}from"./Information";import{TagWithIcon as L}from"./TagWithIcon";import{BindingPanel as k}from"./BindingPanel";import{MoreDetailsButton as B}from"./MoreDetailsButton";import{ShareLink as S,LinkToField as h}from"./Link";export{x as ActionTag,k as BindingPanel,e as Block,p as ExternalDocumentationWrapper,t as Header,f as HeaderWrapper,g as HostList,d as Information,i as Label,h as LinkToField,B as MoreDetailsButton,a as Section,S as ShareLink,l as TagStyled,L as TagWithIcon,m as TopicConfiguration,c as TopicConfigurationWrapper,n as Value};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/common/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,EACL,MAAM,EACN,OAAO,EACP,KAAK,EACL,KAAK,EACL,4BAA4B,EAC5B,aAAa,EACb,SAAS,EACT,kBAAkB,EAClB,yBAAyB,EACzB,SAAS,EACT,QAAQ,GACT,MAAM,UAAU,CAAC;AAClB,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,QAAQ,CAAC"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { Tag } from '@redocly/theme';
|
|
2
|
-
export declare const Block: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
3
|
-
export declare const Header: import("styled-components").StyledComponent<"span", any, {}, never>;
|
|
4
|
-
export declare const Section: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
5
|
-
export declare const Label: import("styled-components").StyledComponent<"span", any, {}, never>;
|
|
6
|
-
export declare const Value: import("styled-components").StyledComponent<"span", any, {}, never>;
|
|
7
|
-
export declare const ExternalDocumentationWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
8
|
-
export declare const HeaderWrapper: import("styled-components").StyledComponent<"div", any, {
|
|
9
|
-
expandable?: boolean;
|
|
10
|
-
}, never>;
|
|
11
|
-
export declare const TagStyled: import("styled-components").StyledComponent<typeof Tag, any, {}, never>;
|
|
12
|
-
export declare const TopicConfiguration: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
13
|
-
export declare const TopicConfigurationWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
14
|
-
export declare const ActionTag: import("styled-components").StyledComponent<typeof Tag, any, {}, never>;
|
|
15
|
-
export declare const HostList: import("styled-components").StyledComponent<"span", any, {}, never>;
|
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
import e from"styled-components";import{Tag as i}from"@redocly/theme";const a=e.div`
|
|
2
|
-
display: flex;
|
|
3
|
-
flex-direction: column;
|
|
4
|
-
gap: var(--spacing-xs);
|
|
5
|
-
`,r=e.span`
|
|
6
|
-
font-weight: var(--font-weight-semibold);
|
|
7
|
-
line-height: var(--line-height-lg);
|
|
8
|
-
`,s=e.div`
|
|
9
|
-
display: flex;
|
|
10
|
-
flex-direction: column;
|
|
11
|
-
gap: calc(var(--spacing-xxs) / 2);
|
|
12
|
-
`,l=e.span`
|
|
13
|
-
color: var(--text-color-description);
|
|
14
|
-
font-size: var(--font-size-base);
|
|
15
|
-
line-height: var(--line-height-base);
|
|
16
|
-
`,c=e.span`
|
|
17
|
-
font-size: var(--font-size-base);
|
|
18
|
-
line-height: var(--line-height-base);
|
|
19
|
-
`,p=e.div`
|
|
20
|
-
font-size: var(--font-size-base);
|
|
21
|
-
line-height: var(--line-height-base);
|
|
22
|
-
`,d=e.div`
|
|
23
|
-
min-height: 40px;
|
|
24
|
-
padding: var(--spacing-xs) var(--spacing-md);
|
|
25
|
-
align-items: center;
|
|
26
|
-
display: flex;
|
|
27
|
-
width: 100%;
|
|
28
|
-
background-color: ${({expandable:o})=>o&&"var(--layer-color)"};
|
|
29
|
-
cursor: ${({expandable:o})=>o&&"pointer"};
|
|
30
|
-
gap: var(--spacing-md);
|
|
31
|
-
|
|
32
|
-
&:hover {
|
|
33
|
-
background-color: ${({expandable:o})=>o&&"var(--layer-color-ontonal-hover)"};
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
& > *:first-child {
|
|
37
|
-
flex: 1;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
& > *:nth-child(2) {
|
|
41
|
-
flex: 2;
|
|
42
|
-
}
|
|
43
|
-
`,g=e(i)`
|
|
44
|
-
text-transform: none;
|
|
45
|
-
`,f=e.div`
|
|
46
|
-
min-height: 30px;
|
|
47
|
-
padding: var(--spacing-xs) var(--spacing-md);
|
|
48
|
-
align-items: start;
|
|
49
|
-
display: flex;
|
|
50
|
-
width: 100%;
|
|
51
|
-
gap: var(--spacing-md);
|
|
52
|
-
|
|
53
|
-
& > * {
|
|
54
|
-
flex: 1;
|
|
55
|
-
}
|
|
56
|
-
`,h=e.div`
|
|
57
|
-
padding-left: var(--spacing-xs);
|
|
58
|
-
background-color: var(--layer-color);
|
|
59
|
-
|
|
60
|
-
& div {
|
|
61
|
-
border-bottom: none;
|
|
62
|
-
}
|
|
63
|
-
`,x=e(i)`
|
|
64
|
-
text-transform: uppercase;
|
|
65
|
-
background-color: unset;
|
|
66
|
-
border: none;
|
|
67
|
-
padding: 0;
|
|
68
|
-
margin: 0;
|
|
69
|
-
font-family: var(--font-family-monospaced);
|
|
70
|
-
font-weight: var(--font-weight-semibold);
|
|
71
|
-
font-size: var(--font-size-sm);
|
|
72
|
-
line-height: var(--line-height-sm);
|
|
73
|
-
display: block;
|
|
74
|
-
`,v=e.span`
|
|
75
|
-
display: flex;
|
|
76
|
-
flex-direction: column;
|
|
77
|
-
`;export{x as ActionTag,a as Block,p as ExternalDocumentationWrapper,r as Header,d as HeaderWrapper,v as HostList,l as Label,s as Section,g as TagStyled,f as TopicConfiguration,h as TopicConfigurationWrapper,c as Value};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../../src/components/common/styles.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,mBAAmB,CAAC;AACvC,OAAO,EAAE,GAAG,EAAE,MAAM,gBAAgB,CAAC;AAErC,MAAM,CAAC,MAAM,KAAK,GAAG,MAAM,CAAC,GAAG,CAAA;;;;CAI9B,CAAC;AAEF,MAAM,CAAC,MAAM,MAAM,GAAG,MAAM,CAAC,IAAI,CAAA;;;CAGhC,CAAC;AAEF,MAAM,CAAC,MAAM,OAAO,GAAG,MAAM,CAAC,GAAG,CAAA;;;;CAIhC,CAAC;AAEF,MAAM,CAAC,MAAM,KAAK,GAAG,MAAM,CAAC,IAAI,CAAA;;;;CAI/B,CAAC;AAEF,MAAM,CAAC,MAAM,KAAK,GAAG,MAAM,CAAC,IAAI,CAAA;;;CAG/B,CAAC;AAEF,MAAM,CAAC,MAAM,4BAA4B,GAAG,MAAM,CAAC,GAAG,CAAA;;;CAGrD,CAAC;AAEF,MAAM,CAAC,MAAM,aAAa,GAAG,MAAM,CAAC,GAAG,CAA0B;;;;;;sBAM3C,CAAC,EAAE,UAAU,EAAE,EAAE,EAAE,CAAC,UAAU,IAAI,oBAAoB;YAChE,CAAC,EAAE,UAAU,EAAE,EAAE,EAAE,CAAC,UAAU,IAAI,SAAS;;;;wBAI/B,CAAC,EAAE,UAAU,EAAE,EAAE,EAAE,CAAC,UAAU,IAAI,kCAAkC;;;;;;;;;;CAU3F,CAAC;AAEF,MAAM,CAAC,MAAM,SAAS,GAAG,MAAM,CAAC,GAAG,CAAC,CAAA;;CAEnC,CAAC;AAEF,MAAM,CAAC,MAAM,kBAAkB,GAAG,MAAM,CAAC,GAAG,CAAA;;;;;;;;;;;CAW3C,CAAC;AAEF,MAAM,CAAC,MAAM,yBAAyB,GAAG,MAAM,CAAC,GAAG,CAAA;;;;;;;CAOlD,CAAC;AAEF,MAAM,CAAC,MAAM,SAAS,GAAG,MAAM,CAAC,GAAG,CAAC,CAAA;;;;;;;;;;;CAWnC,CAAC;AAEF,MAAM,CAAC,MAAM,QAAQ,GAAG,MAAM,CAAC,IAAI,CAAA;;;CAGlC,CAAC"}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export { useAutoScroll } from './use-auto-scroll';
|
|
2
|
-
export { useProtocolLabels } from './use-protocol-labels';
|
|
3
|
-
export { useTranslate } from './use-translate';
|
|
4
|
-
export { usePerformanceMetrics } from './use-performance-metrics';
|
|
5
|
-
export { useTelemetry } from './use-telemetry';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{useAutoScroll as o}from"./use-auto-scroll";import{useProtocolLabels as s}from"./use-protocol-labels";import{useTranslate as f}from"./use-translate";import{usePerformanceMetrics as u}from"./use-performance-metrics";import{useTelemetry as x}from"./use-telemetry";export{o as useAutoScroll,u as usePerformanceMetrics,s as useProtocolLabels,x as useTelemetry,f as useTranslate};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/hooks/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAClD,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAC1D,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AAClE,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function useAutoScroll(routingBasePath: string): void;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{useEffect as r}from"react";import{useLocation as a}from"react-router-dom";import{IS_BROWSER as c,useActiveSectionId as l}from"@redocly/theme";import{tryDecodeURIComponent as d}from"../utils";let s=!0;function S(e){const t=a(),o=l(t,!0);r(()=>{m({location:t,routingBasePath:e})},[t,e]),r(()=>{if(o&&s){s=!1;return}c&&window.location.pathname!==o&&window.history.replaceState({},"",o)},[o])}function m({location:e,routingBasePath:t}){if(e.pathname===t&&e.hash===""){window.scrollTo(0,0);return}const o=e.pathname,n=u(e.hash),i=f(n)||document.querySelector(`[data-section-id="${o}"]`);i?setTimeout(()=>{i.scrollIntoView()},0):window.scrollTo(0,0)}function u(e){const t=e.replace("#","").toLowerCase();if(!t.includes("&m="))return t;const[o,n]=t.split("&m=");return n.includes("&")||n.includes("/")?t:o}function f(e){return document.getElementById(d(e))}export{S as useAutoScroll};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"use-auto-scroll.js","sourceRoot":"","sources":["../../../src/hooks/use-auto-scroll.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAClC,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAE,UAAU,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AAIhE,OAAO,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAC;AAEjD,IAAI,eAAe,GAAG,IAAI,CAAC;A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AC3B,CAAC,EAAE,CAAC,CAAC,CAAC;IACR,CAAC;SAAM,CAAC;QACN,MAAM,CAAC,QAAQ,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;IACxB,CAAC;AACH,CAAC;AAED,mEAAmE;AACnE,SAAS,oBAAoB,CAAC,IAAY;IACxC,MAAM,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC,WAAW,EAAE,CAAC;IAEpD,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE,CAAC;QAC7B,OAAO,OAAO,CAAC;IACjB,CAAC;IAED,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC,GAAG,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;IAClD,MAAM,mBAAmB,GAAG,UAAU,CAAC,QAAQ,CAAC,GAAG,CAAC,IAAI,UAAU,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC;IAEjF,OAAO,mBAAmB,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC;AAChD,CAAC;AAED,SAAS,cAAc,CAAC,EAAU;IAChC,OAAO,QAAQ,CAAC,cAAc,CAAC,qBAAqB,CAAC,EAAE,CAAC,CAAC,CAAC;AAC5D,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{useMount as t}from"@redocly/theme";import{onCLS as u,onLCP as l,onFCP as i,onTTFB as P}from"web-vitals";function f({sendTelemetry:a}){t(()=>{const n={},r=[new Promise(o=>u(e=>o({name:"CLS",value:e.value}))),new Promise(o=>l(e=>o({name:"LCP",value:e.value}))),new Promise(o=>i(e=>o({name:"FCP",value:e.value}))),new Promise(o=>P(e=>o({name:"TTFB",value:e.value})))];Promise.allSettled(r).then(o=>{o.forEach(e=>{if(e.status==="fulfilled"){const{name:m,value:s}=e.value;n[m]=Math.round(s)}}),a(n)})})}export{f as usePerformanceMetrics};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
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E;YACnD,OAAO,CAAC,OAAO,CAAC,CAAC,MAAM,EAAE,EAAE;gBACzB,IAAI,MAAM,CAAC,MAAM,KAAK,WAAW,EAAE,CAAC;oBAClC,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,GAAG,MAAM,CAAC,KAAiD,CAAC;oBACjF,cAAc,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;gBAC3C,CAAC;YACH,CAAC,CAAC,CAAC;YAEH,aAAa,CAAC,cAAc,CAAC,CAAC;QAChC,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
type Options = {
|
|
2
|
-
channel: string;
|
|
3
|
-
channels: string;
|
|
4
|
-
servers: string;
|
|
5
|
-
server: string;
|
|
6
|
-
send: string;
|
|
7
|
-
receive: string;
|
|
8
|
-
sendLabel: string;
|
|
9
|
-
receiveLabel: string;
|
|
10
|
-
channelBinding: string;
|
|
11
|
-
payload: string;
|
|
12
|
-
};
|
|
13
|
-
export declare function useProtocolLabels(channelBindings?: Record<string, any>): {
|
|
14
|
-
getProtocolLabel: (option: keyof Options, defaultValue?: string) => string;
|
|
15
|
-
};
|
|
16
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{useAtomValue as o}from"jotai";import{protocolAtom as c}from"./../jotai/app";const l={channel:"Channel",channels:"Channels",servers:"Servers",server:"Server",send:"Send",receive:"Receive",sendLabel:"Send",receiveLabel:"Receive",channelBinding:"Channel binding",payload:"Payload"},i={channel:"Topic",channels:"Topics",servers:"Brokers",server:"Broker",send:"Pub",receive:"Sub",sendLabel:"Publish",receiveLabel:"Subscribe",channelBinding:"Topic configuration",payload:"Value"},u={channel:"Exchange",channels:"Exchanges",servers:"Brokers",server:"Broker",send:"Pub",receive:"Cons",sendLabel:"Publish",receiveLabel:"Consume",channelBinding:"Exchange configuration",payload:"Payload"},v={channel:"Queue",channels:"Queues",servers:"Brokers",server:"Broker",send:"Pub",receive:"Cons",sendLabel:"Publish",receiveLabel:"Consume",channelBinding:"Queue configuration",payload:"Payload"};function b(n){const a=o(c);return{getProtocolLabel:(e,r)=>{var s;switch(a){case"kafka":return i[e]||r||"";case"amqp":return(((s=n?.amqp)===null||s===void 0?void 0:s.is)==="routingKey"?u[e]:v[e])||r||"";default:return l[e]||r||""}}}}export{b as useProtocolLabels};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"use-protocol-labels.js","sourceRoot":"","sources":["../../../src/hooks/use-protocol-labels.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAErC,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAe9C,MAAM,cAAc,GAAY;IAC9B,OAAO,EAAE,SAAS;IAClB,QAAQ,EAAE,UAAU;IACpB,OAAO,EAAE,SAAS;IAClB,MAAM,EAAE,QAAQ;IAChB,IAAI,EAAE,MAAM;IACZ,OAAO,EAAE,SAAS;IAClB,SAAS,EAAE,MAAM;IACjB,YAAY,EAAE,SAAS;IACvB,cAAc,EAAE,iBAAiB;IACjC,OAAO,EAAE,SAAS;CACnB,CAAC;AAEF,MAAM,YAAY,GAAY;IAC5B,OAAO,EAAE,OAAO;IAChB,QAAQ,EAAE,QAAQ;IAClB,OAAO,EAAE,SAAS;IAClB,MAAM,EAAE,QAAQ;IAChB,IAAI,EAAE,KAAK;IACX,OAAO,EAAE,KAAK;IACd,SAAS,EAAE,SAAS;IACpB,YAAY,EAAE,WAAW;IACzB,cAAc,EAAE,qBAAqB;IACrC,OAAO,EAAE,OAAO;CACjB,CAAC;AAEF,MAAM,mBAAmB,GAAY;IACnC,OAAO,EAAE,UAAU;IACnB,QAAQ,EAAE,WAAW;IACrB,OAAO,EAAE,SAAS;IAClB,MAAM,EAAE,QAAQ;IAChB,IAAI,EAAE,KAAK;IACX,OAAO,EAAE,MAAM;IACf,SAAS,EAAE,SAAS;IACpB,YAAY,EAAE,SAAS;IACvB,cAAc,EAAE,wBAAwB;IACxC,OAAO,EAAE,SAAS;CACnB,CAAC;AAEF,MAAM,gBAAgB,GAAY;IAChC,OAAO,EAAE,OAAO;IAChB,QAAQ,EAAE,QAAQ;IAClB,OAAO,EAAE,SAAS;IAClB,MAAM,EAAE,QAAQ;IAChB,IAAI,EAAE,KAAK;IACX,OAAO,EAAE,MAAM;IACf,SAAS,EAAE,SAAS;IACpB,YAAY,EAAE,SAAS;IACvB,cAAc,EAAE,qBAAqB;IACrC,OAAO,EAAE,SAAS;CACnB,CAAC;AAEF,MAAM,UAAU,iBAAiB,CAAC,eAAqC;IACrE,MAAM,QAAQ,GAAG,YAAY,CAAC,YAAY,CAAC,CAAC;IAE5C,OAAO;QACL,gBAAgB,EAAE,CAAC,MAAqB,EAAE,YAAqB,EAAU,EAAE;;YACzE,QAAQ,QAAQ,EAAE,CAAC;gBACjB,KAAK,OAAO;oBACV,OAAO,YAAY,CAAC,MAAM,CAAC,IAAI,YAAY,IAAI,EAAE,CAAC;gBACpD,KAAK,MAAM;oBACT,MAAM,UAAU,GAAG,CAAA,MAAA,eAAe,aAAf,eAAe,uBAAf,eAAe,CAAE,IAAI,0CAAE,EAAE,MAAK,YAAY,CAAC;oBAC9D,OAAO,CACL,CAAC,UAAU,CAAC,CAAC,CAAC,mBAAmB,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,gBAAgB,CAAC,MAAM,CAAC,CAAC;wBACrE,YAAY;wBACZ,EAAE,CACH,CAAC;gBACJ;oBACE,OAAO,cAAc,CAAC,MAAM,CAAC,IAAI,YAAY,IAAI,EAAE,CAAC;YACxD,CAAC;QACH,CAAC;KACF,CAAC;AACJ,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{useThemeHooks as e}from"@redocly/theme";function o(){return e().useTelemetry()}export{o as useTelemetry};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"use-telemetry.js","sourceRoot":"","sources":["../../../src/hooks/use-telemetry.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAE/C,MAAM,UAAU,YAAY;IAC1B,OAAO,aAAa,EAAE,CAAC,YAAY,EAAE,CAAC;AACxC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{useThemeHooks as t}from"@redocly/theme";function s(){const{translate:e}=t().useTranslate();return e}export{s as useTranslate};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"use-translate.js","sourceRoot":"","sources":["../../../src/hooks/use-translate.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAI/C,MAAM,UAAU,YAAY;IAC1B,MAAM,EAAE,SAAS,EAAE,GAAG,aAAa,EAAE,CAAC,YAAY,EAAE,CAAC;IACrD,OAAO,SAAS,CAAC;AACnB,CAAC"}
|
package/lib-esm/src/index.d.ts
DELETED
package/lib-esm/src/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{RedoclyAsyncAPIDocs as c}from"./RedoclyAsyncAPIDocs";export*from"./types";export{c as RedoclyAsyncAPIDocs};
|
package/lib-esm/src/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAE5D,cAAc,SAAS,CAAC"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { LayoutVariant } from '@redocly/theme';
|
|
2
|
-
import type { PropsWithChildren } from 'react';
|
|
3
|
-
import type { DownloadUrls, AsyncApiDefinition } from '../types';
|
|
4
|
-
import { ProtocolVariant } from '../types';
|
|
5
|
-
type AppProviderStore = {
|
|
6
|
-
store: {
|
|
7
|
-
layout: LayoutVariant;
|
|
8
|
-
protocol: ProtocolVariant;
|
|
9
|
-
routingBasePath: string;
|
|
10
|
-
downloadUrls: DownloadUrls[];
|
|
11
|
-
definition: AsyncApiDefinition;
|
|
12
|
-
};
|
|
13
|
-
};
|
|
14
|
-
export declare const AppProvider: ({ children, store }: PropsWithChildren<AppProviderStore>) => import("react/jsx-runtime").JSX.Element;
|
|
15
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{jsx as p}from"react/jsx-runtime";import*as a from"react";import{Provider as u,createStore as c}from"jotai";import{LayoutVariant as f}from"@redocly/theme";import{ProtocolVariant as s}from"../types";import{layoutAtom as n,protocolAtom as r,routingBasePathAtom as l,downloadUrlsAtom as d,definitionAtom as e}from"./app";const g=({children:m,store:o})=>{const t=a.useMemo(()=>{const i=c();return i.set(n,o.layout||f.THREE_PANEL),i.set(r,o.protocol||s.DEFAULT),i.set(l,o.routingBasePath),i.set(d,o.downloadUrls),i.set(e,o.definition),i},[o.layout,o.protocol,o.routingBasePath,o.downloadUrls,o.definition]);return a.useEffect(()=>{t.set(n,o.layout),t.set(r,o.protocol),t.set(l,o.routingBasePath),t.set(d,o.downloadUrls),t.set(e,o.definition)},[t,o.layout,o.protocol,o.routingBasePath,o.downloadUrls,o.definition]),p(u,{store:t,children:m})};export{g as AppProvider};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Provider.js","sourceRoot":"","sources":["../../../src/jotai/Provider.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AAC9C,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAK/C,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAC3C,OAAO,EACL,UAAU,EACV,YAAY,EACZ,mBAAmB,EACnB,gBAAgB,EAChB,cAAc,GACf,MAAM,OAAO,CAAC;AAYf,MAAM,CAAC,MAAM,WAAW,GAAG,C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AAC,MAAM;QACZ,KAAK,CAAC,QAAQ;QACd,KAAK,CAAC,eAAe;QACrB,KAAK,CAAC,YAAY;QAClB,KAAK,CAAC,UAAU;KACjB,CAAC,CAAC;IAEH,OAAO,KAAC,QAAQ,IAAC,KAAK,EAAE,gBAAgB,YAAG,QAAQ,GAAY,CAAC;AAClE,CAAC,CAAC"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { LayoutVariant } from '@redocly/theme';
|
|
2
|
-
import type { DownloadUrls, AsyncApiDefinition } from '../types';
|
|
3
|
-
import { ProtocolVariant } from '../types';
|
|
4
|
-
export type AppStore = {
|
|
5
|
-
layout: LayoutVariant;
|
|
6
|
-
protocol: ProtocolVariant;
|
|
7
|
-
routingBasePath: string;
|
|
8
|
-
downloadUrls: DownloadUrls[];
|
|
9
|
-
definition: AsyncApiDefinition;
|
|
10
|
-
};
|
|
11
|
-
export declare const appStore: import("jotai").PrimitiveAtom<AppStore> & {
|
|
12
|
-
init: AppStore;
|
|
13
|
-
};
|
|
14
|
-
export declare const layoutAtom: import("jotai").WritableAtom<LayoutVariant, LayoutVariant[], void>;
|
|
15
|
-
export declare const protocolAtom: import("jotai").WritableAtom<ProtocolVariant, ProtocolVariant[], void>;
|
|
16
|
-
export declare const routingBasePathAtom: import("jotai").WritableAtom<string, string[], void>;
|
|
17
|
-
export declare const downloadUrlsAtom: import("jotai").WritableAtom<DownloadUrls[], DownloadUrls[][], void>;
|
|
18
|
-
export declare const definitionAtom: import("jotai").WritableAtom<AsyncApiDefinition, AsyncApiDefinition[], void>;
|
package/lib-esm/src/jotai/app.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{atom as e}from"jotai";import{LayoutVariant as i}from"@redocly/theme";import{ProtocolVariant as c}from"../types";const o=e({layout:i.THREE_PANEL,protocol:c.DEFAULT,routingBasePath:"",downloadUrls:[],definition:{}}),l=e(t=>t(o).layout,(t,s,n=i.STACKED)=>{const a=t(o);s(o,Object.assign(Object.assign({},a),{layout:n}))}),m=e(t=>t(o).protocol,(t,s,n=c.DEFAULT)=>{const a=t(o);s(o,Object.assign(Object.assign({},a),{protocol:n}))}),b=e(t=>t(o).routingBasePath,(t,s,n="")=>{const a=t(o);s(o,Object.assign(Object.assign({},a),{routingBasePath:n}))}),j=e(t=>t(o).downloadUrls,(t,s,n=[])=>{const a=t(o);s(o,Object.assign(Object.assign({},a),{downloadUrls:n}))}),O=e(t=>t(o).definition,(t,s,n={})=>{const a=t(o);s(o,Object.assign(Object.assign({},a),{definition:n}))});export{o as appStore,O as definitionAtom,j as downloadUrlsAtom,l as layoutAtom,m as protocolAtom,b as routingBasePathAtom};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"app.js","sourceRoot":"","sources":["../../../src/jotai/app.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,OAAO,CAAC;AAC7B,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAK/C,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAU3C,MAAM,CAAC,MAAM,QAAQ,GAAG,IAAI,CAAW;IACrC,MAAM,EAAE,aAAa,CAAC,WAAW;IACjC,QAAQ,EAAE,eAAe,CAAC,OAAO;IACjC,eAAe,EAAE,EAAE;IACnB,YAAY,EAAE,EAAE;IAChB,UAAU,EAAE,EAAwB;CACrC,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,UAAU,GAAG,IAAI,CAC5B,CAAC,GAAW,EAAE,EAAE,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC,MAAM,EACrC,CAAC,GAAW,EAAE,GAAW,EAAE,MAAM,GAAG,aAAa,CAAC,OAAO,EAAE,EAAE;IAC3D,MAAM,KAAK,GAAG,GAAG,CAAC,QAAQ,CAAC,CAAC;IAC5B,GAAG,CAAC,QAAQ,kCAAO,KAAK,KAAE,MAAM,IAAG,CAAC;AACtC,CAAC,CACF,CAAC;AAEF,MAAM,CAAC,MAAM,Y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AAO,KAAK,KAAE,UAAU,IAAG,CAAC;AAC1C,CAAC,CACF,CAAC"}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
export type ApiItemType = 'operation' | 'channel' | 'message';
|
|
2
|
-
export type ApiItemData = {
|
|
3
|
-
id: string;
|
|
4
|
-
type: ApiItemType;
|
|
5
|
-
};
|
|
6
|
-
export type ApiItem = {
|
|
7
|
-
id: string;
|
|
8
|
-
label: string;
|
|
9
|
-
link: string;
|
|
10
|
-
dataSectionId: string;
|
|
11
|
-
type: ApiItemType;
|
|
12
|
-
action?: string;
|
|
13
|
-
items: ApiItem[];
|
|
14
|
-
};
|
|
15
|
-
export type ApiItemsGroup = {
|
|
16
|
-
label: string;
|
|
17
|
-
link: string;
|
|
18
|
-
dataSectionId: string;
|
|
19
|
-
items: ApiItem[];
|
|
20
|
-
isGroup?: true;
|
|
21
|
-
type?: string;
|
|
22
|
-
};
|
|
File without changes
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"apiItem.js","sourceRoot":"","sources":["../../../src/types/apiItem.ts"],"names":[],"mappings":""}
|
|
@@ -1,245 +0,0 @@
|
|
|
1
|
-
import type { ResolvedNavItem, REDOCLY_TEAMS_RBAC } from '@redocly/config';
|
|
2
|
-
import type { JSONSchema7 } from 'json-schema';
|
|
3
|
-
import type { ApiItemData } from './apiItem';
|
|
4
|
-
export interface AsyncApiDefinition {
|
|
5
|
-
asyncapi: string;
|
|
6
|
-
id?: string;
|
|
7
|
-
info: AsyncApiInfo;
|
|
8
|
-
servers?: Record<string, AsyncApiServer>;
|
|
9
|
-
defaultContentType?: string;
|
|
10
|
-
channels?: AsyncApiChannels;
|
|
11
|
-
operations?: AsyncApiOperations;
|
|
12
|
-
components?: AsyncApiComponents;
|
|
13
|
-
}
|
|
14
|
-
export interface AsyncApiInfo {
|
|
15
|
-
title: string;
|
|
16
|
-
version: string;
|
|
17
|
-
description?: string;
|
|
18
|
-
termsOfService?: string;
|
|
19
|
-
contact?: AsyncApiContact;
|
|
20
|
-
license?: AsyncApiLicense;
|
|
21
|
-
tags?: AsyncApiTag[];
|
|
22
|
-
externalDocs?: AsyncApiExternalDocs;
|
|
23
|
-
'x-metadata'?: Record<string, unknown>;
|
|
24
|
-
}
|
|
25
|
-
export interface AsyncApiContact {
|
|
26
|
-
name?: string;
|
|
27
|
-
url?: string;
|
|
28
|
-
email?: string;
|
|
29
|
-
}
|
|
30
|
-
export interface AsyncApiLicense {
|
|
31
|
-
name: string;
|
|
32
|
-
url?: string;
|
|
33
|
-
}
|
|
34
|
-
export interface AsyncApiTag {
|
|
35
|
-
name: string;
|
|
36
|
-
description?: string;
|
|
37
|
-
externalDocs?: AsyncApiExternalDocs;
|
|
38
|
-
}
|
|
39
|
-
export interface AsyncApiExternalDocs {
|
|
40
|
-
description?: string;
|
|
41
|
-
url: string;
|
|
42
|
-
}
|
|
43
|
-
export interface AsyncApiServer {
|
|
44
|
-
host: string;
|
|
45
|
-
protocol: string;
|
|
46
|
-
protocolVersion?: string;
|
|
47
|
-
pathname?: string;
|
|
48
|
-
description?: string;
|
|
49
|
-
title?: string;
|
|
50
|
-
summary?: string;
|
|
51
|
-
variables?: AsyncApiServerVariables;
|
|
52
|
-
tags?: AsyncApiTag[];
|
|
53
|
-
externalDocs?: AsyncApiExternalDocs;
|
|
54
|
-
bindings?: AsyncApiServerBinding;
|
|
55
|
-
}
|
|
56
|
-
export interface AsyncApiServerVariables {
|
|
57
|
-
[name: string]: AsyncApiServerVariable;
|
|
58
|
-
}
|
|
59
|
-
export interface AsyncApiChannels {
|
|
60
|
-
[name: string]: AsyncApiChannel;
|
|
61
|
-
}
|
|
62
|
-
export interface AsyncApiServerVariable {
|
|
63
|
-
enum?: string[];
|
|
64
|
-
default: string;
|
|
65
|
-
description?: string;
|
|
66
|
-
}
|
|
67
|
-
export interface AsyncApiServerBinding {
|
|
68
|
-
kafka?: AsyncApiServerKafkaBinding;
|
|
69
|
-
}
|
|
70
|
-
export interface AsyncApiServerKafkaBinding {
|
|
71
|
-
schemaRegistryUrl?: string;
|
|
72
|
-
schemaRegistryVendor?: string;
|
|
73
|
-
bindingVersion?: string;
|
|
74
|
-
}
|
|
75
|
-
export interface AsyncApiChannel {
|
|
76
|
-
address?: string;
|
|
77
|
-
messages?: AsyncApiMessages;
|
|
78
|
-
title?: string;
|
|
79
|
-
summary?: string;
|
|
80
|
-
description?: string;
|
|
81
|
-
servers?: AsyncApiServer[];
|
|
82
|
-
parameters?: AsyncApiParameters;
|
|
83
|
-
tags?: AsyncApiTag[];
|
|
84
|
-
externalDocs?: AsyncApiExternalDocs;
|
|
85
|
-
bindings?: AsyncApiChannelBinding;
|
|
86
|
-
'x-badges'?: AsyncApiXBadges[];
|
|
87
|
-
[REDOCLY_TEAMS_RBAC]?: Record<string, string>;
|
|
88
|
-
}
|
|
89
|
-
export interface AsyncApiXBadges {
|
|
90
|
-
name: string;
|
|
91
|
-
position?: 'before' | 'after';
|
|
92
|
-
color?: string;
|
|
93
|
-
}
|
|
94
|
-
export interface AsyncApiChannelBinding {
|
|
95
|
-
kafka?: AsyncApiChannelKafkaBinding;
|
|
96
|
-
amqp?: AsyncApiChannelAMQPBinding;
|
|
97
|
-
}
|
|
98
|
-
export interface AsyncApiChannelKafkaBinding {
|
|
99
|
-
topic?: string;
|
|
100
|
-
partitions?: number;
|
|
101
|
-
replicas?: number;
|
|
102
|
-
bindingVersion?: string;
|
|
103
|
-
topicConfiguration?: {
|
|
104
|
-
'cleanup.policy'?: string[];
|
|
105
|
-
'retention.ms'?: number;
|
|
106
|
-
'retention.bytes'?: number;
|
|
107
|
-
'delete.retention.ms'?: number;
|
|
108
|
-
'max.message.bytes'?: number;
|
|
109
|
-
'confluent.key.schema.validation'?: boolean;
|
|
110
|
-
'confluent.key.subject.name.strategy'?: string;
|
|
111
|
-
'confluent.value.schema.validation'?: boolean;
|
|
112
|
-
'confluent.value.subject.name.strategy'?: string;
|
|
113
|
-
};
|
|
114
|
-
}
|
|
115
|
-
export interface AsyncApiChannelAMQPBinding {
|
|
116
|
-
is: 'routingKey' | 'queue';
|
|
117
|
-
}
|
|
118
|
-
export interface AsyncApiMessages {
|
|
119
|
-
[name: string]: AsyncApiMessage;
|
|
120
|
-
}
|
|
121
|
-
export interface AsyncApiParameters {
|
|
122
|
-
[name: string]: AsyncApiParameter;
|
|
123
|
-
}
|
|
124
|
-
export interface AsyncApiParameter {
|
|
125
|
-
enum?: string[];
|
|
126
|
-
default?: string;
|
|
127
|
-
description?: string;
|
|
128
|
-
examples?: string[];
|
|
129
|
-
location?: string;
|
|
130
|
-
}
|
|
131
|
-
export interface AsyncApiMessage {
|
|
132
|
-
headers?: JSONSchema7 | MultiFormatSchemaObject;
|
|
133
|
-
payload?: JSONSchema7 | MultiFormatSchemaObject;
|
|
134
|
-
correlationId?: AsyncApiCorrelationId;
|
|
135
|
-
contentType?: string;
|
|
136
|
-
name?: string;
|
|
137
|
-
title?: string;
|
|
138
|
-
summary?: string;
|
|
139
|
-
description?: string;
|
|
140
|
-
tags?: AsyncApiTag[];
|
|
141
|
-
externalDocs?: AsyncApiExternalDocs;
|
|
142
|
-
bindings?: AsyncApiMessageBinding;
|
|
143
|
-
examples?: AsyncApiMessageExample[];
|
|
144
|
-
}
|
|
145
|
-
export interface AsyncApiCorrelationId {
|
|
146
|
-
description?: string;
|
|
147
|
-
location: string;
|
|
148
|
-
}
|
|
149
|
-
export interface AsyncApiMessageBinding {
|
|
150
|
-
kafka?: AsyncApiMessageKafkaBinding;
|
|
151
|
-
}
|
|
152
|
-
export interface AsyncApiMessageKafkaBinding {
|
|
153
|
-
key?: JSONSchema7;
|
|
154
|
-
schemaIdLocation?: string;
|
|
155
|
-
schemaIdPayloadEncoding?: string;
|
|
156
|
-
schemaLookupStrategy?: string;
|
|
157
|
-
bindingVersion?: string;
|
|
158
|
-
}
|
|
159
|
-
export interface AsyncApiMessageExample {
|
|
160
|
-
payload?: Record<string, any>;
|
|
161
|
-
name?: string;
|
|
162
|
-
summary?: string;
|
|
163
|
-
}
|
|
164
|
-
export interface MultiFormatSchemaObject {
|
|
165
|
-
schema: JSONSchema7 | AvroSchema;
|
|
166
|
-
schemaFormat: string;
|
|
167
|
-
}
|
|
168
|
-
export interface AsyncApiOperations {
|
|
169
|
-
[name: string]: AsyncApiOperation;
|
|
170
|
-
}
|
|
171
|
-
export interface AsyncApiOperation {
|
|
172
|
-
action: 'send' | 'receive';
|
|
173
|
-
channel: AsyncApiChannel;
|
|
174
|
-
title?: string;
|
|
175
|
-
summary?: string;
|
|
176
|
-
description?: string;
|
|
177
|
-
tags?: AsyncApiTag[];
|
|
178
|
-
externalDocs?: AsyncApiExternalDocs;
|
|
179
|
-
bindings?: AsyncApiOperationBinding;
|
|
180
|
-
traits?: AsyncApiOperationTraits[];
|
|
181
|
-
messages?: AsyncApiMessage[];
|
|
182
|
-
reply?: AsyncApiOperationReply;
|
|
183
|
-
'x-badges'?: AsyncApiXBadges[];
|
|
184
|
-
[REDOCLY_TEAMS_RBAC]?: Record<string, string>;
|
|
185
|
-
}
|
|
186
|
-
export interface AsyncApiOperationReply {
|
|
187
|
-
address?: {
|
|
188
|
-
description?: string;
|
|
189
|
-
location: string;
|
|
190
|
-
};
|
|
191
|
-
channel?: AsyncApiChannel;
|
|
192
|
-
messages?: AsyncApiMessage[];
|
|
193
|
-
}
|
|
194
|
-
export interface AsyncApiOperationTraits {
|
|
195
|
-
title?: string;
|
|
196
|
-
summary?: string;
|
|
197
|
-
description?: string;
|
|
198
|
-
tags?: AsyncApiTag[];
|
|
199
|
-
externalDocs?: AsyncApiExternalDocs;
|
|
200
|
-
bindings?: AsyncApiOperationBinding;
|
|
201
|
-
}
|
|
202
|
-
export interface AsyncApiOperationBinding {
|
|
203
|
-
kafka?: AsyncApiOperationKafkaBinding;
|
|
204
|
-
}
|
|
205
|
-
export interface AsyncApiOperationKafkaBinding {
|
|
206
|
-
groupId?: {
|
|
207
|
-
type: string;
|
|
208
|
-
enum: string[];
|
|
209
|
-
};
|
|
210
|
-
clientId?: {
|
|
211
|
-
type: string;
|
|
212
|
-
enum: string[];
|
|
213
|
-
};
|
|
214
|
-
bindingVersion?: string;
|
|
215
|
-
}
|
|
216
|
-
export interface AsyncApiComponents {
|
|
217
|
-
messages: Record<string, AsyncApiMessage>;
|
|
218
|
-
tags: Record<string, AsyncApiTag>;
|
|
219
|
-
}
|
|
220
|
-
export interface AvroSchema {
|
|
221
|
-
type: string | string[] | AvroSchema[];
|
|
222
|
-
name?: string;
|
|
223
|
-
doc?: string;
|
|
224
|
-
symbols?: string[];
|
|
225
|
-
fields?: Array<{
|
|
226
|
-
name: string;
|
|
227
|
-
type: AvroSchema | string | (string | AvroSchema)[];
|
|
228
|
-
doc?: string;
|
|
229
|
-
default?: any;
|
|
230
|
-
}>;
|
|
231
|
-
items?: AvroSchema | string;
|
|
232
|
-
values?: AvroSchema | string;
|
|
233
|
-
}
|
|
234
|
-
export type ResolvedAsyncApiNavItem = ResolvedNavItem & {
|
|
235
|
-
apiItemData?: ApiItemData;
|
|
236
|
-
items?: ResolvedAsyncApiNavItem[];
|
|
237
|
-
action?: string;
|
|
238
|
-
httpVerb?: string;
|
|
239
|
-
};
|
|
240
|
-
export type DownloadUrls = {
|
|
241
|
-
url: string;
|
|
242
|
-
};
|
|
243
|
-
export type ChannelWithKey = AsyncApiChannel & {
|
|
244
|
-
key: string;
|
|
245
|
-
};
|
|
File without changes
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"async-api.js","sourceRoot":"","sources":["../../../src/types/async-api.ts"],"names":[],"mappings":""}
|