docs: add loyalty plugin routes to OAS (#12811)
* generated OAS * remove unused schemas * generated specs * add cloud badge for routes * add to loyalty plugin page * allow clicking the tooltip
This commit is contained in:
@@ -8,7 +8,15 @@ import dynamic from "next/dynamic"
|
||||
import TagsOperationDescriptionSectionParameters from "./Parameters"
|
||||
import MDXContentClient from "@/components/MDXContent/Client"
|
||||
import { useArea } from "../../../../providers/area"
|
||||
import { Feedback, Badge, Link, FeatureFlagNotice, H2, Tooltip } from "docs-ui"
|
||||
import {
|
||||
Feedback,
|
||||
Badge,
|
||||
Link,
|
||||
FeatureFlagNotice,
|
||||
H2,
|
||||
Tooltip,
|
||||
MarkdownContent,
|
||||
} from "docs-ui"
|
||||
import { usePathname } from "next/navigation"
|
||||
import { TagsOperationDescriptionSectionWorkflowBadgeProps } from "./WorkflowBadge"
|
||||
import { TagsOperationDescriptionSectionEventsProps } from "./Events"
|
||||
@@ -79,6 +87,24 @@ const TagsOperationDescriptionSection = ({
|
||||
</Badge>
|
||||
</Tooltip>
|
||||
)}
|
||||
{operation["x-badges"]?.map((badge, index) => (
|
||||
<Tooltip
|
||||
key={index}
|
||||
tooltipChildren={
|
||||
<MarkdownContent
|
||||
allowedElements={["a", "strong", "em", "br"]}
|
||||
unwrapDisallowed={true}
|
||||
>
|
||||
{badge.description}
|
||||
</MarkdownContent>
|
||||
}
|
||||
clickable={true}
|
||||
>
|
||||
<Badge variant={badge.variant || "neutral"} className="ml-0.5">
|
||||
{badge.text}
|
||||
</Badge>
|
||||
</Tooltip>
|
||||
))}
|
||||
</H2>
|
||||
<div className="my-1">
|
||||
<MDXContentClient content={operation.description} />
|
||||
|
||||
Reference in New Issue
Block a user