docusaurus-theme-openapi-docs 0.0.0-573 → 0.0.0-575
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.
|
@@ -31,7 +31,8 @@ function Request({
|
|
|
31
31
|
const postman = new _postmanCollection.default.Request(item.postman);
|
|
32
32
|
const metadata = (0, _internal.useDoc)();
|
|
33
33
|
const {
|
|
34
|
-
proxy
|
|
34
|
+
proxy,
|
|
35
|
+
hide_send_button
|
|
35
36
|
} = metadata.frontMatter;
|
|
36
37
|
const params = {
|
|
37
38
|
path: [],
|
|
@@ -49,7 +50,7 @@ function Request({
|
|
|
49
50
|
<summary>
|
|
50
51
|
<div className={`details__request-summary`}>
|
|
51
52
|
<h4>Request</h4>
|
|
52
|
-
{item.servers && <_Execute.default postman={postman} proxy={proxy} />}
|
|
53
|
+
{item.servers && !hide_send_button && <_Execute.default postman={postman} proxy={proxy} />}
|
|
53
54
|
</div>
|
|
54
55
|
</summary>
|
|
55
56
|
<div className={_stylesModule.default.optionsPanel}>
|
|
@@ -20,7 +20,7 @@ function Request({ item }) {
|
|
|
20
20
|
const response = useTypedSelector((state) => state.response.value);
|
|
21
21
|
const postman = new sdk.Request(item.postman);
|
|
22
22
|
const metadata = useDoc();
|
|
23
|
-
const { proxy } = metadata.frontMatter;
|
|
23
|
+
const { proxy, hide_send_button } = metadata.frontMatter;
|
|
24
24
|
const params = {
|
|
25
25
|
path: [],
|
|
26
26
|
query: [],
|
|
@@ -38,7 +38,9 @@ function Request({ item }) {
|
|
|
38
38
|
<summary>
|
|
39
39
|
<div className={`details__request-summary`}>
|
|
40
40
|
<h4>Request</h4>
|
|
41
|
-
{item.servers &&
|
|
41
|
+
{item.servers && !hide_send_button && (
|
|
42
|
+
<Execute postman={postman} proxy={proxy} />
|
|
43
|
+
)}
|
|
42
44
|
</div>
|
|
43
45
|
</summary>
|
|
44
46
|
<div className={styles.optionsPanel}>
|
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": "0.0.0-
|
|
4
|
+
"version": "0.0.0-575",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"openapi",
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"buffer": "^6.0.3",
|
|
52
52
|
"clsx": "^1.1.1",
|
|
53
53
|
"crypto-js": "^4.1.1",
|
|
54
|
-
"docusaurus-plugin-openapi-docs": "0.0.0-
|
|
54
|
+
"docusaurus-plugin-openapi-docs": "0.0.0-575",
|
|
55
55
|
"file-saver": "^2.0.5",
|
|
56
56
|
"immer": "^9.0.7",
|
|
57
57
|
"lodash": "^4.17.20",
|
|
@@ -74,5 +74,5 @@
|
|
|
74
74
|
"engines": {
|
|
75
75
|
"node": ">=14"
|
|
76
76
|
},
|
|
77
|
-
"gitHead": "
|
|
77
|
+
"gitHead": "9f2479bd7257534ab220aef80aa6783ef223b2ac"
|
|
78
78
|
}
|
|
@@ -25,7 +25,7 @@ function Request({ item }: { item: NonNullable<ApiItem> }) {
|
|
|
25
25
|
const response = useTypedSelector((state: any) => state.response.value);
|
|
26
26
|
const postman = new sdk.Request(item.postman);
|
|
27
27
|
const metadata = useDoc();
|
|
28
|
-
const { proxy } = metadata.frontMatter;
|
|
28
|
+
const { proxy, hide_send_button } = metadata.frontMatter;
|
|
29
29
|
|
|
30
30
|
const params = {
|
|
31
31
|
path: [] as ParameterObject[],
|
|
@@ -48,7 +48,9 @@ function Request({ item }: { item: NonNullable<ApiItem> }) {
|
|
|
48
48
|
<summary>
|
|
49
49
|
<div className={`details__request-summary`}>
|
|
50
50
|
<h4>Request</h4>
|
|
51
|
-
{item.servers &&
|
|
51
|
+
{item.servers && !hide_send_button && (
|
|
52
|
+
<Execute postman={postman} proxy={proxy} />
|
|
53
|
+
)}
|
|
52
54
|
</div>
|
|
53
55
|
</summary>
|
|
54
56
|
<div className={styles.optionsPanel}>
|