docusaurus-theme-openapi-docs 3.0.1 → 3.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.
|
@@ -23,7 +23,6 @@ const FormTextInput_1 = __importDefault(
|
|
|
23
23
|
);
|
|
24
24
|
const LiveEditor_1 = __importDefault(require("@theme/ApiExplorer/LiveEditor"));
|
|
25
25
|
const hooks_1 = require("@theme/ApiItem/hooks");
|
|
26
|
-
const Markdown_1 = __importDefault(require("@theme/Markdown"));
|
|
27
26
|
const SchemaTabs_1 = __importDefault(require("@theme/SchemaTabs"));
|
|
28
27
|
const TabItem_1 = __importDefault(require("@theme/TabItem"));
|
|
29
28
|
const xml_formatter_1 = __importDefault(require("xml-formatter"));
|
|
@@ -298,9 +297,7 @@ function Body({
|
|
|
298
297
|
TabItem_1.default,
|
|
299
298
|
{ label: "Example", value: "example" },
|
|
300
299
|
example.summary &&
|
|
301
|
-
react_1.default.createElement(
|
|
302
|
-
children: example.summary,
|
|
303
|
-
}),
|
|
300
|
+
react_1.default.createElement("div", null, example.summary),
|
|
304
301
|
exampleBody &&
|
|
305
302
|
react_1.default.createElement(
|
|
306
303
|
LiveEditor_1.default,
|
|
@@ -342,9 +339,7 @@ function Body({
|
|
|
342
339
|
key: example.label,
|
|
343
340
|
},
|
|
344
341
|
example.summary &&
|
|
345
|
-
react_1.default.createElement(
|
|
346
|
-
children: example.summary,
|
|
347
|
-
}),
|
|
342
|
+
react_1.default.createElement("div", null, example.summary),
|
|
348
343
|
example.body &&
|
|
349
344
|
react_1.default.createElement(
|
|
350
345
|
LiveEditor_1.default,
|
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": "3.0.
|
|
4
|
+
"version": "3.0.2",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"openapi",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"clsx": "^1.1.1",
|
|
43
43
|
"copy-text-to-clipboard": "^3.1.0",
|
|
44
44
|
"crypto-js": "^4.1.1",
|
|
45
|
-
"docusaurus-plugin-openapi-docs": "^3.0.
|
|
45
|
+
"docusaurus-plugin-openapi-docs": "^3.0.2",
|
|
46
46
|
"docusaurus-plugin-sass": "^0.2.3",
|
|
47
47
|
"file-saver": "^2.0.5",
|
|
48
48
|
"lodash": "^4.17.20",
|
|
@@ -69,5 +69,5 @@
|
|
|
69
69
|
"engines": {
|
|
70
70
|
"node": ">=14"
|
|
71
71
|
},
|
|
72
|
-
"gitHead": "
|
|
72
|
+
"gitHead": "071a66e28184054dde1df825509c731bf819a3ed"
|
|
73
73
|
}
|
|
@@ -14,7 +14,6 @@ import FormSelect from "@theme/ApiExplorer/FormSelect";
|
|
|
14
14
|
import FormTextInput from "@theme/ApiExplorer/FormTextInput";
|
|
15
15
|
import LiveApp from "@theme/ApiExplorer/LiveEditor";
|
|
16
16
|
import { useTypedDispatch, useTypedSelector } from "@theme/ApiItem/hooks";
|
|
17
|
-
import Markdown from "@theme/Markdown";
|
|
18
17
|
import SchemaTabs from "@theme/SchemaTabs";
|
|
19
18
|
import TabItem from "@theme/TabItem";
|
|
20
19
|
import { RequestBodyObject } from "docusaurus-plugin-openapi-docs/src/openapi/types";
|
|
@@ -304,7 +303,7 @@ function Body({
|
|
|
304
303
|
</TabItem>
|
|
305
304
|
{/* @ts-ignore */}
|
|
306
305
|
<TabItem label="Example" value="example">
|
|
307
|
-
{example.summary && <
|
|
306
|
+
{example.summary && <div>{example.summary}</div>}
|
|
308
307
|
{exampleBody && (
|
|
309
308
|
<LiveApp
|
|
310
309
|
action={dispatch}
|
|
@@ -342,7 +341,7 @@ function Body({
|
|
|
342
341
|
value={example.label}
|
|
343
342
|
key={example.label}
|
|
344
343
|
>
|
|
345
|
-
{example.summary && <
|
|
344
|
+
{example.summary && <div>{example.summary}</div>}
|
|
346
345
|
{example.body && (
|
|
347
346
|
<LiveApp action={dispatch} language={language}>
|
|
348
347
|
{example.body}
|