@camunda8/docusaurus-theme-openapi-docs 4.5.1
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/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 +154 -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 +7 -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 +201 -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 +394 -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 +11 -0
- package/lib/theme/ApiExplorer/CodeSnippets/index.js +435 -0
- package/lib/theme/ApiExplorer/CodeSnippets/languages.d.ts +5 -0
- package/lib/theme/ApiExplorer/CodeSnippets/languages.js +133 -0
- package/lib/theme/ApiExplorer/CodeSnippets/languages.json +1290 -0
- package/lib/theme/ApiExplorer/CodeTabs/_CodeTabs.scss +505 -0
- package/lib/theme/ApiExplorer/CodeTabs/index.d.ts +15 -0
- package/lib/theme/ApiExplorer/CodeTabs/index.js +283 -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 +178 -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 +49 -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 +11 -0
- package/lib/theme/ApiExplorer/FormTextInput/index.js +80 -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 +176 -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 +230 -0
- package/lib/theme/ApiExplorer/ParamOptions/ParamFormItems/ParamBooleanFormItem.d.ts +6 -0
- package/lib/theme/ApiExplorer/ParamOptions/ParamFormItems/ParamBooleanFormItem.js +71 -0
- package/lib/theme/ApiExplorer/ParamOptions/ParamFormItems/ParamMultiSelectFormItem.d.ts +6 -0
- package/lib/theme/ApiExplorer/ParamOptions/ParamFormItems/ParamMultiSelectFormItem.js +97 -0
- package/lib/theme/ApiExplorer/ParamOptions/ParamFormItems/ParamSelectFormItem.d.ts +6 -0
- package/lib/theme/ApiExplorer/ParamOptions/ParamFormItems/ParamSelectFormItem.js +72 -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 +233 -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 +443 -0
- package/lib/theme/ApiExplorer/Request/makeRequest.d.ts +4 -0
- package/lib/theme/ApiExplorer/Request/makeRequest.js +223 -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 +207 -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 +519 -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 +213 -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 +511 -0
- package/lib/theme/ApiExplorer/index.d.ts +7 -0
- package/lib/theme/ApiExplorer/index.js +107 -0
- package/lib/theme/ApiExplorer/persistanceMiddleware.d.ts +19 -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 +58 -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 +275 -0
- package/lib/theme/ArrayBrackets/index.d.ts +3 -0
- package/lib/theme/ArrayBrackets/index.js +50 -0
- package/lib/theme/CodeSamples/_CodeSamples.scss +3 -0
- package/lib/theme/CodeSamples/index.d.ts +8 -0
- package/lib/theme/CodeSamples/index.js +27 -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 +93 -0
- package/lib/theme/ParamsItem/_ParamsItem.scss +54 -0
- package/lib/theme/ParamsItem/index.d.ts +22 -0
- package/lib/theme/ParamsItem/index.js +281 -0
- package/lib/theme/RequestSchema/index.d.ts +15 -0
- package/lib/theme/RequestSchema/index.js +208 -0
- package/lib/theme/ResponseExamples/index.d.ts +18 -0
- package/lib/theme/ResponseExamples/index.js +213 -0
- package/lib/theme/ResponseHeaders/index.d.ts +13 -0
- package/lib/theme/ResponseHeaders/index.js +39 -0
- package/lib/theme/ResponseSchema/index.d.ts +15 -0
- package/lib/theme/ResponseSchema/index.js +165 -0
- package/lib/theme/Schema/index.d.ts +8 -0
- package/lib/theme/Schema/index.js +853 -0
- package/lib/theme/SchemaItem/_SchemaItem.scss +89 -0
- package/lib/theme/SchemaItem/index.d.ts +12 -0
- package/lib/theme/SchemaItem/index.js +314 -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 +90 -0
- package/lib/theme/styles.scss +215 -0
- package/lib/theme/translationIds.d.ts +83 -0
- package/lib/theme/translationIds.js +106 -0
- package/lib/types.d.ts +46 -0
- package/lib/types.js +8 -0
- package/package.json +85 -0
- package/src/index.ts +85 -0
- package/src/markdown/createDescription.ts +13 -0
- package/src/markdown/schema.ts +186 -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 +83 -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 +199 -0
- package/src/theme/ApiExplorer/Authorization/slice.ts +146 -0
- package/src/theme/ApiExplorer/Body/index.tsx +388 -0
- package/src/theme/ApiExplorer/Body/json2xml.d.ts +8 -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 +383 -0
- package/src/theme/ApiExplorer/CodeSnippets/languages.json +1290 -0
- package/src/theme/ApiExplorer/CodeSnippets/languages.ts +139 -0
- package/src/theme/ApiExplorer/CodeTabs/_CodeTabs.scss +505 -0
- package/src/theme/ApiExplorer/CodeTabs/index.tsx +261 -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 +124 -0
- package/src/theme/ApiExplorer/FormItem/_FormItem.scss +21 -0
- package/src/theme/ApiExplorer/FormItem/index.tsx +40 -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 +89 -0
- package/src/theme/ApiExplorer/LiveEditor/_LiveEditor.scss +15 -0
- package/src/theme/ApiExplorer/LiveEditor/index.tsx +122 -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 +185 -0
- package/src/theme/ApiExplorer/ParamOptions/ParamFormItems/ParamBooleanFormItem.tsx +72 -0
- package/src/theme/ApiExplorer/ParamOptions/ParamFormItems/ParamMultiSelectFormItem.tsx +94 -0
- package/src/theme/ApiExplorer/ParamOptions/ParamFormItems/ParamSelectFormItem.tsx +74 -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 +154 -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 +352 -0
- package/src/theme/ApiExplorer/Request/makeRequest.ts +255 -0
- package/src/theme/ApiExplorer/Response/_Response.scss +121 -0
- package/src/theme/ApiExplorer/Response/index.tsx +173 -0
- package/src/theme/ApiExplorer/Response/slice.ts +52 -0
- package/src/theme/ApiExplorer/SecuritySchemes/index.tsx +375 -0
- package/src/theme/ApiExplorer/Server/_Server.scss +26 -0
- package/src/theme/ApiExplorer/Server/index.tsx +138 -0
- package/src/theme/ApiExplorer/Server/slice.ts +39 -0
- package/src/theme/ApiExplorer/buildPostmanRequest.ts +524 -0
- package/src/theme/ApiExplorer/index.tsx +52 -0
- package/src/theme/ApiExplorer/persistanceMiddleware.ts +73 -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 +243 -0
- package/src/theme/ArrayBrackets/index.tsx +37 -0
- package/src/theme/CodeSamples/_CodeSamples.scss +3 -0
- package/src/theme/CodeSamples/index.tsx +26 -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.d.ts +8 -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 +90 -0
- package/src/theme/ParamsItem/_ParamsItem.scss +54 -0
- package/src/theme/ParamsItem/index.tsx +246 -0
- package/src/theme/RequestSchema/index.tsx +172 -0
- package/src/theme/ResponseExamples/index.tsx +209 -0
- package/src/theme/ResponseHeaders/index.tsx +49 -0
- package/src/theme/ResponseSchema/index.tsx +150 -0
- package/src/theme/Schema/index.tsx +938 -0
- package/src/theme/SchemaItem/_SchemaItem.scss +89 -0
- package/src/theme/SchemaItem/index.tsx +273 -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 +83 -0
- package/src/theme/styles.scss +215 -0
- package/src/theme/translationIds.ts +103 -0
- package/src/theme-classic.d.ts +80 -0
- package/src/theme-openapi.d.ts +20 -0
- package/src/types.ts +72 -0
- package/tsconfig.json +16 -0
|
@@ -0,0 +1,255 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* ============================================================================
|
|
3
|
+
* Copyright (c) Palo Alto Networks
|
|
4
|
+
*
|
|
5
|
+
* This source code is licensed under the MIT license found in the
|
|
6
|
+
* LICENSE file in the root directory of this source tree.
|
|
7
|
+
* ========================================================================== */
|
|
8
|
+
var __createBinding =
|
|
9
|
+
(this && this.__createBinding) ||
|
|
10
|
+
(Object.create
|
|
11
|
+
? function (o, m, k, k2) {
|
|
12
|
+
if (k2 === undefined) k2 = k;
|
|
13
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
14
|
+
if (
|
|
15
|
+
!desc ||
|
|
16
|
+
("get" in desc ? !m.__esModule : desc.writable || desc.configurable)
|
|
17
|
+
) {
|
|
18
|
+
desc = {
|
|
19
|
+
enumerable: true,
|
|
20
|
+
get: function () {
|
|
21
|
+
return m[k];
|
|
22
|
+
},
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
Object.defineProperty(o, k2, desc);
|
|
26
|
+
}
|
|
27
|
+
: function (o, m, k, k2) {
|
|
28
|
+
if (k2 === undefined) k2 = k;
|
|
29
|
+
o[k2] = m[k];
|
|
30
|
+
});
|
|
31
|
+
var __setModuleDefault =
|
|
32
|
+
(this && this.__setModuleDefault) ||
|
|
33
|
+
(Object.create
|
|
34
|
+
? function (o, v) {
|
|
35
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
36
|
+
}
|
|
37
|
+
: function (o, v) {
|
|
38
|
+
o["default"] = v;
|
|
39
|
+
});
|
|
40
|
+
var __importStar =
|
|
41
|
+
(this && this.__importStar) ||
|
|
42
|
+
(function () {
|
|
43
|
+
var ownKeys = function (o) {
|
|
44
|
+
ownKeys =
|
|
45
|
+
Object.getOwnPropertyNames ||
|
|
46
|
+
function (o) {
|
|
47
|
+
var ar = [];
|
|
48
|
+
for (var k in o)
|
|
49
|
+
if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
50
|
+
return ar;
|
|
51
|
+
};
|
|
52
|
+
return ownKeys(o);
|
|
53
|
+
};
|
|
54
|
+
return function (mod) {
|
|
55
|
+
if (mod && mod.__esModule) return mod;
|
|
56
|
+
var result = {};
|
|
57
|
+
if (mod != null)
|
|
58
|
+
for (var k = ownKeys(mod), i = 0; i < k.length; i++)
|
|
59
|
+
if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
60
|
+
__setModuleDefault(result, mod);
|
|
61
|
+
return result;
|
|
62
|
+
};
|
|
63
|
+
})();
|
|
64
|
+
var __importDefault =
|
|
65
|
+
(this && this.__importDefault) ||
|
|
66
|
+
function (mod) {
|
|
67
|
+
return mod && mod.__esModule ? mod : { default: mod };
|
|
68
|
+
};
|
|
69
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
70
|
+
exports.default = SchemaTabs;
|
|
71
|
+
const react_1 = __importStar(require("react"));
|
|
72
|
+
const internal_1 = require("@docusaurus/theme-common/internal");
|
|
73
|
+
const useIsBrowser_1 = __importDefault(require("@docusaurus/useIsBrowser"));
|
|
74
|
+
const clsx_1 = __importDefault(require("clsx"));
|
|
75
|
+
const flatten_1 = __importDefault(require("lodash/flatten"));
|
|
76
|
+
function TabList({ className, block, selectedValue, selectValue, tabValues }) {
|
|
77
|
+
const tabRefs = [];
|
|
78
|
+
const { blockElementScrollPositionUntilNextRender } = (0,
|
|
79
|
+
internal_1.useScrollPositionBlocker)();
|
|
80
|
+
const handleTabChange = (event) => {
|
|
81
|
+
const newTab = event.currentTarget;
|
|
82
|
+
const newTabIndex = tabRefs.indexOf(newTab);
|
|
83
|
+
const newTabValue = tabValues[newTabIndex].value;
|
|
84
|
+
if (newTabValue !== selectedValue) {
|
|
85
|
+
blockElementScrollPositionUntilNextRender(newTab);
|
|
86
|
+
selectValue(newTabValue);
|
|
87
|
+
}
|
|
88
|
+
};
|
|
89
|
+
const handleKeydown = (event) => {
|
|
90
|
+
let focusElement = null;
|
|
91
|
+
switch (event.key) {
|
|
92
|
+
case "Enter": {
|
|
93
|
+
handleTabChange(event);
|
|
94
|
+
break;
|
|
95
|
+
}
|
|
96
|
+
case "ArrowRight": {
|
|
97
|
+
const nextTab = tabRefs.indexOf(event.currentTarget) + 1;
|
|
98
|
+
focusElement = tabRefs[nextTab] ?? tabRefs[0];
|
|
99
|
+
break;
|
|
100
|
+
}
|
|
101
|
+
case "ArrowLeft": {
|
|
102
|
+
const prevTab = tabRefs.indexOf(event.currentTarget) - 1;
|
|
103
|
+
focusElement = tabRefs[prevTab] ?? tabRefs[tabRefs.length - 1];
|
|
104
|
+
break;
|
|
105
|
+
}
|
|
106
|
+
default:
|
|
107
|
+
break;
|
|
108
|
+
}
|
|
109
|
+
focusElement?.focus();
|
|
110
|
+
};
|
|
111
|
+
const tabItemListContainerRef = (0, react_1.useRef)(null);
|
|
112
|
+
const [showTabArrows, setShowTabArrows] = (0, react_1.useState)(false);
|
|
113
|
+
(0, react_1.useEffect)(() => {
|
|
114
|
+
const resizeObserver = new ResizeObserver((entries) => {
|
|
115
|
+
for (let entry of entries) {
|
|
116
|
+
requestAnimationFrame(() => {
|
|
117
|
+
if (entry.target.clientWidth < entry.target.scrollWidth) {
|
|
118
|
+
setShowTabArrows(true);
|
|
119
|
+
} else {
|
|
120
|
+
setShowTabArrows(false);
|
|
121
|
+
}
|
|
122
|
+
});
|
|
123
|
+
}
|
|
124
|
+
});
|
|
125
|
+
resizeObserver.observe(tabItemListContainerRef.current);
|
|
126
|
+
return () => {
|
|
127
|
+
resizeObserver.disconnect();
|
|
128
|
+
};
|
|
129
|
+
}, []);
|
|
130
|
+
const handleRightClick = (e) => {
|
|
131
|
+
e.preventDefault();
|
|
132
|
+
if (tabItemListContainerRef.current) {
|
|
133
|
+
tabItemListContainerRef.current.scrollLeft += 90;
|
|
134
|
+
}
|
|
135
|
+
};
|
|
136
|
+
const handleLeftClick = (e) => {
|
|
137
|
+
e.preventDefault();
|
|
138
|
+
if (tabItemListContainerRef.current) {
|
|
139
|
+
tabItemListContainerRef.current.scrollLeft -= 90;
|
|
140
|
+
}
|
|
141
|
+
};
|
|
142
|
+
return react_1.default.createElement(
|
|
143
|
+
"div",
|
|
144
|
+
{ className: "openapi-tabs__schema-tabs-container" },
|
|
145
|
+
showTabArrows &&
|
|
146
|
+
react_1.default.createElement("button", {
|
|
147
|
+
className: "openapi-tabs__arrow left",
|
|
148
|
+
onClick: handleLeftClick,
|
|
149
|
+
}),
|
|
150
|
+
react_1.default.createElement(
|
|
151
|
+
"ul",
|
|
152
|
+
{
|
|
153
|
+
ref: tabItemListContainerRef,
|
|
154
|
+
role: "tablist",
|
|
155
|
+
"aria-orientation": "horizontal",
|
|
156
|
+
className: (0, clsx_1.default)(
|
|
157
|
+
"openapi-tabs__schema-list-container",
|
|
158
|
+
"tabs",
|
|
159
|
+
{
|
|
160
|
+
"tabs--block": block,
|
|
161
|
+
},
|
|
162
|
+
className
|
|
163
|
+
),
|
|
164
|
+
},
|
|
165
|
+
tabValues.map(({ value, label, attributes }) =>
|
|
166
|
+
react_1.default.createElement(
|
|
167
|
+
"li",
|
|
168
|
+
{
|
|
169
|
+
// TODO extract TabListItem
|
|
170
|
+
role: "tab",
|
|
171
|
+
tabIndex: selectedValue === value ? 0 : -1,
|
|
172
|
+
"aria-selected": selectedValue === value,
|
|
173
|
+
key: value,
|
|
174
|
+
ref: (tabControl) => {
|
|
175
|
+
tabRefs.push(tabControl);
|
|
176
|
+
},
|
|
177
|
+
onKeyDown: handleKeydown,
|
|
178
|
+
onClick: handleTabChange,
|
|
179
|
+
...attributes,
|
|
180
|
+
className: (0, clsx_1.default)(
|
|
181
|
+
"tabs__item",
|
|
182
|
+
"openapi-tabs__schema-item",
|
|
183
|
+
attributes?.className,
|
|
184
|
+
{
|
|
185
|
+
active: selectedValue === value,
|
|
186
|
+
}
|
|
187
|
+
),
|
|
188
|
+
},
|
|
189
|
+
react_1.default.createElement(
|
|
190
|
+
"span",
|
|
191
|
+
{ className: "openapi-tabs__schema-label" },
|
|
192
|
+
label ?? value
|
|
193
|
+
)
|
|
194
|
+
)
|
|
195
|
+
)
|
|
196
|
+
),
|
|
197
|
+
showTabArrows &&
|
|
198
|
+
react_1.default.createElement("button", {
|
|
199
|
+
className: "openapi-tabs__arrow right",
|
|
200
|
+
onClick: handleRightClick,
|
|
201
|
+
})
|
|
202
|
+
);
|
|
203
|
+
}
|
|
204
|
+
function TabContent({ lazy, children, selectedValue }) {
|
|
205
|
+
const childTabs = (Array.isArray(children) ? children : [children]).filter(
|
|
206
|
+
Boolean
|
|
207
|
+
);
|
|
208
|
+
const flattenedChildTabs = (0, flatten_1.default)(childTabs);
|
|
209
|
+
if (lazy) {
|
|
210
|
+
const selectedTabItem = flattenedChildTabs.find(
|
|
211
|
+
(tabItem) => tabItem.props.value === selectedValue
|
|
212
|
+
);
|
|
213
|
+
if (!selectedTabItem) {
|
|
214
|
+
// fail-safe or fail-fast? not sure what's best here
|
|
215
|
+
return null;
|
|
216
|
+
}
|
|
217
|
+
return (0, react_1.cloneElement)(selectedTabItem, {
|
|
218
|
+
className: "margin-top--md",
|
|
219
|
+
});
|
|
220
|
+
}
|
|
221
|
+
return react_1.default.createElement(
|
|
222
|
+
"div",
|
|
223
|
+
{ className: "margin-top--md" },
|
|
224
|
+
childTabs.map((tabItem, i) =>
|
|
225
|
+
(0, react_1.cloneElement)(tabItem, {
|
|
226
|
+
key: i,
|
|
227
|
+
hidden: tabItem.props.value !== selectedValue,
|
|
228
|
+
})
|
|
229
|
+
)
|
|
230
|
+
);
|
|
231
|
+
}
|
|
232
|
+
function TabsComponent(props) {
|
|
233
|
+
const tabs = (0, internal_1.useTabs)(props);
|
|
234
|
+
return react_1.default.createElement(
|
|
235
|
+
"div",
|
|
236
|
+
{ className: "openapi-tabs__schema-container" },
|
|
237
|
+
react_1.default.createElement(TabList, { ...props, ...tabs }),
|
|
238
|
+
react_1.default.createElement(TabContent, { ...props, ...tabs })
|
|
239
|
+
);
|
|
240
|
+
}
|
|
241
|
+
function SchemaTabs(props) {
|
|
242
|
+
const isBrowser = (0, useIsBrowser_1.default)();
|
|
243
|
+
return react_1.default.createElement(
|
|
244
|
+
TabsComponent,
|
|
245
|
+
// Remount tabs after hydration
|
|
246
|
+
// Temporary fix for https://github.com/facebook/docusaurus/issues/5653
|
|
247
|
+
{
|
|
248
|
+
// Remount tabs after hydration
|
|
249
|
+
// Temporary fix for https://github.com/facebook/docusaurus/issues/5653
|
|
250
|
+
key: String(isBrowser),
|
|
251
|
+
...props,
|
|
252
|
+
},
|
|
253
|
+
(0, internal_1.sanitizeTabsChildren)(props.children)
|
|
254
|
+
);
|
|
255
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* ============================================================================
|
|
3
|
+
* Copyright (c) Palo Alto Networks
|
|
4
|
+
*
|
|
5
|
+
* This source code is licensed under the MIT license found in the
|
|
6
|
+
* LICENSE file in the root directory of this source tree.
|
|
7
|
+
* ========================================================================== */
|
|
8
|
+
var __importDefault =
|
|
9
|
+
(this && this.__importDefault) ||
|
|
10
|
+
function (mod) {
|
|
11
|
+
return mod && mod.__esModule ? mod : { default: mod };
|
|
12
|
+
};
|
|
13
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
+
const react_1 = __importDefault(require("react"));
|
|
15
|
+
const SkeletonLoader = (props) => {
|
|
16
|
+
return react_1.default.createElement("div", {
|
|
17
|
+
className: `openapi-skeleton ${props.size ?? "md"}`,
|
|
18
|
+
});
|
|
19
|
+
};
|
|
20
|
+
exports.default = SkeletonLoader;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { ApiItem } from "@camunda8/docusaurus-plugin-openapi-docs/lib/types";
|
|
3
|
+
interface Props {
|
|
4
|
+
id?: string;
|
|
5
|
+
label?: string;
|
|
6
|
+
responses: ApiItem["responses"];
|
|
7
|
+
}
|
|
8
|
+
declare const StatusCodes: React.FC<Props>;
|
|
9
|
+
export default StatusCodes;
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* ============================================================================
|
|
3
|
+
* Copyright (c) Palo Alto Networks
|
|
4
|
+
*
|
|
5
|
+
* This source code is licensed under the MIT license found in the
|
|
6
|
+
* LICENSE file in the root directory of this source tree.
|
|
7
|
+
* ========================================================================== */
|
|
8
|
+
var __importDefault =
|
|
9
|
+
(this && this.__importDefault) ||
|
|
10
|
+
function (mod) {
|
|
11
|
+
return mod && mod.__esModule ? mod : { default: mod };
|
|
12
|
+
};
|
|
13
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
+
const react_1 = __importDefault(require("react"));
|
|
15
|
+
const Translate_1 = require("@docusaurus/Translate");
|
|
16
|
+
const ApiTabs_1 = __importDefault(require("@theme/ApiTabs"));
|
|
17
|
+
const Details_1 = __importDefault(require("@theme/Details"));
|
|
18
|
+
const Markdown_1 = __importDefault(require("@theme/Markdown"));
|
|
19
|
+
const ResponseHeaders_1 = __importDefault(require("@theme/ResponseHeaders"));
|
|
20
|
+
const ResponseSchema_1 = __importDefault(require("@theme/ResponseSchema"));
|
|
21
|
+
const TabItem_1 = __importDefault(require("@theme/TabItem"));
|
|
22
|
+
const translationIds_1 = require("@theme/translationIds");
|
|
23
|
+
const StatusCodes = ({ label, id, responses }) => {
|
|
24
|
+
if (!responses) return null;
|
|
25
|
+
const codes = Object.keys(responses);
|
|
26
|
+
if (codes.length === 0) return null;
|
|
27
|
+
return react_1.default.createElement(
|
|
28
|
+
ApiTabs_1.default,
|
|
29
|
+
{ label: label, id: id },
|
|
30
|
+
codes.map((code) => {
|
|
31
|
+
const response = responses[code];
|
|
32
|
+
const responseHeaders = response.headers;
|
|
33
|
+
return (
|
|
34
|
+
// @ts-ignore
|
|
35
|
+
react_1.default.createElement(
|
|
36
|
+
TabItem_1.default,
|
|
37
|
+
{ key: code, label: code, value: code },
|
|
38
|
+
react_1.default.createElement(
|
|
39
|
+
"div",
|
|
40
|
+
null,
|
|
41
|
+
response.description &&
|
|
42
|
+
react_1.default.createElement(
|
|
43
|
+
"div",
|
|
44
|
+
{ style: { marginTop: ".5rem", marginBottom: ".5rem" } },
|
|
45
|
+
react_1.default.createElement(
|
|
46
|
+
Markdown_1.default,
|
|
47
|
+
null,
|
|
48
|
+
response.description
|
|
49
|
+
)
|
|
50
|
+
)
|
|
51
|
+
),
|
|
52
|
+
responseHeaders &&
|
|
53
|
+
react_1.default.createElement(
|
|
54
|
+
Details_1.default,
|
|
55
|
+
{
|
|
56
|
+
className: "openapi-markdown__details",
|
|
57
|
+
"data-collapsed": true,
|
|
58
|
+
open: false,
|
|
59
|
+
style: { textAlign: "left", marginBottom: "1rem" },
|
|
60
|
+
summary: react_1.default.createElement(
|
|
61
|
+
"summary",
|
|
62
|
+
null,
|
|
63
|
+
react_1.default.createElement(
|
|
64
|
+
"strong",
|
|
65
|
+
null,
|
|
66
|
+
(0, Translate_1.translate)({
|
|
67
|
+
id: translationIds_1.OPENAPI_STATUS_CODES
|
|
68
|
+
.RESPONSE_HEADERS,
|
|
69
|
+
message: "Response Headers",
|
|
70
|
+
})
|
|
71
|
+
)
|
|
72
|
+
),
|
|
73
|
+
},
|
|
74
|
+
react_1.default.createElement(ResponseHeaders_1.default, {
|
|
75
|
+
responseHeaders: responseHeaders,
|
|
76
|
+
})
|
|
77
|
+
),
|
|
78
|
+
react_1.default.createElement(ResponseSchema_1.default, {
|
|
79
|
+
title: (0, Translate_1.translate)({
|
|
80
|
+
id: translationIds_1.OPENAPI_STATUS_CODES.SCHEMA_TITLE,
|
|
81
|
+
message: "Schema",
|
|
82
|
+
}),
|
|
83
|
+
body: { content: response.content },
|
|
84
|
+
})
|
|
85
|
+
)
|
|
86
|
+
);
|
|
87
|
+
})
|
|
88
|
+
);
|
|
89
|
+
};
|
|
90
|
+
exports.default = StatusCodes;
|
|
@@ -0,0 +1,215 @@
|
|
|
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 "./CodeSamples/CodeSamples";
|
|
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-curl: var(
|
|
71
|
+
--openapi-code-tab-shadow-color-bash
|
|
72
|
+
);
|
|
73
|
+
--openapi-code-tab-shadow-color-bash: rgba(250, 56, 62, 0.25);
|
|
74
|
+
--openapi-code-tab-shadow-color-go: rgba(84, 199, 236, 0.25);
|
|
75
|
+
--openapi-code-tab-shadow-color-js: rgba(255, 186, 0, 0.25);
|
|
76
|
+
--openapi-code-tab-shadow-color-ruby: rgba(250, 56, 62, 0.25);
|
|
77
|
+
--openapi-code-tab-shadow-color-csharp: rgba(155, 79, 150, 0.25);
|
|
78
|
+
--opeanpi-code-tab-shadow-color-nodejs: rgba(0, 164, 0, 0.25);
|
|
79
|
+
--openapi-code-tab-shadow-color-php: rgba(97, 129, 182, 0.25);
|
|
80
|
+
--openapi-code-tab-shadow-color-java: rgba(3, 116, 189, 0.25);
|
|
81
|
+
--opeanpi-code-tab-shadow-color-powershell: rgba(3, 116, 189, 0.25);
|
|
82
|
+
--openapi-explorer-font-size-input: 12px;
|
|
83
|
+
--openapi-explorer-font-size-code: 12px;
|
|
84
|
+
--openapi-explorer-padding-input: 0.5rem;
|
|
85
|
+
--openapi-explorer-border-color: var(--ifm-toc-border-color);
|
|
86
|
+
--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>');
|
|
87
|
+
--openapi-skeleton-background: var(--ifm-color-emphasis-100);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
[data-theme="dark"] {
|
|
91
|
+
--openapi-card-background-color: var(--ifm-color-gray-900) !important;
|
|
92
|
+
--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;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.docs-wrapper {
|
|
96
|
+
height: 100%;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
// @media (min-width: 997px) {
|
|
100
|
+
// .docItemCol {
|
|
101
|
+
// max-width: 75% !important;
|
|
102
|
+
// }
|
|
103
|
+
|
|
104
|
+
// /* Prevent hydration FOUC, as the mobile TOC needs to be server-rendered */
|
|
105
|
+
// .tocMobile {
|
|
106
|
+
// display: none;
|
|
107
|
+
// }
|
|
108
|
+
// }
|
|
109
|
+
|
|
110
|
+
/* Begin OpenAPI theme styles */
|
|
111
|
+
// [data-theme="dark"] {
|
|
112
|
+
// --openapi-card-background-color: var(--ifm-color-gray-900) !important;
|
|
113
|
+
// }
|
|
114
|
+
|
|
115
|
+
// .theme-api-markdown div[class^="collapsibleContent"] {
|
|
116
|
+
// margin-top: 0 !important;
|
|
117
|
+
// padding-left: 2px;
|
|
118
|
+
// }
|
|
119
|
+
|
|
120
|
+
/* Demo panel details */
|
|
121
|
+
|
|
122
|
+
// .theme-api-markdown .openapi-explorer__details > div > div > pre {
|
|
123
|
+
// border-top-left-radius: 0;
|
|
124
|
+
// border-top-right-radius: 0;
|
|
125
|
+
// }
|
|
126
|
+
|
|
127
|
+
/* Code block */
|
|
128
|
+
|
|
129
|
+
// .theme-api-markdown code {
|
|
130
|
+
// max-width: 600px;
|
|
131
|
+
// max-height: 500px;
|
|
132
|
+
// overflow: auto;
|
|
133
|
+
// }
|
|
134
|
+
|
|
135
|
+
/* Version button */
|
|
136
|
+
|
|
137
|
+
.version-button div {
|
|
138
|
+
display: block;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
.version-button div > button > span::after {
|
|
142
|
+
border-color: currentcolor transparent;
|
|
143
|
+
border-style: solid;
|
|
144
|
+
border-width: 0.4em 0.4em 0;
|
|
145
|
+
content: "";
|
|
146
|
+
margin-left: 0.3em;
|
|
147
|
+
position: relative;
|
|
148
|
+
transform: translateY(-50%);
|
|
149
|
+
display: inline-block;
|
|
150
|
+
font-size: 0.8rem;
|
|
151
|
+
top: 1px;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
.openapi__logo {
|
|
155
|
+
width: 250px;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
.openapi__heading {
|
|
159
|
+
font-size: 2rem;
|
|
160
|
+
margin-bottom: 0.5rem !important;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
.openapi-left-panel__container {
|
|
164
|
+
border-right: thin solid var(--ifm-toc-border-color);
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
@media (max-width: 997px) {
|
|
168
|
+
.schema {
|
|
169
|
+
margin-bottom: 1rem;
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
.openapi-tabs__heading {
|
|
174
|
+
margin-bottom: 1rem;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
/* Loading Skeleton */
|
|
178
|
+
@keyframes pulsing {
|
|
179
|
+
0% {
|
|
180
|
+
opacity: 1;
|
|
181
|
+
background-color: var(--ifm-color-emphasis-100);
|
|
182
|
+
}
|
|
183
|
+
50% {
|
|
184
|
+
opacity: 0.6;
|
|
185
|
+
background-color: var(--ifm-toc-border-color);
|
|
186
|
+
}
|
|
187
|
+
100% {
|
|
188
|
+
opacity: 1;
|
|
189
|
+
background-color: var(--ifm-color-emphasis-100);
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
.openapi-skeleton {
|
|
194
|
+
animation: pulsing 2s infinite ease-in-out;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
/* Loading Skeleton */
|
|
198
|
+
.openapi-skeleton {
|
|
199
|
+
border-radius: var(--ifm-pre-border-radius);
|
|
200
|
+
background-color: var(--openapi-skeleton-background);
|
|
201
|
+
max-width: 100%;
|
|
202
|
+
margin: 1rem auto;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
.openapi-skeleton.sm {
|
|
206
|
+
height: 100px;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
.openapi-skeleton.md {
|
|
210
|
+
height: 350px;
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
.openapi-skeleton.lg {
|
|
214
|
+
height: 96.5%;
|
|
215
|
+
}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
export declare const OPENAPI_RESPONSE: {
|
|
2
|
+
TITLE: string;
|
|
3
|
+
CLEAR: string;
|
|
4
|
+
PLACEHOLDER: string;
|
|
5
|
+
HEADERS_TAB: string;
|
|
6
|
+
};
|
|
7
|
+
export declare const OPENAPI_TABS: {
|
|
8
|
+
RESPONSES_LABEL: string;
|
|
9
|
+
};
|
|
10
|
+
export declare const OPENAPI_REQUEST: {
|
|
11
|
+
BODY_TITLE: string;
|
|
12
|
+
ACCEPT_TITLE: string;
|
|
13
|
+
SEND_BUTTON: string;
|
|
14
|
+
REQUIRED_LABEL: string;
|
|
15
|
+
REQUEST_TITLE: string;
|
|
16
|
+
COLLAPSE_ALL: string;
|
|
17
|
+
EXPAND_ALL: string;
|
|
18
|
+
BASE_URL_TITLE: string;
|
|
19
|
+
AUTH_TITLE: string;
|
|
20
|
+
PARAMETERS_TITLE: string;
|
|
21
|
+
FETCHING_MESSAGE: string;
|
|
22
|
+
CONNECTION_FAILED: string;
|
|
23
|
+
};
|
|
24
|
+
export declare const OPENAPI_SERVER: {
|
|
25
|
+
EDIT_BUTTON: string;
|
|
26
|
+
HIDE_BUTTON: string;
|
|
27
|
+
};
|
|
28
|
+
export declare const OPENAPI_PARAM_OPTIONS: {
|
|
29
|
+
SHOW_OPTIONAL: string;
|
|
30
|
+
HIDE_OPTIONAL: string;
|
|
31
|
+
};
|
|
32
|
+
export declare const OPENAPI_FORM_FILE_UPLOAD: {
|
|
33
|
+
CLEAR_BUTTON: string;
|
|
34
|
+
};
|
|
35
|
+
export declare const OPENAPI_FORM: {
|
|
36
|
+
FIELD_REQUIRED: string;
|
|
37
|
+
};
|
|
38
|
+
export declare const OPENAPI_AUTH: {
|
|
39
|
+
BEARER_TOKEN: string;
|
|
40
|
+
USERNAME: string;
|
|
41
|
+
PASSWORD: string;
|
|
42
|
+
SECURITY_SCHEME: string;
|
|
43
|
+
};
|
|
44
|
+
export declare const OPENAPI_RESPONSE_EXAMPLES: {
|
|
45
|
+
EXAMPLE: string;
|
|
46
|
+
AUTO_EXAMPLE: string;
|
|
47
|
+
};
|
|
48
|
+
export declare const OPENAPI_BODY: {
|
|
49
|
+
EXAMPLE_FROM_SCHEMA: string;
|
|
50
|
+
};
|
|
51
|
+
export declare const OPENAPI_STATUS_CODES: {
|
|
52
|
+
RESPONSE_HEADERS: string;
|
|
53
|
+
SCHEMA_TITLE: string;
|
|
54
|
+
};
|
|
55
|
+
export declare const OPENAPI_SCHEMA_ITEM: {
|
|
56
|
+
REQUIRED: string;
|
|
57
|
+
DEPRECATED: string;
|
|
58
|
+
NULLABLE: string;
|
|
59
|
+
DEFAULT_VALUE: string;
|
|
60
|
+
EXAMPLE: string;
|
|
61
|
+
EXAMPLES: string;
|
|
62
|
+
DESCRIPTION: string;
|
|
63
|
+
CONSTANT_VALUE: string;
|
|
64
|
+
ENUM_VALUE: string;
|
|
65
|
+
ENUM_DESCRIPTION: string;
|
|
66
|
+
POSSIBLE_VALUES: string;
|
|
67
|
+
ONE_OF: string;
|
|
68
|
+
ANY_OF: string;
|
|
69
|
+
};
|
|
70
|
+
export declare const OPENAPI_PARAMS_DETAILS: {
|
|
71
|
+
PARAMETERS_TITLE: string;
|
|
72
|
+
};
|
|
73
|
+
export declare const OPENAPI_SECURITY_SCHEMES: {
|
|
74
|
+
NAME: string;
|
|
75
|
+
TYPE: string;
|
|
76
|
+
SCOPES: string;
|
|
77
|
+
IN: string;
|
|
78
|
+
FLOWS: string;
|
|
79
|
+
DESCRIPTION: string;
|
|
80
|
+
SCHEME: string;
|
|
81
|
+
BEARER_FORMAT: string;
|
|
82
|
+
OPEN_ID_CONNECT_URL: string;
|
|
83
|
+
};
|