Skip to content

Commit

Permalink
chore: export parameters and example components (Redocly#1347)
Browse files Browse the repository at this point in the history
* chore: export parameters and example components

* chore: export OpenAPIEncoding interface
  • Loading branch information
stasiukanya authored Aug 14, 2020
1 parent 74ebba6 commit 171711f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Parameters/Parameters.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ function DropdownWithinHeader(props) {
);
}

function BodyContent(props: { content: MediaContentModel; description?: string }): JSX.Element {
export function BodyContent(props: { content: MediaContentModel; description?: string }): JSX.Element {
const { content, description } = props;
return (
<MediaTypesSwitch content={content} renderDropdown={DropdownWithinHeader}>
Expand Down
2 changes: 2 additions & 0 deletions src/components/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ export * from './Responses/ResponseTitle';
export * from './ResponseSamples/ResponseSamples';
export * from './PayloadSamples/PayloadSamples';
export * from './MediaTypeSwitch/MediaTypesSwitch';
export * from './Parameters/Parameters';
export * from './PayloadSamples/Example';

export * from './ErrorBoundary';
export * from './StoreBuilder';
Expand Down
1 change: 1 addition & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
export * from './components';
export { MiddlePanel, Row, RightPanel, Section } from './common-elements/';
export { OpenAPIEncoding } from './types';
export * from './services';
export * from './utils';

Expand Down

0 comments on commit 171711f

Please sign in to comment.