mirror of
https://github.com/Redocly/redoc.git
synced 2024-11-28 19:43:43 +03:00
Deployed to Github Pages
This commit is contained in:
commit
c9a9f941a5
79
examples/multiple-apis/index.html
Normal file
79
examples/multiple-apis/index.html
Normal file
|
@ -0,0 +1,79 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<title>ReDoc Demo: Multiple apis</title>
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
|
<style>
|
||||||
|
body {
|
||||||
|
margin: 0;
|
||||||
|
padding-top: 40px;
|
||||||
|
}
|
||||||
|
|
||||||
|
nav {
|
||||||
|
position: fixed;
|
||||||
|
top: 0;
|
||||||
|
width: 100%;
|
||||||
|
z-index: 100;
|
||||||
|
}
|
||||||
|
#links_container {
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
background-color: #0033a0;
|
||||||
|
}
|
||||||
|
|
||||||
|
#links_container li {
|
||||||
|
display: inline-block;
|
||||||
|
padding: 10px;
|
||||||
|
color: white;
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
|
||||||
|
<!-- Top navigation placeholder -->
|
||||||
|
<nav>
|
||||||
|
<ul id="links_container">
|
||||||
|
</ul>
|
||||||
|
</nav>
|
||||||
|
|
||||||
|
<redoc scroll-y-offset="body > nav"></redoc>
|
||||||
|
|
||||||
|
<script src="https://rebilly.github.io/ReDoc/releases/v1.x.x/redoc.min.js"> </script>
|
||||||
|
<script>
|
||||||
|
// list of APIS
|
||||||
|
var apis = [
|
||||||
|
{
|
||||||
|
name: 'PetStore',
|
||||||
|
url: 'https://rebilly.github.io/ReDoc/swagger.yaml'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'Instagram',
|
||||||
|
url: 'https://api.apis.guru/v2/specs/instagram.com/1.0.0/swagger.yaml'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'Google Calendar',
|
||||||
|
url: 'https://api.apis.guru/v2/specs/googleapis.com/calendar/v3/swagger.yaml'
|
||||||
|
}
|
||||||
|
];
|
||||||
|
|
||||||
|
// initially render first API
|
||||||
|
Redoc.init(apis[0].url);
|
||||||
|
|
||||||
|
function onClick() {
|
||||||
|
var url = this.getAttribute('data-link');
|
||||||
|
Redoc.init(url);
|
||||||
|
}
|
||||||
|
|
||||||
|
// dynamically building navigation items
|
||||||
|
var $list = document.getElementById('links_container');
|
||||||
|
apis.forEach(function(api) {
|
||||||
|
var $listitem = document.createElement('li');
|
||||||
|
$listitem.setAttribute('data-link', api.url);
|
||||||
|
$listitem.innerText = api.name;
|
||||||
|
$listitem.addEventListener('click', onClick);
|
||||||
|
$list.appendChild($listitem);
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
</body>
|
||||||
|
</html>
|
18
index.html
Normal file
18
index.html
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
<!doctype html><html><head><meta charset="UTF-8"/><title>ReDoc Interactive Demo</title><meta name="description" content="ReDoc Interactive Demo. OpenAPI/Swagger-generated API Reference Documentation"/><meta name="viewport" content="width=device-width,initial-scale=1"><meta property="og:title" content="ReDoc Interactive Demo"><meta property="og:description" content="ReDoc Interactive Demo. OpenAPI/Swagger-generated API Reference Documentation"><meta property="og:image" content="https://user-images.githubusercontent.com/3975738/37729752-8a9ea38a-2d46-11e8-8438-42ed26bf1751.png"><meta name="twitter:card" content="summary_large_image"><style>body {
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
redoc {
|
||||||
|
display: block;
|
||||||
|
}</style><link href="https://fonts.googleapis.com/css?family=Montserrat:300,400,700|Roboto:300,400,700" rel="stylesheet"></head><body><div id="container"></div><script>(function (i, s, o, g, r, a, m) {
|
||||||
|
i['GoogleAnalyticsObject'] = r; i[r] = i[r] || function () {
|
||||||
|
(i[r].q = i[r].q || []).push(arguments)
|
||||||
|
}, i[r].l = 1 * new Date(); a = s.createElement(o),
|
||||||
|
m = s.getElementsByTagName(o)[0]; a.async = 1; a.src = g; m.parentNode.insertBefore(a, m)
|
||||||
|
})(window, document, 'script', 'https://www.google-analytics.com/analytics.js', 'ga');
|
||||||
|
|
||||||
|
if (window.location.host === 'rebilly.github.io') {
|
||||||
|
ga('create', 'UA-81703547-1', 'auto');
|
||||||
|
ga('send', 'pageview');
|
||||||
|
}</script><script src="redoc-demo.bundle.js"></script></body></html>
|
40
lib/demo/ComboBox.d.ts
vendored
Normal file
40
lib/demo/ComboBox.d.ts
vendored
Normal file
|
@ -0,0 +1,40 @@
|
||||||
|
/**
|
||||||
|
* Could not find ready-to-use component with required behaviour so
|
||||||
|
* I quickly hacked my own. Will refactor into separate npm package later
|
||||||
|
*/
|
||||||
|
import * as React from 'react';
|
||||||
|
export interface ComboBoxProps {
|
||||||
|
onChange?: (val: string) => void;
|
||||||
|
options: Array<{
|
||||||
|
value: string;
|
||||||
|
label: string;
|
||||||
|
}>;
|
||||||
|
placeholder?: string;
|
||||||
|
value?: string;
|
||||||
|
}
|
||||||
|
export interface ComboBoxState {
|
||||||
|
open: boolean;
|
||||||
|
value: string;
|
||||||
|
activeItemIdx: number;
|
||||||
|
}
|
||||||
|
export default class ComboBox extends React.Component<ComboBoxProps, ComboBoxState> {
|
||||||
|
state: {
|
||||||
|
open: boolean;
|
||||||
|
value: string;
|
||||||
|
activeItemIdx: number;
|
||||||
|
};
|
||||||
|
open: () => void;
|
||||||
|
close: () => void;
|
||||||
|
handleChange: (e: any) => void;
|
||||||
|
updateValue(value: any): void;
|
||||||
|
handleSelect(value: string): void;
|
||||||
|
handleTryItClick: () => void;
|
||||||
|
handleKeyPress: (e: React.KeyboardEvent<HTMLInputElement>) => void;
|
||||||
|
handleBlur: () => void;
|
||||||
|
handleItemClick: (val: any, idx: any) => void;
|
||||||
|
renderOption: (option: {
|
||||||
|
value: string;
|
||||||
|
label: string;
|
||||||
|
}, idx: number) => JSX.Element;
|
||||||
|
render(): JSX.Element;
|
||||||
|
}
|
1
lib/demo/index.d.ts
vendored
Normal file
1
lib/demo/index.d.ts
vendored
Normal file
|
@ -0,0 +1 @@
|
||||||
|
export {};
|
1
lib/demo/playground/hmr-playground.d.ts
vendored
Normal file
1
lib/demo/playground/hmr-playground.d.ts
vendored
Normal file
|
@ -0,0 +1 @@
|
||||||
|
export {};
|
1
lib/src/__tests__/ssr.test.d.ts
vendored
Normal file
1
lib/src/__tests__/ssr.test.d.ts
vendored
Normal file
|
@ -0,0 +1 @@
|
||||||
|
export {};
|
1
lib/src/__tests__/standalone.test.d.ts
vendored
Normal file
1
lib/src/__tests__/standalone.test.d.ts
vendored
Normal file
|
@ -0,0 +1 @@
|
||||||
|
export {};
|
16
lib/src/common-elements/CopyButtonWrapper.d.ts
vendored
Normal file
16
lib/src/common-elements/CopyButtonWrapper.d.ts
vendored
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
import * as React from 'react';
|
||||||
|
export interface CopyButtonWrapperProps {
|
||||||
|
data: any;
|
||||||
|
children: (props: {
|
||||||
|
renderCopyButton: (() => React.ReactNode);
|
||||||
|
}) => React.ReactNode;
|
||||||
|
}
|
||||||
|
export declare class CopyButtonWrapper extends React.PureComponent<CopyButtonWrapperProps, {
|
||||||
|
tooltipShown: boolean;
|
||||||
|
}> {
|
||||||
|
constructor(props: any);
|
||||||
|
render(): React.ReactNode;
|
||||||
|
copy: () => void;
|
||||||
|
renderCopyButton: () => JSX.Element;
|
||||||
|
showTooltip(): void;
|
||||||
|
}
|
1
lib/src/common-elements/PrismDiv.d.ts
vendored
Normal file
1
lib/src/common-elements/PrismDiv.d.ts
vendored
Normal file
|
@ -0,0 +1 @@
|
||||||
|
export declare const PrismDiv: import("styled-components").StyledComponentClass<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, import("../theme").ResolvedThemeInterface, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>>;
|
8
lib/src/common-elements/Tooltip.d.ts
vendored
Normal file
8
lib/src/common-elements/Tooltip.d.ts
vendored
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
import * as React from 'react';
|
||||||
|
export interface TooltipProps {
|
||||||
|
open: boolean;
|
||||||
|
title: string;
|
||||||
|
}
|
||||||
|
export declare class Tooltip extends React.Component<TooltipProps> {
|
||||||
|
render(): JSX.Element;
|
||||||
|
}
|
15
lib/src/common-elements/dropdown.d.ts
vendored
Normal file
15
lib/src/common-elements/dropdown.d.ts
vendored
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
import { StyledComponentClass } from 'styled-components';
|
||||||
|
export interface DropdownOption {
|
||||||
|
label: string;
|
||||||
|
value: string;
|
||||||
|
}
|
||||||
|
export interface DropdownProps {
|
||||||
|
options: DropdownOption[];
|
||||||
|
value: DropdownOption;
|
||||||
|
onChange: (val: DropdownOption) => void;
|
||||||
|
}
|
||||||
|
export declare const StyledDropdown: StyledComponentClass<any, DropdownProps, any>;
|
||||||
|
export declare const SimpleDropdown: StyledComponentClass<any, import("../theme").ResolvedThemeInterface, Pick<any, import("react").ReactText> & {
|
||||||
|
theme?: import("../theme").ResolvedThemeInterface | undefined;
|
||||||
|
}>;
|
||||||
|
export declare const MimeLabel: StyledComponentClass<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, import("../theme").ResolvedThemeInterface, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>>;
|
12
lib/src/common-elements/fields-layout.d.ts
vendored
Normal file
12
lib/src/common-elements/fields-layout.d.ts
vendored
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
export declare const PropertiesTableCaption: import("styled-components").StyledComponentClass<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, import("../theme").ResolvedThemeInterface, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>>;
|
||||||
|
export declare const PropertyCell: import("styled-components").StyledComponentClass<import("react").DetailedHTMLProps<import("react").TdHTMLAttributes<HTMLTableDataCellElement>, HTMLTableDataCellElement>, import("../theme").ResolvedThemeInterface, import("react").DetailedHTMLProps<import("react").TdHTMLAttributes<HTMLTableDataCellElement>, HTMLTableDataCellElement>>;
|
||||||
|
export declare const PropertyCellWithInner: import("styled-components").StyledComponentClass<import("react").DetailedHTMLProps<import("react").TdHTMLAttributes<HTMLTableDataCellElement>, HTMLTableDataCellElement>, import("../theme").ResolvedThemeInterface, import("react").DetailedHTMLProps<import("react").TdHTMLAttributes<HTMLTableDataCellElement>, HTMLTableDataCellElement>>;
|
||||||
|
export declare const PropertyNameCell: import("styled-components").StyledComponentClass<{
|
||||||
|
kind?: string | undefined;
|
||||||
|
} & import("react").HTMLProps<HTMLElement>, import("../theme").ResolvedThemeInterface, {
|
||||||
|
kind?: string | undefined;
|
||||||
|
} & import("react").HTMLProps<HTMLElement>>;
|
||||||
|
export declare const PropertyDetailsCell: import("styled-components").StyledComponentClass<import("react").DetailedHTMLProps<import("react").TdHTMLAttributes<HTMLTableDataCellElement>, HTMLTableDataCellElement>, import("../theme").ResolvedThemeInterface, import("react").DetailedHTMLProps<import("react").TdHTMLAttributes<HTMLTableDataCellElement>, HTMLTableDataCellElement>>;
|
||||||
|
export declare const PropertyBullet: import("styled-components").StyledComponentClass<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, import("../theme").ResolvedThemeInterface, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>>;
|
||||||
|
export declare const InnerPropertiesWrap: import("styled-components").StyledComponentClass<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, import("../theme").ResolvedThemeInterface, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>>;
|
||||||
|
export declare const PropertiesTable: import("styled-components").StyledComponentClass<import("react").DetailedHTMLProps<import("react").TableHTMLAttributes<HTMLTableElement>, HTMLTableElement>, import("../theme").ResolvedThemeInterface, import("react").DetailedHTMLProps<import("react").TableHTMLAttributes<HTMLTableElement>, HTMLTableElement>>;
|
16
lib/src/common-elements/fields.d.ts
vendored
Normal file
16
lib/src/common-elements/fields.d.ts
vendored
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
export declare const ClickablePropertyNameCell: import("styled-components").StyledComponentClass<{
|
||||||
|
kind?: string | undefined;
|
||||||
|
} & import("react").HTMLProps<HTMLElement>, import("../theme").ResolvedThemeInterface, {
|
||||||
|
kind?: string | undefined;
|
||||||
|
} & import("react").HTMLProps<HTMLElement>>;
|
||||||
|
export declare const FieldLabel: import("styled-components").StyledComponentClass<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, import("../theme").ResolvedThemeInterface, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>>;
|
||||||
|
export declare const TypePrefix: import("styled-components").StyledComponentClass<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, import("../theme").ResolvedThemeInterface, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>>;
|
||||||
|
export declare const TypeName: import("styled-components").StyledComponentClass<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, import("../theme").ResolvedThemeInterface, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>>;
|
||||||
|
export declare const TypeTitle: import("styled-components").StyledComponentClass<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, import("../theme").ResolvedThemeInterface, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>>;
|
||||||
|
export declare const TypeFormat: import("styled-components").StyledComponentClass<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, import("../theme").ResolvedThemeInterface, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>>;
|
||||||
|
export declare const RequiredLabel: import("styled-components").StyledComponentClass<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, import("../theme").ResolvedThemeInterface, import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & import("react").ClassAttributes<HTMLSpanElement> & import("react").HTMLAttributes<HTMLSpanElement>>;
|
||||||
|
export declare const RecursiveLabel: import("styled-components").StyledComponentClass<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, import("../theme").ResolvedThemeInterface, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>>;
|
||||||
|
export declare const NullableLabel: import("styled-components").StyledComponentClass<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, import("../theme").ResolvedThemeInterface, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>>;
|
||||||
|
export declare const PatternLabel: import("styled-components").StyledComponentClass<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, import("../theme").ResolvedThemeInterface, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>>;
|
||||||
|
export declare const ExampleValue: import("styled-components").StyledComponentClass<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, import("../theme").ResolvedThemeInterface, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>>;
|
||||||
|
export declare const ConstraintItem: import("styled-components").StyledComponentClass<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, import("../theme").ResolvedThemeInterface, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>>;
|
6
lib/src/common-elements/headers.d.ts
vendored
Normal file
6
lib/src/common-elements/headers.d.ts
vendored
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
export declare const headerCommonMixin: (level: any) => import("styled-components").FlattenInterpolation<import("styled-components").ThemeProps<import("../theme").ResolvedThemeInterface>>[];
|
||||||
|
export declare const H1: import("styled-components").StyledComponentClass<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, import("../theme").ResolvedThemeInterface, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>>;
|
||||||
|
export declare const H2: import("styled-components").StyledComponentClass<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, import("../theme").ResolvedThemeInterface, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>>;
|
||||||
|
export declare const H3: import("styled-components").StyledComponentClass<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, import("../theme").ResolvedThemeInterface, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>>;
|
||||||
|
export declare const RightPanelHeader: import("styled-components").StyledComponentClass<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, import("../theme").ResolvedThemeInterface, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>>;
|
||||||
|
export declare const UnderlinedHeader: import("styled-components").StyledComponentClass<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, import("../theme").ResolvedThemeInterface, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>>;
|
11
lib/src/common-elements/index.d.ts
vendored
Normal file
11
lib/src/common-elements/index.d.ts
vendored
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
export * from './panels';
|
||||||
|
export * from './headers';
|
||||||
|
export * from './linkify';
|
||||||
|
export * from './shelfs';
|
||||||
|
export * from './fields-layout';
|
||||||
|
export * from './schema';
|
||||||
|
export * from './dropdown';
|
||||||
|
export * from './mixins';
|
||||||
|
export * from './tabs';
|
||||||
|
export * from './samples';
|
||||||
|
export * from './perfect-scrollbar';
|
14
lib/src/common-elements/linkify.d.ts
vendored
Normal file
14
lib/src/common-elements/linkify.d.ts
vendored
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
import * as React from 'react';
|
||||||
|
import { HistoryService } from '../services';
|
||||||
|
export declare const linkifyMixin: (className: any) => import("styled-components").InterpolationValue[];
|
||||||
|
export declare class Link extends React.Component<{
|
||||||
|
to: string;
|
||||||
|
className?: string;
|
||||||
|
children?: any;
|
||||||
|
}> {
|
||||||
|
navigate: (history: HistoryService, event: any) => void;
|
||||||
|
render(): JSX.Element;
|
||||||
|
}
|
||||||
|
export declare function ShareLink(props: {
|
||||||
|
to: string;
|
||||||
|
}): JSX.Element;
|
1
lib/src/common-elements/mixins.d.ts
vendored
Normal file
1
lib/src/common-elements/mixins.d.ts
vendored
Normal file
|
@ -0,0 +1 @@
|
||||||
|
export declare const deprecatedCss: import("styled-components").InterpolationValue[];
|
9
lib/src/common-elements/panels.d.ts
vendored
Normal file
9
lib/src/common-elements/panels.d.ts
vendored
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
export declare const MiddlePanel: import("styled-components").StyledComponentClass<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, import("../theme").ResolvedThemeInterface, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>>;
|
||||||
|
export declare const Section: import("styled-components").StyledComponentClass<{
|
||||||
|
underlined?: boolean | undefined;
|
||||||
|
} & import("react").HTMLProps<HTMLElement>, import("../theme").ResolvedThemeInterface, {
|
||||||
|
underlined?: boolean | undefined;
|
||||||
|
} & import("react").HTMLProps<HTMLElement>>;
|
||||||
|
export declare const RightPanel: import("styled-components").StyledComponentClass<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, import("../theme").ResolvedThemeInterface, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>>;
|
||||||
|
export declare const DarkRightPanel: import("styled-components").StyledComponentClass<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, import("../theme").ResolvedThemeInterface, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>>;
|
||||||
|
export declare const Row: import("styled-components").StyledComponentClass<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, import("../theme").ResolvedThemeInterface, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>>;
|
19
lib/src/common-elements/perfect-scrollbar.d.ts
vendored
Normal file
19
lib/src/common-elements/perfect-scrollbar.d.ts
vendored
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
import * as React from 'react';
|
||||||
|
import PerfectScrollbarType from 'perfect-scrollbar';
|
||||||
|
export interface PerfectScrollbarProps {
|
||||||
|
options?: PerfectScrollbarType.Options;
|
||||||
|
className?: string;
|
||||||
|
updateFn?: (fn: any) => void;
|
||||||
|
}
|
||||||
|
export declare class PerfectScrollbar extends React.Component<PerfectScrollbarProps> {
|
||||||
|
private _container;
|
||||||
|
private inst;
|
||||||
|
componentDidMount(): void;
|
||||||
|
componentDidUpdate(): void;
|
||||||
|
componentWillUnmount(): void;
|
||||||
|
handleRef: (ref: any) => void;
|
||||||
|
render(): JSX.Element;
|
||||||
|
}
|
||||||
|
export declare function PerfectScrollbarWrap(props: PerfectScrollbarProps & {
|
||||||
|
children: JSX.Element[] | JSX.Element;
|
||||||
|
}): JSX.Element;
|
2
lib/src/common-elements/samples.d.ts
vendored
Normal file
2
lib/src/common-elements/samples.d.ts
vendored
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
export declare const SampleControls: import("styled-components").StyledComponentClass<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, import("../theme").ResolvedThemeInterface, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>>;
|
||||||
|
export declare const SampleControlsWrap: import("styled-components").StyledComponentClass<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, import("../theme").ResolvedThemeInterface, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>>;
|
9
lib/src/common-elements/schema.d.ts
vendored
Normal file
9
lib/src/common-elements/schema.d.ts
vendored
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
export declare const OneOfList: import("styled-components").StyledComponentClass<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLUListElement>, HTMLUListElement>, import("../theme").ResolvedThemeInterface, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLUListElement>, HTMLUListElement>>;
|
||||||
|
export declare const OneOfLabel: import("styled-components").StyledComponentClass<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, import("../theme").ResolvedThemeInterface, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>>;
|
||||||
|
export declare const OneOfButton: import("styled-components").StyledComponentClass<{
|
||||||
|
active: boolean;
|
||||||
|
} & import("react").HTMLProps<HTMLElement>, import("../theme").ResolvedThemeInterface, {
|
||||||
|
active: boolean;
|
||||||
|
} & import("react").HTMLProps<HTMLElement>>;
|
||||||
|
export declare const ArrayOpenningLabel: import("styled-components").StyledComponentClass<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, import("../theme").ResolvedThemeInterface, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>>;
|
||||||
|
export declare const ArrayClosingLabel: import("styled-components").StyledComponentClass<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, import("../theme").ResolvedThemeInterface, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>>;
|
23
lib/src/common-elements/shelfs.d.ts
vendored
Normal file
23
lib/src/common-elements/shelfs.d.ts
vendored
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
import * as React from 'react';
|
||||||
|
export declare const ShelfIcon: import("styled-components").StyledComponentClass<{
|
||||||
|
className?: string | undefined;
|
||||||
|
float?: "left" | "right" | undefined;
|
||||||
|
size?: string | undefined;
|
||||||
|
color?: string | undefined;
|
||||||
|
direction: "left" | "right" | "up" | "down";
|
||||||
|
style?: React.CSSProperties | undefined;
|
||||||
|
}, import("../theme").ResolvedThemeInterface, Pick<{
|
||||||
|
className?: string | undefined;
|
||||||
|
float?: "left" | "right" | undefined;
|
||||||
|
size?: string | undefined;
|
||||||
|
color?: string | undefined;
|
||||||
|
direction: "left" | "right" | "up" | "down";
|
||||||
|
style?: React.CSSProperties | undefined;
|
||||||
|
}, "style" | "className" | "color" | "size" | "float" | "direction"> & {
|
||||||
|
theme?: import("../theme").ResolvedThemeInterface | undefined;
|
||||||
|
}>;
|
||||||
|
export declare const Badge: import("styled-components").StyledComponentClass<{
|
||||||
|
type: string;
|
||||||
|
} & React.HTMLProps<HTMLElement>, import("../theme").ResolvedThemeInterface, {
|
||||||
|
type: string;
|
||||||
|
} & React.HTMLProps<HTMLElement>>;
|
7
lib/src/common-elements/tabs.d.ts
vendored
Normal file
7
lib/src/common-elements/tabs.d.ts
vendored
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
export { Tab, TabList, TabPanel } from 'react-tabs';
|
||||||
|
export declare const Tabs: import("styled-components").StyledComponentClass<import("react-tabs").TabsProps, import("../theme").ResolvedThemeInterface, Pick<import("react-tabs").TabsProps, "className" | "onSelect" | "defaultFocus" | "defaultIndex" | "disabledTabClassName" | "forceRenderTabPanel" | "selectedIndex" | "selectedTabClassName" | "selectedTabPanelClassName"> & {
|
||||||
|
theme?: import("../theme").ResolvedThemeInterface | undefined;
|
||||||
|
}>;
|
||||||
|
export declare const SmallTabs: import("styled-components").StyledComponentClass<import("react-tabs").TabsProps, import("../theme").ResolvedThemeInterface, Pick<import("react-tabs").TabsProps, "className" | "onSelect" | "defaultFocus" | "defaultIndex" | "disabledTabClassName" | "forceRenderTabPanel" | "selectedIndex" | "selectedTabClassName" | "selectedTabPanelClassName"> & {
|
||||||
|
theme?: import("../theme").ResolvedThemeInterface | undefined;
|
||||||
|
}>;
|
7
lib/src/components/ApiInfo/ApiDescription.d.ts
vendored
Normal file
7
lib/src/components/ApiInfo/ApiDescription.d.ts
vendored
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
import * as React from 'react';
|
||||||
|
export interface ApiDescriptionProps {
|
||||||
|
description: string;
|
||||||
|
}
|
||||||
|
export declare class ApiDescription extends React.PureComponent<ApiDescriptionProps> {
|
||||||
|
render(): JSX.Element;
|
||||||
|
}
|
9
lib/src/components/ApiInfo/ApiInfo.d.ts
vendored
Normal file
9
lib/src/components/ApiInfo/ApiInfo.d.ts
vendored
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
import * as React from 'react';
|
||||||
|
import { AppStore } from '../../services/AppStore';
|
||||||
|
export interface ApiInfoProps {
|
||||||
|
store: AppStore;
|
||||||
|
}
|
||||||
|
export declare class ApiInfo extends React.Component<ApiInfoProps> {
|
||||||
|
handleDownloadClick: (e: any) => void;
|
||||||
|
render(): JSX.Element;
|
||||||
|
}
|
1
lib/src/components/ApiInfo/index.d.ts
vendored
Normal file
1
lib/src/components/ApiInfo/index.d.ts
vendored
Normal file
|
@ -0,0 +1 @@
|
||||||
|
export { ApiInfo } from './ApiInfo';
|
6
lib/src/components/ApiInfo/styled.elements.d.ts
vendored
Normal file
6
lib/src/components/ApiInfo/styled.elements.d.ts
vendored
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
export declare const ApiInfoWrap: import("styled-components").StyledComponentClass<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, import("../../theme").ResolvedThemeInterface, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>>;
|
||||||
|
export declare const ApiHeader: import("styled-components").StyledComponentClass<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, import("../../theme").ResolvedThemeInterface, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>>;
|
||||||
|
export declare const DownloadButton: import("styled-components").StyledComponentClass<import("react").DetailedHTMLProps<import("react").AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, import("../../theme").ResolvedThemeInterface, import("react").DetailedHTMLProps<import("react").AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>>;
|
||||||
|
export declare const InfoSpan: import("styled-components").StyledComponentClass<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, import("../../theme").ResolvedThemeInterface, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>>;
|
||||||
|
export declare const InfoSpanBoxWrap: import("styled-components").StyledComponentClass<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, import("../../theme").ResolvedThemeInterface, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>>;
|
||||||
|
export declare const InfoSpanBox: import("styled-components").StyledComponentClass<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, import("../../theme").ResolvedThemeInterface, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>>;
|
7
lib/src/components/ApiLogo/ApiLogo.d.ts
vendored
Normal file
7
lib/src/components/ApiLogo/ApiLogo.d.ts
vendored
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
import * as React from 'react';
|
||||||
|
import { OpenAPIInfo } from '../../types';
|
||||||
|
export declare class ApiLogo extends React.Component<{
|
||||||
|
info: OpenAPIInfo;
|
||||||
|
}> {
|
||||||
|
render(): JSX.Element | null;
|
||||||
|
}
|
4
lib/src/components/ApiLogo/styled.elements.d.ts
vendored
Normal file
4
lib/src/components/ApiLogo/styled.elements.d.ts
vendored
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
import * as React from 'react';
|
||||||
|
export declare const LogoImgEl: import("styled-components").StyledComponentClass<React.DetailedHTMLProps<React.ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, import("../../theme").ResolvedThemeInterface, React.DetailedHTMLProps<React.ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>>;
|
||||||
|
export declare const LogoWrap: import("styled-components").StyledComponentClass<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, import("../../theme").ResolvedThemeInterface, React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>>;
|
||||||
|
export declare const LinkWrap: (url: any) => (Component: any) => JSX.Element;
|
22
lib/src/components/ContentItems/ContentItems.d.ts
vendored
Normal file
22
lib/src/components/ContentItems/ContentItems.d.ts
vendored
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
import * as React from 'react';
|
||||||
|
import { ContentItemModel } from '../../services/MenuBuilder';
|
||||||
|
import { OperationModel } from '../../services/models';
|
||||||
|
export declare class ContentItems extends React.Component<{
|
||||||
|
items: ContentItemModel[];
|
||||||
|
}> {
|
||||||
|
render(): JSX.Element[] | null;
|
||||||
|
}
|
||||||
|
export interface ContentItemProps {
|
||||||
|
item: ContentItemModel;
|
||||||
|
}
|
||||||
|
export declare class ContentItem extends React.Component<ContentItemProps> {
|
||||||
|
render(): JSX.Element;
|
||||||
|
}
|
||||||
|
export declare class SectionItem extends React.Component<ContentItemProps> {
|
||||||
|
render(): JSX.Element;
|
||||||
|
}
|
||||||
|
export declare class OperationItem extends React.Component<{
|
||||||
|
item: OperationModel;
|
||||||
|
}> {
|
||||||
|
render(): JSX.Element;
|
||||||
|
}
|
7
lib/src/components/DropdownOrLabel/DropdownOrLabel.d.ts
vendored
Normal file
7
lib/src/components/DropdownOrLabel/DropdownOrLabel.d.ts
vendored
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
import * as React from 'react';
|
||||||
|
import { DropdownProps } from '../../common-elements/dropdown';
|
||||||
|
export interface DropdownOrLabelProps extends DropdownProps {
|
||||||
|
Label?: React.ComponentClass;
|
||||||
|
Dropdown?: React.ComponentClass;
|
||||||
|
}
|
||||||
|
export declare function DropdownOrLabel(props: DropdownOrLabelProps): JSX.Element;
|
15
lib/src/components/Endpoint/Endpoint.d.ts
vendored
Normal file
15
lib/src/components/Endpoint/Endpoint.d.ts
vendored
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
import * as React from 'react';
|
||||||
|
import { OperationModel } from '../../services';
|
||||||
|
export interface EndpointProps {
|
||||||
|
operation: OperationModel;
|
||||||
|
hideHostname?: boolean;
|
||||||
|
inverted?: boolean;
|
||||||
|
}
|
||||||
|
export interface EndpointState {
|
||||||
|
expanded: boolean;
|
||||||
|
}
|
||||||
|
export declare class Endpoint extends React.Component<EndpointProps, EndpointState> {
|
||||||
|
constructor(props: any);
|
||||||
|
toggle: () => void;
|
||||||
|
render(): JSX.Element;
|
||||||
|
}
|
25
lib/src/components/Endpoint/styled.elements.d.ts
vendored
Normal file
25
lib/src/components/Endpoint/styled.elements.d.ts
vendored
Normal file
File diff suppressed because one or more lines are too long
8
lib/src/components/ErrorBoundary.d.ts
vendored
Normal file
8
lib/src/components/ErrorBoundary.d.ts
vendored
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
import * as React from 'react';
|
||||||
|
export declare class ErrorBoundary extends React.Component<{}, {
|
||||||
|
error?: Error;
|
||||||
|
}> {
|
||||||
|
constructor(props: any);
|
||||||
|
componentDidCatch(error: any): boolean;
|
||||||
|
render(): React.ReactElement<any>;
|
||||||
|
}
|
8
lib/src/components/ExternalDocumentation/ExternalDocumentation.d.ts
vendored
Normal file
8
lib/src/components/ExternalDocumentation/ExternalDocumentation.d.ts
vendored
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
import * as React from 'react';
|
||||||
|
import { OpenAPIExternalDocumentation } from '../../types';
|
||||||
|
export declare class ExternalDocumentation extends React.Component<{
|
||||||
|
externalDocs: OpenAPIExternalDocumentation;
|
||||||
|
compact?: boolean;
|
||||||
|
}> {
|
||||||
|
render(): JSX.Element | null;
|
||||||
|
}
|
8
lib/src/components/Fields/EnumValues.d.ts
vendored
Normal file
8
lib/src/components/Fields/EnumValues.d.ts
vendored
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
import * as React from 'react';
|
||||||
|
export interface EnumValuesProps {
|
||||||
|
values: string[];
|
||||||
|
type: string;
|
||||||
|
}
|
||||||
|
export declare class EnumValues extends React.PureComponent<EnumValuesProps> {
|
||||||
|
render(): JSX.Element | null;
|
||||||
|
}
|
14
lib/src/components/Fields/Field.d.ts
vendored
Normal file
14
lib/src/components/Fields/Field.d.ts
vendored
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
import * as React from 'react';
|
||||||
|
import { FieldModel } from '../../services/models';
|
||||||
|
import { SchemaOptions } from '../Schema/Schema';
|
||||||
|
export interface FieldProps extends SchemaOptions {
|
||||||
|
className?: string;
|
||||||
|
isLast?: boolean;
|
||||||
|
showExamples?: boolean;
|
||||||
|
field: FieldModel;
|
||||||
|
renderDiscriminatorSwitch?: (opts: FieldProps) => JSX.Element;
|
||||||
|
}
|
||||||
|
export declare class Field extends React.Component<FieldProps> {
|
||||||
|
toggle: () => void;
|
||||||
|
render(): JSX.Element;
|
||||||
|
}
|
7
lib/src/components/Fields/FieldContstraints.d.ts
vendored
Normal file
7
lib/src/components/Fields/FieldContstraints.d.ts
vendored
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
import * as React from 'react';
|
||||||
|
export interface ConstraintsViewProps {
|
||||||
|
constraints: string[];
|
||||||
|
}
|
||||||
|
export declare class ConstraintsView extends React.PureComponent<ConstraintsViewProps> {
|
||||||
|
render(): JSX.Element | null;
|
||||||
|
}
|
8
lib/src/components/Fields/FieldDetail.d.ts
vendored
Normal file
8
lib/src/components/Fields/FieldDetail.d.ts
vendored
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
import * as React from 'react';
|
||||||
|
export interface FieldDetailProps {
|
||||||
|
value?: any;
|
||||||
|
label: string;
|
||||||
|
}
|
||||||
|
export declare class FieldDetail extends React.PureComponent<FieldDetailProps> {
|
||||||
|
render(): JSX.Element | null;
|
||||||
|
}
|
5
lib/src/components/Fields/FieldDetails.d.ts
vendored
Normal file
5
lib/src/components/Fields/FieldDetails.d.ts
vendored
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
import * as React from 'react';
|
||||||
|
import { FieldProps } from './Field';
|
||||||
|
export declare class FieldDetails extends React.PureComponent<FieldProps> {
|
||||||
|
render(): JSX.Element;
|
||||||
|
}
|
7
lib/src/components/JsonViewer/JsonViewer.d.ts
vendored
Normal file
7
lib/src/components/JsonViewer/JsonViewer.d.ts
vendored
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
export interface JsonProps {
|
||||||
|
data: any;
|
||||||
|
className?: string;
|
||||||
|
}
|
||||||
|
export declare const JsonViewer: import("styled-components").StyledComponentClass<JsonProps, import("../../theme").ResolvedThemeInterface, Pick<JsonProps, "data" | "className"> & {
|
||||||
|
theme?: import("../../theme").ResolvedThemeInterface | undefined;
|
||||||
|
}>;
|
1
lib/src/components/JsonViewer/index.d.ts
vendored
Normal file
1
lib/src/components/JsonViewer/index.d.ts
vendored
Normal file
|
@ -0,0 +1 @@
|
||||||
|
export * from './JsonViewer';
|
1
lib/src/components/JsonViewer/style.d.ts
vendored
Normal file
1
lib/src/components/JsonViewer/style.d.ts
vendored
Normal file
|
@ -0,0 +1 @@
|
||||||
|
export declare const jsonStyles: import("styled-components").FlattenInterpolation<import("styled-components").ThemeProps<import("../../theme").ResolvedThemeInterface>>[];
|
7
lib/src/components/Loading/Loading.d.ts
vendored
Normal file
7
lib/src/components/Loading/Loading.d.ts
vendored
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
import * as React from 'react';
|
||||||
|
export interface LoadingProps {
|
||||||
|
color: string;
|
||||||
|
}
|
||||||
|
export declare class Loading extends React.PureComponent<LoadingProps> {
|
||||||
|
render(): JSX.Element;
|
||||||
|
}
|
9
lib/src/components/Loading/Spinner.svg.d.ts
vendored
Normal file
9
lib/src/components/Loading/Spinner.svg.d.ts
vendored
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
export declare const Spinner: import("styled-components").StyledComponentClass<{
|
||||||
|
className?: string | undefined;
|
||||||
|
color: string;
|
||||||
|
}, import("../../theme").ResolvedThemeInterface, Pick<{
|
||||||
|
className?: string | undefined;
|
||||||
|
color: string;
|
||||||
|
}, "className" | "color"> & {
|
||||||
|
theme?: import("../../theme").ResolvedThemeInterface | undefined;
|
||||||
|
}>;
|
10
lib/src/components/Markdown/AdvancedMarkdown.d.ts
vendored
Normal file
10
lib/src/components/Markdown/AdvancedMarkdown.d.ts
vendored
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
import * as React from 'react';
|
||||||
|
import { AppStore, RedocNormalizedOptions } from '../../services';
|
||||||
|
import { BaseMarkdownProps } from './Markdown';
|
||||||
|
export interface AdvancedMarkdownProps extends BaseMarkdownProps {
|
||||||
|
htmlWrap?: (part: JSX.Element) => JSX.Element;
|
||||||
|
}
|
||||||
|
export declare class AdvancedMarkdown extends React.Component<AdvancedMarkdownProps> {
|
||||||
|
render(): JSX.Element;
|
||||||
|
renderWithOptionsAndStore(options: RedocNormalizedOptions, store?: AppStore): JSX.Element[] | null;
|
||||||
|
}
|
16
lib/src/components/Markdown/Markdown.d.ts
vendored
Normal file
16
lib/src/components/Markdown/Markdown.d.ts
vendored
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
import * as React from 'react';
|
||||||
|
export interface StylingMarkdownProps {
|
||||||
|
compact?: boolean;
|
||||||
|
inline?: boolean;
|
||||||
|
}
|
||||||
|
export interface BaseMarkdownProps {
|
||||||
|
sanitize?: boolean;
|
||||||
|
source: string;
|
||||||
|
}
|
||||||
|
export declare type MarkdownProps = BaseMarkdownProps & StylingMarkdownProps & {
|
||||||
|
source: string;
|
||||||
|
className?: string;
|
||||||
|
};
|
||||||
|
export declare class Markdown extends React.Component<MarkdownProps> {
|
||||||
|
render(): JSX.Element;
|
||||||
|
}
|
5
lib/src/components/Markdown/SanitizedMdBlock.d.ts
vendored
Normal file
5
lib/src/components/Markdown/SanitizedMdBlock.d.ts
vendored
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
import { StylingMarkdownProps } from './Markdown';
|
||||||
|
export declare function SanitizedMarkdownHTML(props: StylingMarkdownProps & {
|
||||||
|
html: string;
|
||||||
|
className?: string;
|
||||||
|
}): JSX.Element;
|
8
lib/src/components/Markdown/styled.elements.d.ts
vendored
Normal file
8
lib/src/components/Markdown/styled.elements.d.ts
vendored
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
export declare const linksCss: import("styled-components").FlattenInterpolation<import("styled-components").ThemeProps<import("../../theme").ResolvedThemeInterface>>[];
|
||||||
|
export declare const StyledMarkdownBlock: import("styled-components").StyledComponentClass<{
|
||||||
|
compact?: boolean | undefined;
|
||||||
|
inline?: boolean | undefined;
|
||||||
|
} & import("react").HTMLProps<HTMLElement>, import("../../theme").ResolvedThemeInterface, {
|
||||||
|
compact?: boolean | undefined;
|
||||||
|
inline?: boolean | undefined;
|
||||||
|
} & import("react").HTMLProps<HTMLElement>>;
|
3
lib/src/components/Markdown/styles.d.ts
vendored
Normal file
3
lib/src/components/Markdown/styles.d.ts
vendored
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
import { InterpolationFunction, Styles, ThemeProps } from 'styled-components';
|
||||||
|
import { ResolvedThemeInterface, StyledComponentClass } from '../../styled-components';
|
||||||
|
export declare const markdownCss: (string | number | false | Styles | StyledComponentClass<any, any, any> | InterpolationFunction<ThemeProps<ResolvedThemeInterface>> | null | undefined)[];
|
18
lib/src/components/MediaTypeSwitch/MediaTypesSwitch.d.ts
vendored
Normal file
18
lib/src/components/MediaTypeSwitch/MediaTypesSwitch.d.ts
vendored
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
import * as React from 'react';
|
||||||
|
import { DropdownProps } from '../../common-elements/dropdown';
|
||||||
|
import { MediaContentModel, MediaTypeModel, SchemaModel } from '../../services/models';
|
||||||
|
export interface MediaTypeChildProps {
|
||||||
|
schema: SchemaModel;
|
||||||
|
mime?: string;
|
||||||
|
}
|
||||||
|
export interface MediaTypesSwitchProps {
|
||||||
|
content?: MediaContentModel;
|
||||||
|
renderDropdown: (props: DropdownProps) => JSX.Element;
|
||||||
|
children: (activeMime: MediaTypeModel) => JSX.Element;
|
||||||
|
}
|
||||||
|
export declare class MediaTypesSwitch extends React.Component<MediaTypesSwitchProps> {
|
||||||
|
switchMedia: ({ value }: {
|
||||||
|
value: any;
|
||||||
|
}) => void;
|
||||||
|
render(): JSX.Element | null;
|
||||||
|
}
|
8
lib/src/components/Operation/Operation.d.ts
vendored
Normal file
8
lib/src/components/Operation/Operation.d.ts
vendored
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
import * as React from 'react';
|
||||||
|
import { OperationModel as OperationType } from '../../services/models';
|
||||||
|
export interface OperationProps {
|
||||||
|
operation: OperationType;
|
||||||
|
}
|
||||||
|
export declare class Operation extends React.Component<OperationProps> {
|
||||||
|
render(): JSX.Element;
|
||||||
|
}
|
5
lib/src/components/OptionsProvider.d.ts
vendored
Normal file
5
lib/src/components/OptionsProvider.d.ts
vendored
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
import * as React from 'react';
|
||||||
|
import { RedocNormalizedOptions } from '../services/RedocNormalizedOptions';
|
||||||
|
export declare const OptionsContext: React.Context<RedocNormalizedOptions>;
|
||||||
|
export declare const OptionsProvider: React.ComponentType<React.ProviderProps<RedocNormalizedOptions>>;
|
||||||
|
export declare const OptionsConsumer: React.ComponentType<React.ConsumerProps<RedocNormalizedOptions>>;
|
10
lib/src/components/Parameters/Parameters.d.ts
vendored
Normal file
10
lib/src/components/Parameters/Parameters.d.ts
vendored
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
import * as React from 'react';
|
||||||
|
import { FieldModel, RequestBodyModel } from '../../services/models';
|
||||||
|
export interface ParametersProps {
|
||||||
|
parameters?: FieldModel[];
|
||||||
|
body?: RequestBodyModel;
|
||||||
|
}
|
||||||
|
export declare class Parameters extends React.PureComponent<ParametersProps> {
|
||||||
|
orderParams(params: FieldModel[]): Dict<FieldModel[]>;
|
||||||
|
render(): JSX.Element | null;
|
||||||
|
}
|
9
lib/src/components/Parameters/ParametersGroup.d.ts
vendored
Normal file
9
lib/src/components/Parameters/ParametersGroup.d.ts
vendored
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
import * as React from 'react';
|
||||||
|
import { FieldModel } from '../../services/models';
|
||||||
|
export interface ParametersGroupProps {
|
||||||
|
place: string;
|
||||||
|
parameters: FieldModel[];
|
||||||
|
}
|
||||||
|
export declare class ParametersGroup extends React.PureComponent<ParametersGroupProps, any> {
|
||||||
|
render(): JSX.Element | null;
|
||||||
|
}
|
8
lib/src/components/PayloadSamples/MediaTypeSamples.d.ts
vendored
Normal file
8
lib/src/components/PayloadSamples/MediaTypeSamples.d.ts
vendored
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
import * as React from 'react';
|
||||||
|
import { MediaTypeModel } from '../../services/models';
|
||||||
|
export interface PayloadSamplesProps {
|
||||||
|
mediaType: MediaTypeModel;
|
||||||
|
}
|
||||||
|
export declare class MediaTypeSamples extends React.Component<PayloadSamplesProps> {
|
||||||
|
render(): JSX.Element;
|
||||||
|
}
|
9
lib/src/components/PayloadSamples/PayloadSamples.d.ts
vendored
Normal file
9
lib/src/components/PayloadSamples/PayloadSamples.d.ts
vendored
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
import * as React from 'react';
|
||||||
|
import { MediaContentModel } from '../../services/models';
|
||||||
|
export interface PayloadSamplesProps {
|
||||||
|
content: MediaContentModel;
|
||||||
|
}
|
||||||
|
export declare class PayloadSamples extends React.Component<PayloadSamplesProps> {
|
||||||
|
render(): JSX.Element | null;
|
||||||
|
private renderDropdown;
|
||||||
|
}
|
5
lib/src/components/PayloadSamples/styled.elements.d.ts
vendored
Normal file
5
lib/src/components/PayloadSamples/styled.elements.d.ts
vendored
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
export declare const MimeLabel: import("styled-components").StyledComponentClass<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, import("../../theme").ResolvedThemeInterface, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>>;
|
||||||
|
export declare const InvertedSimpleDropdown: import("styled-components").StyledComponentClass<any, import("../../theme").ResolvedThemeInterface, Pick<any, import("react").ReactText> & {
|
||||||
|
theme?: import("../../theme").ResolvedThemeInterface | undefined;
|
||||||
|
}>;
|
||||||
|
export declare const NoSampleLabel: import("styled-components").StyledComponentClass<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, import("../../theme").ResolvedThemeInterface, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>>;
|
14
lib/src/components/Redoc/Redoc.d.ts
vendored
Normal file
14
lib/src/components/Redoc/Redoc.d.ts
vendored
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
import * as PropTypes from 'prop-types';
|
||||||
|
import * as React from 'react';
|
||||||
|
import { AppStore } from '../../services';
|
||||||
|
export interface RedocProps {
|
||||||
|
store: AppStore;
|
||||||
|
}
|
||||||
|
export declare class Redoc extends React.Component<RedocProps> {
|
||||||
|
static propTypes: {
|
||||||
|
store: PropTypes.Validator<AppStore>;
|
||||||
|
};
|
||||||
|
componentDidMount(): void;
|
||||||
|
componentWillUnmount(): void;
|
||||||
|
render(): JSX.Element;
|
||||||
|
}
|
3
lib/src/components/Redoc/styled.elements.d.ts
vendored
Normal file
3
lib/src/components/Redoc/styled.elements.d.ts
vendored
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
export declare const RedocWrap: import("styled-components").StyledComponentClass<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, import("../../theme").ResolvedThemeInterface, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>>;
|
||||||
|
export declare const ApiContentWrap: import("styled-components").StyledComponentClass<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, import("../../theme").ResolvedThemeInterface, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>>;
|
||||||
|
export declare const BackgroundStub: import("styled-components").StyledComponentClass<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, import("../../theme").ResolvedThemeInterface, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>>;
|
18
lib/src/components/RedocStandalone.d.ts
vendored
Normal file
18
lib/src/components/RedocStandalone.d.ts
vendored
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
import * as PropTypes from 'prop-types';
|
||||||
|
import * as React from 'react';
|
||||||
|
import { RedocRawOptions } from '../services/RedocNormalizedOptions';
|
||||||
|
export interface RedocStandaloneProps {
|
||||||
|
spec?: object;
|
||||||
|
specUrl?: string;
|
||||||
|
options?: RedocRawOptions;
|
||||||
|
onLoaded?: (e?: Error) => any;
|
||||||
|
}
|
||||||
|
export declare class RedocStandalone extends React.PureComponent<RedocStandaloneProps> {
|
||||||
|
static propTypes: {
|
||||||
|
spec: (props: any, _: any, componentName: any) => Error | null;
|
||||||
|
specUrl: (props: any, _: any, componentName: any) => Error | null;
|
||||||
|
options: PropTypes.Requireable<any>;
|
||||||
|
onLoaded: PropTypes.Requireable<any>;
|
||||||
|
};
|
||||||
|
render(): JSX.Element;
|
||||||
|
}
|
9
lib/src/components/RequestSamples/RequestSamples.d.ts
vendored
Normal file
9
lib/src/components/RequestSamples/RequestSamples.d.ts
vendored
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
import * as React from 'react';
|
||||||
|
import { OperationModel } from '../../services/models';
|
||||||
|
export interface RequestSamplesProps {
|
||||||
|
operation: OperationModel;
|
||||||
|
}
|
||||||
|
export declare class RequestSamples extends React.Component<RequestSamplesProps> {
|
||||||
|
operation: OperationModel;
|
||||||
|
render(): JSX.Element | null;
|
||||||
|
}
|
9
lib/src/components/ResponseSamples/ResponseSamples.d.ts
vendored
Normal file
9
lib/src/components/ResponseSamples/ResponseSamples.d.ts
vendored
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
import * as React from 'react';
|
||||||
|
import { OperationModel } from '../../services/models';
|
||||||
|
export interface ResponseSamplesProps {
|
||||||
|
operation: OperationModel;
|
||||||
|
}
|
||||||
|
export declare class ResponseSamples extends React.Component<ResponseSamplesProps> {
|
||||||
|
operation: OperationModel;
|
||||||
|
render(): JSX.Element | null;
|
||||||
|
}
|
8
lib/src/components/Responses/Response.d.ts
vendored
Normal file
8
lib/src/components/Responses/Response.d.ts
vendored
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
import * as React from 'react';
|
||||||
|
import { ResponseModel } from '../../services/models';
|
||||||
|
export declare class ResponseView extends React.Component<{
|
||||||
|
response: ResponseModel;
|
||||||
|
}> {
|
||||||
|
toggle: () => void;
|
||||||
|
render(): JSX.Element;
|
||||||
|
}
|
8
lib/src/components/Responses/ResponseDetails.d.ts
vendored
Normal file
8
lib/src/components/Responses/ResponseDetails.d.ts
vendored
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
import * as React from 'react';
|
||||||
|
import { ResponseModel } from '../../services/models';
|
||||||
|
export declare class ResponseDetails extends React.PureComponent<{
|
||||||
|
response: ResponseModel;
|
||||||
|
}> {
|
||||||
|
render(): JSX.Element;
|
||||||
|
private renderDropdown;
|
||||||
|
}
|
8
lib/src/components/Responses/ResponseHeaders.d.ts
vendored
Normal file
8
lib/src/components/Responses/ResponseHeaders.d.ts
vendored
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
import * as React from 'react';
|
||||||
|
import { FieldModel } from '../../services/models';
|
||||||
|
export interface ResponseHeadersProps {
|
||||||
|
headers?: FieldModel[];
|
||||||
|
}
|
||||||
|
export declare class ResponseHeaders extends React.PureComponent<ResponseHeadersProps> {
|
||||||
|
render(): JSX.Element | null;
|
||||||
|
}
|
13
lib/src/components/Responses/ResponseTitle.d.ts
vendored
Normal file
13
lib/src/components/Responses/ResponseTitle.d.ts
vendored
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
import * as React from 'react';
|
||||||
|
export interface ResponseTitleProps {
|
||||||
|
code: string;
|
||||||
|
title: string;
|
||||||
|
type: string;
|
||||||
|
empty?: boolean;
|
||||||
|
opened?: boolean;
|
||||||
|
className?: string;
|
||||||
|
onClick?: () => void;
|
||||||
|
}
|
||||||
|
export declare class ResponseTitle extends React.PureComponent<ResponseTitleProps> {
|
||||||
|
render(): JSX.Element;
|
||||||
|
}
|
8
lib/src/components/Responses/ResponsesList.d.ts
vendored
Normal file
8
lib/src/components/Responses/ResponsesList.d.ts
vendored
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
import * as React from 'react';
|
||||||
|
import { ResponseModel } from '../../services/models';
|
||||||
|
export interface ResponseListProps {
|
||||||
|
responses: ResponseModel[];
|
||||||
|
}
|
||||||
|
export declare class ResponsesList extends React.PureComponent<ResponseListProps> {
|
||||||
|
render(): JSX.Element | null;
|
||||||
|
}
|
5
lib/src/components/Responses/styled.elements.d.ts
vendored
Normal file
5
lib/src/components/Responses/styled.elements.d.ts
vendored
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
export declare const StyledResponseTitle: import("styled-components").StyledComponentClass<import("./ResponseTitle").ResponseTitleProps, import("../../theme").ResolvedThemeInterface, Pick<import("./ResponseTitle").ResponseTitleProps, "code" | "title" | "className" | "onClick" | "type" | "empty" | "opened"> & {
|
||||||
|
theme?: import("../../theme").ResolvedThemeInterface | undefined;
|
||||||
|
}>;
|
||||||
|
export declare const ResponseDetailsWrap: import("styled-components").StyledComponentClass<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, import("../../theme").ResolvedThemeInterface, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>>;
|
||||||
|
export declare const HeadersCaption: import("styled-components").StyledComponentClass<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, import("../../theme").ResolvedThemeInterface, import("react").ClassAttributes<HTMLElement> & import("react").HTMLAttributes<HTMLElement> & import("react").ClassAttributes<HTMLHeadingElement> & import("react").HTMLAttributes<HTMLHeadingElement>>;
|
5
lib/src/components/Schema/ArraySchema.d.ts
vendored
Normal file
5
lib/src/components/Schema/ArraySchema.d.ts
vendored
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
import * as React from 'react';
|
||||||
|
import { SchemaProps } from './Schema';
|
||||||
|
export declare class ArraySchema extends React.PureComponent<SchemaProps> {
|
||||||
|
render(): JSX.Element;
|
||||||
|
}
|
13
lib/src/components/Schema/DiscriminatorDropdown.d.ts
vendored
Normal file
13
lib/src/components/Schema/DiscriminatorDropdown.d.ts
vendored
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
import * as React from 'react';
|
||||||
|
import { DropdownOption } from '../../common-elements/dropdown';
|
||||||
|
import { SchemaModel } from '../../services/models';
|
||||||
|
export declare class DiscriminatorDropdown extends React.Component<{
|
||||||
|
parent: SchemaModel;
|
||||||
|
enumValues: string[];
|
||||||
|
}> {
|
||||||
|
sortOptions(options: DropdownOption[], enumValues: string[]): void;
|
||||||
|
render(): JSX.Element | null;
|
||||||
|
changeActiveChild: ({ value }: {
|
||||||
|
value: any;
|
||||||
|
}) => void;
|
||||||
|
}
|
13
lib/src/components/Schema/ObjectSchema.d.ts
vendored
Normal file
13
lib/src/components/Schema/ObjectSchema.d.ts
vendored
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
import * as React from 'react';
|
||||||
|
import { SchemaModel } from '../../services/models';
|
||||||
|
import { SchemaProps } from './Schema';
|
||||||
|
export interface ObjectSchemaProps extends SchemaProps {
|
||||||
|
discriminator?: {
|
||||||
|
fieldName: string;
|
||||||
|
parentSchema: SchemaModel;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
export declare class ObjectSchema extends React.Component<ObjectSchemaProps> {
|
||||||
|
readonly parentSchema: SchemaModel;
|
||||||
|
render(): JSX.Element;
|
||||||
|
}
|
15
lib/src/components/Schema/OneOfSchema.d.ts
vendored
Normal file
15
lib/src/components/Schema/OneOfSchema.d.ts
vendored
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
import * as React from 'react';
|
||||||
|
import { SchemaModel } from '../../services/models';
|
||||||
|
import { SchemaProps } from './Schema';
|
||||||
|
export interface OneOfButtonProps {
|
||||||
|
subSchema: SchemaModel;
|
||||||
|
idx: number;
|
||||||
|
schema: SchemaModel;
|
||||||
|
}
|
||||||
|
export declare class OneOfButton extends React.Component<OneOfButtonProps> {
|
||||||
|
render(): JSX.Element;
|
||||||
|
activateOneOf: () => void;
|
||||||
|
}
|
||||||
|
export declare class OneOfSchema extends React.Component<SchemaProps> {
|
||||||
|
render(): JSX.Element | null;
|
||||||
|
}
|
13
lib/src/components/Schema/Schema.d.ts
vendored
Normal file
13
lib/src/components/Schema/Schema.d.ts
vendored
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
import * as React from 'react';
|
||||||
|
import { SchemaModel } from '../../services/models';
|
||||||
|
export interface SchemaOptions {
|
||||||
|
showTitle?: boolean;
|
||||||
|
skipReadOnly?: boolean;
|
||||||
|
skipWriteOnly?: boolean;
|
||||||
|
}
|
||||||
|
export interface SchemaProps extends SchemaOptions {
|
||||||
|
schema: SchemaModel;
|
||||||
|
}
|
||||||
|
export declare class Schema extends React.Component<Partial<SchemaProps>> {
|
||||||
|
render(): JSX.Element;
|
||||||
|
}
|
5
lib/src/components/Schema/index.d.ts
vendored
Normal file
5
lib/src/components/Schema/index.d.ts
vendored
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
export * from './Schema';
|
||||||
|
export * from './ObjectSchema';
|
||||||
|
export * from './OneOfSchema';
|
||||||
|
export * from './ArraySchema';
|
||||||
|
export * from './DiscriminatorDropdown';
|
28
lib/src/components/SearchBox/SearchBox.d.ts
vendored
Normal file
28
lib/src/components/SearchBox/SearchBox.d.ts
vendored
Normal file
|
@ -0,0 +1,28 @@
|
||||||
|
import * as React from 'react';
|
||||||
|
import { IMenuItem } from '../../services/MenuStore';
|
||||||
|
import { SearchStore } from '../../services/SearchStore';
|
||||||
|
import { MenuItem } from '../SideMenu/MenuItem';
|
||||||
|
import { MarkerService } from '../../services/MarkerService';
|
||||||
|
import { SearchResult } from '../../services/SearchWorker.worker';
|
||||||
|
export interface SearchBoxProps {
|
||||||
|
search: SearchStore<string>;
|
||||||
|
marker: MarkerService;
|
||||||
|
getItemById: (id: string) => IMenuItem | undefined;
|
||||||
|
onActivate: (item: IMenuItem) => void;
|
||||||
|
className?: string;
|
||||||
|
}
|
||||||
|
export interface SearchBoxState {
|
||||||
|
results: SearchResult[];
|
||||||
|
term: string;
|
||||||
|
activeItemIdx: number;
|
||||||
|
}
|
||||||
|
export declare class SearchBox extends React.PureComponent<SearchBoxProps, SearchBoxState> {
|
||||||
|
activeItemRef: MenuItem | null;
|
||||||
|
constructor(props: any);
|
||||||
|
clearResults(term: string): void;
|
||||||
|
clear: () => void;
|
||||||
|
handleKeyDown: (event: React.KeyboardEvent<HTMLInputElement>) => void;
|
||||||
|
setResults(results: SearchResult[], term: string): void;
|
||||||
|
search: (event: React.ChangeEvent<HTMLInputElement>) => void;
|
||||||
|
render(): JSX.Element;
|
||||||
|
}
|
20
lib/src/components/SearchBox/styled.elements.d.ts
vendored
Normal file
20
lib/src/components/SearchBox/styled.elements.d.ts
vendored
Normal file
File diff suppressed because one or more lines are too long
14
lib/src/components/SecurityRequirement/SecuirityRequirement.d.ts
vendored
Normal file
14
lib/src/components/SecurityRequirement/SecuirityRequirement.d.ts
vendored
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
import * as React from 'react';
|
||||||
|
import { SecurityRequirementModel } from '../../services/models/SecurityRequirement';
|
||||||
|
export interface SecurityRequirementProps {
|
||||||
|
security: SecurityRequirementModel;
|
||||||
|
}
|
||||||
|
export declare class SecurityRequirement extends React.PureComponent<SecurityRequirementProps> {
|
||||||
|
render(): JSX.Element[];
|
||||||
|
}
|
||||||
|
export interface SecurityRequirementsProps {
|
||||||
|
securities: SecurityRequirementModel[];
|
||||||
|
}
|
||||||
|
export declare class SecurityRequirements extends React.PureComponent<SecurityRequirementsProps> {
|
||||||
|
render(): JSX.Element | null;
|
||||||
|
}
|
14
lib/src/components/SecurityRequirement/SecurityRequirement.d.ts
vendored
Normal file
14
lib/src/components/SecurityRequirement/SecurityRequirement.d.ts
vendored
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
import * as React from 'react';
|
||||||
|
import { SecurityRequirementModel } from '../../services/models/SecurityRequirement';
|
||||||
|
export interface SecurityRequirementProps {
|
||||||
|
security: SecurityRequirementModel;
|
||||||
|
}
|
||||||
|
export declare class SecurityRequirement extends React.PureComponent<SecurityRequirementProps> {
|
||||||
|
render(): JSX.Element;
|
||||||
|
}
|
||||||
|
export interface SecurityRequirementsProps {
|
||||||
|
securities: SecurityRequirementModel[];
|
||||||
|
}
|
||||||
|
export declare class SecurityRequirements extends React.PureComponent<SecurityRequirementsProps> {
|
||||||
|
render(): JSX.Element | null;
|
||||||
|
}
|
16
lib/src/components/SecuritySchemes/SecuritySchemes.d.ts
vendored
Normal file
16
lib/src/components/SecuritySchemes/SecuritySchemes.d.ts
vendored
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
import * as React from 'react';
|
||||||
|
import { SecuritySchemesModel } from '../../services/models';
|
||||||
|
import { OpenAPISecurityScheme } from '../../types';
|
||||||
|
export interface OAuthFlowProps {
|
||||||
|
type: string;
|
||||||
|
flow: OpenAPISecurityScheme['flows'][keyof OpenAPISecurityScheme['flows']];
|
||||||
|
}
|
||||||
|
export declare class OAuthFlow extends React.PureComponent<OAuthFlowProps> {
|
||||||
|
render(): JSX.Element;
|
||||||
|
}
|
||||||
|
export interface SecurityDefsProps {
|
||||||
|
securitySchemes: SecuritySchemesModel;
|
||||||
|
}
|
||||||
|
export declare class SecurityDefs extends React.PureComponent<SecurityDefsProps> {
|
||||||
|
render(): JSX.Element[];
|
||||||
|
}
|
6
lib/src/components/SelectOnClick/SelectOnClick.d.ts
vendored
Normal file
6
lib/src/components/SelectOnClick/SelectOnClick.d.ts
vendored
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
import * as React from 'react';
|
||||||
|
export declare class SelectOnClick extends React.PureComponent {
|
||||||
|
private child;
|
||||||
|
handleClick: () => void;
|
||||||
|
render(): JSX.Element;
|
||||||
|
}
|
20
lib/src/components/SideMenu/MenuItem.d.ts
vendored
Normal file
20
lib/src/components/SideMenu/MenuItem.d.ts
vendored
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
import * as React from 'react';
|
||||||
|
import { IMenuItem, OperationModel } from '../../services';
|
||||||
|
export interface MenuItemProps {
|
||||||
|
item: IMenuItem;
|
||||||
|
onActivate?: (item: IMenuItem) => void;
|
||||||
|
withoutChildren?: boolean;
|
||||||
|
}
|
||||||
|
export declare class MenuItem extends React.Component<MenuItemProps> {
|
||||||
|
ref: Element | null;
|
||||||
|
activate: (evt: React.MouseEvent<HTMLElement>) => void;
|
||||||
|
componentDidMount(): void;
|
||||||
|
componentDidUpdate(): void;
|
||||||
|
scrollIntoViewIfActive(): void;
|
||||||
|
saveRef: (ref: any) => void;
|
||||||
|
render(): JSX.Element;
|
||||||
|
}
|
||||||
|
export interface OperationMenuItemContentProps {
|
||||||
|
item: OperationModel;
|
||||||
|
className?: string;
|
||||||
|
}
|
13
lib/src/components/SideMenu/MenuItems.d.ts
vendored
Normal file
13
lib/src/components/SideMenu/MenuItems.d.ts
vendored
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
import * as React from 'react';
|
||||||
|
import { IMenuItem } from '../../services';
|
||||||
|
export interface MenuItemsProps {
|
||||||
|
items: IMenuItem[];
|
||||||
|
expanded?: boolean;
|
||||||
|
onActivate?: (item: IMenuItem) => void;
|
||||||
|
style?: React.CSSProperties;
|
||||||
|
root?: boolean;
|
||||||
|
className?: string;
|
||||||
|
}
|
||||||
|
export declare class MenuItems extends React.Component<MenuItemsProps> {
|
||||||
|
render(): JSX.Element;
|
||||||
|
}
|
11
lib/src/components/SideMenu/SideMenu.d.ts
vendored
Normal file
11
lib/src/components/SideMenu/SideMenu.d.ts
vendored
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
import * as React from 'react';
|
||||||
|
import { IMenuItem, MenuStore } from '../../services/MenuStore';
|
||||||
|
export declare class SideMenu extends React.Component<{
|
||||||
|
menu: MenuStore;
|
||||||
|
className?: string;
|
||||||
|
}> {
|
||||||
|
private _updateScroll?;
|
||||||
|
render(): JSX.Element;
|
||||||
|
activate: (item: IMenuItem) => void;
|
||||||
|
private saveScrollUpdate;
|
||||||
|
}
|
4
lib/src/components/SideMenu/index.d.ts
vendored
Normal file
4
lib/src/components/SideMenu/index.d.ts
vendored
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
export * from './MenuItem';
|
||||||
|
export * from './MenuItems';
|
||||||
|
export * from './SideMenu';
|
||||||
|
export * from './styled.elements';
|
41
lib/src/components/SideMenu/styled.elements.d.ts
vendored
Normal file
41
lib/src/components/SideMenu/styled.elements.d.ts
vendored
Normal file
File diff suppressed because one or more lines are too long
11
lib/src/components/SourceCode/SourceCode.d.ts
vendored
Normal file
11
lib/src/components/SourceCode/SourceCode.d.ts
vendored
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
import * as React from 'react';
|
||||||
|
export interface SourceCodeProps {
|
||||||
|
source: string;
|
||||||
|
lang: string;
|
||||||
|
}
|
||||||
|
export declare class SourceCode extends React.PureComponent<SourceCodeProps> {
|
||||||
|
render(): JSX.Element;
|
||||||
|
}
|
||||||
|
export declare class SourceCodeWithCopy extends React.PureComponent<SourceCodeProps> {
|
||||||
|
render(): JSX.Element;
|
||||||
|
}
|
3
lib/src/components/StickySidebar/ChevronSvg.d.ts
vendored
Normal file
3
lib/src/components/StickySidebar/ChevronSvg.d.ts
vendored
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
export declare const AnimatedChevronButton: ({ open }: {
|
||||||
|
open: boolean;
|
||||||
|
}) => JSX.Element;
|
16
lib/src/components/StickySidebar/StickyResponsiveSidebar.d.ts
vendored
Normal file
16
lib/src/components/StickySidebar/StickyResponsiveSidebar.d.ts
vendored
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
import * as React from 'react';
|
||||||
|
import { MenuStore } from '../../services/MenuStore';
|
||||||
|
import { RedocRawOptions } from '../../services/RedocNormalizedOptions';
|
||||||
|
export interface StickySidebarProps {
|
||||||
|
className?: string;
|
||||||
|
scrollYOffset?: RedocRawOptions['scrollYOffset'];
|
||||||
|
menu: MenuStore;
|
||||||
|
}
|
||||||
|
export declare class StickyResponsiveSidebar extends React.Component<StickySidebarProps> {
|
||||||
|
stickyElement: Element;
|
||||||
|
componentDidMount(): void;
|
||||||
|
componentWillUnmount(): void;
|
||||||
|
getScrollYOffset(options: any): string;
|
||||||
|
render(): JSX.Element;
|
||||||
|
private toggleNavMenu;
|
||||||
|
}
|
37
lib/src/components/StoreBuilder.d.ts
vendored
Normal file
37
lib/src/components/StoreBuilder.d.ts
vendored
Normal file
|
@ -0,0 +1,37 @@
|
||||||
|
import { Component } from 'react';
|
||||||
|
import { AppStore } from '../services/';
|
||||||
|
import { RedocRawOptions } from '../services/RedocNormalizedOptions';
|
||||||
|
export interface StoreBuilderProps {
|
||||||
|
specUrl?: string;
|
||||||
|
spec?: object;
|
||||||
|
store?: AppStore;
|
||||||
|
options?: RedocRawOptions;
|
||||||
|
onLoaded?: (e?: Error) => void;
|
||||||
|
children: (props: {
|
||||||
|
loading: boolean;
|
||||||
|
store?: AppStore;
|
||||||
|
}) => any;
|
||||||
|
}
|
||||||
|
export interface StoreBuilderState {
|
||||||
|
error?: Error;
|
||||||
|
loading: boolean;
|
||||||
|
resolvedSpec?: any;
|
||||||
|
prevSpec?: any;
|
||||||
|
prevSpecUrl?: string;
|
||||||
|
}
|
||||||
|
declare const Provider: import("react").ComponentType<import("react").ProviderProps<AppStore | undefined>>, Consumer: import("react").ComponentType<import("react").ConsumerProps<AppStore | undefined>>;
|
||||||
|
export { Provider as StoreProvider, Consumer as StoreConsumer };
|
||||||
|
export declare class StoreBuilder extends Component<StoreBuilderProps, StoreBuilderState> {
|
||||||
|
static getDerivedStateFromProps(nextProps: StoreBuilderProps, prevState: StoreBuilderState): {
|
||||||
|
loading: boolean;
|
||||||
|
resolvedSpec: null;
|
||||||
|
prevSpec: object | undefined;
|
||||||
|
prevSpecUrl: string | undefined;
|
||||||
|
} | null;
|
||||||
|
state: StoreBuilderState;
|
||||||
|
makeStore(spec: any, specUrl: any, options: any): AppStore | undefined;
|
||||||
|
componentDidMount(): void;
|
||||||
|
componentDidUpdate(): void;
|
||||||
|
load(): Promise<void>;
|
||||||
|
render(): any;
|
||||||
|
}
|
35
lib/src/components/StoreProvider.d.ts
vendored
Normal file
35
lib/src/components/StoreProvider.d.ts
vendored
Normal file
|
@ -0,0 +1,35 @@
|
||||||
|
import { Component } from 'react';
|
||||||
|
import { AppStore } from '../services/';
|
||||||
|
import { RedocRawOptions } from '../services/RedocNormalizedOptions';
|
||||||
|
export interface StoreProviderProps {
|
||||||
|
specUrl?: string;
|
||||||
|
spec?: object;
|
||||||
|
store?: AppStore;
|
||||||
|
options?: RedocRawOptions;
|
||||||
|
onLoaded?: (e?: Error) => void;
|
||||||
|
children: (props: {
|
||||||
|
loading: boolean;
|
||||||
|
store?: AppStore;
|
||||||
|
}) => any;
|
||||||
|
}
|
||||||
|
export interface StoreProviderState {
|
||||||
|
error?: Error;
|
||||||
|
loading: boolean;
|
||||||
|
resolvedSpec?: any;
|
||||||
|
prevSpec?: any;
|
||||||
|
prevSpecUrl?: string;
|
||||||
|
}
|
||||||
|
export declare class StoreProvider extends Component<StoreProviderProps, StoreProviderState> {
|
||||||
|
static getDerivedStateFromProps(nextProps: StoreProviderProps, prevState: StoreProviderState): {
|
||||||
|
loading: boolean;
|
||||||
|
resolvedSpec: null;
|
||||||
|
prevSpec: object | undefined;
|
||||||
|
prevSpecUrl: string | undefined;
|
||||||
|
} | null;
|
||||||
|
state: StoreProviderState;
|
||||||
|
makeStore(spec: any, specUrl: any, options: any): AppStore | undefined;
|
||||||
|
componentDidMount(): void;
|
||||||
|
componentDidUpdate(): void;
|
||||||
|
load(): Promise<void>;
|
||||||
|
render(): any;
|
||||||
|
}
|
1
lib/src/components/__tests__/DiscriminatorDropdown.test.d.ts
vendored
Normal file
1
lib/src/components/__tests__/DiscriminatorDropdown.test.d.ts
vendored
Normal file
|
@ -0,0 +1 @@
|
||||||
|
export {};
|
1
lib/src/components/__tests__/JsonViewer.d.ts
vendored
Normal file
1
lib/src/components/__tests__/JsonViewer.d.ts
vendored
Normal file
|
@ -0,0 +1 @@
|
||||||
|
export {};
|
1
lib/src/components/__tests__/OneOfSchema.test.d.ts
vendored
Normal file
1
lib/src/components/__tests__/OneOfSchema.test.d.ts
vendored
Normal file
|
@ -0,0 +1 @@
|
||||||
|
export {};
|
29
lib/src/components/index.d.ts
vendored
Normal file
29
lib/src/components/index.d.ts
vendored
Normal file
|
@ -0,0 +1,29 @@
|
||||||
|
export * from './RedocStandalone';
|
||||||
|
export * from './Redoc/Redoc';
|
||||||
|
export * from './ApiInfo/ApiInfo';
|
||||||
|
export * from './ApiLogo/ApiLogo';
|
||||||
|
export * from './ContentItems/ContentItems';
|
||||||
|
export { ApiContentWrap, BackgroundStub, RedocWrap } from './Redoc/styled.elements';
|
||||||
|
export * from './Schema/';
|
||||||
|
export * from './SearchBox/SearchBox';
|
||||||
|
export * from './Operation/Operation';
|
||||||
|
export * from './Loading/Loading';
|
||||||
|
export * from './RedocStandalone';
|
||||||
|
export * from './JsonViewer';
|
||||||
|
export * from './Markdown/Markdown';
|
||||||
|
export { StyledMarkdownBlock } from './Markdown/styled.elements';
|
||||||
|
export * from './SecuritySchemes/SecuritySchemes';
|
||||||
|
export * from './Responses/Response';
|
||||||
|
export * from './Responses/ResponseDetails';
|
||||||
|
export * from './Responses/ResponseHeaders';
|
||||||
|
export * from './Responses/ResponsesList';
|
||||||
|
export * from './Responses/ResponseTitle';
|
||||||
|
export * from './ResponseSamples/ResponseSamples';
|
||||||
|
export * from './PayloadSamples/PayloadSamples';
|
||||||
|
export * from './MediaTypeSwitch/MediaTypesSwitch';
|
||||||
|
export * from './ErrorBoundary';
|
||||||
|
export * from './StoreBuilder';
|
||||||
|
export * from './OptionsProvider';
|
||||||
|
export * from './SideMenu/';
|
||||||
|
export * from './StickySidebar/StickyResponsiveSidebar';
|
||||||
|
export * from './SearchBox/SearchBox';
|
5
lib/src/components/testProviders.d.ts
vendored
Normal file
5
lib/src/components/testProviders.d.ts
vendored
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
import * as React from 'react';
|
||||||
|
export default class TestThemeProvider extends React.Component {
|
||||||
|
render(): JSX.Element;
|
||||||
|
}
|
||||||
|
export declare function withTheme(children: any): JSX.Element;
|
6
lib/src/index.d.ts
vendored
Normal file
6
lib/src/index.d.ts
vendored
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
export * from './components';
|
||||||
|
export { MiddlePanel, Row, RightPanel, Section } from './common-elements/';
|
||||||
|
export * from './services';
|
||||||
|
export * from './utils';
|
||||||
|
export * from './styled-components';
|
||||||
|
export { default as styled } from './styled-components';
|
7
lib/src/polyfills.d.ts
vendored
Normal file
7
lib/src/polyfills.d.ts
vendored
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
import 'core-js/es6/promise';
|
||||||
|
import 'core-js/fn/array/find';
|
||||||
|
import 'core-js/fn/object/assign';
|
||||||
|
import 'core-js/fn/string/ends-with';
|
||||||
|
import 'core-js/fn/string/starts-with';
|
||||||
|
import 'core-js/es6/map';
|
||||||
|
import 'core-js/es6/symbol';
|
42
lib/src/services/AppStore.d.ts
vendored
Normal file
42
lib/src/services/AppStore.d.ts
vendored
Normal file
|
@ -0,0 +1,42 @@
|
||||||
|
import { OpenAPISpec } from '../types';
|
||||||
|
import { MarkerService } from './MarkerService';
|
||||||
|
import { MenuStore } from './MenuStore';
|
||||||
|
import { SpecStore } from './models';
|
||||||
|
import { RedocNormalizedOptions, RedocRawOptions } from './RedocNormalizedOptions';
|
||||||
|
import { SearchStore } from './SearchStore';
|
||||||
|
export interface StoreState {
|
||||||
|
menu: {
|
||||||
|
activeItemIdx: number;
|
||||||
|
};
|
||||||
|
spec: {
|
||||||
|
url?: string;
|
||||||
|
data: any;
|
||||||
|
};
|
||||||
|
searchIndex: any;
|
||||||
|
options: RedocRawOptions;
|
||||||
|
}
|
||||||
|
export declare function createStore(spec: object, specUrl: string | undefined, options?: RedocRawOptions): Promise<AppStore>;
|
||||||
|
export declare class AppStore {
|
||||||
|
/**
|
||||||
|
* deserialize store
|
||||||
|
* **SUPER HACKY AND NOT OPTIMAL IMPLEMENTATION**
|
||||||
|
*/
|
||||||
|
static fromJS(state: StoreState): AppStore;
|
||||||
|
menu: MenuStore;
|
||||||
|
spec: SpecStore;
|
||||||
|
rawOptions: RedocRawOptions;
|
||||||
|
options: RedocNormalizedOptions;
|
||||||
|
search?: SearchStore<string>;
|
||||||
|
marker: MarkerService;
|
||||||
|
private scroll;
|
||||||
|
private disposer;
|
||||||
|
constructor(spec: OpenAPISpec, specUrl?: string, options?: RedocRawOptions, createSearchIndex?: boolean);
|
||||||
|
onDidMount(): void;
|
||||||
|
dispose(): void;
|
||||||
|
/**
|
||||||
|
* serializes store
|
||||||
|
* **SUPER HACKY AND NOT OPTIMAL IMPLEMENTATION**
|
||||||
|
*/
|
||||||
|
toJS(): Promise<StoreState>;
|
||||||
|
private updateMarkOnMenu;
|
||||||
|
}
|
8
lib/src/services/ClipboardService.d.ts
vendored
Normal file
8
lib/src/services/ClipboardService.d.ts
vendored
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
export declare class ClipboardService {
|
||||||
|
static isSupported(): boolean;
|
||||||
|
static selectElement(element: any): void;
|
||||||
|
static deselect(): void;
|
||||||
|
static copySelected(): boolean;
|
||||||
|
static copyElement(element: any): boolean;
|
||||||
|
static copyCustom(text: string): boolean;
|
||||||
|
}
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user