Skip to content

Commit

Permalink
add OpenAPI component to mdx components
Browse files Browse the repository at this point in the history
  • Loading branch information
DavieReid committed Jan 23, 2024
1 parent 5035982 commit c6b0d26
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/mdx-components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
},
"dependencies": {
"@jpmorganchase/mosaic-components": "^0.1.0-beta.62",
"@jpmorganchase/mosaic-open-api-component": "^0.1.0-beta.62",
"@jpmorganchase/mosaic-site-components": "^0.1.0-beta.62",
"@jpmorganchase/mosaic-theme": "^0.1.0-beta.62",
"clsx": "^2.0.0",
Expand Down
6 changes: 6 additions & 0 deletions packages/mdx-components/src/components.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,11 @@ import {
ViewStackProps
} from '@jpmorganchase/mosaic-components';

import {
OpenAPI as MosaicOpenAPI,
type OpenAPIProps
} from '@jpmorganchase/mosaic-open-api-component';

import { withMarkdownSpacing } from './withMarkdownSpacing';

export {
Expand Down Expand Up @@ -145,6 +150,7 @@ export const LinkButton = withMarkdownSpacing<LinkButtonProps>(MosaicLinkButton)
export const LinkText = withMarkdownSpacing<LinkTextProps>(MosaicLinkText);
export const Links = withMarkdownSpacing<LinksProps>(MosaicLinks);
export const ListItem = withMarkdownSpacing<ListItemProps>(MosaicListItem);
export const OpenAPI = withMarkdownSpacing<OpenAPIProps>(MosaicOpenAPI);
export const OrderedList = withMarkdownSpacing<OrderedListProps>(MosaicOrderedList);
export const Tag = withMarkdownSpacing<TagProps>(MosaicTag);
export const SecondaryNavbar = withMarkdownSpacing<SecondaryNavbarProps>(MosaicSecondaryNavbar);
Expand Down
2 changes: 2 additions & 0 deletions packages/site-components-next/src/mdx/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ import {
LinkText,
Links,
ListItem,
OpenAPI,
OrderedList,
P1,
P2,
Expand Down Expand Up @@ -188,6 +189,7 @@ export const mdxComponents = {
LinkText,
Links,
ListItem,
OpenAPI,
OrderedList,
P1,
P2,
Expand Down

0 comments on commit c6b0d26

Please sign in to comment.