docusaurus-theme-openapi-docs 1.4.5 → 1.4.7

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.
Files changed (78) hide show
  1. package/lib/theme/ApiDemoPanel/Accept/index.js +3 -3
  2. package/lib/theme/ApiDemoPanel/Authorization/index.js +9 -9
  3. package/lib/theme/ApiDemoPanel/Authorization/slice.js +1 -1
  4. package/lib/theme/ApiDemoPanel/Body/index.js +9 -13
  5. package/lib/theme/ApiDemoPanel/CodeTabs/index.js +1 -1
  6. package/lib/theme/ApiDemoPanel/ContentType/index.js +3 -3
  7. package/lib/theme/ApiDemoPanel/Curl/index.js +3 -3
  8. package/lib/theme/ApiDemoPanel/Execute/index.js +3 -3
  9. package/lib/theme/ApiDemoPanel/FormFileUpload/index.js +1 -1
  10. package/lib/theme/ApiDemoPanel/LiveEditor/index.js +1 -1
  11. package/lib/theme/ApiDemoPanel/ParamOptions/index.js +6 -6
  12. package/lib/theme/ApiDemoPanel/Request/index.js +7 -7
  13. package/lib/theme/ApiDemoPanel/Response/index.js +1 -1
  14. package/lib/theme/ApiDemoPanel/SecuritySchemes/index.js +1 -1
  15. package/lib/theme/ApiDemoPanel/Server/index.js +5 -5
  16. package/lib/theme/ApiDemoPanel/index.js +5 -5
  17. package/lib/theme/ApiDemoPanel/persistanceMiddleware.js +1 -1
  18. package/lib/theme/ApiItem/index.js +3 -3
  19. package/lib/theme/ApiItem/store.js +7 -7
  20. package/lib/theme/MimeTabs/index.js +4 -6
  21. package/lib/theme/ParamsItem/index.js +9 -3
  22. package/lib/theme/SchemaItem/index.js +4 -2
  23. package/lib/theme-openapi.d.ts +186 -0
  24. package/lib-next/theme/ApiDemoPanel/Accept/index.js +3 -3
  25. package/lib-next/theme/ApiDemoPanel/Authorization/index.js +9 -9
  26. package/lib-next/theme/ApiDemoPanel/Authorization/slice.js +1 -1
  27. package/lib-next/theme/ApiDemoPanel/Body/index.js +9 -11
  28. package/lib-next/theme/ApiDemoPanel/CodeTabs/index.js +1 -1
  29. package/lib-next/theme/ApiDemoPanel/ContentType/index.js +3 -3
  30. package/lib-next/theme/ApiDemoPanel/Curl/index.js +3 -3
  31. package/lib-next/theme/ApiDemoPanel/Execute/index.js +3 -3
  32. package/lib-next/theme/ApiDemoPanel/FormFileUpload/index.js +1 -1
  33. package/lib-next/theme/ApiDemoPanel/LiveEditor/index.js +1 -1
  34. package/lib-next/theme/ApiDemoPanel/ParamOptions/index.js +9 -6
  35. package/lib-next/theme/ApiDemoPanel/Request/index.js +7 -7
  36. package/lib-next/theme/ApiDemoPanel/Response/index.js +1 -1
  37. package/lib-next/theme/ApiDemoPanel/SecuritySchemes/index.js +1 -1
  38. package/lib-next/theme/ApiDemoPanel/Server/index.js +5 -5
  39. package/lib-next/theme/ApiDemoPanel/index.js +5 -5
  40. package/lib-next/theme/ApiDemoPanel/persistanceMiddleware.js +4 -1
  41. package/lib-next/theme/ApiItem/index.js +3 -3
  42. package/lib-next/theme/ApiItem/store.js +7 -7
  43. package/lib-next/theme/MimeTabs/index.js +4 -6
  44. package/lib-next/theme/ParamsItem/index.js +9 -3
  45. package/lib-next/theme/SchemaItem/index.js +4 -2
  46. package/lib-next/theme-openapi.d.ts +186 -0
  47. package/package.json +3 -3
  48. package/src/theme/ApiDemoPanel/Accept/index.tsx +7 -6
  49. package/src/theme/ApiDemoPanel/Authorization/index.tsx +20 -19
  50. package/src/theme/ApiDemoPanel/Authorization/slice.ts +3 -2
  51. package/src/theme/ApiDemoPanel/Body/index.tsx +16 -18
  52. package/src/theme/ApiDemoPanel/CodeTabs/index.tsx +3 -2
  53. package/src/theme/ApiDemoPanel/ContentType/index.tsx +9 -6
  54. package/src/theme/ApiDemoPanel/Curl/index.tsx +14 -14
  55. package/src/theme/ApiDemoPanel/Execute/index.tsx +15 -15
  56. package/src/theme/ApiDemoPanel/Execute/makeRequest.ts +1 -2
  57. package/src/theme/ApiDemoPanel/FloatingButton/index.tsx +1 -1
  58. package/src/theme/ApiDemoPanel/FormFileUpload/index.tsx +2 -2
  59. package/src/theme/ApiDemoPanel/FormItem/index.tsx +1 -1
  60. package/src/theme/ApiDemoPanel/FormMultiSelect/index.tsx +1 -1
  61. package/src/theme/ApiDemoPanel/FormSelect/index.tsx +1 -1
  62. package/src/theme/ApiDemoPanel/FormTextInput/index.tsx +1 -1
  63. package/src/theme/ApiDemoPanel/LiveEditor/index.tsx +1 -1
  64. package/src/theme/ApiDemoPanel/MethodEndpoint/index.tsx +1 -1
  65. package/src/theme/ApiDemoPanel/ParamOptions/index.tsx +26 -16
  66. package/src/theme/ApiDemoPanel/Request/index.tsx +10 -10
  67. package/src/theme/ApiDemoPanel/Response/index.tsx +2 -2
  68. package/src/theme/ApiDemoPanel/SecuritySchemes/index.tsx +4 -5
  69. package/src/theme/ApiDemoPanel/Server/index.tsx +14 -13
  70. package/src/theme/ApiDemoPanel/buildPostmanRequest.ts +2 -3
  71. package/src/theme/ApiDemoPanel/index.tsx +5 -6
  72. package/src/theme/ApiDemoPanel/persistanceMiddleware.ts +8 -4
  73. package/src/theme/ApiItem/index.tsx +8 -5
  74. package/src/theme/ApiItem/store.ts +7 -8
  75. package/src/theme/MimeTabs/index.js +4 -6
  76. package/src/theme/ParamsItem/index.js +9 -3
  77. package/src/theme/SchemaItem/index.js +4 -2
  78. package/src/theme-openapi.d.ts +186 -0
