docusaurus-theme-openapi-docs 0.0.0-1017 → 0.0.0-1018
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/lib/theme/ApiExplorer/ApiCodeBlock/Content/String.js +3 -3
- package/lib/theme/ApiExplorer/ApiCodeBlock/CopyButton/index.d.ts +5 -1
- package/lib/theme/ApiExplorer/Authorization/slice.js +2 -2
- package/lib/theme/ApiExplorer/Body/slice.js +2 -2
- package/lib/theme/ApiExplorer/Response/slice.js +2 -2
- package/lib/theme/ApiExplorer/Server/slice.js +2 -2
- package/package.json +3 -3
- package/src/theme/ApiExplorer/ApiCodeBlock/Content/String.tsx +3 -3
- package/src/theme/ApiExplorer/ApiCodeBlock/CopyButton/index.tsx +5 -1
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -116,7 +116,7 @@ function CodeBlockString({
|
|
|
116
116
|
getLineProps: getLineProps,
|
|
117
117
|
getTokenProps: getTokenProps,
|
|
118
118
|
classNames: lineClassNames[i],
|
|
119
|
-
showLineNumbers: showLineNumbers,
|
|
119
|
+
showLineNumbers: !!showLineNumbers,
|
|
120
120
|
})
|
|
121
121
|
)
|
|
122
122
|
)
|
|
@@ -142,9 +142,9 @@ function CodeBlockString({
|
|
|
142
142
|
),
|
|
143
143
|
code: code,
|
|
144
144
|
language: language ?? "text",
|
|
145
|
-
showLineNumbers: showLineNumbers,
|
|
145
|
+
showLineNumbers: !!showLineNumbers,
|
|
146
146
|
blockClassName: blockClassName,
|
|
147
|
-
title: title,
|
|
147
|
+
title: typeof title === "string" ? title : undefined,
|
|
148
148
|
lineClassNames: lineClassNames,
|
|
149
149
|
})
|
|
150
150
|
)
|
|
@@ -1,3 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
|
|
2
|
+
interface CopyButtonProps {
|
|
3
|
+
code: string;
|
|
4
|
+
className?: string;
|
|
5
|
+
}
|
|
3
6
|
export default function CopyButton({ code, className, }: CopyButtonProps): React.JSX.Element;
|
|
7
|
+
export {};
|
|
@@ -96,7 +96,7 @@ exports.slice = (0, toolkit_1.createSlice)({
|
|
|
96
96
|
},
|
|
97
97
|
},
|
|
98
98
|
});
|
|
99
|
-
(_a = exports.slice.actions),
|
|
99
|
+
((_a = exports.slice.actions),
|
|
100
100
|
(exports.setAuthData = _a.setAuthData),
|
|
101
|
-
(exports.setSelectedAuth = _a.setSelectedAuth);
|
|
101
|
+
(exports.setSelectedAuth = _a.setSelectedAuth));
|
|
102
102
|
exports.default = exports.slice.reducer;
|
|
@@ -87,11 +87,11 @@ exports.slice = (0, toolkit_1.createSlice)({
|
|
|
87
87
|
},
|
|
88
88
|
},
|
|
89
89
|
});
|
|
90
|
-
(_a = exports.slice.actions),
|
|
90
|
+
((_a = exports.slice.actions),
|
|
91
91
|
(exports.clearRawBody = _a.clearRawBody),
|
|
92
92
|
(exports.setStringRawBody = _a.setStringRawBody),
|
|
93
93
|
(exports.setFileRawBody = _a.setFileRawBody),
|
|
94
94
|
(exports.clearFormBodyKey = _a.clearFormBodyKey),
|
|
95
95
|
(exports.setStringFormBody = _a.setStringFormBody),
|
|
96
|
-
(exports.setFileFormBody = _a.setFileFormBody);
|
|
96
|
+
(exports.setFileFormBody = _a.setFileFormBody));
|
|
97
97
|
exports.default = exports.slice.reducer;
|
|
@@ -41,11 +41,11 @@ exports.slice = (0, toolkit_1.createSlice)({
|
|
|
41
41
|
},
|
|
42
42
|
},
|
|
43
43
|
});
|
|
44
|
-
(_a = exports.slice.actions),
|
|
44
|
+
((_a = exports.slice.actions),
|
|
45
45
|
(exports.setResponse = _a.setResponse),
|
|
46
46
|
(exports.clearResponse = _a.clearResponse),
|
|
47
47
|
(exports.setCode = _a.setCode),
|
|
48
48
|
(exports.clearCode = _a.clearCode),
|
|
49
49
|
(exports.setHeaders = _a.setHeaders),
|
|
50
|
-
(exports.clearHeaders = _a.clearHeaders);
|
|
50
|
+
(exports.clearHeaders = _a.clearHeaders));
|
|
51
51
|
exports.default = exports.slice.reducer;
|
|
@@ -27,7 +27,7 @@ exports.slice = (0, toolkit_1.createSlice)({
|
|
|
27
27
|
},
|
|
28
28
|
},
|
|
29
29
|
});
|
|
30
|
-
(_a = exports.slice.actions),
|
|
30
|
+
((_a = exports.slice.actions),
|
|
31
31
|
(exports.setServer = _a.setServer),
|
|
32
|
-
(exports.setServerVariable = _a.setServerVariable);
|
|
32
|
+
(exports.setServerVariable = _a.setServerVariable));
|
|
33
33
|
exports.default = exports.slice.reducer;
|
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-1018",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"openapi",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"@types/postman-collection": "^3.5.11",
|
|
39
39
|
"@types/react-modal": "^3.16.3",
|
|
40
40
|
"concurrently": "^5.2.0",
|
|
41
|
-
"docusaurus-plugin-openapi-docs": "0.0.0-
|
|
41
|
+
"docusaurus-plugin-openapi-docs": "0.0.0-1018",
|
|
42
42
|
"docusaurus-plugin-sass": "^0.2.3",
|
|
43
43
|
"eslint-plugin-prettier": "^5.0.1"
|
|
44
44
|
},
|
|
@@ -81,5 +81,5 @@
|
|
|
81
81
|
"engines": {
|
|
82
82
|
"node": ">=14"
|
|
83
83
|
},
|
|
84
|
-
"gitHead": "
|
|
84
|
+
"gitHead": "4ed9784e2b92f3f65cdcc25b1606639b5a8c3c82"
|
|
85
85
|
}
|
|
@@ -96,7 +96,7 @@ export default function CodeBlockString({
|
|
|
96
96
|
getLineProps={getLineProps}
|
|
97
97
|
getTokenProps={getTokenProps}
|
|
98
98
|
classNames={lineClassNames[i]}
|
|
99
|
-
showLineNumbers={showLineNumbers}
|
|
99
|
+
showLineNumbers={!!showLineNumbers}
|
|
100
100
|
/>
|
|
101
101
|
))}
|
|
102
102
|
</code>
|
|
@@ -122,9 +122,9 @@ export default function CodeBlockString({
|
|
|
122
122
|
)}
|
|
123
123
|
code={code}
|
|
124
124
|
language={(language ?? "text") as Language}
|
|
125
|
-
showLineNumbers={showLineNumbers}
|
|
125
|
+
showLineNumbers={!!showLineNumbers}
|
|
126
126
|
blockClassName={blockClassName}
|
|
127
|
-
title={title}
|
|
127
|
+
title={typeof title === "string" ? title : undefined}
|
|
128
128
|
lineClassNames={lineClassNames}
|
|
129
129
|
/>
|
|
130
130
|
</div>
|
|
@@ -7,11 +7,15 @@
|
|
|
7
7
|
|
|
8
8
|
import React, { useCallback, useState, useRef, useEffect } from "react";
|
|
9
9
|
|
|
10
|
-
import { CopyButtonProps } from "@docusaurus/theme-common/internal";
|
|
11
10
|
import { translate } from "@docusaurus/Translate";
|
|
12
11
|
import clsx from "clsx";
|
|
13
12
|
import copy from "copy-text-to-clipboard";
|
|
14
13
|
|
|
14
|
+
interface CopyButtonProps {
|
|
15
|
+
code: string;
|
|
16
|
+
className?: string;
|
|
17
|
+
}
|
|
18
|
+
|
|
15
19
|
export default function CopyButton({
|
|
16
20
|
code,
|
|
17
21
|
className,
|
package/tsconfig.tsbuildinfo
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"root":["./src/index.ts","./src/plugin-content-docs.d.ts","./src/postman-code-generators.d.ts","./src/react-magic-dropzone.d.ts","./src/theme-classic.d.ts","./src/theme-openapi.d.ts","./src/types.ts","./src/markdown/createDescription.ts","./src/markdown/schema.ts","./src/markdown/utils.test.ts","./src/markdown/utils.ts","./src/theme/ApiExplorer/buildPostmanRequest.ts","./src/theme/ApiExplorer/index.tsx","./src/theme/ApiExplorer/persistanceMiddleware.ts","./src/theme/ApiExplorer/storage-utils.ts","./src/theme/ApiExplorer/Accept/index.tsx","./src/theme/ApiExplorer/Accept/slice.ts","./src/theme/ApiExplorer/ApiCodeBlock/index.tsx","./src/theme/ApiExplorer/ApiCodeBlock/Container/index.tsx","./src/theme/ApiExplorer/ApiCodeBlock/Content/Element.tsx","./src/theme/ApiExplorer/ApiCodeBlock/Content/String.tsx","./src/theme/ApiExplorer/ApiCodeBlock/CopyButton/index.tsx","./src/theme/ApiExplorer/ApiCodeBlock/ExitButton/index.tsx","./src/theme/ApiExplorer/ApiCodeBlock/ExpandButton/index.tsx","./src/theme/ApiExplorer/ApiCodeBlock/Line/index.tsx","./src/theme/ApiExplorer/ApiCodeBlock/WordWrapButton/index.tsx","./src/theme/ApiExplorer/Authorization/auth-types.ts","./src/theme/ApiExplorer/Authorization/index.tsx","./src/theme/ApiExplorer/Authorization/slice.ts","./src/theme/ApiExplorer/Body/index.tsx","./src/theme/ApiExplorer/Body/slice.ts","./src/theme/ApiExplorer/CodeSnippets/code-snippets-types.ts","./src/theme/ApiExplorer/CodeSnippets/index.tsx","./src/theme/ApiExplorer/CodeSnippets/languages.ts","./src/theme/ApiExplorer/CodeTabs/index.tsx","./src/theme/ApiExplorer/ContentType/index.tsx","./src/theme/ApiExplorer/ContentType/slice.ts","./src/theme/ApiExplorer/Export/index.tsx","./src/theme/ApiExplorer/FloatingButton/index.tsx","./src/theme/ApiExplorer/FormFileUpload/index.tsx","./src/theme/ApiExplorer/FormItem/index.tsx","./src/theme/ApiExplorer/FormMultiSelect/index.tsx","./src/theme/ApiExplorer/FormSelect/index.tsx","./src/theme/ApiExplorer/FormTextInput/index.tsx","./src/theme/ApiExplorer/LiveEditor/index.tsx","./src/theme/ApiExplorer/MethodEndpoint/index.tsx","./src/theme/ApiExplorer/ParamOptions/index.tsx","./src/theme/ApiExplorer/ParamOptions/slice.ts","./src/theme/ApiExplorer/ParamOptions/ParamFormItems/ParamArrayFormItem.tsx","./src/theme/ApiExplorer/ParamOptions/ParamFormItems/ParamBooleanFormItem.tsx","./src/theme/ApiExplorer/ParamOptions/ParamFormItems/ParamMultiSelectFormItem.tsx","./src/theme/ApiExplorer/ParamOptions/ParamFormItems/ParamSelectFormItem.tsx","./src/theme/ApiExplorer/ParamOptions/ParamFormItems/ParamTextFormItem.tsx","./src/theme/ApiExplorer/Request/index.tsx","./src/theme/ApiExplorer/Request/makeRequest.ts","./src/theme/ApiExplorer/Response/index.tsx","./src/theme/ApiExplorer/Response/slice.ts","./src/theme/ApiExplorer/SecuritySchemes/index.tsx","./src/theme/ApiExplorer/Server/index.tsx","./src/theme/ApiExplorer/Server/slice.ts","./src/theme/ApiItem/hooks.ts","./src/theme/ApiItem/index.tsx","./src/theme/ApiItem/store.ts","./src/theme/ApiItem/Layout/index.tsx","./src/theme/ApiLogo/index.tsx","./src/theme/ApiTabs/index.tsx","./src/theme/ArrayBrackets/index.tsx","./src/theme/CodeSamples/index.tsx","./src/theme/DiscriminatorTabs/index.tsx","./src/theme/MimeTabs/index.tsx","./src/theme/OperationTabs/index.tsx","./src/theme/ParamsDetails/index.tsx","./src/theme/ParamsItem/index.tsx","./src/theme/RequestSchema/index.tsx","./src/theme/ResponseExamples/index.tsx","./src/theme/ResponseHeaders/index.tsx","./src/theme/ResponseSchema/index.tsx","./src/theme/Schema/index.tsx","./src/theme/SchemaItem/index.tsx","./src/theme/SchemaTabs/index.tsx","./src/theme/SkeletonLoader/index.tsx","./src/theme/StatusCodes/index.tsx"],"version":"5.
|
|
1
|
+
{"root":["./src/index.ts","./src/plugin-content-docs.d.ts","./src/postman-code-generators.d.ts","./src/react-magic-dropzone.d.ts","./src/theme-classic.d.ts","./src/theme-openapi.d.ts","./src/types.ts","./src/markdown/createDescription.ts","./src/markdown/schema.ts","./src/markdown/utils.test.ts","./src/markdown/utils.ts","./src/theme/ApiExplorer/buildPostmanRequest.ts","./src/theme/ApiExplorer/index.tsx","./src/theme/ApiExplorer/persistanceMiddleware.ts","./src/theme/ApiExplorer/storage-utils.ts","./src/theme/ApiExplorer/Accept/index.tsx","./src/theme/ApiExplorer/Accept/slice.ts","./src/theme/ApiExplorer/ApiCodeBlock/index.tsx","./src/theme/ApiExplorer/ApiCodeBlock/Container/index.tsx","./src/theme/ApiExplorer/ApiCodeBlock/Content/Element.tsx","./src/theme/ApiExplorer/ApiCodeBlock/Content/String.tsx","./src/theme/ApiExplorer/ApiCodeBlock/CopyButton/index.tsx","./src/theme/ApiExplorer/ApiCodeBlock/ExitButton/index.tsx","./src/theme/ApiExplorer/ApiCodeBlock/ExpandButton/index.tsx","./src/theme/ApiExplorer/ApiCodeBlock/Line/index.tsx","./src/theme/ApiExplorer/ApiCodeBlock/WordWrapButton/index.tsx","./src/theme/ApiExplorer/Authorization/auth-types.ts","./src/theme/ApiExplorer/Authorization/index.tsx","./src/theme/ApiExplorer/Authorization/slice.ts","./src/theme/ApiExplorer/Body/index.tsx","./src/theme/ApiExplorer/Body/slice.ts","./src/theme/ApiExplorer/CodeSnippets/code-snippets-types.ts","./src/theme/ApiExplorer/CodeSnippets/index.tsx","./src/theme/ApiExplorer/CodeSnippets/languages.ts","./src/theme/ApiExplorer/CodeTabs/index.tsx","./src/theme/ApiExplorer/ContentType/index.tsx","./src/theme/ApiExplorer/ContentType/slice.ts","./src/theme/ApiExplorer/Export/index.tsx","./src/theme/ApiExplorer/FloatingButton/index.tsx","./src/theme/ApiExplorer/FormFileUpload/index.tsx","./src/theme/ApiExplorer/FormItem/index.tsx","./src/theme/ApiExplorer/FormMultiSelect/index.tsx","./src/theme/ApiExplorer/FormSelect/index.tsx","./src/theme/ApiExplorer/FormTextInput/index.tsx","./src/theme/ApiExplorer/LiveEditor/index.tsx","./src/theme/ApiExplorer/MethodEndpoint/index.tsx","./src/theme/ApiExplorer/ParamOptions/index.tsx","./src/theme/ApiExplorer/ParamOptions/slice.ts","./src/theme/ApiExplorer/ParamOptions/ParamFormItems/ParamArrayFormItem.tsx","./src/theme/ApiExplorer/ParamOptions/ParamFormItems/ParamBooleanFormItem.tsx","./src/theme/ApiExplorer/ParamOptions/ParamFormItems/ParamMultiSelectFormItem.tsx","./src/theme/ApiExplorer/ParamOptions/ParamFormItems/ParamSelectFormItem.tsx","./src/theme/ApiExplorer/ParamOptions/ParamFormItems/ParamTextFormItem.tsx","./src/theme/ApiExplorer/Request/index.tsx","./src/theme/ApiExplorer/Request/makeRequest.ts","./src/theme/ApiExplorer/Response/index.tsx","./src/theme/ApiExplorer/Response/slice.ts","./src/theme/ApiExplorer/SecuritySchemes/index.tsx","./src/theme/ApiExplorer/Server/index.tsx","./src/theme/ApiExplorer/Server/slice.ts","./src/theme/ApiItem/hooks.ts","./src/theme/ApiItem/index.tsx","./src/theme/ApiItem/store.ts","./src/theme/ApiItem/Layout/index.tsx","./src/theme/ApiLogo/index.tsx","./src/theme/ApiTabs/index.tsx","./src/theme/ArrayBrackets/index.tsx","./src/theme/CodeSamples/index.tsx","./src/theme/DiscriminatorTabs/index.tsx","./src/theme/MimeTabs/index.tsx","./src/theme/OperationTabs/index.tsx","./src/theme/ParamsDetails/index.tsx","./src/theme/ParamsItem/index.tsx","./src/theme/RequestSchema/index.tsx","./src/theme/ResponseExamples/index.tsx","./src/theme/ResponseHeaders/index.tsx","./src/theme/ResponseSchema/index.tsx","./src/theme/Schema/index.tsx","./src/theme/SchemaItem/index.tsx","./src/theme/SchemaTabs/index.tsx","./src/theme/SkeletonLoader/index.tsx","./src/theme/StatusCodes/index.tsx"],"version":"5.8.3"}
|