docusaurus-theme-openapi-docs 0.0.0-852 → 0.0.0-856
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.
|
@@ -224,7 +224,7 @@ function CodeSnippets({ postman, codeSamples }) {
|
|
|
224
224
|
]);
|
|
225
225
|
// no dependencies was intentionlly set for this particular hook. it's safe as long as if conditions are set
|
|
226
226
|
(0, react_1.useEffect)(function onSelectedVariantUpdate() {
|
|
227
|
-
if (selectedVariant && selectedVariant !== language
|
|
227
|
+
if (selectedVariant && selectedVariant !== language?.variant) {
|
|
228
228
|
const postmanRequest = (0, buildPostmanRequest_1.default)(postman, {
|
|
229
229
|
queryParams,
|
|
230
230
|
pathParams,
|
|
@@ -254,6 +254,7 @@ function CodeSnippets({ postman, codeSamples }) {
|
|
|
254
254
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
255
255
|
(0, react_1.useEffect)(function onSelectedSampleUpdate() {
|
|
256
256
|
if (
|
|
257
|
+
language &&
|
|
257
258
|
language.samples &&
|
|
258
259
|
language.samplesSources &&
|
|
259
260
|
selectedSample &&
|
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-856",
|
|
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": "0.0.0-
|
|
45
|
+
"docusaurus-plugin-openapi-docs": "0.0.0-856",
|
|
46
46
|
"docusaurus-plugin-sass": "^0.2.3",
|
|
47
47
|
"file-saver": "^2.0.5",
|
|
48
48
|
"lodash": "^4.17.20",
|
|
@@ -70,5 +70,5 @@
|
|
|
70
70
|
"engines": {
|
|
71
71
|
"node": ">=14"
|
|
72
72
|
},
|
|
73
|
-
"gitHead": "
|
|
73
|
+
"gitHead": "e6e0e8c30bbb9ac9893003bf616d1eb3fdacd058"
|
|
74
74
|
}
|
|
@@ -180,7 +180,7 @@ function CodeSnippets({ postman, codeSamples }: Props) {
|
|
|
180
180
|
]);
|
|
181
181
|
// no dependencies was intentionlly set for this particular hook. it's safe as long as if conditions are set
|
|
182
182
|
useEffect(function onSelectedVariantUpdate() {
|
|
183
|
-
if (selectedVariant && selectedVariant !== language
|
|
183
|
+
if (selectedVariant && selectedVariant !== language?.variant) {
|
|
184
184
|
const postmanRequest = buildPostmanRequest(postman, {
|
|
185
185
|
queryParams,
|
|
186
186
|
pathParams,
|
|
@@ -211,6 +211,7 @@ function CodeSnippets({ postman, codeSamples }: Props) {
|
|
|
211
211
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
212
212
|
useEffect(function onSelectedSampleUpdate() {
|
|
213
213
|
if (
|
|
214
|
+
language &&
|
|
214
215
|
language.samples &&
|
|
215
216
|
language.samplesSources &&
|
|
216
217
|
selectedSample &&
|