redoc 2.1.4 → 2.2.0
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/CHANGELOG.md +23 -0
- package/README.md +2 -1
- package/bundles/756674defce81e90acea.worker.js.LICENSE.txt +1 -1
- package/bundles/redoc.browser.lib.js +5 -5
- package/bundles/redoc.browser.lib.js.LICENSE.txt +1 -1
- package/bundles/redoc.browser.lib.js.map +1 -1
- package/bundles/redoc.lib.js +5 -5
- package/bundles/redoc.lib.js.LICENSE.txt +1 -1
- package/bundles/redoc.lib.js.map +1 -1
- package/bundles/redoc.standalone.js +132 -132
- package/bundles/redoc.standalone.js.LICENSE.txt +28 -21
- package/bundles/redoc.standalone.js.map +1 -1
- package/package.json +15 -17
- package/typings/common-elements/Tooltip.d.ts +2 -2
- package/typings/common-elements/linkify.d.ts +3 -3
- package/typings/common-elements/perfect-scrollbar.d.ts +3 -3
- package/typings/common-elements/shelfs.d.ts +1 -0
- package/typings/components/ApiInfo/ApiInfo.d.ts +1 -1
- package/typings/components/ApiLogo/ApiLogo.d.ts +1 -1
- package/typings/components/ApiLogo/styled.elements.d.ts +2 -2
- package/typings/components/CallbackSamples/CallbackReqSamples.d.ts +1 -1
- package/typings/components/CallbackSamples/CallbackSamples.d.ts +1 -1
- package/typings/components/Callbacks/CallbackDetails.d.ts +1 -1
- package/typings/components/Callbacks/CallbackOperation.d.ts +1 -1
- package/typings/components/Callbacks/CallbackTitle.d.ts +2 -2
- package/typings/components/Callbacks/CallbacksList.d.ts +1 -1
- package/typings/components/Callbacks/styled.elements.d.ts +1 -1
- package/typings/components/ContentItems/ContentItems.d.ts +4 -4
- package/typings/components/Endpoint/Endpoint.d.ts +1 -1
- package/typings/components/ErrorBoundary.d.ts +1 -1
- package/typings/components/ExternalDocumentation/ExternalDocumentation.d.ts +1 -1
- package/typings/components/Fields/ArrayItemDetails.d.ts +2 -2
- package/typings/components/Fields/EnumValues.d.ts +1 -1
- package/typings/components/Fields/Examples.d.ts +2 -2
- package/typings/components/Fields/Extensions.d.ts +1 -1
- package/typings/components/Fields/Field.d.ts +1 -1
- package/typings/components/Fields/FieldConstraints.d.ts +1 -1
- package/typings/components/Fields/FieldDetails.d.ts +1 -1
- package/typings/components/Fields/Pattern.d.ts +2 -2
- package/typings/components/GenericChildrenSwitcher/GenericChildrenSwitcher.d.ts +1 -1
- package/typings/components/JsonViewer/JsonViewer.d.ts +2 -2
- package/typings/components/Loading/Loading.d.ts +1 -1
- package/typings/components/Loading/Spinner.svg.d.ts +2 -2
- package/typings/components/Markdown/AdvancedMarkdown.d.ts +2 -2
- package/typings/components/Markdown/Markdown.d.ts +1 -1
- package/typings/components/Markdown/SanitizedMdBlock.d.ts +2 -2
- package/typings/components/MediaTypeSwitch/MediaTypesSwitch.d.ts +1 -1
- package/typings/components/Parameters/Parameters.d.ts +1 -1
- package/typings/components/Parameters/ParametersGroup.d.ts +1 -1
- package/typings/components/PayloadSamples/Example.d.ts +3 -3
- package/typings/components/PayloadSamples/ExampleValue.d.ts +2 -2
- package/typings/components/PayloadSamples/MediaTypeSamples.d.ts +1 -1
- package/typings/components/PayloadSamples/PayloadSamples.d.ts +1 -1
- package/typings/components/Redoc/Redoc.d.ts +1 -1
- package/typings/components/RedocStandalone.d.ts +2 -2
- package/typings/components/RequestSamples/RequestSamples.d.ts +1 -1
- package/typings/components/ResponseSamples/ResponseSamples.d.ts +1 -1
- package/typings/components/Responses/ResponseDetails.d.ts +1 -1
- package/typings/components/Responses/ResponseHeaders.d.ts +1 -1
- package/typings/components/Responses/ResponsesList.d.ts +1 -1
- package/typings/components/Schema/ArraySchema.d.ts +1 -1
- package/typings/components/Schema/DiscriminatorDropdown.d.ts +1 -1
- package/typings/components/Schema/ObjectSchema.d.ts +2 -2
- package/typings/components/Schema/OneOfSchema.d.ts +2 -2
- package/typings/components/Schema/RecursiveSchema.d.ts +2 -2
- package/typings/components/Schema/Schema.d.ts +1 -1
- package/typings/components/SchemaDefinition/SchemaDefinition.d.ts +1 -1
- package/typings/components/SearchBox/SearchBox.d.ts +3 -1
- package/typings/components/SearchBox/styled.elements.d.ts +2 -2
- package/typings/components/SecurityRequirement/OAuthFlow.d.ts +1 -1
- package/typings/components/SecurityRequirement/SecurityDetails.d.ts +2 -2
- package/typings/components/SecurityRequirement/SecurityHeader.d.ts +2 -2
- package/typings/components/SecurityRequirement/SecurityRequirement.d.ts +2 -2
- package/typings/components/SecuritySchemes/SecuritySchemes.d.ts +1 -1
- package/typings/components/SelectOnClick/SelectOnClick.d.ts +2 -2
- package/typings/components/SideMenu/MenuItem.d.ts +2 -2
- package/typings/components/SideMenu/MenuItems.d.ts +1 -1
- package/typings/components/SideMenu/SideMenu.d.ts +3 -1
- package/typings/components/SideMenu/styled.elements.d.ts +1 -0
- package/typings/components/SourceCode/SourceCode.d.ts +3 -3
- package/typings/components/StickySidebar/ChevronSvg.d.ts +2 -2
- package/typings/components/StickySidebar/StickyResponsiveSidebar.d.ts +2 -2
- package/typings/services/models/Operation.d.ts +2 -1
- package/typings/types/open-api.d.ts +6 -0
- package/typings/types/open-api.ts +7 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "redoc",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.2.0",
|
|
4
4
|
"description": "ReDoc",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -55,15 +55,14 @@
|
|
|
55
55
|
"build:demo": "webpack --mode=production --config demo/webpack.config.ts",
|
|
56
56
|
"publish-cdn": "scripts/publish-cdn.sh",
|
|
57
57
|
"deploy:demo": "aws s3 sync demo/dist s3://production-redoc-demo --acl=public-read",
|
|
58
|
-
"license-check": "license-checker --production --onlyAllow 'MIT;ISC;Apache-2.0;BSD;BSD-2-Clause;BSD-3-Clause;CC-BY-4.0;Python-2.0' --summary",
|
|
58
|
+
"license-check": "license-checker --production --onlyAllow 'MIT;ISC;Apache-2.0;BSD;BSD-2-Clause;BSD-3-Clause;CC-BY-4.0;CC0-1.0;Python-2.0 ' --summary",
|
|
59
59
|
"docker:build": "docker build -f config/docker/Dockerfile -t redoc .",
|
|
60
60
|
"prepare": "husky install",
|
|
61
61
|
"pre-commit": "pretty-quick --staged && npm run lint"
|
|
62
62
|
},
|
|
63
63
|
"devDependencies": {
|
|
64
64
|
"@cypress/webpack-preprocessor": "^5.17.1",
|
|
65
|
-
"@
|
|
66
|
-
"@size-limit/preset-app": "^8.2.6",
|
|
65
|
+
"@size-limit/file": "^11.1.4",
|
|
67
66
|
"@types/chai": "^4.2.18",
|
|
68
67
|
"@types/dompurify": "^2.2.2",
|
|
69
68
|
"@types/enzyme": "^3.10.5",
|
|
@@ -76,8 +75,8 @@
|
|
|
76
75
|
"@types/node": "^15.6.1",
|
|
77
76
|
"@types/prismjs": "^1.16.5",
|
|
78
77
|
"@types/prop-types": "^15.7.3",
|
|
79
|
-
"@types/react": "^
|
|
80
|
-
"@types/react-dom": "^
|
|
78
|
+
"@types/react": "^18.0.0",
|
|
79
|
+
"@types/react-dom": "^18.0.0",
|
|
81
80
|
"@types/styled-components": "^5.1.1",
|
|
82
81
|
"@types/tapable": "^2.2.2",
|
|
83
82
|
"@types/webpack": "^5.28.0",
|
|
@@ -85,7 +84,6 @@
|
|
|
85
84
|
"@types/yargs": "^17.0.0",
|
|
86
85
|
"@typescript-eslint/eslint-plugin": "^5.55.0",
|
|
87
86
|
"@typescript-eslint/parser": "^5.55.0",
|
|
88
|
-
"@wojtekmaj/enzyme-adapter-react-17": "^0.8.0",
|
|
89
87
|
"beautify-benchmark": "^0.2.4",
|
|
90
88
|
"conventional-changelog-cli": "^3.0.0",
|
|
91
89
|
"copy-webpack-plugin": "^9.0.0",
|
|
@@ -97,12 +95,13 @@
|
|
|
97
95
|
"esbuild-loader": "^3.0.1",
|
|
98
96
|
"eslint": "^7.27.0",
|
|
99
97
|
"eslint-plugin-import": "^2.23.4",
|
|
100
|
-
"eslint-plugin-react": "^7.
|
|
101
|
-
"eslint-plugin-react-hooks": "^4.2
|
|
98
|
+
"eslint-plugin-react": "^7.34.2",
|
|
99
|
+
"eslint-plugin-react-hooks": "^4.6.2",
|
|
102
100
|
"fork-ts-checker-webpack-plugin": "^6.2.10",
|
|
103
101
|
"html-webpack-plugin": "^5.3.1",
|
|
104
102
|
"husky": "^7.0.0",
|
|
105
103
|
"jest": "^29.7.0",
|
|
104
|
+
"jest-environment-jsdom": "^29.7.0",
|
|
106
105
|
"js-yaml": "^4.1.0",
|
|
107
106
|
"license-checker": "^25.0.1",
|
|
108
107
|
"lodash.noop": "^3.0.1",
|
|
@@ -111,18 +110,17 @@
|
|
|
111
110
|
"prettier": "^2.3.2",
|
|
112
111
|
"pretty-quick": "^3.0.0",
|
|
113
112
|
"raf": "^3.4.1",
|
|
114
|
-
"react": "^
|
|
115
|
-
"react-dom": "^
|
|
116
|
-
"react-hot-loader": "^4.13.0",
|
|
113
|
+
"react": "^18.0.0",
|
|
114
|
+
"react-dom": "^18.0.0",
|
|
117
115
|
"rimraf": "^3.0.2",
|
|
118
116
|
"shelljs": "^0.8.4",
|
|
119
|
-
"size-limit": "^
|
|
117
|
+
"size-limit": "^11.1.4",
|
|
120
118
|
"style-loader": "^3.3.1",
|
|
121
119
|
"styled-components": "^5.3.0",
|
|
122
120
|
"ts-jest": "^29.1.1",
|
|
123
121
|
"ts-node": "^10.9.1",
|
|
124
122
|
"tslib": "^2.4.0",
|
|
125
|
-
"typescript": "^
|
|
123
|
+
"typescript": "^4.9.0",
|
|
126
124
|
"unfetch": "^4.2.0",
|
|
127
125
|
"url": "^0.11.1",
|
|
128
126
|
"webpack": "^5.88.2",
|
|
@@ -139,24 +137,24 @@
|
|
|
139
137
|
"styled-components": "^4.1.1 || ^5.1.1 || ^6.0.5"
|
|
140
138
|
},
|
|
141
139
|
"dependencies": {
|
|
140
|
+
"@cfaester/enzyme-adapter-react-18": "^0.8.0",
|
|
142
141
|
"@redocly/openapi-core": "^1.4.0",
|
|
143
142
|
"classnames": "^2.3.2",
|
|
144
143
|
"decko": "^1.2.0",
|
|
145
144
|
"dompurify": "^3.0.6",
|
|
146
145
|
"eventemitter3": "^5.0.1",
|
|
147
|
-
"jest-environment-jsdom": "^29.7.0",
|
|
148
146
|
"json-pointer": "^0.6.2",
|
|
149
147
|
"lunr": "^2.3.9",
|
|
150
148
|
"mark.js": "^8.11.1",
|
|
151
149
|
"marked": "^4.3.0",
|
|
152
|
-
"mobx-react": "^
|
|
150
|
+
"mobx-react": "^9.1.1",
|
|
153
151
|
"openapi-sampler": "^1.5.0",
|
|
154
152
|
"path-browserify": "^1.0.1",
|
|
155
153
|
"perfect-scrollbar": "^1.5.5",
|
|
156
154
|
"polished": "^4.2.2",
|
|
157
155
|
"prismjs": "^1.29.0",
|
|
158
156
|
"prop-types": "^15.8.1",
|
|
159
|
-
"react-tabs": "^
|
|
157
|
+
"react-tabs": "^6.0.2",
|
|
160
158
|
"slugify": "~1.4.7",
|
|
161
159
|
"stickyfill": "^1.1.1",
|
|
162
160
|
"swagger2openapi": "^7.0.8",
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
export interface TooltipProps {
|
|
2
|
+
export interface TooltipProps extends React.PropsWithChildren<any> {
|
|
3
3
|
open: boolean;
|
|
4
4
|
title: string;
|
|
5
5
|
}
|
|
6
6
|
export declare class Tooltip extends React.Component<TooltipProps> {
|
|
7
|
-
render(): JSX.Element;
|
|
7
|
+
render(): React.JSX.Element;
|
|
8
8
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
import * as React from 'react';
|
|
2
2
|
export declare const linkifyMixin: (className: any) => import("styled-components").FlattenInterpolation<import("styled-components").ThemedStyledProps<object, import("../theme").ResolvedThemeInterface>>;
|
|
3
3
|
export declare function Link(props: {
|
|
4
4
|
to: string;
|
|
5
5
|
className?: string;
|
|
6
6
|
children?: any;
|
|
7
|
-
}): JSX.Element | null;
|
|
7
|
+
}): React.JSX.Element | null;
|
|
8
8
|
export declare function ShareLink(props: {
|
|
9
9
|
to: string;
|
|
10
|
-
}): JSX.Element;
|
|
10
|
+
}): React.JSX.Element;
|
|
@@ -5,15 +5,15 @@ export interface PerfectScrollbarProps {
|
|
|
5
5
|
className?: string;
|
|
6
6
|
updateFn?: (fn: any) => void;
|
|
7
7
|
}
|
|
8
|
-
export declare class PerfectScrollbar extends React.Component<PerfectScrollbarProps
|
|
8
|
+
export declare class PerfectScrollbar extends React.Component<React.PropsWithChildren<PerfectScrollbarProps>> {
|
|
9
9
|
private _container;
|
|
10
10
|
private inst;
|
|
11
11
|
componentDidMount(): void;
|
|
12
12
|
componentDidUpdate(): void;
|
|
13
13
|
componentWillUnmount(): void;
|
|
14
14
|
handleRef: (ref: any) => void;
|
|
15
|
-
render(): JSX.Element;
|
|
15
|
+
render(): React.JSX.Element;
|
|
16
16
|
}
|
|
17
17
|
export declare function PerfectScrollbarWrap(props: PerfectScrollbarProps & {
|
|
18
18
|
children: JSX.Element[] | JSX.Element;
|
|
19
|
-
}): JSX.Element;
|
|
19
|
+
}): React.JSX.Element;
|
|
@@ -9,4 +9,5 @@ export declare const ShelfIcon: import("styled-components").StyledComponent<(pro
|
|
|
9
9
|
}) => JSX.Element, import("../theme").ResolvedThemeInterface, {}, never>;
|
|
10
10
|
export declare const Badge: import("styled-components").StyledComponent<"span", import("../theme").ResolvedThemeInterface, {
|
|
11
11
|
type: string;
|
|
12
|
+
color?: string | undefined;
|
|
12
13
|
}, never>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import * as React from 'react';
|
|
2
2
|
export declare const LogoImgEl: import("styled-components").StyledComponent<"img", import("../../theme").ResolvedThemeInterface, {}, never>;
|
|
3
3
|
export declare const LogoWrap: import("styled-components").StyledComponent<"div", import("../../theme").ResolvedThemeInterface, {}, never>;
|
|
4
|
-
export declare const LinkWrap: (url: any) => (Component: any) => JSX.Element;
|
|
4
|
+
export declare const LinkWrap: (url: any) => (Component: any) => React.JSX.Element;
|
|
@@ -6,6 +6,6 @@ export interface PayloadSampleProps {
|
|
|
6
6
|
renderDropdown: (props: DropdownProps) => JSX.Element;
|
|
7
7
|
}
|
|
8
8
|
export declare class CallbackPayloadSample extends React.Component<PayloadSampleProps> {
|
|
9
|
-
render(): JSX.Element | null;
|
|
9
|
+
render(): React.JSX.Element | null;
|
|
10
10
|
}
|
|
11
11
|
export declare const PayloadSampleWrapper: import("styled-components").StyledComponent<"div", import("../../theme").ResolvedThemeInterface, {}, never>;
|
|
@@ -8,6 +8,6 @@ export declare class CallbackSamples extends React.Component<CallbackSamplesProp
|
|
|
8
8
|
static contextType: React.Context<RedocNormalizedOptions>;
|
|
9
9
|
context: RedocNormalizedOptions;
|
|
10
10
|
private renderDropdown;
|
|
11
|
-
render(): JSX.Element | null;
|
|
11
|
+
render(): React.JSX.Element | null;
|
|
12
12
|
}
|
|
13
13
|
export declare const SamplesWrapper: import("styled-components").StyledComponent<"div", import("../../theme").ResolvedThemeInterface, {}, never>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import * as React from 'react';
|
|
2
2
|
export interface CallbackTitleProps {
|
|
3
3
|
name: string;
|
|
4
4
|
opened?: boolean;
|
|
@@ -7,4 +7,4 @@ export interface CallbackTitleProps {
|
|
|
7
7
|
className?: string;
|
|
8
8
|
onClick?: () => void;
|
|
9
9
|
}
|
|
10
|
-
export declare const CallbackTitle: (props: CallbackTitleProps) => JSX.Element;
|
|
10
|
+
export declare const CallbackTitle: (props: CallbackTitleProps) => React.JSX.Element;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
export declare const StyledCallbackTitle: import("styled-components").StyledComponent<(props: import("./CallbackTitle").CallbackTitleProps) => JSX.Element, import("../../theme").ResolvedThemeInterface, {}, never>;
|
|
2
|
+
export declare const StyledCallbackTitle: import("styled-components").StyledComponent<(props: import("./CallbackTitle").CallbackTitleProps) => import("react").JSX.Element, import("../../theme").ResolvedThemeInterface, {}, never>;
|
|
3
3
|
export declare const CallbackDetailsWrap: import("styled-components").StyledComponent<"div", import("../../theme").ResolvedThemeInterface, {}, never>;
|
|
@@ -4,19 +4,19 @@ import type { OperationModel } from '../../services/models';
|
|
|
4
4
|
export declare class ContentItems extends React.Component<{
|
|
5
5
|
items: ContentItemModel[];
|
|
6
6
|
}> {
|
|
7
|
-
render(): JSX.Element[] | null;
|
|
7
|
+
render(): React.JSX.Element[] | null;
|
|
8
8
|
}
|
|
9
9
|
export interface ContentItemProps {
|
|
10
10
|
item: ContentItemModel;
|
|
11
11
|
}
|
|
12
12
|
export declare class ContentItem extends React.Component<ContentItemProps> {
|
|
13
|
-
render(): JSX.Element;
|
|
13
|
+
render(): React.JSX.Element;
|
|
14
14
|
}
|
|
15
15
|
export declare class SectionItem extends React.Component<ContentItemProps> {
|
|
16
|
-
render(): JSX.Element;
|
|
16
|
+
render(): React.JSX.Element;
|
|
17
17
|
}
|
|
18
18
|
export declare class OperationItem extends React.Component<{
|
|
19
19
|
item: OperationModel;
|
|
20
20
|
}> {
|
|
21
|
-
render(): JSX.Element;
|
|
21
|
+
render(): React.JSX.Element;
|
|
22
22
|
}
|
|
@@ -10,5 +10,5 @@ export declare class EnumValues extends React.PureComponent<EnumValuesProps, Enu
|
|
|
10
10
|
state: EnumValuesState;
|
|
11
11
|
static contextType: React.Context<import("../../services/RedocNormalizedOptions").RedocNormalizedOptions>;
|
|
12
12
|
private toggle;
|
|
13
|
-
render(): JSX.Element | null;
|
|
13
|
+
render(): React.JSX.Element | null;
|
|
14
14
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { FieldProps } from './Field';
|
|
3
|
-
export declare const FieldDetailsComponent: (props: FieldProps) => JSX.Element;
|
|
3
|
+
export declare const FieldDetailsComponent: (props: FieldProps) => React.JSX.Element;
|
|
4
4
|
export declare const FieldDetails: React.NamedExoticComponent<FieldProps>;
|
|
@@ -18,5 +18,5 @@ export interface GenericChildrenSwitcherState {
|
|
|
18
18
|
export declare class GenericChildrenSwitcher<T> extends React.Component<GenericChildrenSwitcherProps<T>, GenericChildrenSwitcherState> {
|
|
19
19
|
constructor(props: any);
|
|
20
20
|
switchItem: ({ idx }: DropdownOption) => void;
|
|
21
|
-
render(): JSX.Element | null;
|
|
21
|
+
render(): React.JSX.Element | null;
|
|
22
22
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
import * as React from 'react';
|
|
2
2
|
export interface JsonProps {
|
|
3
3
|
data: any;
|
|
4
4
|
className?: string;
|
|
5
5
|
}
|
|
6
|
-
export declare const JsonViewer: import("styled-components").StyledComponent<(props: JsonProps) => JSX.Element, import("../../theme").ResolvedThemeInterface, {}, never>;
|
|
6
|
+
export declare const JsonViewer: import("styled-components").StyledComponent<(props: JsonProps) => React.JSX.Element, import("../../theme").ResolvedThemeInterface, {}, never>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
import * as React from 'react';
|
|
2
2
|
export declare const Spinner: import("styled-components").StyledComponent<(props: {
|
|
3
3
|
className?: string;
|
|
4
4
|
color: string;
|
|
5
|
-
}) => JSX.Element, import("../../theme").ResolvedThemeInterface, {}, never>;
|
|
5
|
+
}) => React.JSX.Element, import("../../theme").ResolvedThemeInterface, {}, never>;
|
|
@@ -6,6 +6,6 @@ export interface AdvancedMarkdownProps extends BaseMarkdownProps {
|
|
|
6
6
|
parentId?: string;
|
|
7
7
|
}
|
|
8
8
|
export declare class AdvancedMarkdown extends React.Component<AdvancedMarkdownProps> {
|
|
9
|
-
render(): JSX.Element;
|
|
10
|
-
renderWithOptionsAndStore(options: RedocNormalizedOptions, store?: AppStore): JSX.Element[] | null;
|
|
9
|
+
render(): React.JSX.Element;
|
|
10
|
+
renderWithOptionsAndStore(options: RedocNormalizedOptions, store?: AppStore): React.JSX.Element[] | null;
|
|
11
11
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
import * as React from 'react';
|
|
2
2
|
import { StylingMarkdownProps } from './Markdown';
|
|
3
3
|
export declare function SanitizedMarkdownHTML({ inline, compact, ...rest }: StylingMarkdownProps & {
|
|
4
4
|
html: string;
|
|
5
5
|
className?: string;
|
|
6
6
|
'data-role'?: string;
|
|
7
|
-
}): JSX.Element;
|
|
7
|
+
}): React.JSX.Element;
|
|
@@ -7,7 +7,7 @@ export interface ParametersProps {
|
|
|
7
7
|
}
|
|
8
8
|
export declare class Parameters extends React.PureComponent<ParametersProps> {
|
|
9
9
|
orderParams(params: FieldModel[]): Record<string, FieldModel[]>;
|
|
10
|
-
render(): JSX.Element | null;
|
|
10
|
+
render(): React.JSX.Element | null;
|
|
11
11
|
}
|
|
12
12
|
export declare function BodyContent(props: {
|
|
13
13
|
content: MediaContentModel;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
import * as React from 'react';
|
|
2
2
|
import { ExampleModel } from '../../services/models';
|
|
3
3
|
export interface ExampleProps {
|
|
4
4
|
example: ExampleModel;
|
|
5
5
|
mimeType: string;
|
|
6
6
|
}
|
|
7
|
-
export declare function Example({ example, mimeType }: ExampleProps): JSX.Element;
|
|
8
|
-
export declare function ExternalExample({ example, mimeType }: ExampleProps): JSX.Element;
|
|
7
|
+
export declare function Example({ example, mimeType }: ExampleProps): React.JSX.Element;
|
|
8
|
+
export declare function ExternalExample({ example, mimeType }: ExampleProps): React.JSX.Element;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
import * as React from 'react';
|
|
2
2
|
export interface ExampleValueProps {
|
|
3
3
|
value: any;
|
|
4
4
|
mimeType: string;
|
|
5
5
|
}
|
|
6
|
-
export declare function ExampleValue({ value, mimeType }: ExampleValueProps): JSX.Element;
|
|
6
|
+
export declare function ExampleValue({ value, mimeType }: ExampleValueProps): React.JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import * as React from 'react';
|
|
2
2
|
import { RedocRawOptions } from '../services/RedocNormalizedOptions';
|
|
3
3
|
export interface RedocStandaloneProps {
|
|
4
4
|
spec?: object;
|
|
@@ -6,4 +6,4 @@ export interface RedocStandaloneProps {
|
|
|
6
6
|
options?: RedocRawOptions;
|
|
7
7
|
onLoaded?: (e?: Error) => any;
|
|
8
8
|
}
|
|
9
|
-
export declare const RedocStandalone: (props: RedocStandaloneProps) => JSX.Element;
|
|
9
|
+
export declare const RedocStandalone: (props: RedocStandaloneProps) => React.JSX.Element;
|
|
@@ -7,5 +7,5 @@ export declare class RequestSamples extends React.Component<RequestSamplesProps>
|
|
|
7
7
|
static contextType: React.Context<RedocNormalizedOptions>;
|
|
8
8
|
context: RedocNormalizedOptions;
|
|
9
9
|
operation: OperationModel;
|
|
10
|
-
render(): JSX.Element | null;
|
|
10
|
+
render(): React.JSX.Element | null;
|
|
11
11
|
}
|
|
@@ -6,6 +6,6 @@ export declare class DiscriminatorDropdown extends React.Component<{
|
|
|
6
6
|
enumValues: string[];
|
|
7
7
|
}> {
|
|
8
8
|
sortOptions(options: DropdownOption[], enumValues: string[]): void;
|
|
9
|
-
render(): JSX.Element | null;
|
|
9
|
+
render(): React.JSX.Element | null;
|
|
10
10
|
changeActiveChild: (option: DropdownOption) => void;
|
|
11
11
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import * as React from 'react';
|
|
2
2
|
import { SchemaModel } from '../../services/models';
|
|
3
3
|
import { SchemaProps } from './Schema';
|
|
4
4
|
export interface ObjectSchemaProps extends SchemaProps {
|
|
@@ -7,4 +7,4 @@ export interface ObjectSchemaProps extends SchemaProps {
|
|
|
7
7
|
parentSchema: SchemaModel;
|
|
8
8
|
};
|
|
9
9
|
}
|
|
10
|
-
export declare const ObjectSchema: ({ schema: { fields, title }, showTitle, discriminator, skipReadOnly, skipWriteOnly, level, }: ObjectSchemaProps) => JSX.Element;
|
|
10
|
+
export declare const ObjectSchema: ({ schema: { fields, title }, showTitle, discriminator, skipReadOnly, skipWriteOnly, level, }: ObjectSchemaProps) => React.JSX.Element;
|
|
@@ -7,9 +7,9 @@ export interface OneOfButtonProps {
|
|
|
7
7
|
schema: SchemaModel;
|
|
8
8
|
}
|
|
9
9
|
export declare class OneOfButton extends React.Component<OneOfButtonProps> {
|
|
10
|
-
render(): JSX.Element;
|
|
10
|
+
render(): React.JSX.Element;
|
|
11
11
|
activateOneOf: () => void;
|
|
12
12
|
}
|
|
13
13
|
export declare class OneOfSchema extends React.Component<SchemaProps> {
|
|
14
|
-
render(): JSX.Element | null;
|
|
14
|
+
render(): React.JSX.Element | null;
|
|
15
15
|
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
import * as React from 'react';
|
|
2
2
|
import type { SchemaProps } from '.';
|
|
3
|
-
export declare const RecursiveSchema: ({ schema }: SchemaProps) => JSX.Element;
|
|
3
|
+
export declare const RecursiveSchema: ({ schema }: SchemaProps) => React.JSX.Element;
|