docusaurus-theme-openapi-docs 1.4.2 → 1.4.3

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.
@@ -108,7 +108,9 @@ function Execute({
108
108
  };
109
109
 
110
110
  if (agreementAccepted) {
111
- return <button className="button button--sm button--secondary" disabled={!isValidRequest} onClick={async () => {
111
+ return <button className="button button--sm button--secondary" disabled={!isValidRequest} style={!isValidRequest ? {
112
+ pointerEvents: "all"
113
+ } : {}} onClick={async () => {
112
114
  dispatch((0, _slice.setResponse)("Fetching..."));
113
115
 
114
116
  try {
@@ -93,6 +93,13 @@ function Execute({ postman, proxy }) {
93
93
  <button
94
94
  className="button button--sm button--secondary"
95
95
  disabled={!isValidRequest}
96
+ style={
97
+ !isValidRequest
98
+ ? {
99
+ pointerEvents: "all",
100
+ }
101
+ : {}
102
+ }
96
103
  onClick={async () => {
97
104
  dispatch(setResponse("Fetching..."));
98
105
 
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.4.2",
4
+ "version": "1.4.3",
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": "^1.4.2",
54
+ "docusaurus-plugin-openapi-docs": "^1.4.3",
55
55
  "file-saver": "^2.0.5",
56
56
  "immer": "^9.0.7",
57
57
  "lodash": "^4.17.20",
@@ -73,5 +73,5 @@
73
73
  "engines": {
74
74
  "node": ">=14"
75
75
  },
76
- "gitHead": "e5337f7fecf3b082c0781f798a479b2a63237432"
76
+ "gitHead": "277586102253008f831bedbb990fb9854658a190"
77
77
  }
@@ -112,6 +112,7 @@ function Execute({ postman, proxy }: Props) {
112
112
  <button
113
113
  className="button button--sm button--secondary"
114
114
  disabled={!isValidRequest}
115
+ style={!isValidRequest ? { pointerEvents: "all" } : {}}
115
116
  onClick={async () => {
116
117
  dispatch(setResponse("Fetching..."));
117
118
  try {