docusaurus-theme-openapi-docs 1.1.1 → 1.1.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.
@@ -43,7 +43,7 @@ function Server() {
43
43
  return null;
44
44
  }
45
45
 
46
- if (options.length <= 1 && (value === null || value === void 0 ? void 0 : value.variables) === undefined) {
46
+ if (options.length < 1 && (value === null || value === void 0 ? void 0 : value.variables) === undefined) {
47
47
  return null;
48
48
  }
49
49
 
@@ -76,7 +76,7 @@ function Server() {
76
76
  <button className={_stylesModule.default.showMoreButton} onClick={() => setIsEditing(false)} tabIndex={0}>
77
77
  Hide
78
78
  </button>
79
- <_FormItem.default label="Endpoint">
79
+ <_FormItem.default label="Base URL">
80
80
  <_FormSelect.default options={options.map(s => s.url)} onChange={e => dispatch((0, _slice.setServer)(e.target.value))} />
81
81
  </_FormItem.default>
82
82
  {(value === null || value === void 0 ? void 0 : value.variables) && Object.keys(value.variables).map(key => {
@@ -23,7 +23,7 @@ function Server() {
23
23
  return null;
24
24
  }
25
25
 
26
- if (options.length <= 1 && value?.variables === undefined) {
26
+ if (options.length < 1 && value?.variables === undefined) {
27
27
  return null;
28
28
  }
29
29
 
@@ -66,7 +66,7 @@ function Server() {
66
66
  >
67
67
  Hide
68
68
  </button>
69
- <FormItem label="Endpoint">
69
+ <FormItem label="Base URL">
70
70
  <FormSelect
71
71
  options={options.map((s) => s.url)}
72
72
  onChange={(e) => dispatch(setServer(e.target.value))}
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": "1.1.1",
4
+ "version": "1.1.2",
5
5
  "license": "MIT",
6
6
  "keywords": [
7
7
  "openapi",
@@ -50,7 +50,7 @@
50
50
  "buffer": "^6.0.3",
51
51
  "clsx": "^1.1.1",
52
52
  "crypto-js": "^4.1.1",
53
- "docusaurus-plugin-openapi-docs": "^1.1.1",
53
+ "docusaurus-plugin-openapi-docs": "^1.1.2",
54
54
  "immer": "^9.0.7",
55
55
  "lodash": "^4.17.20",
56
56
  "process": "^0.11.10",
@@ -68,5 +68,5 @@
68
68
  "engines": {
69
69
  "node": ">=14"
70
70
  },
71
- "gitHead": "3eb4608e07c5e4f01328fea4e488e9e0f90134a8"
71
+ "gitHead": "0c66efff6ff553647265abdc27d4ca847c6d8045"
72
72
  }
@@ -26,7 +26,7 @@ function Server() {
26
26
  return null;
27
27
  }
28
28
 
29
- if (options.length <= 1 && value?.variables === undefined) {
29
+ if (options.length < 1 && value?.variables === undefined) {
30
30
  return null;
31
31
  }
32
32
 
@@ -66,7 +66,7 @@ function Server() {
66
66
  >
67
67
  Hide
68
68
  </button>
69
- <FormItem label="Endpoint">
69
+ <FormItem label="Base URL">
70
70
  <FormSelect
71
71
  options={options.map((s) => s.url)}
72
72
  onChange={(e) => dispatch(setServer(e.target.value))}