docusaurus-theme-openapi-docs 4.5.0 → 4.6.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/lib/markdown/schema.js +9 -1
- package/lib/theme/ApiExplorer/Accept/slice.d.ts +5 -2
- package/lib/theme/ApiExplorer/Authorization/index.js +50 -9
- package/lib/theme/ApiExplorer/Authorization/slice.d.ts +145 -3
- package/lib/theme/ApiExplorer/Authorization/slice.js +3 -1
- package/lib/theme/ApiExplorer/Body/FileArrayFormBodyItem/index.d.ts +7 -0
- package/lib/theme/ApiExplorer/Body/FileArrayFormBodyItem/index.js +126 -0
- package/lib/theme/ApiExplorer/Body/FormBodyItem/index.d.ts +9 -0
- package/lib/theme/ApiExplorer/Body/FormBodyItem/index.js +110 -0
- package/lib/theme/ApiExplorer/Body/index.js +94 -100
- package/lib/theme/ApiExplorer/Body/slice.d.ts +1056 -11
- package/lib/theme/ApiExplorer/Body/slice.js +22 -2
- package/lib/theme/ApiExplorer/CodeSnippets/index.d.ts +2 -1
- package/lib/theme/ApiExplorer/CodeSnippets/index.js +37 -26
- package/lib/theme/ApiExplorer/CodeTabs/_CodeTabs.scss +5 -1
- package/lib/theme/ApiExplorer/CodeTabs/index.d.ts +3 -3
- package/lib/theme/ApiExplorer/CodeTabs/index.js +2 -2
- package/lib/theme/ApiExplorer/ContentType/slice.d.ts +5 -2
- package/lib/theme/ApiExplorer/FormFileUpload/index.js +6 -1
- package/lib/theme/ApiExplorer/FormItem/index.js +6 -1
- package/lib/theme/ApiExplorer/FormTextInput/index.d.ts +2 -0
- package/lib/theme/ApiExplorer/FormTextInput/index.js +8 -1
- package/lib/theme/ApiExplorer/LiveEditor/index.js +11 -4
- package/lib/theme/ApiExplorer/ParamOptions/ParamFormItems/ParamArrayFormItem.js +15 -5
- package/lib/theme/ApiExplorer/ParamOptions/ParamFormItems/ParamBooleanFormItem.js +11 -3
- package/lib/theme/ApiExplorer/ParamOptions/ParamFormItems/ParamMultiSelectFormItem.js +12 -4
- package/lib/theme/ApiExplorer/ParamOptions/ParamFormItems/ParamSelectFormItem.js +11 -2
- package/lib/theme/ApiExplorer/ParamOptions/index.js +11 -1
- package/lib/theme/ApiExplorer/ParamOptions/slice.d.ts +0 -4
- package/lib/theme/ApiExplorer/ParamOptions/slice.js +4 -4
- package/lib/theme/ApiExplorer/Request/index.js +110 -17
- package/lib/theme/ApiExplorer/Request/makeRequest.d.ts +7 -1
- package/lib/theme/ApiExplorer/Request/makeRequest.js +94 -24
- package/lib/theme/ApiExplorer/Response/index.js +34 -14
- package/lib/theme/ApiExplorer/Response/slice.d.ts +31 -7
- package/lib/theme/ApiExplorer/SecuritySchemes/index.js +208 -69
- package/lib/theme/ApiExplorer/Server/index.js +16 -2
- package/lib/theme/ApiExplorer/Server/slice.d.ts +49 -3
- package/lib/theme/ApiExplorer/buildPostmanRequest.js +46 -57
- package/lib/theme/ApiExplorer/index.js +11 -1
- package/lib/theme/ApiExplorer/persistenceMiddleware.d.ts +19 -0
- package/lib/theme/ApiExplorer/{persistanceMiddleware.js → persistenceMiddleware.js} +16 -9
- package/lib/theme/ApiExplorer/storage-utils.d.ts +2 -2
- package/lib/theme/ApiExplorer/storage-utils.js +3 -3
- package/lib/theme/ApiItem/Layout/index.d.ts +1 -1
- package/lib/theme/ApiItem/hooks.d.ts +9 -9
- package/lib/theme/ApiItem/index.js +12 -8
- package/lib/theme/ApiItem/store.d.ts +55 -43
- package/lib/theme/ApiTabs/index.js +6 -1
- package/lib/theme/Example/_Example.scss +11 -0
- package/lib/theme/Example/index.d.ts +24 -0
- package/lib/theme/Example/index.js +170 -0
- package/lib/theme/ParamsDetails/index.js +9 -1
- package/lib/theme/ParamsItem/index.d.ts +1 -1
- package/lib/theme/ParamsItem/index.js +43 -74
- package/lib/theme/RequestSchema/index.js +18 -4
- package/lib/theme/ResponseExamples/index.js +23 -3
- package/lib/theme/ResponseSchema/index.js +97 -82
- package/lib/theme/Schema/index.js +106 -23
- package/lib/theme/SchemaItem/index.js +64 -36
- package/lib/theme/SchemaTabs/index.js +4 -1
- package/lib/theme/StatusCodes/index.js +11 -2
- package/lib/theme/styles.scss +5 -0
- package/lib/theme/translationIds.d.ts +90 -0
- package/lib/theme/translationIds.js +114 -0
- package/lib/types.d.ts +9 -1
- package/package.json +28 -28
- package/src/markdown/schema.ts +11 -1
- package/src/theme/ApiExplorer/Authorization/index.tsx +51 -10
- package/src/theme/ApiExplorer/Authorization/slice.ts +1 -1
- package/src/theme/ApiExplorer/Body/FileArrayFormBodyItem/index.tsx +77 -0
- package/src/theme/ApiExplorer/Body/FormBodyItem/index.tsx +120 -0
- package/src/theme/ApiExplorer/Body/index.tsx +87 -107
- package/src/theme/ApiExplorer/Body/json2xml.d.ts +8 -0
- package/src/theme/ApiExplorer/Body/slice.ts +40 -1
- package/src/theme/ApiExplorer/CodeSnippets/index.tsx +43 -29
- package/src/theme/ApiExplorer/CodeTabs/_CodeTabs.scss +5 -1
- package/src/theme/ApiExplorer/CodeTabs/index.tsx +6 -5
- package/src/theme/ApiExplorer/ContentType/index.tsx +1 -1
- package/src/theme/ApiExplorer/FormFileUpload/index.tsx +6 -1
- package/src/theme/ApiExplorer/FormItem/index.tsx +8 -1
- package/src/theme/ApiExplorer/FormTextInput/index.tsx +10 -1
- package/src/theme/ApiExplorer/LiveEditor/index.tsx +11 -4
- package/src/theme/ApiExplorer/ParamOptions/ParamFormItems/ParamArrayFormItem.tsx +16 -6
- package/src/theme/ApiExplorer/ParamOptions/ParamFormItems/ParamBooleanFormItem.tsx +12 -4
- package/src/theme/ApiExplorer/ParamOptions/ParamFormItems/ParamMultiSelectFormItem.tsx +12 -4
- package/src/theme/ApiExplorer/ParamOptions/ParamFormItems/ParamSelectFormItem.tsx +12 -3
- package/src/theme/ApiExplorer/ParamOptions/index.tsx +10 -2
- package/src/theme/ApiExplorer/ParamOptions/slice.ts +1 -1
- package/src/theme/ApiExplorer/Request/index.tsx +108 -17
- package/src/theme/ApiExplorer/Request/makeRequest.ts +106 -25
- package/src/theme/ApiExplorer/Response/index.tsx +30 -8
- package/src/theme/ApiExplorer/SecuritySchemes/index.tsx +157 -69
- package/src/theme/ApiExplorer/Server/index.tsx +12 -4
- package/src/theme/ApiExplorer/buildPostmanRequest.ts +47 -63
- package/src/theme/ApiExplorer/index.tsx +10 -1
- package/src/theme/ApiExplorer/{persistanceMiddleware.ts → persistenceMiddleware.ts} +23 -13
- package/src/theme/ApiExplorer/storage-utils.ts +4 -4
- package/src/theme/ApiItem/Layout/index.tsx +1 -1
- package/src/theme/ApiItem/index.tsx +12 -7
- package/src/theme/ApiTabs/index.tsx +6 -1
- package/src/theme/Example/_Example.scss +11 -0
- package/src/theme/Example/index.tsx +168 -0
- package/src/theme/Markdown/index.d.ts +8 -0
- package/src/theme/ParamsDetails/index.tsx +10 -1
- package/src/theme/ParamsItem/index.tsx +38 -54
- package/src/theme/RequestSchema/index.tsx +19 -4
- package/src/theme/ResponseExamples/index.tsx +23 -3
- package/src/theme/ResponseSchema/index.tsx +73 -61
- package/src/theme/Schema/index.tsx +128 -33
- package/src/theme/SchemaItem/index.tsx +51 -33
- package/src/theme/SchemaTabs/index.tsx +4 -1
- package/src/theme/StatusCodes/index.tsx +13 -2
- package/src/theme/styles.scss +5 -0
- package/src/theme/translationIds.ts +111 -0
- package/src/theme-openapi.d.ts +7 -275
- package/src/types.ts +9 -1
- package/tsconfig.tsbuildinfo +1 -1
- package/lib/theme/ApiExplorer/persistanceMiddleware.d.ts +0 -3
package/src/theme-openapi.d.ts
CHANGED
|
@@ -7,282 +7,14 @@
|
|
|
7
7
|
|
|
8
8
|
/// <reference types="docusaurus-plugin-openapi-docs" />
|
|
9
9
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
className?: string;
|
|
18
|
-
customProps?: Record<string, unknown>;
|
|
19
|
-
};
|
|
20
|
-
|
|
21
|
-
export type SidebarItemLink = SidebarItemBase & {
|
|
22
|
-
type: "link";
|
|
23
|
-
href: string;
|
|
24
|
-
label: string;
|
|
25
|
-
docId: string;
|
|
26
|
-
};
|
|
27
|
-
|
|
28
|
-
type SidebarItemCategoryBase = SidebarItemBase & {
|
|
29
|
-
type: "category";
|
|
30
|
-
label: string;
|
|
31
|
-
collapsed: boolean;
|
|
32
|
-
collapsible: boolean;
|
|
33
|
-
};
|
|
34
|
-
|
|
35
|
-
export type PropSidebarItemCategory = Expand<
|
|
36
|
-
SidebarItemCategoryBase & {
|
|
37
|
-
items: PropSidebarItem[];
|
|
38
|
-
}
|
|
39
|
-
>;
|
|
40
|
-
|
|
41
|
-
export type PropSidebarItem = SidebarItemLink | PropSidebarItemCategory;
|
|
42
|
-
export type PropSidebar = PropSidebarItem[];
|
|
43
|
-
export type PropSidebars = {
|
|
44
|
-
[sidebarId: string]: PropSidebar;
|
|
45
|
-
};
|
|
46
|
-
}
|
|
10
|
+
export type {
|
|
11
|
+
PropSidebarItemCategory,
|
|
12
|
+
SidebarItemLink,
|
|
13
|
+
PropSidebar,
|
|
14
|
+
PropSidebarItem,
|
|
15
|
+
PropSidebars,
|
|
16
|
+
} from "@docusaurus/plugin-content-docs/lib/sidebars/types";
|
|
47
17
|
|
|
48
18
|
declare module "docusaurus-theme-openapi-docs" {
|
|
49
19
|
export type ThemeConfig = Partial<import("./types").ThemeConfig>;
|
|
50
20
|
}
|
|
51
|
-
|
|
52
|
-
declare module "@theme/ApiItem/hooks" {
|
|
53
|
-
export { useTypedDispatch, useTypedSelector };
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
declare module "@theme/ApiItem/Layout" {
|
|
57
|
-
export interface Props {
|
|
58
|
-
readonly children: JSX.Element;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
export default function Layout(props: any): JSX.Element;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
declare module "@theme/ApiItem/store" {
|
|
65
|
-
export { AppDispatch, RootState };
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
declare module "@theme/SchemaTabs" {
|
|
69
|
-
export default function SchemaTabs(props: any): JSX.Element;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
declare module "@theme/Markdown" {
|
|
73
|
-
export default function Markdown(props: any): JSX.Element;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
declare module "@theme/ApiExplorer/Accept" {
|
|
77
|
-
export default function Accept(): JSX.Element;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
declare module "@theme/ApiExplorer/Accept/slice" {
|
|
81
|
-
export { setAccept };
|
|
82
|
-
export default accept as Reducer<State, AnyAction>;
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
declare module "@theme/ApiExplorer/Authorization" {
|
|
86
|
-
export default function Authorization(): JSX.Element;
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
declare module "@theme/ApiExplorer/Authorization/slice" {
|
|
90
|
-
export { AuthState, Scheme, setAuthData, setSelectedAuth, createAuth };
|
|
91
|
-
export default auth as Reducer<State, AnyAction>;
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
declare module "@theme/ApiExplorer/Body" {
|
|
95
|
-
import { Props as BodyProps } from "@theme/ApiExplorer/Body";
|
|
96
|
-
|
|
97
|
-
export default function Body(props: BodyProps): JSX.Element;
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
declare module "@theme/ApiExplorer/Body/json2xml" {
|
|
101
|
-
export default function json2xml(any, any?): any;
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
declare module "@theme/ApiExplorer/Body/slice" {
|
|
105
|
-
import { Body, Content, State } from "@theme/ApiExplorer/Body/slice";
|
|
106
|
-
|
|
107
|
-
export { Body, Content, State };
|
|
108
|
-
export function setStringRawBody(any, any?): any;
|
|
109
|
-
export default body as Reducer<State, AnyAction>;
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
declare module "@theme/ApiExplorer/buildPostmanRequest" {
|
|
113
|
-
export default function buildPostmanRequest(any, any?): any;
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
declare module "@theme/ApiExplorer/CodeTabs" {
|
|
117
|
-
import { Props as CodeTabsProps } from "@theme/ApiExplorer/CodeTabs";
|
|
118
|
-
|
|
119
|
-
export default function CodeTabs(props: CodeTabsProps): JSX.Element;
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
declare module "@theme/ApiExplorer/ContentType" {
|
|
123
|
-
export default function ContentType(): JSX.Element;
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
declare module "@theme/ApiExplorer/ContentType/slice" {
|
|
127
|
-
export { setContentType };
|
|
128
|
-
export default contentType as Reducer<State, AnyAction>;
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
declare module "@theme/ApiExplorer/CodeSnippets" {
|
|
132
|
-
import { Props as CurlProps } from "@theme/ApiExplorer/CodeSnippets";
|
|
133
|
-
|
|
134
|
-
export { languageSet, Language } from "@theme/ApiExplorer/CodeSnippets";
|
|
135
|
-
export default function Curl(props: CurlProps): JSX.Element;
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
declare module "@theme/ApiExplorer/FloatingButton" {
|
|
139
|
-
import { Props as FloatingButtonProps } from "@theme/ApiExplorer/FloatingButton";
|
|
140
|
-
|
|
141
|
-
export default function FloatingButton(
|
|
142
|
-
props: FloatingButtonProps
|
|
143
|
-
): JSX.Element;
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
declare module "@theme/ApiExplorer/FormItem" {
|
|
147
|
-
import { Props as FormItemProps } from "@theme/ApiExplorer/FormItem";
|
|
148
|
-
|
|
149
|
-
export default function FormItem(props: FormItemProps): JSX.Element;
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
declare module "@theme/ApiExplorer/FormSelect" {
|
|
153
|
-
import { Props as FormSelectProps } from "@theme/ApiExplorer/FormSelect";
|
|
154
|
-
|
|
155
|
-
export default function FormSelect(props: FormSelectProps): JSX.Element;
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
declare module "@theme/ApiExplorer/FormTextInput" {
|
|
159
|
-
import { Props as FormTextInputProps } from "@theme/ApiExplorer/FormTextInput";
|
|
160
|
-
|
|
161
|
-
export default function FormTextInput(props: FormTextInputProps): JSX.Element;
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
declare module "@theme/ApiExplorer/FormFileUpload" {
|
|
165
|
-
import { Props as FormFileUploadProps } from "@theme/ApiExplorer/FormFileUpload";
|
|
166
|
-
|
|
167
|
-
export default function FormFileUpload(
|
|
168
|
-
props: FormFileUploadProps
|
|
169
|
-
): JSX.Element;
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
declare module "@theme/ApiExplorer/FormMultiSelect" {
|
|
173
|
-
import { Props as FormMultiSelectProps } from "@theme/ApiExplorer/FormMultiSelect";
|
|
174
|
-
|
|
175
|
-
export default function FormMultiSelect(
|
|
176
|
-
props: FormMultiSelectProps
|
|
177
|
-
): JSX.Element;
|
|
178
|
-
}
|
|
179
|
-
|
|
180
|
-
declare module "@theme/ApiExplorer/Execute" {
|
|
181
|
-
import { Props as ExecuteProps } from "@theme/ApiExplorer/Execute";
|
|
182
|
-
|
|
183
|
-
export default function Execute(props: ExecuteProps): JSX.Element;
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
declare module "@theme/ApiExplorer/LiveEditor" {
|
|
187
|
-
export default function LiveEditor(props: any): JSX.Element;
|
|
188
|
-
}
|
|
189
|
-
|
|
190
|
-
declare module "@theme/ApiExplorer/MethodEndpoint" {
|
|
191
|
-
import { Props as MethodEndpointProps } from "@theme/ApiExplorer/MethodEndpoint";
|
|
192
|
-
|
|
193
|
-
export default function MethodEndpoint(
|
|
194
|
-
props: MethodEndpointProps
|
|
195
|
-
): JSX.Element;
|
|
196
|
-
}
|
|
197
|
-
|
|
198
|
-
declare module "@theme/ApiExplorer/ParamOptions" {
|
|
199
|
-
import { ParamProps } from "@theme/ApiExplorer/ParamOptions";
|
|
200
|
-
|
|
201
|
-
export default function ParamOptions(props: ParamProps): JSX.Element;
|
|
202
|
-
}
|
|
203
|
-
|
|
204
|
-
declare module "@theme/ApiExplorer/ParamOptions/ParamFormItems/ParamMultiSelectFormItem" {
|
|
205
|
-
import { ParamProps } from "@theme/ApiExplorer/ParamOptions";
|
|
206
|
-
|
|
207
|
-
export default function ParamMultiSelectFormItem(
|
|
208
|
-
props: ParamProps
|
|
209
|
-
): JSX.Element;
|
|
210
|
-
}
|
|
211
|
-
|
|
212
|
-
declare module "@theme/ApiExplorer/ParamOptions/ParamFormItems/ParamArrayFormItem" {
|
|
213
|
-
import { ParamProps } from "@theme/ApiExplorer/ParamOptions";
|
|
214
|
-
|
|
215
|
-
export default function ParamArrayFormItem(props: ParamProps): JSX.Element;
|
|
216
|
-
}
|
|
217
|
-
|
|
218
|
-
declare module "@theme/ApiExplorer/ParamOptions/ParamFormItems/ParamSelectFormItem" {
|
|
219
|
-
import { ParamProps } from "@theme/ApiExplorer/ParamOptions";
|
|
220
|
-
|
|
221
|
-
export default function ParamSelectFormItem(props: ParamProps): JSX.Element;
|
|
222
|
-
}
|
|
223
|
-
|
|
224
|
-
declare module "@theme/ApiExplorer/ParamOptions/ParamFormItems/ParamBooleanFormItem" {
|
|
225
|
-
import { ParamProps } from "@theme/ApiExplorer/ParamOptions";
|
|
226
|
-
|
|
227
|
-
export default function ParamBooleanFormItem(props: ParamProps): JSX.Element;
|
|
228
|
-
}
|
|
229
|
-
|
|
230
|
-
declare module "@theme/ApiExplorer/ParamOptions/ParamFormItems/ParamTextFormItem" {
|
|
231
|
-
import { ParamProps } from "@theme/ApiExplorer/ParamOptions";
|
|
232
|
-
|
|
233
|
-
export default function ParamTextFormItem(props: ParamProps): JSX.Element;
|
|
234
|
-
}
|
|
235
|
-
|
|
236
|
-
declare module "@theme/ApiExplorer/ParamOptions/slice" {
|
|
237
|
-
export type { Param };
|
|
238
|
-
export const setParam;
|
|
239
|
-
export default params as Reducer<State, AnyAction>;
|
|
240
|
-
}
|
|
241
|
-
|
|
242
|
-
declare module "@theme/ApiExplorer/persistanceMiddleware" {
|
|
243
|
-
export { createPersistanceMiddleware };
|
|
244
|
-
}
|
|
245
|
-
|
|
246
|
-
declare module "@theme/ApiExplorer/Request" {
|
|
247
|
-
import { ApiItem } from "docusaurus-plugin-openapi-docs/src/types";
|
|
248
|
-
|
|
249
|
-
export interface RequestProps {
|
|
250
|
-
item: NonNullable<ApiItem>;
|
|
251
|
-
}
|
|
252
|
-
export default function Request(props: RequestProps): JSX.Element;
|
|
253
|
-
}
|
|
254
|
-
|
|
255
|
-
declare module "@theme/ApiExplorer/Response" {
|
|
256
|
-
import { ApiItem } from "docusaurus-plugin-openapi-docs/src/types";
|
|
257
|
-
|
|
258
|
-
export interface ResponseProps {
|
|
259
|
-
item: NonNullable<ApiItem>;
|
|
260
|
-
}
|
|
261
|
-
|
|
262
|
-
export default function Response(props: ResponseProps): JSX.Element;
|
|
263
|
-
}
|
|
264
|
-
|
|
265
|
-
declare module "@theme/ApiExplorer/Response/slice" {
|
|
266
|
-
export { setResponse, setCode, setHeaders, clearCode, clearHeaders };
|
|
267
|
-
export default response as Reducer<State, AnyAction>;
|
|
268
|
-
}
|
|
269
|
-
|
|
270
|
-
declare module "@theme/ApiExplorer/SecuritySchemes" {
|
|
271
|
-
export default function SecuritySchemes(props: any): JSX.Element;
|
|
272
|
-
}
|
|
273
|
-
|
|
274
|
-
declare module "@theme/ApiExplorer/Server" {
|
|
275
|
-
export default function Server(): JSX.Element;
|
|
276
|
-
}
|
|
277
|
-
|
|
278
|
-
declare module "@theme/ApiExplorer/ApiCodeBlock" {
|
|
279
|
-
export default function ApiCodeBlock(): JSX.Element;
|
|
280
|
-
}
|
|
281
|
-
|
|
282
|
-
declare module "@theme/ApiExplorer/Server/slice" {
|
|
283
|
-
export default server as Reducer<State, AnyAction>;
|
|
284
|
-
}
|
|
285
|
-
|
|
286
|
-
declare module "@theme/ApiExplorer/storage-utils" {
|
|
287
|
-
export { createStorage, hashArray };
|
|
288
|
-
}
|
package/src/types.ts
CHANGED
|
@@ -11,7 +11,15 @@ import type { JSONSchema4, JSONSchema6, JSONSchema7 } from "json-schema";
|
|
|
11
11
|
export interface ThemeConfig {
|
|
12
12
|
api?: {
|
|
13
13
|
proxy?: string;
|
|
14
|
-
|
|
14
|
+
/**
|
|
15
|
+
* Controls how authentication credentials are persisted in the API explorer.
|
|
16
|
+
* - `false`: No persistence (in-memory only)
|
|
17
|
+
* - `"sessionStorage"`: Persist for the browser session (default)
|
|
18
|
+
* - `"localStorage"`: Persist across browser sessions
|
|
19
|
+
*/
|
|
20
|
+
authPersistence?: false | "sessionStorage" | "localStorage";
|
|
21
|
+
/** Request timeout in milliseconds. Defaults to 30000 (30 seconds). */
|
|
22
|
+
requestTimeout?: number;
|
|
15
23
|
};
|
|
16
24
|
}
|
|
17
25
|
|
package/tsconfig.tsbuildinfo
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"root":["./src/index.ts","./src/plugin-content-docs.d.ts","./src/postman-code-generators.d.ts","./src/react-magic-dropzone.d.ts","./src/theme-classic.d.ts","./src/theme-openapi.d.ts","./src/types.ts","./src/markdown/createDescription.ts","./src/markdown/schema.ts","./src/markdown/utils.test.ts","./src/markdown/utils.ts","./src/theme/ApiExplorer/buildPostmanRequest.ts","./src/theme/ApiExplorer/index.tsx","./src/theme/ApiExplorer/
|
|
1
|
+
{"root":["./src/index.ts","./src/plugin-content-docs.d.ts","./src/postman-code-generators.d.ts","./src/react-magic-dropzone.d.ts","./src/theme-classic.d.ts","./src/theme-openapi.d.ts","./src/types.ts","./src/markdown/createDescription.ts","./src/markdown/schema.ts","./src/markdown/utils.test.ts","./src/markdown/utils.ts","./src/theme/translationIds.ts","./src/theme/ApiExplorer/buildPostmanRequest.ts","./src/theme/ApiExplorer/index.tsx","./src/theme/ApiExplorer/persistenceMiddleware.ts","./src/theme/ApiExplorer/storage-utils.ts","./src/theme/ApiExplorer/Accept/index.tsx","./src/theme/ApiExplorer/Accept/slice.ts","./src/theme/ApiExplorer/ApiCodeBlock/index.tsx","./src/theme/ApiExplorer/ApiCodeBlock/Container/index.tsx","./src/theme/ApiExplorer/ApiCodeBlock/Content/Element.tsx","./src/theme/ApiExplorer/ApiCodeBlock/Content/String.tsx","./src/theme/ApiExplorer/ApiCodeBlock/CopyButton/index.tsx","./src/theme/ApiExplorer/ApiCodeBlock/ExitButton/index.tsx","./src/theme/ApiExplorer/ApiCodeBlock/ExpandButton/index.tsx","./src/theme/ApiExplorer/ApiCodeBlock/Line/index.tsx","./src/theme/ApiExplorer/ApiCodeBlock/WordWrapButton/index.tsx","./src/theme/ApiExplorer/Authorization/auth-types.ts","./src/theme/ApiExplorer/Authorization/index.tsx","./src/theme/ApiExplorer/Authorization/slice.ts","./src/theme/ApiExplorer/Body/index.tsx","./src/theme/ApiExplorer/Body/json2xml.d.ts","./src/theme/ApiExplorer/Body/slice.ts","./src/theme/ApiExplorer/Body/FileArrayFormBodyItem/index.tsx","./src/theme/ApiExplorer/Body/FormBodyItem/index.tsx","./src/theme/ApiExplorer/CodeSnippets/code-snippets-types.ts","./src/theme/ApiExplorer/CodeSnippets/index.tsx","./src/theme/ApiExplorer/CodeSnippets/languages.ts","./src/theme/ApiExplorer/CodeTabs/index.tsx","./src/theme/ApiExplorer/ContentType/index.tsx","./src/theme/ApiExplorer/ContentType/slice.ts","./src/theme/ApiExplorer/Export/index.tsx","./src/theme/ApiExplorer/FloatingButton/index.tsx","./src/theme/ApiExplorer/FormFileUpload/index.tsx","./src/theme/ApiExplorer/FormItem/index.tsx","./src/theme/ApiExplorer/FormMultiSelect/index.tsx","./src/theme/ApiExplorer/FormSelect/index.tsx","./src/theme/ApiExplorer/FormTextInput/index.tsx","./src/theme/ApiExplorer/LiveEditor/index.tsx","./src/theme/ApiExplorer/MethodEndpoint/index.tsx","./src/theme/ApiExplorer/ParamOptions/index.tsx","./src/theme/ApiExplorer/ParamOptions/slice.ts","./src/theme/ApiExplorer/ParamOptions/ParamFormItems/ParamArrayFormItem.tsx","./src/theme/ApiExplorer/ParamOptions/ParamFormItems/ParamBooleanFormItem.tsx","./src/theme/ApiExplorer/ParamOptions/ParamFormItems/ParamMultiSelectFormItem.tsx","./src/theme/ApiExplorer/ParamOptions/ParamFormItems/ParamSelectFormItem.tsx","./src/theme/ApiExplorer/ParamOptions/ParamFormItems/ParamTextFormItem.tsx","./src/theme/ApiExplorer/Request/index.tsx","./src/theme/ApiExplorer/Request/makeRequest.ts","./src/theme/ApiExplorer/Response/index.tsx","./src/theme/ApiExplorer/Response/slice.ts","./src/theme/ApiExplorer/SecuritySchemes/index.tsx","./src/theme/ApiExplorer/Server/index.tsx","./src/theme/ApiExplorer/Server/slice.ts","./src/theme/ApiItem/hooks.ts","./src/theme/ApiItem/index.tsx","./src/theme/ApiItem/store.ts","./src/theme/ApiItem/Layout/index.tsx","./src/theme/ApiLogo/index.tsx","./src/theme/ApiTabs/index.tsx","./src/theme/ArrayBrackets/index.tsx","./src/theme/CodeSamples/index.tsx","./src/theme/DiscriminatorTabs/index.tsx","./src/theme/Example/index.tsx","./src/theme/Markdown/index.d.ts","./src/theme/MimeTabs/index.tsx","./src/theme/OperationTabs/index.tsx","./src/theme/ParamsDetails/index.tsx","./src/theme/ParamsItem/index.tsx","./src/theme/RequestSchema/index.tsx","./src/theme/ResponseExamples/index.tsx","./src/theme/ResponseHeaders/index.tsx","./src/theme/ResponseSchema/index.tsx","./src/theme/Schema/index.tsx","./src/theme/SchemaItem/index.tsx","./src/theme/SchemaTabs/index.tsx","./src/theme/SkeletonLoader/index.tsx","./src/theme/StatusCodes/index.tsx"],"version":"5.9.3"}
|