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,85 @@
|
|
|
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
|
+
import React, { type JSX } from "react";
|
|
9
|
+
|
|
10
|
+
import { useDoc } from "@docusaurus/plugin-content-docs/client";
|
|
11
|
+
import { useWindowSize } from "@docusaurus/theme-common";
|
|
12
|
+
import type { Props } from "@theme/ApiItem/Layout";
|
|
13
|
+
import ContentVisibility from "@theme/ContentVisibility";
|
|
14
|
+
import DocBreadcrumbs from "@theme/DocBreadcrumbs";
|
|
15
|
+
import DocItemContent from "@theme/DocItem/Content";
|
|
16
|
+
import DocItemFooter from "@theme/DocItem/Footer";
|
|
17
|
+
import DocItemPaginator from "@theme/DocItem/Paginator";
|
|
18
|
+
import DocItemTOCDesktop from "@theme/DocItem/TOC/Desktop";
|
|
19
|
+
import DocItemTOCMobile from "@theme/DocItem/TOC/Mobile";
|
|
20
|
+
import DocVersionBadge from "@theme/DocVersionBadge";
|
|
21
|
+
import DocVersionBanner from "@theme/DocVersionBanner";
|
|
22
|
+
import clsx from "clsx";
|
|
23
|
+
|
|
24
|
+
import styles from "./styles.module.css";
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* Decide if the toc should be rendered, on mobile or desktop viewports
|
|
28
|
+
*/
|
|
29
|
+
function useDocTOC() {
|
|
30
|
+
const { frontMatter, toc } = useDoc();
|
|
31
|
+
const windowSize = useWindowSize();
|
|
32
|
+
|
|
33
|
+
const hidden = frontMatter.hide_table_of_contents;
|
|
34
|
+
const canRender = !hidden && toc.length > 0;
|
|
35
|
+
|
|
36
|
+
const mobile = canRender ? <DocItemTOCMobile /> : undefined;
|
|
37
|
+
|
|
38
|
+
const desktop =
|
|
39
|
+
canRender && (windowSize === "desktop" || windowSize === "ssr") ? (
|
|
40
|
+
<DocItemTOCDesktop />
|
|
41
|
+
) : undefined;
|
|
42
|
+
|
|
43
|
+
return {
|
|
44
|
+
hidden,
|
|
45
|
+
mobile,
|
|
46
|
+
desktop,
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export default function DocItemLayout({ children }: Props): JSX.Element {
|
|
51
|
+
const docTOC = useDocTOC();
|
|
52
|
+
const { metadata } = useDoc();
|
|
53
|
+
const { frontMatter } = useDoc();
|
|
54
|
+
const api = frontMatter.api;
|
|
55
|
+
const schema = frontMatter.schema;
|
|
56
|
+
return (
|
|
57
|
+
<div className="row">
|
|
58
|
+
<div className={clsx("col", !docTOC.hidden && styles.docItemCol)}>
|
|
59
|
+
<ContentVisibility metadata={metadata} />
|
|
60
|
+
<DocVersionBanner />
|
|
61
|
+
<div className={styles.docItemContainer}>
|
|
62
|
+
<article>
|
|
63
|
+
<DocBreadcrumbs />
|
|
64
|
+
<DocVersionBadge />
|
|
65
|
+
{docTOC.mobile}
|
|
66
|
+
<DocItemContent>{children}</DocItemContent>
|
|
67
|
+
<div className="row">
|
|
68
|
+
<div
|
|
69
|
+
className={clsx("col", api || schema ? "col--7" : "col--12")}
|
|
70
|
+
>
|
|
71
|
+
<DocItemFooter />
|
|
72
|
+
</div>
|
|
73
|
+
</div>
|
|
74
|
+
</article>
|
|
75
|
+
<div className="row">
|
|
76
|
+
<div className={clsx("col", api || schema ? "col--7" : "col--12")}>
|
|
77
|
+
<DocItemPaginator />
|
|
78
|
+
</div>
|
|
79
|
+
</div>
|
|
80
|
+
</div>
|
|
81
|
+
</div>
|
|
82
|
+
{docTOC.desktop && <div className="col col--3">{docTOC.desktop}</div>}
|
|
83
|
+
</div>
|
|
84
|
+
);
|
|
85
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
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
|
+
.docItemContainer header + *,
|
|
9
|
+
.docItemContainer article > *:first-child {
|
|
10
|
+
margin-top: 0;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
@media (min-width: 997px) {
|
|
14
|
+
.docItemCol {
|
|
15
|
+
max-width: 75% !important;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
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
|
+
import { TypedUseSelectorHook, useDispatch, useSelector } from "react-redux";
|
|
9
|
+
|
|
10
|
+
import type { RootState, AppDispatch } from "./store";
|
|
11
|
+
|
|
12
|
+
export const useTypedDispatch = () => useDispatch<AppDispatch>();
|
|
13
|
+
export const useTypedSelector: TypedUseSelectorHook<RootState> = useSelector;
|
|
@@ -0,0 +1,222 @@
|
|
|
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
|
+
import React from "react";
|
|
9
|
+
|
|
10
|
+
import BrowserOnly from "@docusaurus/BrowserOnly";
|
|
11
|
+
import ExecutionEnvironment from "@docusaurus/ExecutionEnvironment";
|
|
12
|
+
import { DocProvider } from "@docusaurus/plugin-content-docs/client";
|
|
13
|
+
import { HtmlClassNameProvider } from "@docusaurus/theme-common";
|
|
14
|
+
import useDocusaurusContext from "@docusaurus/useDocusaurusContext";
|
|
15
|
+
import useIsBrowser from "@docusaurus/useIsBrowser";
|
|
16
|
+
import { createAuth } from "@theme/ApiExplorer/Authorization/slice";
|
|
17
|
+
import { createPersistanceMiddleware } from "@theme/ApiExplorer/persistanceMiddleware";
|
|
18
|
+
import DocItemLayout from "@theme/ApiItem/Layout";
|
|
19
|
+
import CodeBlock from "@theme/CodeBlock";
|
|
20
|
+
import type { Props } from "@theme/DocItem";
|
|
21
|
+
import DocItemMetadata from "@theme/DocItem/Metadata";
|
|
22
|
+
import SkeletonLoader from "@theme/SkeletonLoader";
|
|
23
|
+
import clsx from "clsx";
|
|
24
|
+
import {
|
|
25
|
+
ParameterObject,
|
|
26
|
+
ServerObject,
|
|
27
|
+
} from "docusaurus-plugin-openapi-docs/src/openapi/types";
|
|
28
|
+
import type { ApiItem as ApiItemType } from "docusaurus-plugin-openapi-docs/src/types";
|
|
29
|
+
import type {
|
|
30
|
+
DocFrontMatter,
|
|
31
|
+
ThemeConfig,
|
|
32
|
+
} from "docusaurus-theme-openapi-docs/src/types";
|
|
33
|
+
import { ungzip } from "pako";
|
|
34
|
+
import { Provider } from "react-redux";
|
|
35
|
+
|
|
36
|
+
import { createStoreWithoutState, createStoreWithState } from "./store";
|
|
37
|
+
|
|
38
|
+
let ApiExplorer = (_: { item: any; infoPath: any }) => <div />;
|
|
39
|
+
|
|
40
|
+
if (ExecutionEnvironment.canUseDOM) {
|
|
41
|
+
ApiExplorer = require("@theme/ApiExplorer").default;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
interface ApiFrontMatter extends DocFrontMatter {
|
|
45
|
+
readonly api?: ApiItemType;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
interface SchemaFrontMatter extends DocFrontMatter {
|
|
49
|
+
readonly schema?: boolean;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
interface SampleFrontMatter extends DocFrontMatter {
|
|
53
|
+
readonly sample?: any;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
function base64ToUint8Array(base64: string) {
|
|
57
|
+
const binary = atob(base64);
|
|
58
|
+
const len = binary.length;
|
|
59
|
+
const bytes = new Uint8Array(len);
|
|
60
|
+
for (let i = 0; i < len; i++) {
|
|
61
|
+
bytes[i] = binary.charCodeAt(i);
|
|
62
|
+
}
|
|
63
|
+
return bytes;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
// @ts-ignore
|
|
67
|
+
export default function ApiItem(props: Props): JSX.Element {
|
|
68
|
+
const docHtmlClassName = `docs-doc-id-${props.content.metadata.id}`;
|
|
69
|
+
const MDXComponent = props.content;
|
|
70
|
+
const { frontMatter } = MDXComponent;
|
|
71
|
+
const { info_path: infoPath } = frontMatter as DocFrontMatter;
|
|
72
|
+
let { api } = frontMatter as ApiFrontMatter;
|
|
73
|
+
const { schema } = frontMatter as SchemaFrontMatter;
|
|
74
|
+
const { sample } = frontMatter as SampleFrontMatter;
|
|
75
|
+
// decompress and parse
|
|
76
|
+
if (api) {
|
|
77
|
+
try {
|
|
78
|
+
api = JSON.parse(
|
|
79
|
+
new TextDecoder().decode(ungzip(base64ToUint8Array(api as any)))
|
|
80
|
+
);
|
|
81
|
+
} catch {}
|
|
82
|
+
}
|
|
83
|
+
const { siteConfig } = useDocusaurusContext();
|
|
84
|
+
const themeConfig = siteConfig.themeConfig as ThemeConfig;
|
|
85
|
+
const options = themeConfig.api;
|
|
86
|
+
const isBrowser = useIsBrowser();
|
|
87
|
+
|
|
88
|
+
// Regex for 2XX status
|
|
89
|
+
const statusRegex = new RegExp("(20[0-9]|2[1-9][0-9])");
|
|
90
|
+
|
|
91
|
+
// Define store2
|
|
92
|
+
let store2: any = {};
|
|
93
|
+
const persistanceMiddleware = createPersistanceMiddleware(options);
|
|
94
|
+
|
|
95
|
+
// Init store for SSR
|
|
96
|
+
if (!isBrowser) {
|
|
97
|
+
store2 = createStoreWithoutState({}, [persistanceMiddleware]);
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
// Init store for CSR to hydrate components
|
|
101
|
+
if (isBrowser) {
|
|
102
|
+
// Create list of only 2XX response content types to create request samples from
|
|
103
|
+
let acceptArray: any = [];
|
|
104
|
+
for (const [code, content] of Object.entries(api?.responses ?? [])) {
|
|
105
|
+
if (statusRegex.test(code)) {
|
|
106
|
+
acceptArray.push(Object.keys(content.content ?? {}));
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
acceptArray = acceptArray.flat();
|
|
110
|
+
|
|
111
|
+
const content = api?.requestBody?.content ?? {};
|
|
112
|
+
const contentTypeArray = Object.keys(content);
|
|
113
|
+
const servers = api?.servers ?? [];
|
|
114
|
+
const params = {
|
|
115
|
+
path: [] as ParameterObject[],
|
|
116
|
+
query: [] as ParameterObject[],
|
|
117
|
+
header: [] as ParameterObject[],
|
|
118
|
+
cookie: [] as ParameterObject[],
|
|
119
|
+
};
|
|
120
|
+
api?.parameters?.forEach(
|
|
121
|
+
(param: { in: "path" | "query" | "header" | "cookie" }) => {
|
|
122
|
+
const paramType = param.in;
|
|
123
|
+
const paramsArray: ParameterObject[] = params[paramType];
|
|
124
|
+
paramsArray.push(param as ParameterObject);
|
|
125
|
+
}
|
|
126
|
+
);
|
|
127
|
+
const auth = createAuth({
|
|
128
|
+
security: api?.security,
|
|
129
|
+
securitySchemes: api?.securitySchemes,
|
|
130
|
+
options,
|
|
131
|
+
});
|
|
132
|
+
// TODO: determine way to rehydrate without flashing
|
|
133
|
+
// const acceptValue = window?.sessionStorage.getItem("accept");
|
|
134
|
+
// const contentTypeValue = window?.sessionStorage.getItem("contentType");
|
|
135
|
+
const server = window?.sessionStorage.getItem("server");
|
|
136
|
+
const serverObject = (JSON.parse(server!) as ServerObject) ?? {};
|
|
137
|
+
|
|
138
|
+
store2 = createStoreWithState(
|
|
139
|
+
{
|
|
140
|
+
accept: {
|
|
141
|
+
value: acceptArray[0],
|
|
142
|
+
options: acceptArray,
|
|
143
|
+
},
|
|
144
|
+
contentType: {
|
|
145
|
+
value: contentTypeArray[0],
|
|
146
|
+
options: contentTypeArray,
|
|
147
|
+
},
|
|
148
|
+
server: {
|
|
149
|
+
value: serverObject.url ? serverObject : undefined,
|
|
150
|
+
options: servers,
|
|
151
|
+
},
|
|
152
|
+
response: { value: undefined },
|
|
153
|
+
body: { type: "empty" },
|
|
154
|
+
params,
|
|
155
|
+
auth,
|
|
156
|
+
},
|
|
157
|
+
[persistanceMiddleware]
|
|
158
|
+
);
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
if (api) {
|
|
162
|
+
return (
|
|
163
|
+
<DocProvider content={props.content}>
|
|
164
|
+
<HtmlClassNameProvider className={docHtmlClassName}>
|
|
165
|
+
<DocItemMetadata />
|
|
166
|
+
<DocItemLayout>
|
|
167
|
+
<Provider store={store2}>
|
|
168
|
+
<div className={clsx("row", "theme-api-markdown")}>
|
|
169
|
+
<div className="col col--7 openapi-left-panel__container">
|
|
170
|
+
<MDXComponent />
|
|
171
|
+
</div>
|
|
172
|
+
<div className="col col--5 openapi-right-panel__container">
|
|
173
|
+
<BrowserOnly fallback={<SkeletonLoader size="lg" />}>
|
|
174
|
+
{() => {
|
|
175
|
+
return <ApiExplorer item={api} infoPath={infoPath} />;
|
|
176
|
+
}}
|
|
177
|
+
</BrowserOnly>
|
|
178
|
+
</div>
|
|
179
|
+
</div>
|
|
180
|
+
</Provider>
|
|
181
|
+
</DocItemLayout>
|
|
182
|
+
</HtmlClassNameProvider>
|
|
183
|
+
</DocProvider>
|
|
184
|
+
);
|
|
185
|
+
} else if (schema) {
|
|
186
|
+
return (
|
|
187
|
+
<DocProvider content={props.content}>
|
|
188
|
+
<HtmlClassNameProvider className={docHtmlClassName}>
|
|
189
|
+
<DocItemMetadata />
|
|
190
|
+
<DocItemLayout>
|
|
191
|
+
<div className={clsx("row", "theme-api-markdown")}>
|
|
192
|
+
<div className="col col--7 openapi-left-panel__container schema">
|
|
193
|
+
<MDXComponent />
|
|
194
|
+
</div>
|
|
195
|
+
<div className="col col--5 openapi-right-panel__container">
|
|
196
|
+
<CodeBlock language="json" title={`${frontMatter.title}`}>
|
|
197
|
+
{JSON.stringify(sample, null, 2)}
|
|
198
|
+
</CodeBlock>
|
|
199
|
+
</div>
|
|
200
|
+
</div>
|
|
201
|
+
</DocItemLayout>
|
|
202
|
+
</HtmlClassNameProvider>
|
|
203
|
+
</DocProvider>
|
|
204
|
+
);
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
// Non-API docs
|
|
208
|
+
return (
|
|
209
|
+
<DocProvider content={props.content}>
|
|
210
|
+
<HtmlClassNameProvider className={docHtmlClassName}>
|
|
211
|
+
<DocItemMetadata />
|
|
212
|
+
<DocItemLayout>
|
|
213
|
+
<div className="row">
|
|
214
|
+
<div className="col col--12 markdown">
|
|
215
|
+
<MDXComponent />
|
|
216
|
+
</div>
|
|
217
|
+
</div>
|
|
218
|
+
</DocItemLayout>
|
|
219
|
+
</HtmlClassNameProvider>
|
|
220
|
+
</DocProvider>
|
|
221
|
+
);
|
|
222
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
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
|
+
import { configureStore, combineReducers } from "@reduxjs/toolkit";
|
|
9
|
+
import accept from "@theme/ApiExplorer/Accept/slice";
|
|
10
|
+
import auth from "@theme/ApiExplorer/Authorization/slice";
|
|
11
|
+
import body from "@theme/ApiExplorer/Body/slice";
|
|
12
|
+
import contentType from "@theme/ApiExplorer/ContentType/slice";
|
|
13
|
+
import params from "@theme/ApiExplorer/ParamOptions/slice";
|
|
14
|
+
import response from "@theme/ApiExplorer/Response/slice";
|
|
15
|
+
import server from "@theme/ApiExplorer/Server/slice";
|
|
16
|
+
|
|
17
|
+
const rootReducer = combineReducers({
|
|
18
|
+
accept,
|
|
19
|
+
contentType,
|
|
20
|
+
response,
|
|
21
|
+
server,
|
|
22
|
+
body,
|
|
23
|
+
params,
|
|
24
|
+
auth,
|
|
25
|
+
});
|
|
26
|
+
|
|
27
|
+
export type RootState = ReturnType<typeof rootReducer>;
|
|
28
|
+
|
|
29
|
+
export const createStoreWithState = (
|
|
30
|
+
preloadedState: RootState,
|
|
31
|
+
middlewares: any[]
|
|
32
|
+
) =>
|
|
33
|
+
configureStore({
|
|
34
|
+
reducer: rootReducer,
|
|
35
|
+
preloadedState,
|
|
36
|
+
middleware: (getDefaultMiddleware) =>
|
|
37
|
+
getDefaultMiddleware().concat(...middlewares),
|
|
38
|
+
});
|
|
39
|
+
|
|
40
|
+
export const createStoreWithoutState = (
|
|
41
|
+
preloadedState: {},
|
|
42
|
+
middlewares: any[]
|
|
43
|
+
) =>
|
|
44
|
+
configureStore({
|
|
45
|
+
reducer: rootReducer,
|
|
46
|
+
preloadedState,
|
|
47
|
+
middleware: (getDefaultMiddleware) =>
|
|
48
|
+
getDefaultMiddleware().concat(...middlewares),
|
|
49
|
+
});
|
|
50
|
+
|
|
51
|
+
export type AppDispatch = ReturnType<typeof createStoreWithState>["dispatch"];
|
|
@@ -0,0 +1,52 @@
|
|
|
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
|
+
import React from "react";
|
|
9
|
+
|
|
10
|
+
import { useColorMode } from "@docusaurus/theme-common";
|
|
11
|
+
import useBaseUrl from "@docusaurus/useBaseUrl";
|
|
12
|
+
import ThemedImage from "@theme/ThemedImage";
|
|
13
|
+
|
|
14
|
+
export default function ApiLogo(props: any): React.JSX.Element | undefined {
|
|
15
|
+
const { colorMode } = useColorMode();
|
|
16
|
+
const { logo, darkLogo } = props;
|
|
17
|
+
const altText = () => {
|
|
18
|
+
if (colorMode === "dark") {
|
|
19
|
+
return darkLogo?.altText ?? logo?.altText;
|
|
20
|
+
}
|
|
21
|
+
return logo?.altText;
|
|
22
|
+
};
|
|
23
|
+
const lightLogoUrl = useBaseUrl(logo?.url);
|
|
24
|
+
const darkLogoUrl = useBaseUrl(darkLogo?.url);
|
|
25
|
+
|
|
26
|
+
if (logo && darkLogo) {
|
|
27
|
+
return (
|
|
28
|
+
<ThemedImage
|
|
29
|
+
alt={altText()}
|
|
30
|
+
sources={{
|
|
31
|
+
light: lightLogoUrl,
|
|
32
|
+
dark: darkLogoUrl,
|
|
33
|
+
}}
|
|
34
|
+
className="openapi__logo"
|
|
35
|
+
/>
|
|
36
|
+
);
|
|
37
|
+
}
|
|
38
|
+
if (logo || darkLogo) {
|
|
39
|
+
return (
|
|
40
|
+
<ThemedImage
|
|
41
|
+
alt={altText()}
|
|
42
|
+
sources={{
|
|
43
|
+
light: lightLogoUrl ?? darkLogoUrl,
|
|
44
|
+
dark: lightLogoUrl ?? darkLogoUrl,
|
|
45
|
+
}}
|
|
46
|
+
className="openapi__logo"
|
|
47
|
+
/>
|
|
48
|
+
);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
return undefined;
|
|
52
|
+
}
|
|
@@ -0,0 +1,142 @@
|
|
|
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
|
+
.openapi-tabs__container {
|
|
8
|
+
margin-left: -1px;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.openapi-tabs__response-header {
|
|
12
|
+
&.openapi-tabs__heading {
|
|
13
|
+
margin-bottom: 0;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.openapi-tabs__response-code-item {
|
|
18
|
+
border: 1px solid transparent;
|
|
19
|
+
margin-top: 0 !important;
|
|
20
|
+
margin-right: 0.5rem;
|
|
21
|
+
padding: 0.35rem 0.85rem;
|
|
22
|
+
border-radius: var(--ifm-global-radius);
|
|
23
|
+
font-weight: var(--ifm-font-weight-bold);
|
|
24
|
+
font-size: 12px;
|
|
25
|
+
transition: 300ms;
|
|
26
|
+
color: var(--ifm-font-color-secondary);
|
|
27
|
+
|
|
28
|
+
&.success.active {
|
|
29
|
+
background-color: var(--ifm-color-success);
|
|
30
|
+
color: var(--ifm-color-white);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
&.danger.active {
|
|
34
|
+
background-color: var(--ifm-color-danger);
|
|
35
|
+
color: var(--ifm-color-white);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
&.info.active {
|
|
39
|
+
background-color: var(--ifm-color-info);
|
|
40
|
+
color: var(--ifm-color-white);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
&.active,
|
|
44
|
+
&:hover {
|
|
45
|
+
opacity: 1;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
&:hover:not(.active) {
|
|
49
|
+
background-color: transparent;
|
|
50
|
+
border: 1px solid var(--ifm-toc-border-color);
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.openapi-tabs__response-code-item:not(.active) {
|
|
55
|
+
opacity: 0.65;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.openapi-tabs__response-code-item:hover {
|
|
59
|
+
opacity: 1;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.openapi-tabs__response-code-item:last-child {
|
|
63
|
+
margin-right: 0 !important;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
/* Open API Response Code Tabs */
|
|
67
|
+
.openapi-tabs__response-header-section {
|
|
68
|
+
border-top: 1px solid var(--ifm-toc-border-color);
|
|
69
|
+
margin-top: 2rem;
|
|
70
|
+
padding-top: 2rem;
|
|
71
|
+
display: flex;
|
|
72
|
+
justify-content: space-between;
|
|
73
|
+
align-items: center;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.openapi-tabs__response-container {
|
|
77
|
+
display: flex;
|
|
78
|
+
align-items: center;
|
|
79
|
+
max-width: 390px;
|
|
80
|
+
padding-left: 1rem;
|
|
81
|
+
overflow: hidden;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.openapi-tabs__response-list-container {
|
|
85
|
+
padding: 0 0.25rem;
|
|
86
|
+
overflow-y: hidden;
|
|
87
|
+
overflow-x: scroll;
|
|
88
|
+
scroll-behavior: smooth;
|
|
89
|
+
scrollbar-width: none;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.openapi-tabs__response-list-container::-webkit-scrollbar {
|
|
93
|
+
display: none;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
/* Response Code Tabs - Colored Dots */
|
|
97
|
+
.openapi-tabs__response-dot {
|
|
98
|
+
width: 12.5px;
|
|
99
|
+
height: 12.5px;
|
|
100
|
+
margin-right: 5px;
|
|
101
|
+
border-radius: 50%;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.openapi-tabs__response-schema-container {
|
|
105
|
+
max-width: 600px;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
/* Tab Arrows */
|
|
109
|
+
.openapi-tabs__arrow {
|
|
110
|
+
content: "";
|
|
111
|
+
height: 1.25rem;
|
|
112
|
+
width: 1.25rem;
|
|
113
|
+
border: none;
|
|
114
|
+
min-width: 1.25rem;
|
|
115
|
+
background: var(--ifm-menu-link-sublist-icon) 50% / 2rem 2rem;
|
|
116
|
+
filter: var(--ifm-menu-link-sublist-icon-filter);
|
|
117
|
+
|
|
118
|
+
&:hover {
|
|
119
|
+
cursor: pointer;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
&.left {
|
|
123
|
+
transform: rotate(270deg);
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
&.right {
|
|
127
|
+
transform: rotate(90deg);
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
@media screen and (max-width: 500px) {
|
|
132
|
+
.openapi-tabs__response-header-section {
|
|
133
|
+
flex-direction: column;
|
|
134
|
+
align-items: flex-start;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
.openapi-tabs__response-container {
|
|
138
|
+
width: 100%;
|
|
139
|
+
margin-top: var(--ifm-spacing-vertical);
|
|
140
|
+
padding: 0;
|
|
141
|
+
}
|
|
142
|
+
}
|