docusaurus-theme-openapi-docs 2.0.1 → 2.0.2
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.
|
@@ -112,6 +112,10 @@
|
|
|
112
112
|
}
|
|
113
113
|
}
|
|
114
114
|
|
|
115
|
+
.openapi-security__summary-container {
|
|
116
|
+
background: var(--ifm-pre-background);
|
|
117
|
+
}
|
|
118
|
+
|
|
115
119
|
// Prevent auto zoom on mobile iOS devices when focusing on input elmenents
|
|
116
120
|
@media screen and (-webkit-min-device-pixel-ratio: 0) and (max-device-width: 1024px) {
|
|
117
121
|
.prism-code,
|
|
@@ -20,11 +20,15 @@ const CodeSnippets_1 = __importDefault(
|
|
|
20
20
|
);
|
|
21
21
|
const Request_1 = __importDefault(require("@theme/ApiExplorer/Request"));
|
|
22
22
|
const Response_1 = __importDefault(require("@theme/ApiExplorer/Response"));
|
|
23
|
+
const SecuritySchemes_1 = __importDefault(require("./SecuritySchemes"));
|
|
23
24
|
function ApiExplorer({ item, infoPath }) {
|
|
24
25
|
const postman = new postman_collection_1.default.Request(item.postman);
|
|
25
26
|
return react_1.default.createElement(
|
|
26
27
|
react_1.default.Fragment,
|
|
27
28
|
null,
|
|
29
|
+
react_1.default.createElement(SecuritySchemes_1.default, {
|
|
30
|
+
infoPath: infoPath,
|
|
31
|
+
}),
|
|
28
32
|
item.method !== "event" &&
|
|
29
33
|
react_1.default.createElement(CodeSnippets_1.default, {
|
|
30
34
|
postman: postman,
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "docusaurus-theme-openapi-docs",
|
|
3
3
|
"description": "OpenAPI theme for Docusaurus.",
|
|
4
|
-
"version": "2.0.
|
|
4
|
+
"version": "2.0.2",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"openapi",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"clsx": "^1.1.1",
|
|
44
44
|
"copy-text-to-clipboard": "^3.1.0",
|
|
45
45
|
"crypto-js": "^4.1.1",
|
|
46
|
-
"docusaurus-plugin-openapi-docs": "^2.0.
|
|
46
|
+
"docusaurus-plugin-openapi-docs": "^2.0.2",
|
|
47
47
|
"docusaurus-plugin-sass": "^0.2.3",
|
|
48
48
|
"file-saver": "^2.0.5",
|
|
49
49
|
"lodash": "^4.17.20",
|
|
@@ -68,5 +68,5 @@
|
|
|
68
68
|
"engines": {
|
|
69
69
|
"node": ">=14"
|
|
70
70
|
},
|
|
71
|
-
"gitHead": "
|
|
71
|
+
"gitHead": "7f9528595b373f7691fd63845d84870549e6895c"
|
|
72
72
|
}
|
|
@@ -112,6 +112,10 @@
|
|
|
112
112
|
}
|
|
113
113
|
}
|
|
114
114
|
|
|
115
|
+
.openapi-security__summary-container {
|
|
116
|
+
background: var(--ifm-pre-background);
|
|
117
|
+
}
|
|
118
|
+
|
|
115
119
|
// Prevent auto zoom on mobile iOS devices when focusing on input elmenents
|
|
116
120
|
@media screen and (-webkit-min-device-pixel-ratio: 0) and (max-device-width: 1024px) {
|
|
117
121
|
.prism-code,
|
|
@@ -13,6 +13,8 @@ import Request from "@theme/ApiExplorer/Request";
|
|
|
13
13
|
import Response from "@theme/ApiExplorer/Response";
|
|
14
14
|
import { ApiItem } from "docusaurus-plugin-openapi-docs/src/types";
|
|
15
15
|
|
|
16
|
+
import SecuritySchemes from "./SecuritySchemes";
|
|
17
|
+
|
|
16
18
|
function ApiExplorer({
|
|
17
19
|
item,
|
|
18
20
|
infoPath,
|
|
@@ -24,6 +26,7 @@ function ApiExplorer({
|
|
|
24
26
|
|
|
25
27
|
return (
|
|
26
28
|
<>
|
|
29
|
+
<SecuritySchemes infoPath={infoPath} />
|
|
27
30
|
{item.method !== "event" && (
|
|
28
31
|
<CodeSnippets
|
|
29
32
|
postman={postman}
|