@@ -7,18 +7,19 @@
7
7
 
8
8
  import React, { useState } from "react";
9
9
 
10
- import { useTypedDispatch, useTypedSelector } from "../../ApiItem/hooks";
11
- import FloatingButton from "../FloatingButton";
12
- import FormItem from "./../FormItem";
13
- import FormSelect from "./../FormSelect";
14
- import FormTextInput from "./../FormTextInput";
10
+ import FloatingButton from "@theme/ApiDemoPanel/FloatingButton";
11
+ import FormItem from "@theme/ApiDemoPanel/FormItem";
12
+ import FormSelect from "@theme/ApiDemoPanel/FormSelect";
13
+ import FormTextInput from "@theme/ApiDemoPanel/FormTextInput";
14
+ import { useTypedDispatch, useTypedSelector } from "@theme/ApiItem/hooks";
15
+
15
16
  import { setServer, setServerVariable } from "./slice";
16
17
  import styles from "./styles.module.css";
17
18
 
18
19
  function Server() {
19
20
  const [isEditing, setIsEditing] = useState(false);
20
- const value = useTypedSelector((state) => state.server.value);
21
- const options = useTypedSelector((state) => state.server.options);
21
+ const value = useTypedSelector((state: any) => state.server.value);
22
+ const options = useTypedSelector((state: any) => state.server.options);
22
23
  const dispatch = useTypedDispatch();
23
24
 
24
25
  if (options.length <= 0) {
@@ -36,7 +37,7 @@ function Server() {
36
37
 
37
38
  // Default to first option when existing server state is mismatched
38
39
  if (value) {
39
- const urlExists = options.find((s) => s.url === value.url);
40
+ const urlExists = options.find((s: any) => s.url === value.url);
40
41
  if (!urlExists) {
41
42
  const defaultOption = options[0];
42
43
  dispatch(setServer(JSON.stringify(defaultOption)));
@@ -76,12 +77,12 @@ function Server() {
76
77
  <FloatingButton onClick={() => setIsEditing(false)} label="Hide">
77
78
  <FormItem label="Base URL">
78
79
  <FormSelect
79
- options={options.map((s) => s.url)}
80
- onChange={(e) => {
80
+ options={options.map((s: any) => s.url)}
81
+ onChange={(e: React.ChangeEvent<HTMLInputElement>) => {
81
82
  dispatch(
82
83
  setServer(
83
84
  JSON.stringify(
84
- options.filter((s) => s.url === e.target.value)[0]
85
+ options.filter((s: any) => s.url === e.target.value)[0]
85
86
  )
86
87
  )
87
88
  );
@@ -97,7 +98,7 @@ function Server() {
97
98
  <FormItem label={key}>
98
99
  <FormSelect
99
100
  options={value.variables[key].enum}
100
- onChange={(e) => {
101
+ onChange={(e: React.ChangeEvent<HTMLInputElement>) => {
101
102
  dispatch(
102
103
  setServerVariable(
103
104
  JSON.stringify({ key, value: e.target.value })
@@ -113,7 +114,7 @@ function Server() {
113
114
  <FormItem label={key}>
114
115
  <FormTextInput
115
116
  placeholder={value.variables?.[key].default}
116
- onChange={(e) => {
117
+ onChange={(e: React.ChangeEvent<HTMLInputElement>) => {
117
118
  dispatch(
118
119
  setServerVariable(
119
120
  JSON.stringify({ key, value: e.target.value })
@@ -6,15 +6,14 @@
6
6
  * ========================================================================== */
7
7
 
8
8
  import sdk from "@paloaltonetworks/postman-collection";
9
+ import { AuthState, Scheme } from "@theme/ApiDemoPanel/Authorization/slice";
10
+ import { Body, Content } from "@theme/ApiDemoPanel/Body/slice";
9
11
  import {
10
12
  ParameterObject,
11
13
  ServerObject,
12
14
  } from "docusaurus-plugin-openapi-docs/src/openapi/types";
13
15
  import cloneDeep from "lodash/cloneDeep";
14
16
 
15
- import { AuthState, Scheme } from "./Authorization/slice";
16
- import { Body, Content } from "./Body/slice";
17
-
18
17
  type Param = {
19
18
  value?: string | string[];
20
19
  } & ParameterObject;
@@ -8,14 +8,13 @@
8
8
  import React from "react";
9
9
 
10
10
  import sdk from "@paloaltonetworks/postman-collection";
11
+ import Curl from "@theme/ApiDemoPanel/Curl";
12
+ import MethodEndpoint from "@theme/ApiDemoPanel/MethodEndpoint";
13
+ import Request from "@theme/ApiDemoPanel/Request";
14
+ import Response from "@theme/ApiDemoPanel/Response";
15
+ import SecuritySchemes from "@theme/ApiDemoPanel/SecuritySchemes";
11
16
  import { ApiItem } from "docusaurus-plugin-openapi-docs/src/types";
12
17
 
13
- import Curl from "./Curl";
14
- import MethodEndpoint from "./MethodEndpoint";
15
- import Request from "./Request";
16
- import Response from "./Response";
17
- import SecuritySchemes from "./SecuritySchemes";
18
-
19
18
  function ApiDemoPanel({
20
19
  item,
21
20
  infoPath,
@@ -6,10 +6,14 @@
6
6
  * ========================================================================== */
7
7
 
8
8
  import { Middleware } from "@reduxjs/toolkit";
9
+ import {
10
+ setAuthData,
11
+ setSelectedAuth,
12
+ } from "@theme/ApiDemoPanel/Authorization/slice";
13
+ import { AppDispatch, RootState } from "@theme/ApiItem/store";
14
+ /* eslint-disable import/no-extraneous-dependencies*/
15
+ import { ThemeConfig } from "docusaurus-theme-openapi-docs/src/types";
9
16
 
10
- import { ThemeConfig } from "../../types";
11
- import { AppDispatch, RootState } from "../ApiItem/store";
12
- import { setAuthData, setSelectedAuth } from "./Authorization/slice";
13
17
  import { createStorage, hashArray } from "./storage-utils";
14
18
 
15
19
  export function createPersistanceMiddleware(options: ThemeConfig["api"]) {
@@ -23,7 +27,7 @@ export function createPersistanceMiddleware(options: ThemeConfig["api"]) {
23
27
 
24
28
  if (action.type === setAuthData.type) {
25
29
  for (const [key, value] of Object.entries(state.auth.data)) {
26
- if (Object.values(value).filter(Boolean).length > 0) {
30
+ if (Object.values(value as any).filter(Boolean).length > 0) {
27
31
  storage.setItem(key, JSON.stringify(value));
28
32
  } else {
29
33
  storage.removeItem(key);
@@ -12,19 +12,22 @@ import ExecutionEnvironment from "@docusaurus/ExecutionEnvironment";
12
12
  import { HtmlClassNameProvider } from "@docusaurus/theme-common";
13
13
  import useDocusaurusContext from "@docusaurus/useDocusaurusContext";
14
14
  import useIsBrowser from "@docusaurus/useIsBrowser";
15
+ import { createAuth } from "@theme/ApiDemoPanel/Authorization/slice";
16
+ import { createPersistanceMiddleware } from "@theme/ApiDemoPanel/persistanceMiddleware";
17
+ import DocItemLayout from "@theme/ApiItem/Layout";
15
18
  import type { Props } from "@theme/DocItem";
16
19
  import DocItemMetadata from "@theme/DocItem/Metadata";
17
20
  import clsx from "clsx";
18
21
  import { ServerObject } from "docusaurus-plugin-openapi-docs/src/openapi/types";
19
22
  import { ParameterObject } from "docusaurus-plugin-openapi-docs/src/openapi/types";
20
23
  import type { ApiItem as ApiItemType } from "docusaurus-plugin-openapi-docs/src/types";
24
+ /* eslint-disable import/no-extraneous-dependencies*/
25
+ import type {
26
+ DocFrontMatter,
27
+ ThemeConfig,
28
+ } from "docusaurus-theme-openapi-docs/src/types";
21
29
  import { Provider } from "react-redux";
22
30
 
23
- import { DocFrontMatter } from "../../types";
24
- import { ThemeConfig } from "../../types";
25
- import { createAuth } from "../ApiDemoPanel/Authorization/slice";
26
- import { createPersistanceMiddleware } from "../ApiDemoPanel/persistanceMiddleware";
27
- import DocItemLayout from "./Layout";
28
31
  import { createStoreWithoutState, createStoreWithState } from "./store";
29
32
 
30
33
  const { DocProvider } = require("@docusaurus/theme-common/internal");
@@ -6,14 +6,13 @@
6
6
  * ========================================================================== */
7
7
 
8
8
  import { configureStore, combineReducers } from "@reduxjs/toolkit";
9
-
10
- import accept from "../ApiDemoPanel/Accept/slice";
11
- import auth from "../ApiDemoPanel/Authorization/slice";
12
- import body from "../ApiDemoPanel/Body/slice";
13
- import contentType from "../ApiDemoPanel/ContentType/slice";
14
- import params from "../ApiDemoPanel/ParamOptions/slice";
15
- import response from "../ApiDemoPanel/Response/slice";
16
- import server from "../ApiDemoPanel/Server/slice";
9
+ import accept from "@theme/ApiDemoPanel/Accept/slice";
10
+ import auth from "@theme/ApiDemoPanel/Authorization/slice";
11
+ import body from "@theme/ApiDemoPanel/Body/slice";
12
+ import contentType from "@theme/ApiDemoPanel/ContentType/slice";
13
+ import params from "@theme/ApiDemoPanel/ParamOptions/slice";
14
+ import response from "@theme/ApiDemoPanel/Response/slice";
15
+ import server from "@theme/ApiDemoPanel/Server/slice";
17
16
 
18
17
  const rootReducer = combineReducers({
19
18
  accept,
@@ -16,20 +16,18 @@ import React, {
16
16
 
17
17
  import { duplicates } from "@docusaurus/theme-common";
18
18
  import useIsBrowser from "@docusaurus/useIsBrowser";
19
+ import { setAccept } from "@theme/ApiDemoPanel/Accept/slice";
20
+ import { setContentType } from "@theme/ApiDemoPanel/ContentType/slice";
21
+ import { useTypedDispatch, useTypedSelector } from "@theme/ApiItem/hooks";
19
22
  import clsx from "clsx";
20
23
 
21
- import { setAccept } from "../ApiDemoPanel/Accept/slice";
22
- import { setContentType } from "../ApiDemoPanel/ContentType/slice";
23
- import { useTypedDispatch, useTypedSelector } from "../ApiItem/hooks";
24
- import styles from "./styles.module.css"; // A very rough duck type, but good enough to guard against mistakes while
24
+ import styles from "./styles.module.css";
25
25
 
26
26
  const {
27
27
  useScrollPositionBlocker,
28
28
  useTabGroupChoice,
29
29
  } = require("@docusaurus/theme-common/internal");
30
30
 
31
- // allowing customization
32
-
33
31
  function isTabItem(comp) {
34
32
  return typeof comp.props.value !== "undefined";
35
33
  }
@@ -8,12 +8,18 @@
8
8
  import React from "react";
9
9
 
10
10
  import CodeBlock from "@theme/CodeBlock";
11
+ /* eslint-disable import/no-extraneous-dependencies*/
12
+ import { createDescription } from "docusaurus-theme-openapi-docs/lib/markdown/createDescription";
13
+ /* eslint-disable import/no-extraneous-dependencies*/
14
+ import {
15
+ getQualifierMessage,
16
+ getSchemaName,
17
+ } from "docusaurus-theme-openapi-docs/lib/markdown/schema";
18
+ /* eslint-disable import/no-extraneous-dependencies*/
19
+ import { guard } from "docusaurus-theme-openapi-docs/lib/markdown/utils";
11
20
  import ReactMarkdown from "react-markdown";
12
21
  import rehypeRaw from "rehype-raw";
13
22
 
14
- import { createDescription } from "../../markdown/createDescription";
15
- import { getQualifierMessage, getSchemaName } from "../../markdown/schema";
16
- import { guard } from "../../markdown/utils";
17
23
  import styles from "./styles.module.css";
18
24
 
19
25
  function ParamsItem({
@@ -8,11 +8,13 @@
8
8
  import React from "react";
9
9
 
10
10
  import CodeBlock from "@theme/CodeBlock";
11
+ /* eslint-disable import/no-extraneous-dependencies*/
12
+ import { createDescription } from "docusaurus-theme-openapi-docs/lib/markdown/createDescription";
13
+ /* eslint-disable import/no-extraneous-dependencies*/
14
+ import { guard } from "docusaurus-theme-openapi-docs/lib/markdown/utils";
11
15
  import ReactMarkdown from "react-markdown";
12
16
  import rehypeRaw from "rehype-raw";
13
17
 
14
- import { createDescription } from "../../markdown/createDescription";
15
- import { guard } from "../../markdown/utils";
16
18
  import styles from "./styles.module.css";
17
19
 
18
20
  function SchemaItem({
@@ -46,3 +46,189 @@ declare module "@docusaurus/plugin-content-docs-types" {
46
46
  declare module "docusaurus-theme-openapi-docs" {
47
47
  export type ThemeConfig = Partial<import("./types").ThemeConfig>;
48
48
  }
49
+
50
+ declare module "@theme/ApiItem/hooks" {
51
+ export { useTypedDispatch, useTypedSelector };
52
+ }
53
+
54
+ declare module "@theme/ApiItem/Layout" {
55
+ export default function Layout(props: any): JSX.Element;
56
+ }
57
+
58
+ declare module "@theme/ApiItem/store" {
59
+ export { AppDispatch, RootState };
60
+ }
61
+
62
+ declare module "@theme/SchemaTabs" {
63
+ export default function SchemaTabs(props: any): JSX.Element;
64
+ }
65
+
66
+ declare module "@theme/ApiDemoPanel/Accept" {
67
+ export default function Accept(): JSX.Element;
68
+ }
69
+
70
+ declare module "@theme/ApiDemoPanel/Accept/slice" {
71
+ export default accept as Reducer<State, AnyAction>;
72
+ }
73
+
74
+ declare module "@theme/ApiDemoPanel/Authorization" {
75
+ export default function Authorization(): JSX.Element;
76
+ }
77
+
78
+ declare module "@theme/ApiDemoPanel/Authorization/slice" {
79
+ export { AuthState, Scheme, setAuthData, setSelectedAuth, createAuth };
80
+ export default auth as Reducer<State, AnyAction>;
81
+ }
82
+
83
+ declare module "@theme/ApiDemoPanel/Body" {
84
+ import { Props as BodyProps } from "@theme/ApiDemoPanel/Body";
85
+
86
+ export default function Body(props: BodyProps): JSX.Element;
87
+ }
88
+
89
+ declare module "@theme/ApiDemoPanel/Body/json2xml" {
90
+ export default function json2xml(any, any?): any;
91
+ }
92
+
93
+ declare module "@theme/ApiDemoPanel/Body/slice" {
94
+ import { Body, Content, State } from "@theme/ApiDemoPanel/Body/slice";
95
+
96
+ export { Body, Content, State };
97
+ export function setStringRawBody(any, any?): any;
98
+ export default body as Reducer<State, AnyAction>;
99
+ }
100
+
101
+ declare module "@theme/ApiDemoPanel/buildPostmanRequest" {
102
+ export default function buildPostmanRequest(any, any?): any;
103
+ }
104
+
105
+ declare module "@theme/ApiDemoPanel/CodeTabs" {
106
+ import { Props as CodeTabsProps } from "@theme/ApiDemoPanel/CodeTabs";
107
+
108
+ export default function CodeTabs(props: CodeTabsProps): JSX.Element;
109
+ }
110
+
111
+ declare module "@theme/ApiDemoPanel/ContentType" {
112
+ export default function ContentType(): JSX.Element;
113
+ }
114
+
115
+ declare module "@theme/ApiDemoPanel/ContentType/slice" {
116
+ export { setContentType };
117
+ export default contentType as Reducer<State, AnyAction>;
118
+ }
119
+
120
+ declare module "@theme/ApiDemoPanel/Curl" {
121
+ import { Props as CurlProps } from "@theme/ApiDemoPanel/Curl";
122
+
123
+ export { languageSet, Language } from "@theme/ApiDemoPanel/Curl";
124
+ export default function Curl(props: CurlProps): JSX.Element;
125
+ }
126
+
127
+ declare module "@theme/ApiDemoPanel/FloatingButton" {
128
+ import { Props as FloatingButtonProps } from "@theme/ApiDemoPanel/FloatingButton";
129
+
130
+ export default function FloatingButton(
131
+ props: FloatingButtonProps
132
+ ): JSX.Element;
133
+ }
134
+
135
+ declare module "@theme/ApiDemoPanel/FormItem" {
136
+ import { Props as FormItemProps } from "@theme/ApiDemoPanel/FormItem";
137
+
138
+ export default function FormItem(props: FormItemProps): JSX.Element;
139
+ }
140
+
141
+ declare module "@theme/ApiDemoPanel/FormSelect" {
142
+ import { Props as FormSelectProps } from "@theme/ApiDemoPanel/FormSelect";
143
+
144
+ export default function FormSelect(props: FormSelectProps): JSX.Element;
145
+ }
146
+
147
+ declare module "@theme/ApiDemoPanel/FormTextInput" {
148
+ import { Props as FormTextInputProps } from "@theme/ApiDemoPanel/FormTextInput";
149
+
150
+ export default function FormTextInput(props: FormTextInputProps): JSX.Element;
151
+ }
152
+
153
+ declare module "@theme/ApiDemoPanel/FormFileUpload" {
154
+ import { Props as FormFileUploadProps } from "@theme/ApiDemoPanel/FormFileUpload";
155
+
156
+ export default function FormFileUpload(
157
+ props: FormFileUploadProps
158
+ ): JSX.Element;
159
+ }
160
+
161
+ declare module "@theme/ApiDemoPanel/FormMultiSelect" {
162
+ import { Props as FormMultiSelectProps } from "@theme/ApiDemoPanel/FormMultiSelect";
163
+
164
+ export default function FormMultiSelect(
165
+ props: FormMultiSelectProps
166
+ ): JSX.Element;
167
+ }
168
+
169
+ declare module "@theme/ApiDemoPanel/Execute" {
170
+ import { Props as ExecuteProps } from "@theme/ApiDemoPanel/Execute";
171
+
172
+ export default function Execute(props: ExecuteProps): JSX.Element;
173
+ }
174
+
175
+ declare module "@theme/ApiDemoPanel/LiveEditor" {
176
+ export default function LiveEditor(props: any): JSX.Element;
177
+ }
178
+
179
+ declare module "@theme/ApiDemoPanel/MethodEndpoint" {
180
+ import { Props as MethodEndpointProps } from "@theme/ApiDemoPanel/MethodEndpoint";
181
+
182
+ export default function MethodEndpoint(
183
+ props: MethodEndpointProps
184
+ ): JSX.Element;
185
+ }
186
+
187
+ declare module "@theme/ApiDemoPanel/ParamOptions" {
188
+ import { ParamProps } from "@theme/ApiDemoPanel/ParamOptions";
189
+
190
+ export default function ParamOptions(props: ParamProps): JSX.Element;
191
+ }
192
+
193
+ declare module "@theme/ApiDemoPanel/ParamOptions/slice" {
194
+ export type { Param };
195
+ export default params as Reducer<State, AnyAction>;
196
+ }
197
+
198
+ declare module "@theme/ApiDemoPanel/persistanceMiddleware" {
199
+ export { createPersistanceMiddleware };
200
+ }
201
+
202
+ declare module "@theme/ApiDemoPanel/Request" {
203
+ import { ApiItem } from "docusaurus-plugin-openapi-docs/src/types";
204
+
205
+ export interface RequestProps {
206
+ item: NonNullable<ApiItem>;
207
+ }
208
+ export default function Request(props: RequestProps): JSX.Element;
209
+ }
210
+
211
+ declare module "@theme/ApiDemoPanel/Response" {
212
+ export default function Response(): JSX.Element;
213
+ }
214
+
215
+ declare module "@theme/ApiDemoPanel/Response/slice" {
216
+ export { setResponse };
217
+ export default response as Reducer<State, AnyAction>;
218
+ }
219
+
220
+ declare module "@theme/ApiDemoPanel/SecuritySchemes" {
221
+ export default function SecuritySchemes(props: any): JSX.Element;
222
+ }
223
+
224
+ declare module "@theme/ApiDemoPanel/Server" {
225
+ export default function Server(): JSX.Element;
226
+ }
227
+
228
+ declare module "@theme/ApiDemoPanel/Server/slice" {
229
+ export default server as Reducer<State, AnyAction>;
230
+ }
231
+
232
+ declare module "@theme/ApiDemoPanel/storage-utils" {
233
+ export { createStorage, hashArray };
234
+ }