docusaurus-theme-openapi-docs 0.0.0-1000
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/LICENSE +21 -0
- package/babel.config.js +35 -0
- package/lib/index.d.ts +2 -0
- package/lib/index.js +81 -0
- package/lib/markdown/createDescription.d.ts +1 -0
- package/lib/markdown/createDescription.js +15 -0
- package/lib/markdown/schema.d.ts +3 -0
- package/lib/markdown/schema.js +149 -0
- package/lib/markdown/utils.d.ts +10 -0
- package/lib/markdown/utils.js +49 -0
- package/lib/markdown/utils.test.d.ts +1 -0
- package/lib/markdown/utils.test.js +43 -0
- package/lib/theme/ApiExplorer/Accept/index.d.ts +3 -0
- package/lib/theme/ApiExplorer/Accept/index.js +38 -0
- package/lib/theme/ApiExplorer/Accept/slice.d.ts +11 -0
- package/lib/theme/ApiExplorer/Accept/slice.js +22 -0
- package/lib/theme/ApiExplorer/ApiCodeBlock/Container/_Container.scss +7 -0
- package/lib/theme/ApiExplorer/ApiCodeBlock/Container/index.d.ts +4 -0
- package/lib/theme/ApiExplorer/ApiCodeBlock/Container/index.js +35 -0
- package/lib/theme/ApiExplorer/ApiCodeBlock/Content/Element.d.ts +3 -0
- package/lib/theme/ApiExplorer/ApiCodeBlock/Content/Element.js +41 -0
- package/lib/theme/ApiExplorer/ApiCodeBlock/Content/String.d.ts +3 -0
- package/lib/theme/ApiExplorer/ApiCodeBlock/Content/String.js +153 -0
- package/lib/theme/ApiExplorer/ApiCodeBlock/Content/_Content.scss +91 -0
- package/lib/theme/ApiExplorer/ApiCodeBlock/CopyButton/_CopyButton.scss +44 -0
- package/lib/theme/ApiExplorer/ApiCodeBlock/CopyButton/index.d.ts +3 -0
- package/lib/theme/ApiExplorer/ApiCodeBlock/CopyButton/index.js +147 -0
- package/lib/theme/ApiExplorer/ApiCodeBlock/ExitButton/_ExitButton.scss +16 -0
- package/lib/theme/ApiExplorer/ApiCodeBlock/ExitButton/index.d.ts +6 -0
- package/lib/theme/ApiExplorer/ApiCodeBlock/ExitButton/index.js +58 -0
- package/lib/theme/ApiExplorer/ApiCodeBlock/ExpandButton/_ExpandButton.scss +62 -0
- package/lib/theme/ApiExplorer/ApiCodeBlock/ExpandButton/index.d.ts +14 -0
- package/lib/theme/ApiExplorer/ApiCodeBlock/ExpandButton/index.js +248 -0
- package/lib/theme/ApiExplorer/ApiCodeBlock/Line/_Line.scss +34 -0
- package/lib/theme/ApiExplorer/ApiCodeBlock/Line/index.d.ts +3 -0
- package/lib/theme/ApiExplorer/ApiCodeBlock/Line/index.js +59 -0
- package/lib/theme/ApiExplorer/ApiCodeBlock/WordWrapButton/_WordWrapButton.scss +10 -0
- package/lib/theme/ApiExplorer/ApiCodeBlock/WordWrapButton/index.d.ts +7 -0
- package/lib/theme/ApiExplorer/ApiCodeBlock/WordWrapButton/index.js +51 -0
- package/lib/theme/ApiExplorer/ApiCodeBlock/index.d.ts +3 -0
- package/lib/theme/ApiExplorer/ApiCodeBlock/index.js +110 -0
- package/lib/theme/ApiExplorer/Authorization/auth-types.d.ts +3 -0
- package/lib/theme/ApiExplorer/Authorization/auth-types.js +28 -0
- package/lib/theme/ApiExplorer/Authorization/index.d.ts +3 -0
- package/lib/theme/ApiExplorer/Authorization/index.js +160 -0
- package/lib/theme/ApiExplorer/Authorization/slice.d.ts +40 -0
- package/lib/theme/ApiExplorer/Authorization/slice.js +102 -0
- package/lib/theme/ApiExplorer/Body/index.d.ts +10 -0
- package/lib/theme/ApiExplorer/Body/index.js +381 -0
- package/lib/theme/ApiExplorer/Body/json2xml.js +43 -0
- package/lib/theme/ApiExplorer/Body/slice.d.ts +82 -0
- package/lib/theme/ApiExplorer/Body/slice.js +97 -0
- package/lib/theme/ApiExplorer/CodeSnippets/code-snippets-types.d.ts +21 -0
- package/lib/theme/ApiExplorer/CodeSnippets/code-snippets-types.js +8 -0
- package/lib/theme/ApiExplorer/CodeSnippets/index.d.ts +10 -0
- package/lib/theme/ApiExplorer/CodeSnippets/index.js +389 -0
- package/lib/theme/ApiExplorer/CodeSnippets/languages.d.ts +5 -0
- package/lib/theme/ApiExplorer/CodeSnippets/languages.js +95 -0
- package/lib/theme/ApiExplorer/CodeSnippets/languages.json +1290 -0
- package/lib/theme/ApiExplorer/CodeTabs/_CodeTabs.scss +501 -0
- package/lib/theme/ApiExplorer/CodeTabs/index.d.ts +15 -0
- package/lib/theme/ApiExplorer/CodeTabs/index.js +271 -0
- package/lib/theme/ApiExplorer/ContentType/index.d.ts +3 -0
- package/lib/theme/ApiExplorer/ContentType/index.js +40 -0
- package/lib/theme/ApiExplorer/ContentType/slice.d.ts +11 -0
- package/lib/theme/ApiExplorer/ContentType/slice.js +22 -0
- package/lib/theme/ApiExplorer/Export/index.d.ts +3 -0
- package/lib/theme/ApiExplorer/Export/index.js +57 -0
- package/lib/theme/ApiExplorer/FloatingButton/_FloatingButton.scss +27 -0
- package/lib/theme/ApiExplorer/FloatingButton/index.d.ts +8 -0
- package/lib/theme/ApiExplorer/FloatingButton/index.js +28 -0
- package/lib/theme/ApiExplorer/FormFileUpload/_FormFileUpload.scss +74 -0
- package/lib/theme/ApiExplorer/FormFileUpload/index.d.ts +7 -0
- package/lib/theme/ApiExplorer/FormFileUpload/index.js +173 -0
- package/lib/theme/ApiExplorer/FormItem/_FormItem.scss +21 -0
- package/lib/theme/ApiExplorer/FormItem/index.d.ts +10 -0
- package/lib/theme/ApiExplorer/FormItem/index.js +44 -0
- package/lib/theme/ApiExplorer/FormMultiSelect/_FormMultiSelect.scss +30 -0
- package/lib/theme/ApiExplorer/FormMultiSelect/index.d.ts +9 -0
- package/lib/theme/ApiExplorer/FormMultiSelect/index.js +51 -0
- package/lib/theme/ApiExplorer/FormSelect/_FormSelect.scss +43 -0
- package/lib/theme/ApiExplorer/FormSelect/index.d.ts +8 -0
- package/lib/theme/ApiExplorer/FormSelect/index.js +35 -0
- package/lib/theme/ApiExplorer/FormTextInput/_FormTextInput.scss +34 -0
- package/lib/theme/ApiExplorer/FormTextInput/index.d.ts +9 -0
- package/lib/theme/ApiExplorer/FormTextInput/index.js +73 -0
- package/lib/theme/ApiExplorer/LiveEditor/_LiveEditor.scss +15 -0
- package/lib/theme/ApiExplorer/LiveEditor/index.d.ts +6 -0
- package/lib/theme/ApiExplorer/LiveEditor/index.js +168 -0
- package/lib/theme/ApiExplorer/MethodEndpoint/_MethodEndpoint.scss +22 -0
- package/lib/theme/ApiExplorer/MethodEndpoint/index.d.ts +8 -0
- package/lib/theme/ApiExplorer/MethodEndpoint/index.js +86 -0
- package/lib/theme/ApiExplorer/ParamOptions/ParamFormItems/ParamArrayFormItem.d.ts +6 -0
- package/lib/theme/ApiExplorer/ParamOptions/ParamFormItems/ParamArrayFormItem.js +220 -0
- package/lib/theme/ApiExplorer/ParamOptions/ParamFormItems/ParamBooleanFormItem.d.ts +6 -0
- package/lib/theme/ApiExplorer/ParamOptions/ParamFormItems/ParamBooleanFormItem.js +63 -0
- package/lib/theme/ApiExplorer/ParamOptions/ParamFormItems/ParamMultiSelectFormItem.d.ts +6 -0
- package/lib/theme/ApiExplorer/ParamOptions/ParamFormItems/ParamMultiSelectFormItem.js +89 -0
- package/lib/theme/ApiExplorer/ParamOptions/ParamFormItems/ParamSelectFormItem.d.ts +6 -0
- package/lib/theme/ApiExplorer/ParamOptions/ParamFormItems/ParamSelectFormItem.js +63 -0
- package/lib/theme/ApiExplorer/ParamOptions/ParamFormItems/ParamTextFormItem.d.ts +6 -0
- package/lib/theme/ApiExplorer/ParamOptions/ParamFormItems/ParamTextFormItem.js +38 -0
- package/lib/theme/ApiExplorer/ParamOptions/_ParamOptions.scss +123 -0
- package/lib/theme/ApiExplorer/ParamOptions/index.d.ts +7 -0
- package/lib/theme/ApiExplorer/ParamOptions/index.js +223 -0
- package/lib/theme/ApiExplorer/ParamOptions/slice.d.ts +17 -0
- package/lib/theme/ApiExplorer/ParamOptions/slice.js +25 -0
- package/lib/theme/ApiExplorer/Request/_Request.scss +129 -0
- package/lib/theme/ApiExplorer/Request/index.d.ts +6 -0
- package/lib/theme/ApiExplorer/Request/index.js +396 -0
- package/lib/theme/ApiExplorer/Request/makeRequest.d.ts +4 -0
- package/lib/theme/ApiExplorer/Request/makeRequest.js +222 -0
- package/lib/theme/ApiExplorer/Response/_Response.scss +121 -0
- package/lib/theme/ApiExplorer/Response/index.d.ts +6 -0
- package/lib/theme/ApiExplorer/Response/index.js +193 -0
- package/lib/theme/ApiExplorer/Response/slice.d.ts +17 -0
- package/lib/theme/ApiExplorer/Response/slice.js +51 -0
- package/lib/theme/ApiExplorer/SecuritySchemes/index.d.ts +3 -0
- package/lib/theme/ApiExplorer/SecuritySchemes/index.js +380 -0
- package/lib/theme/ApiExplorer/Server/_Server.scss +26 -0
- package/lib/theme/ApiExplorer/Server/index.d.ts +3 -0
- package/lib/theme/ApiExplorer/Server/index.js +199 -0
- package/lib/theme/ApiExplorer/Server/slice.d.ts +13 -0
- package/lib/theme/ApiExplorer/Server/slice.js +33 -0
- package/lib/theme/ApiExplorer/buildPostmanRequest.d.ts +20 -0
- package/lib/theme/ApiExplorer/buildPostmanRequest.js +465 -0
- package/lib/theme/ApiExplorer/index.d.ts +7 -0
- package/lib/theme/ApiExplorer/index.js +41 -0
- package/lib/theme/ApiExplorer/persistanceMiddleware.d.ts +3 -0
- package/lib/theme/ApiExplorer/persistanceMiddleware.js +54 -0
- package/lib/theme/ApiExplorer/storage-utils.d.ts +4 -0
- package/lib/theme/ApiExplorer/storage-utils.js +41 -0
- package/lib/theme/ApiItem/Layout/index.d.ts +3 -0
- package/lib/theme/ApiItem/Layout/index.js +121 -0
- package/lib/theme/ApiItem/Layout/styles.module.css +17 -0
- package/lib/theme/ApiItem/hooks.d.ts +12 -0
- package/lib/theme/ApiItem/hooks.js +13 -0
- package/lib/theme/ApiItem/index.d.ts +2 -0
- package/lib/theme/ApiItem/index.js +238 -0
- package/lib/theme/ApiItem/store.d.ts +46 -0
- package/lib/theme/ApiItem/store.js +53 -0
- package/lib/theme/ApiLogo/index.d.ts +2 -0
- package/lib/theme/ApiLogo/index.js +51 -0
- package/lib/theme/ApiTabs/_ApiTabs.scss +142 -0
- package/lib/theme/ApiTabs/index.d.ts +7 -0
- package/lib/theme/ApiTabs/index.js +270 -0
- package/lib/theme/ArrayBrackets/index.d.ts +3 -0
- package/lib/theme/ArrayBrackets/index.js +50 -0
- package/lib/theme/DiscriminatorTabs/_DiscriminatorTabs.scss +98 -0
- package/lib/theme/DiscriminatorTabs/index.d.ts +3 -0
- package/lib/theme/DiscriminatorTabs/index.js +258 -0
- package/lib/theme/Markdown/Details/_Details.scss +122 -0
- package/lib/theme/Markdown/index.js +179 -0
- package/lib/theme/MimeTabs/_MimeTabs.scss +70 -0
- package/lib/theme/MimeTabs/index.d.ts +6 -0
- package/lib/theme/MimeTabs/index.js +286 -0
- package/lib/theme/OperationTabs/_OperationTabs.scss +72 -0
- package/lib/theme/OperationTabs/index.d.ts +3 -0
- package/lib/theme/OperationTabs/index.js +248 -0
- package/lib/theme/ParamsDetails/index.d.ts +6 -0
- package/lib/theme/ParamsDetails/index.js +85 -0
- package/lib/theme/ParamsItem/_ParamsItem.scss +54 -0
- package/lib/theme/ParamsItem/index.d.ts +25 -0
- package/lib/theme/ParamsItem/index.js +218 -0
- package/lib/theme/RequestSchema/index.d.ts +15 -0
- package/lib/theme/RequestSchema/index.js +194 -0
- package/lib/theme/ResponseExamples/index.d.ts +18 -0
- package/lib/theme/ResponseExamples/index.js +193 -0
- package/lib/theme/ResponseHeaders/index.d.ts +13 -0
- package/lib/theme/ResponseHeaders/index.js +39 -0
- package/lib/theme/ResponseSamples/_ResponseSamples.scss +3 -0
- package/lib/theme/ResponseSamples/index.d.ts +8 -0
- package/lib/theme/ResponseSamples/index.js +27 -0
- package/lib/theme/ResponseSchema/index.d.ts +15 -0
- package/lib/theme/ResponseSchema/index.js +159 -0
- package/lib/theme/Schema/index.d.ts +8 -0
- package/lib/theme/Schema/index.js +885 -0
- package/lib/theme/SchemaItem/_SchemaItem.scss +89 -0
- package/lib/theme/SchemaItem/index.d.ts +12 -0
- package/lib/theme/SchemaItem/index.js +213 -0
- package/lib/theme/SchemaTabs/_SchemaTabs.scss +61 -0
- package/lib/theme/SchemaTabs/index.d.ts +3 -0
- package/lib/theme/SchemaTabs/index.js +255 -0
- package/lib/theme/SkeletonLoader/index.d.ts +6 -0
- package/lib/theme/SkeletonLoader/index.js +20 -0
- package/lib/theme/StatusCodes/index.d.ts +9 -0
- package/lib/theme/StatusCodes/index.js +81 -0
- package/lib/theme/styles.scss +212 -0
- package/lib/types.d.ts +157 -0
- package/lib/types.js +8 -0
- package/package.json +83 -0
- package/src/index.ts +85 -0
- package/src/markdown/createDescription.ts +13 -0
- package/src/markdown/schema.ts +181 -0
- package/src/markdown/utils.test.ts +49 -0
- package/src/markdown/utils.ts +59 -0
- package/src/plugin-content-docs.d.ts +20 -0
- package/src/postman-code-generators.d.ts +9 -0
- package/src/react-magic-dropzone.d.ts +9 -0
- package/src/theme/ApiExplorer/Accept/index.tsx +36 -0
- package/src/theme/ApiExplorer/Accept/slice.ts +29 -0
- package/src/theme/ApiExplorer/ApiCodeBlock/Container/_Container.scss +7 -0
- package/src/theme/ApiExplorer/ApiCodeBlock/Container/index.tsx +32 -0
- package/src/theme/ApiExplorer/ApiCodeBlock/Content/Element.tsx +34 -0
- package/src/theme/ApiExplorer/ApiCodeBlock/Content/String.tsx +134 -0
- package/src/theme/ApiExplorer/ApiCodeBlock/Content/_Content.scss +91 -0
- package/src/theme/ApiExplorer/ApiCodeBlock/CopyButton/_CopyButton.scss +44 -0
- package/src/theme/ApiExplorer/ApiCodeBlock/CopyButton/index.tsx +79 -0
- package/src/theme/ApiExplorer/ApiCodeBlock/ExitButton/_ExitButton.scss +16 -0
- package/src/theme/ApiExplorer/ApiCodeBlock/ExitButton/index.tsx +55 -0
- package/src/theme/ApiExplorer/ApiCodeBlock/ExpandButton/_ExpandButton.scss +62 -0
- package/src/theme/ApiExplorer/ApiCodeBlock/ExpandButton/index.tsx +166 -0
- package/src/theme/ApiExplorer/ApiCodeBlock/Line/_Line.scss +34 -0
- package/src/theme/ApiExplorer/ApiCodeBlock/Line/index.tsx +48 -0
- package/src/theme/ApiExplorer/ApiCodeBlock/WordWrapButton/_WordWrapButton.scss +10 -0
- package/src/theme/ApiExplorer/ApiCodeBlock/WordWrapButton/index.tsx +54 -0
- package/src/theme/ApiExplorer/ApiCodeBlock/index.tsx +45 -0
- package/src/theme/ApiExplorer/Authorization/auth-types.ts +30 -0
- package/src/theme/ApiExplorer/Authorization/index.tsx +158 -0
- package/src/theme/ApiExplorer/Authorization/slice.ts +146 -0
- package/src/theme/ApiExplorer/Body/index.tsx +376 -0
- package/src/theme/ApiExplorer/Body/json2xml.js +43 -0
- package/src/theme/ApiExplorer/Body/slice.ts +133 -0
- package/src/theme/ApiExplorer/CodeSnippets/code-snippets-types.ts +57 -0
- package/src/theme/ApiExplorer/CodeSnippets/index.tsx +338 -0
- package/src/theme/ApiExplorer/CodeSnippets/languages.json +1290 -0
- package/src/theme/ApiExplorer/CodeSnippets/languages.ts +96 -0
- package/src/theme/ApiExplorer/CodeTabs/_CodeTabs.scss +501 -0
- package/src/theme/ApiExplorer/CodeTabs/index.tsx +248 -0
- package/src/theme/ApiExplorer/ContentType/index.tsx +38 -0
- package/src/theme/ApiExplorer/ContentType/slice.ts +29 -0
- package/src/theme/ApiExplorer/Export/index.tsx +47 -0
- package/src/theme/ApiExplorer/FloatingButton/_FloatingButton.scss +27 -0
- package/src/theme/ApiExplorer/FloatingButton/index.tsx +29 -0
- package/src/theme/ApiExplorer/FormFileUpload/_FormFileUpload.scss +74 -0
- package/src/theme/ApiExplorer/FormFileUpload/index.tsx +119 -0
- package/src/theme/ApiExplorer/FormItem/_FormItem.scss +21 -0
- package/src/theme/ApiExplorer/FormItem/index.tsx +33 -0
- package/src/theme/ApiExplorer/FormMultiSelect/_FormMultiSelect.scss +30 -0
- package/src/theme/ApiExplorer/FormMultiSelect/index.tsx +57 -0
- package/src/theme/ApiExplorer/FormSelect/_FormSelect.scss +43 -0
- package/src/theme/ApiExplorer/FormSelect/index.tsx +38 -0
- package/src/theme/ApiExplorer/FormTextInput/_FormTextInput.scss +34 -0
- package/src/theme/ApiExplorer/FormTextInput/index.tsx +80 -0
- package/src/theme/ApiExplorer/LiveEditor/_LiveEditor.scss +15 -0
- package/src/theme/ApiExplorer/LiveEditor/index.tsx +114 -0
- package/src/theme/ApiExplorer/MethodEndpoint/_MethodEndpoint.scss +22 -0
- package/src/theme/ApiExplorer/MethodEndpoint/index.tsx +91 -0
- package/src/theme/ApiExplorer/ParamOptions/ParamFormItems/ParamArrayFormItem.tsx +175 -0
- package/src/theme/ApiExplorer/ParamOptions/ParamFormItems/ParamBooleanFormItem.tsx +64 -0
- package/src/theme/ApiExplorer/ParamOptions/ParamFormItems/ParamMultiSelectFormItem.tsx +86 -0
- package/src/theme/ApiExplorer/ParamOptions/ParamFormItems/ParamSelectFormItem.tsx +65 -0
- package/src/theme/ApiExplorer/ParamOptions/ParamFormItems/ParamTextFormItem.tsx +38 -0
- package/src/theme/ApiExplorer/ParamOptions/_ParamOptions.scss +123 -0
- package/src/theme/ApiExplorer/ParamOptions/index.tsx +146 -0
- package/src/theme/ApiExplorer/ParamOptions/slice.ts +37 -0
- package/src/theme/ApiExplorer/Request/_Request.scss +129 -0
- package/src/theme/ApiExplorer/Request/index.tsx +309 -0
- package/src/theme/ApiExplorer/Request/makeRequest.ts +254 -0
- package/src/theme/ApiExplorer/Response/_Response.scss +121 -0
- package/src/theme/ApiExplorer/Response/index.tsx +157 -0
- package/src/theme/ApiExplorer/Response/slice.ts +52 -0
- package/src/theme/ApiExplorer/SecuritySchemes/index.tsx +287 -0
- package/src/theme/ApiExplorer/Server/_Server.scss +26 -0
- package/src/theme/ApiExplorer/Server/index.tsx +130 -0
- package/src/theme/ApiExplorer/Server/slice.ts +39 -0
- package/src/theme/ApiExplorer/buildPostmanRequest.ts +526 -0
- package/src/theme/ApiExplorer/index.tsx +41 -0
- package/src/theme/ApiExplorer/persistanceMiddleware.ts +71 -0
- package/src/theme/ApiExplorer/postman-collection.d.ts +10 -0
- package/src/theme/ApiExplorer/react-modal.d.ts +8 -0
- package/src/theme/ApiExplorer/storage-utils.ts +39 -0
- package/src/theme/ApiItem/Layout/index.tsx +85 -0
- package/src/theme/ApiItem/Layout/styles.module.css +17 -0
- package/src/theme/ApiItem/hooks.ts +13 -0
- package/src/theme/ApiItem/index.tsx +222 -0
- package/src/theme/ApiItem/store.ts +51 -0
- package/src/theme/ApiLogo/index.tsx +52 -0
- package/src/theme/ApiTabs/_ApiTabs.scss +142 -0
- package/src/theme/ApiTabs/index.tsx +238 -0
- package/src/theme/ArrayBrackets/index.tsx +37 -0
- package/src/theme/DiscriminatorTabs/_DiscriminatorTabs.scss +98 -0
- package/src/theme/DiscriminatorTabs/index.tsx +229 -0
- package/src/theme/Markdown/Details/_Details.scss +122 -0
- package/src/theme/Markdown/index.js +179 -0
- package/src/theme/MimeTabs/_MimeTabs.scss +70 -0
- package/src/theme/MimeTabs/index.tsx +257 -0
- package/src/theme/OperationTabs/_OperationTabs.scss +72 -0
- package/src/theme/OperationTabs/index.tsx +220 -0
- package/src/theme/ParamsDetails/index.tsx +81 -0
- package/src/theme/ParamsItem/_ParamsItem.scss +54 -0
- package/src/theme/ParamsItem/index.tsx +205 -0
- package/src/theme/RequestSchema/index.tsx +157 -0
- package/src/theme/ResponseExamples/index.tsx +192 -0
- package/src/theme/ResponseHeaders/index.tsx +49 -0
- package/src/theme/ResponseSamples/_ResponseSamples.scss +3 -0
- package/src/theme/ResponseSamples/index.tsx +31 -0
- package/src/theme/ResponseSchema/index.tsx +144 -0
- package/src/theme/Schema/index.tsx +939 -0
- package/src/theme/SchemaItem/_SchemaItem.scss +89 -0
- package/src/theme/SchemaItem/index.tsx +198 -0
- package/src/theme/SchemaTabs/_SchemaTabs.scss +61 -0
- package/src/theme/SchemaTabs/index.tsx +224 -0
- package/src/theme/SkeletonLoader/index.tsx +18 -0
- package/src/theme/StatusCodes/index.tsx +72 -0
- package/src/theme/styles.scss +212 -0
- package/src/theme-classic.d.ts +80 -0
- package/src/theme-openapi.d.ts +288 -0
- package/src/theme-translations.d.ts +9 -0
- package/src/types.ts +182 -0
- package/tsconfig.json +16 -0
- package/tsconfig.tsbuildinfo +1 -0
|
@@ -0,0 +1,212 @@
|
|
|
1
|
+
/* ============================================================================
|
|
2
|
+
* Copyright (c) Palo Alto Networks
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
* ========================================================================== */
|
|
7
|
+
/* API Demo Panel */
|
|
8
|
+
@use "./ApiExplorer/CodeTabs/CodeTabs";
|
|
9
|
+
@use "./ApiExplorer/FloatingButton/FloatingButton";
|
|
10
|
+
@use "./ApiExplorer/FormFileUpload/FormFileUpload";
|
|
11
|
+
@use "./ApiExplorer/FormItem/FormItem";
|
|
12
|
+
@use "./ApiExplorer/FormMultiSelect/FormMultiSelect";
|
|
13
|
+
@use "./ApiExplorer/FormSelect/FormSelect";
|
|
14
|
+
@use "./ApiExplorer/FormTextInput/FormTextInput";
|
|
15
|
+
@use "./ApiExplorer/LiveEditor/LiveEditor";
|
|
16
|
+
@use "./ApiExplorer/MethodEndpoint/MethodEndpoint";
|
|
17
|
+
@use "./ApiExplorer/ParamOptions/ParamOptions";
|
|
18
|
+
@use "./ApiExplorer/Request/Request";
|
|
19
|
+
@use "./ApiExplorer/Response/Response";
|
|
20
|
+
@use "./ApiExplorer/Server/Server";
|
|
21
|
+
|
|
22
|
+
/* Api Demo Panel / ApiCodeBlock */
|
|
23
|
+
@use "./ApiExplorer/ApiCodeBlock/Container/Container";
|
|
24
|
+
@use "./ApiExplorer/ApiCodeBlock/Content/Content";
|
|
25
|
+
@use "./ApiExplorer/ApiCodeBlock/CopyButton/CopyButton";
|
|
26
|
+
@use "./ApiExplorer/ApiCodeBlock/ExitButton/ExitButton";
|
|
27
|
+
@use "./ApiExplorer/ApiCodeBlock/ExpandButton/ExpandButton";
|
|
28
|
+
@use "./ApiExplorer/ApiCodeBlock/Line/Line";
|
|
29
|
+
@use "./ApiExplorer/ApiCodeBlock/WordWrapButton/WordWrapButton";
|
|
30
|
+
|
|
31
|
+
/* Schema Styling */
|
|
32
|
+
@use "./ParamsItem/ParamsItem";
|
|
33
|
+
@use "./SchemaItem/SchemaItem";
|
|
34
|
+
/* Tabs Styling */
|
|
35
|
+
@use "./ApiTabs/ApiTabs";
|
|
36
|
+
@use "./DiscriminatorTabs/DiscriminatorTabs";
|
|
37
|
+
@use "./MimeTabs/MimeTabs";
|
|
38
|
+
@use "./SchemaTabs/SchemaTabs";
|
|
39
|
+
@use "./OperationTabs/OperationTabs";
|
|
40
|
+
/* Code Samples */
|
|
41
|
+
@use "./ResponseSamples/ResponseSamples";
|
|
42
|
+
/* Markdown Styling */
|
|
43
|
+
@use "./Markdown/Details/Details";
|
|
44
|
+
|
|
45
|
+
:root {
|
|
46
|
+
--openapi-required: var(--ifm-color-danger);
|
|
47
|
+
--openapi-deprecated: var(--ifm-color-warning);
|
|
48
|
+
--openapi-nullable: var(--ifm-color-info);
|
|
49
|
+
--openapi-code-blue: var(--ifm-color-info);
|
|
50
|
+
--openapi-code-red: var(--ifm-color-danger);
|
|
51
|
+
--openapi-code-orange: var(--ifm-color-warning);
|
|
52
|
+
--openapi-code-green: var(--ifm-color-success);
|
|
53
|
+
--openapi-card-background-color: var(--ifm-color-gray-100);
|
|
54
|
+
--openapi-card-border-radius: var(--ifm-pre-border-radius);
|
|
55
|
+
--openapi-input-border: var(--ifm-color-primary);
|
|
56
|
+
--openapi-input-background: var(--openapi-card-background-color);
|
|
57
|
+
--openapi-tree-line-color: var(--ifm-toc-border-color);
|
|
58
|
+
--openapi-code-tab-border-color: var(--ifm-toc-border-color);
|
|
59
|
+
--openapi-code-tab-border-color-python: #ffdb50;
|
|
60
|
+
--openapi-code-tab-border-color-bash: var(--ifm-color-danger);
|
|
61
|
+
--openapi-code-tab-border-color-go: var(--ifm-color-info);
|
|
62
|
+
--openapi-code-tab-border-color-js: var(--ifm-color-warning);
|
|
63
|
+
--openapi-code-tab-border-color-ruby: var(--ifm-color-danger);
|
|
64
|
+
--openapi-code-tab-border-color-csharp: #9b4f96;
|
|
65
|
+
--openapi-code-tab-border-color-nodejs: var(--ifm-color-success);
|
|
66
|
+
--openapi-code-tab-border-color-php: #6181b6;
|
|
67
|
+
--openapi-code-tab-border-color-java: #0374bd;
|
|
68
|
+
--openapi-code-tab-border-color-powershell: #00adef;
|
|
69
|
+
--openapi-code-tab-shadow-color-python: rgba(255, 219, 80, 0.25);
|
|
70
|
+
--openapi-code-tab-shadow-color-bash: rgba(250, 56, 62, 0.25);
|
|
71
|
+
--openapi-code-tab-shadow-color-go: rgba(84, 199, 236, 0.25);
|
|
72
|
+
--openapi-code-tab-shadow-color-js: rgba(255, 186, 0, 0.25);
|
|
73
|
+
--openapi-code-tab-shadow-color-ruby: rgba(250, 56, 62, 0.25);
|
|
74
|
+
--openapi-code-tab-shadow-color-csharp: rgba(155, 79, 150, 0.25);
|
|
75
|
+
--opeanpi-code-tab-shadow-color-nodejs: rgba(0, 164, 0, 0.25);
|
|
76
|
+
--openapi-code-tab-shadow-color-php: rgba(97, 129, 182, 0.25);
|
|
77
|
+
--openapi-code-tab-shadow-color-java: rgba(3, 116, 189, 0.25);
|
|
78
|
+
--opeanpi-code-tab-shadow-color-powershell: rgba(3, 116, 189, 0.25);
|
|
79
|
+
--openapi-explorer-font-size-input: 12px;
|
|
80
|
+
--openapi-explorer-font-size-code: 12px;
|
|
81
|
+
--openapi-explorer-padding-input: 0.5rem;
|
|
82
|
+
--openapi-explorer-border-color: var(--ifm-toc-border-color);
|
|
83
|
+
--openapi-explorer-caret-bg: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16px" height="16px" viewBox="0 0 24 24"><path d="M7.41 15.41L12 10.83l4.59 4.58L18 14l-6-6-6 6z"></path></svg>');
|
|
84
|
+
--openapi-skeleton-background: var(--ifm-color-emphasis-100);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
[data-theme="dark"] {
|
|
88
|
+
--openapi-card-background-color: var(--ifm-color-gray-900) !important;
|
|
89
|
+
--openapi-explorer-caret-bg: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16px" height="16px" viewBox="0 0 24 24" fill="white"><path d="M7.41 15.41L12 10.83l4.59 4.58L18 14l-6-6-6 6z"></path></svg>') !important;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.docs-wrapper {
|
|
93
|
+
height: 100%;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
// @media (min-width: 997px) {
|
|
97
|
+
// .docItemCol {
|
|
98
|
+
// max-width: 75% !important;
|
|
99
|
+
// }
|
|
100
|
+
|
|
101
|
+
// /* Prevent hydration FOUC, as the mobile TOC needs to be server-rendered */
|
|
102
|
+
// .tocMobile {
|
|
103
|
+
// display: none;
|
|
104
|
+
// }
|
|
105
|
+
// }
|
|
106
|
+
|
|
107
|
+
/* Begin OpenAPI theme styles */
|
|
108
|
+
// [data-theme="dark"] {
|
|
109
|
+
// --openapi-card-background-color: var(--ifm-color-gray-900) !important;
|
|
110
|
+
// }
|
|
111
|
+
|
|
112
|
+
// .theme-api-markdown div[class^="collapsibleContent"] {
|
|
113
|
+
// margin-top: 0 !important;
|
|
114
|
+
// padding-left: 2px;
|
|
115
|
+
// }
|
|
116
|
+
|
|
117
|
+
/* Demo panel details */
|
|
118
|
+
|
|
119
|
+
// .theme-api-markdown .openapi-explorer__details > div > div > pre {
|
|
120
|
+
// border-top-left-radius: 0;
|
|
121
|
+
// border-top-right-radius: 0;
|
|
122
|
+
// }
|
|
123
|
+
|
|
124
|
+
/* Code block */
|
|
125
|
+
|
|
126
|
+
// .theme-api-markdown code {
|
|
127
|
+
// max-width: 600px;
|
|
128
|
+
// max-height: 500px;
|
|
129
|
+
// overflow: auto;
|
|
130
|
+
// }
|
|
131
|
+
|
|
132
|
+
/* Version button */
|
|
133
|
+
|
|
134
|
+
.version-button div {
|
|
135
|
+
display: block;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
.version-button div > button > span::after {
|
|
139
|
+
border-color: currentcolor transparent;
|
|
140
|
+
border-style: solid;
|
|
141
|
+
border-width: 0.4em 0.4em 0;
|
|
142
|
+
content: "";
|
|
143
|
+
margin-left: 0.3em;
|
|
144
|
+
position: relative;
|
|
145
|
+
transform: translateY(-50%);
|
|
146
|
+
display: inline-block;
|
|
147
|
+
font-size: 0.8rem;
|
|
148
|
+
top: 1px;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
.openapi__logo {
|
|
152
|
+
width: 250px;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
.openapi__heading {
|
|
156
|
+
font-size: 2rem;
|
|
157
|
+
margin-bottom: 0.5rem !important;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
.openapi-left-panel__container {
|
|
161
|
+
border-right: thin solid var(--ifm-toc-border-color);
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
@media (max-width: 997px) {
|
|
165
|
+
.schema {
|
|
166
|
+
margin-bottom: 1rem;
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
.openapi-tabs__heading {
|
|
171
|
+
margin-bottom: 1rem;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
/* Loading Skeleton */
|
|
175
|
+
@keyframes pulsing {
|
|
176
|
+
0% {
|
|
177
|
+
opacity: 1;
|
|
178
|
+
background-color: var(--ifm-color-emphasis-100);
|
|
179
|
+
}
|
|
180
|
+
50% {
|
|
181
|
+
opacity: 0.6;
|
|
182
|
+
background-color: var(--ifm-toc-border-color);
|
|
183
|
+
}
|
|
184
|
+
100% {
|
|
185
|
+
opacity: 1;
|
|
186
|
+
background-color: var(--ifm-color-emphasis-100);
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
.openapi-skeleton {
|
|
191
|
+
animation: pulsing 2s infinite ease-in-out;
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
/* Loading Skeleton */
|
|
195
|
+
.openapi-skeleton {
|
|
196
|
+
border-radius: var(--ifm-pre-border-radius);
|
|
197
|
+
background-color: var(--openapi-skeleton-background);
|
|
198
|
+
max-width: 100%;
|
|
199
|
+
margin: 1rem auto;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
.openapi-skeleton.sm {
|
|
203
|
+
height: 100px;
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
.openapi-skeleton.md {
|
|
207
|
+
height: 350px;
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
.openapi-skeleton.lg {
|
|
211
|
+
height: 96.5%;
|
|
212
|
+
}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
/* ============================================================================
|
|
2
|
+
* Copyright (c) Palo Alto Networks
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
* ========================================================================== */
|
|
7
|
+
|
|
8
|
+
/// <reference types="@docusaurus/theme-classic" />
|
|
9
|
+
|
|
10
|
+
declare module "@docusaurus/theme-common/internal" {
|
|
11
|
+
import { CSSProperties, ReactNode, RefObject } from "react";
|
|
12
|
+
|
|
13
|
+
import type { PropDocContent } from "@docusaurus/plugin-content-docs";
|
|
14
|
+
import { MagicCommentConfig } from "@docusaurus/theme-common/lib/utils/codeBlockUtils";
|
|
15
|
+
import {
|
|
16
|
+
TabsProps as ITabsProps,
|
|
17
|
+
TabValue,
|
|
18
|
+
} from "@docusaurus/theme-common/lib/utils/tabsUtils";
|
|
19
|
+
import { Props as ICodeBlockProps } from "@theme/CodeBlock";
|
|
20
|
+
import { Props as ICopyButtonProps } from "@theme/CodeBlock/CopyButton";
|
|
21
|
+
import { Props as ILineProps } from "@theme/CodeBlock/Line";
|
|
22
|
+
import { PrismTheme } from "prism-react-renderer";
|
|
23
|
+
|
|
24
|
+
export interface TabProps extends ITabsProps {
|
|
25
|
+
length?: number;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export interface CopyButtonProps extends ICopyButtonProps {}
|
|
29
|
+
export interface LineProps extends ILineProps {}
|
|
30
|
+
export interface CodeBlockProps extends ICodeBlockProps {}
|
|
31
|
+
|
|
32
|
+
export function usePrismTheme(): PrismTheme;
|
|
33
|
+
|
|
34
|
+
export function sanitizeTabsChildren(children: TabProps["children"]);
|
|
35
|
+
|
|
36
|
+
export function getPrismCssVariables(prismTheme: PrismTheme): CSSProperties;
|
|
37
|
+
|
|
38
|
+
export function parseCodeBlockTitle(metastring?: string): string;
|
|
39
|
+
|
|
40
|
+
export function parseLanguage(className: string): string | undefined;
|
|
41
|
+
|
|
42
|
+
export function containsLineNumbers(metastring?: string): boolean;
|
|
43
|
+
|
|
44
|
+
export function useScrollPositionBlocker(): {
|
|
45
|
+
blockElementScrollPositionUntilNextRender: (el: HTMLElement) => void;
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
export function DocProvider({
|
|
49
|
+
children,
|
|
50
|
+
content,
|
|
51
|
+
}: {
|
|
52
|
+
children: ReactNode;
|
|
53
|
+
content: PropDocContent;
|
|
54
|
+
});
|
|
55
|
+
|
|
56
|
+
export function useTabs(props: TabProps): {
|
|
57
|
+
selectedValue: string;
|
|
58
|
+
selectValue: (value: string) => void;
|
|
59
|
+
tabValues: readonly TabValue[];
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
export function parseLines(
|
|
63
|
+
content: string,
|
|
64
|
+
options: {
|
|
65
|
+
metastring: string | undefined;
|
|
66
|
+
language: string | undefined;
|
|
67
|
+
magicComments: MagicCommentConfig[];
|
|
68
|
+
}
|
|
69
|
+
): {
|
|
70
|
+
lineClassNames: { [lineIndex: number]: string[] };
|
|
71
|
+
code: string;
|
|
72
|
+
};
|
|
73
|
+
|
|
74
|
+
export function useCodeWordWrap(): {
|
|
75
|
+
readonly codeBlockRef: RefObject<HTMLPreElement>;
|
|
76
|
+
readonly isEnabled: boolean;
|
|
77
|
+
readonly isCodeScrollable: boolean;
|
|
78
|
+
readonly toggle: () => void;
|
|
79
|
+
};
|
|
80
|
+
}
|
|
@@ -0,0 +1,288 @@
|
|
|
1
|
+
/* ============================================================================
|
|
2
|
+
* Copyright (c) Palo Alto Networks
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
* ========================================================================== */
|
|
7
|
+
|
|
8
|
+
/// <reference types="docusaurus-plugin-openapi-docs" />
|
|
9
|
+
|
|
10
|
+
/* eslint-disable @typescript-eslint/no-use-before-define */
|
|
11
|
+
|
|
12
|
+
declare module "@docusaurus/plugin-content-docs-types" {
|
|
13
|
+
// Makes all properties visible when hovering over the type
|
|
14
|
+
type Expand<T extends Record<string, unknown>> = { [P in keyof T]: T[P] };
|
|
15
|
+
|
|
16
|
+
export type SidebarItemBase = {
|
|
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
|
+
}
|
|
47
|
+
|
|
48
|
+
declare module "docusaurus-theme-openapi-docs" {
|
|
49
|
+
export type ThemeConfig = Partial<import("./types").ThemeConfig>;
|
|
50
|
+
}
|
|
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
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/* ============================================================================
|
|
2
|
+
* Copyright (c) Palo Alto Networks
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
* ========================================================================== */
|
|
7
|
+
|
|
8
|
+
// TODO: Remove this when https://github.com/facebook/docusaurus/issues/6087 is resolved.
|
|
9
|
+
declare module "@docusaurus/theme-translations";
|