docusaurus-theme-openapi-docs 1.4.2 → 1.4.4

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.
Files changed (128) hide show
  1. package/lib/index.js +5 -8
  2. package/lib/markdown/createDescription.js +1 -2
  3. package/lib/markdown/schema.js +7 -42
  4. package/lib/markdown/utils.js +1 -7
  5. package/lib/theme/ApiDemoPanel/Accept/index.js +1 -10
  6. package/lib/theme/ApiDemoPanel/Accept/slice.js +1 -2
  7. package/lib/theme/ApiDemoPanel/Authorization/auth-types.js +7 -8
  8. package/lib/theme/ApiDemoPanel/Authorization/index.js +1 -19
  9. package/lib/theme/ApiDemoPanel/Authorization/slice.js +7 -21
  10. package/lib/theme/ApiDemoPanel/Body/index.js +14 -47
  11. package/lib/theme/ApiDemoPanel/Body/slice.js +1 -4
  12. package/lib/theme/ApiDemoPanel/CodeTabs/index.js +14 -46
  13. package/lib/theme/ApiDemoPanel/ContentType/index.js +1 -10
  14. package/lib/theme/ApiDemoPanel/ContentType/slice.js +1 -2
  15. package/lib/theme/ApiDemoPanel/Curl/index.js +9 -29
  16. package/lib/theme/ApiDemoPanel/Execute/index.js +6 -23
  17. package/lib/theme/ApiDemoPanel/Execute/makeRequest.js +4 -27
  18. package/lib/theme/ApiDemoPanel/Export/index.js +1 -8
  19. package/lib/theme/ApiDemoPanel/FloatingButton/index.js +1 -5
  20. package/lib/theme/ApiDemoPanel/FormFileUpload/index.js +1 -14
  21. package/lib/theme/ApiDemoPanel/FormItem/index.js +1 -5
  22. package/lib/theme/ApiDemoPanel/FormMultiSelect/index.js +1 -8
  23. package/lib/theme/ApiDemoPanel/FormSelect/index.js +1 -6
  24. package/lib/theme/ApiDemoPanel/FormTextInput/index.js +1 -6
  25. package/lib/theme/ApiDemoPanel/LiveEditor/index.js +3 -17
  26. package/lib/theme/ApiDemoPanel/MethodEndpoint/index.js +1 -12
  27. package/lib/theme/ApiDemoPanel/ParamOptions/index.js +20 -52
  28. package/lib/theme/ApiDemoPanel/ParamOptions/slice.js +1 -2
  29. package/lib/theme/ApiDemoPanel/Request/index.js +1 -15
  30. package/lib/theme/ApiDemoPanel/Response/index.js +1 -14
  31. package/lib/theme/ApiDemoPanel/Response/slice.js +1 -2
  32. package/lib/theme/ApiDemoPanel/SecuritySchemes/index.js +1 -9
  33. package/lib/theme/ApiDemoPanel/Server/index.js +3 -27
  34. package/lib/theme/ApiDemoPanel/Server/slice.js +1 -3
  35. package/lib/theme/ApiDemoPanel/buildPostmanRequest.js +11 -62
  36. package/lib/theme/ApiDemoPanel/index.js +2 -14
  37. package/lib/theme/ApiDemoPanel/persistanceMiddleware.js +5 -11
  38. package/lib/theme/ApiDemoPanel/storage-utils.js +1 -7
  39. package/lib/theme/ApiItem/Layout/index.js +5 -22
  40. package/lib/theme/ApiItem/Layout/styles.module.css +0 -403
  41. package/lib/theme/ApiItem/hooks.js +1 -3
  42. package/lib/theme/ApiItem/index.js +14 -30
  43. package/lib/theme/ApiItem/store.js +1 -14
  44. package/lib/theme/ApiLogo/index.js +1 -4
  45. package/lib/theme/styles.css +428 -0
  46. package/lib/theme-classic.d.ts +5 -0
  47. package/lib-next/index.js +5 -3
  48. package/lib-next/markdown/createDescription.js +1 -1
  49. package/lib-next/markdown/schema.js +7 -35
  50. package/lib-next/markdown/utils.js +1 -4
  51. package/lib-next/theme/ApiDemoPanel/Accept/index.js +1 -4
  52. package/lib-next/theme/ApiDemoPanel/Accept/slice.js +1 -0
  53. package/lib-next/theme/ApiDemoPanel/Authorization/auth-types.js +7 -4
  54. package/lib-next/theme/ApiDemoPanel/Authorization/index.js +1 -8
  55. package/lib-next/theme/ApiDemoPanel/Authorization/slice.js +12 -14
  56. package/lib-next/theme/ApiDemoPanel/Body/index.js +16 -34
  57. package/lib-next/theme/ApiDemoPanel/Body/slice.js +1 -2
  58. package/lib-next/theme/ApiDemoPanel/CodeTabs/index.js +12 -26
  59. package/lib-next/theme/ApiDemoPanel/ContentType/index.js +1 -4
  60. package/lib-next/theme/ApiDemoPanel/ContentType/slice.js +1 -0
  61. package/lib-next/theme/ApiDemoPanel/Curl/index.js +11 -12
  62. package/lib-next/theme/ApiDemoPanel/Execute/index.js +10 -13
  63. package/lib-next/theme/ApiDemoPanel/Execute/makeRequest.js +4 -22
  64. package/lib-next/theme/ApiDemoPanel/Export/index.js +1 -5
  65. package/lib-next/theme/ApiDemoPanel/FloatingButton/index.js +1 -2
  66. package/lib-next/theme/ApiDemoPanel/FormFileUpload/index.js +1 -7
  67. package/lib-next/theme/ApiDemoPanel/FormItem/index.js +1 -2
  68. package/lib-next/theme/ApiDemoPanel/FormMultiSelect/index.js +1 -5
  69. package/lib-next/theme/ApiDemoPanel/FormSelect/index.js +1 -3
  70. package/lib-next/theme/ApiDemoPanel/FormTextInput/index.js +1 -2
  71. package/lib-next/theme/ApiDemoPanel/LiveEditor/index.js +3 -6
  72. package/lib-next/theme/ApiDemoPanel/MethodEndpoint/index.js +1 -9
  73. package/lib-next/theme/ApiDemoPanel/ParamOptions/index.js +34 -29
  74. package/lib-next/theme/ApiDemoPanel/ParamOptions/slice.js +1 -0
  75. package/lib-next/theme/ApiDemoPanel/Request/index.js +1 -2
  76. package/lib-next/theme/ApiDemoPanel/Response/index.js +3 -9
  77. package/lib-next/theme/ApiDemoPanel/Response/slice.js +1 -0
  78. package/lib-next/theme/ApiDemoPanel/SecuritySchemes/index.js +1 -5
  79. package/lib-next/theme/ApiDemoPanel/Server/index.js +3 -13
  80. package/lib-next/theme/ApiDemoPanel/Server/slice.js +1 -0
  81. package/lib-next/theme/ApiDemoPanel/buildPostmanRequest.js +12 -49
  82. package/lib-next/theme/ApiDemoPanel/index.js +2 -4
  83. package/lib-next/theme/ApiDemoPanel/persistanceMiddleware.js +5 -6
  84. package/lib-next/theme/ApiDemoPanel/storage-utils.js +1 -3
  85. package/lib-next/theme/ApiItem/Layout/index.js +8 -9
  86. package/lib-next/theme/ApiItem/Layout/styles.module.css +0 -403
  87. package/lib-next/theme/ApiItem/hooks.js +1 -0
  88. package/lib-next/theme/ApiItem/index.js +14 -13
  89. package/lib-next/theme/ApiItem/store.js +1 -0
  90. package/lib-next/theme/ApiLogo/index.js +1 -0
  91. package/lib-next/theme/styles.css +428 -0
  92. package/lib-next/theme-classic.d.ts +5 -0
  93. package/package.json +5 -5
  94. package/src/index.ts +5 -0
  95. package/src/theme/ApiDemoPanel/Execute/index.tsx +1 -0
  96. package/src/theme/ApiDemoPanel/index.tsx +1 -2
  97. package/src/theme/ApiItem/Layout/index.tsx +5 -6
  98. package/src/theme/ApiItem/Layout/styles.module.css +0 -403
  99. package/src/theme/ApiItem/index.tsx +5 -4
  100. package/src/theme/styles.css +428 -0
  101. package/src/theme-classic.d.ts +5 -0
  102. package/lib/theme/ApiDemoPanel/styles.module.css +0 -44
  103. package/lib/theme/ApiItem/Content/index.js +0 -65
  104. package/lib/theme/ApiItem/Footer/index.js +0 -78
  105. package/lib/theme/ApiItem/Footer/styles.module.css +0 -18
  106. package/lib/theme/ApiItem/Metadata/index.js +0 -32
  107. package/lib/theme/ApiItem/Paginator/index.js +0 -33
  108. package/lib/theme/ApiItem/TOC/Desktop/index.js +0 -31
  109. package/lib/theme/ApiItem/TOC/Mobile/index.js +0 -35
  110. package/lib/theme/ApiItem/TOC/Mobile/styles.module.css +0 -19
  111. package/lib-next/theme/ApiDemoPanel/styles.module.css +0 -44
  112. package/lib-next/theme/ApiItem/Content/index.js +0 -55
  113. package/lib-next/theme/ApiItem/Footer/index.js +0 -88
  114. package/lib-next/theme/ApiItem/Footer/styles.module.css +0 -18
  115. package/lib-next/theme/ApiItem/Metadata/index.js +0 -21
  116. package/lib-next/theme/ApiItem/Paginator/index.js +0 -19
  117. package/lib-next/theme/ApiItem/TOC/Desktop/index.js +0 -22
  118. package/lib-next/theme/ApiItem/TOC/Mobile/index.js +0 -24
  119. package/lib-next/theme/ApiItem/TOC/Mobile/styles.module.css +0 -19
  120. package/src/theme/ApiDemoPanel/styles.module.css +0 -44
  121. package/src/theme/ApiItem/Content/index.tsx +0 -57
  122. package/src/theme/ApiItem/Footer/index.tsx +0 -101
  123. package/src/theme/ApiItem/Footer/styles.module.css +0 -18
  124. package/src/theme/ApiItem/Metadata/index.tsx +0 -24
  125. package/src/theme/ApiItem/Paginator/index.tsx +0 -21
  126. package/src/theme/ApiItem/TOC/Desktop/index.tsx +0 -25
  127. package/src/theme/ApiItem/TOC/Mobile/index.tsx +0 -28
  128. package/src/theme/ApiItem/TOC/Mobile/styles.module.css +0 -19
@@ -0,0 +1,428 @@
1
+ /* ============================================================================
2
+ * Copyright (c) Palo Alto Networks
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ * ========================================================================== */
7
+
8
+ :root {
9
+ --openapi-required: var(--ifm-color-danger);
10
+ --openapi-code-blue: var(--ifm-color-info);
11
+ --openapi-code-red: var(--ifm-color-danger);
12
+ --openapi-code-orange: var(--ifm-color-warning);
13
+ --openapi-code-green: var(--ifm-color-success);
14
+ --openapi-card-background-color: var(--ifm-color-gray-100);
15
+ --openapi-card-border-radius: var(--ifm-pre-border-radius);
16
+ --openapi-input-border: var(--ifm-color-primary);
17
+ }
18
+
19
+ [data-theme="dark"] {
20
+ --openapi-card-background-color: var(--ifm-color-gray-900) !important;
21
+ }
22
+
23
+ .docs-wrapper {
24
+ height: 100%;
25
+ }
26
+
27
+ .docItemContainer header + *,
28
+ .docItemContainer article > *:first-child {
29
+ margin-top: 0;
30
+ }
31
+
32
+ @media (min-width: 997px) {
33
+ .docItemCol {
34
+ max-width: 75% !important;
35
+ }
36
+
37
+ /* Prevent hydration FOUC, as the mobile TOC needs to be server-rendered */
38
+ .tocMobile {
39
+ display: none;
40
+ }
41
+ }
42
+
43
+ /* Begin OpenAPI theme styles */
44
+ [data-theme="dark"] {
45
+ --openapi-card-background-color: var(--ifm-color-gray-900) !important;
46
+ }
47
+
48
+ .apiItemContainer article > *:first-child,
49
+ .apiItemContainer header + * {
50
+ margin-top: 0;
51
+ }
52
+
53
+ .theme-api-markdown div[class^="collapsibleContent"] {
54
+ margin-top: 0 !important;
55
+ padding-left: 2px;
56
+ }
57
+
58
+ /* Main details */
59
+
60
+ .theme-api-markdown details {
61
+ margin: unset;
62
+ max-width: 600px;
63
+ background-color: transparent;
64
+ color: var(--ifm-font-color-base);
65
+ padding: unset;
66
+ border: unset !important;
67
+ box-shadow: unset !important;
68
+ --docusaurus-details-decoration-color: var(--ifm-font-color-base);
69
+ }
70
+
71
+ .theme-api-markdown details ul {
72
+ padding-left: 0;
73
+ font-size: 14px;
74
+ }
75
+
76
+ .theme-api-markdown details li {
77
+ list-style: none;
78
+ padding-bottom: 5px;
79
+ padding-top: 5px;
80
+ }
81
+
82
+ .theme-api-markdown details > div > div {
83
+ padding-top: unset !important;
84
+ border-top: unset !important;
85
+ }
86
+
87
+ .theme-api-markdown details p {
88
+ margin-bottom: 0;
89
+ }
90
+
91
+ /* Demo panel details */
92
+
93
+ .theme-api-markdown .details__demo-panel {
94
+ margin-bottom: 1rem;
95
+ background: var(--openapi-card-background-color);
96
+ border-radius: var(--openapi-card-border-radius);
97
+ }
98
+
99
+ .theme-api-markdown .details__demo-panel > summary {
100
+ padding-left: 1rem;
101
+ padding-top: 1rem;
102
+ cursor: pointer;
103
+ }
104
+
105
+ .theme-api-markdown .details__demo-panel > div > div > pre {
106
+ border-top-left-radius: 0;
107
+ border-top-right-radius: 0;
108
+ }
109
+
110
+ .theme-api-markdown .details__demo-panel > summary::marker {
111
+ display: none;
112
+ content: "";
113
+ }
114
+
115
+ .theme-api-markdown .details__demo-panel > summary::-webkit-details-marker {
116
+ display: none;
117
+ content: "";
118
+ }
119
+
120
+ .theme-api-markdown .details__demo-panel > pre {
121
+ margin-bottom: 0;
122
+ padding-top: 0;
123
+ }
124
+
125
+ /* Demo panel request */
126
+
127
+ .theme-api-markdown .details__request-summary {
128
+ display: flex;
129
+ justify-content: space-between;
130
+ align-items: center;
131
+ }
132
+
133
+ .theme-api-markdown .details__request-summary > button {
134
+ margin-bottom: 1rem;
135
+ margin-right: 1rem;
136
+ }
137
+
138
+ /* Demo panel response */
139
+
140
+ .theme-api-markdown .details__response-summary {
141
+ display: flex;
142
+ justify-content: space-between;
143
+ align-items: center;
144
+ }
145
+
146
+ .theme-api-markdown .details__response-summary > button {
147
+ margin-bottom: 1rem;
148
+ margin-right: 1rem;
149
+ }
150
+
151
+ /* Code block */
152
+
153
+ .theme-api-markdown code {
154
+ max-width: 600px;
155
+ max-height: 500px;
156
+ overflow: auto;
157
+ }
158
+
159
+ /* Version button */
160
+
161
+ .version-button div {
162
+ display: block;
163
+ }
164
+
165
+ .version-button div > button > span::after {
166
+ border-color: currentcolor transparent;
167
+ border-style: solid;
168
+ border-width: 0.4em 0.4em 0;
169
+ content: "";
170
+ margin-left: 0.3em;
171
+ position: relative;
172
+ transform: translateY(-50%);
173
+ display: inline-block;
174
+ font-size: 0.8rem;
175
+ top: 1px;
176
+ }
177
+
178
+ /* Params, Schema and Discriminator Items */
179
+
180
+ [class^="paramsItem"]::before,
181
+ [class^="schemaItem"]::before {
182
+ position: absolute;
183
+ top: 10px;
184
+ left: 0;
185
+ width: 0.7rem;
186
+ /* width of horizontal line */
187
+ height: 0.5rem;
188
+ /* vertical position of line */
189
+ vertical-align: top;
190
+ border-bottom: thin solid var(--ifm-color-gray-500);
191
+ content: "";
192
+ display: inline-block;
193
+ }
194
+
195
+ .schemaItem {
196
+ list-style: none;
197
+ position: relative;
198
+ margin: 0 !important;
199
+ padding: 5px 0 5px 1rem;
200
+ border-left: thin solid var(--ifm-color-gray-500) !important;
201
+ }
202
+
203
+ .discriminatorItem {
204
+ list-style: none;
205
+ position: relative;
206
+ margin: 0 !important;
207
+ padding: 5px 0 5px 0 !important;
208
+ border-left: thin solid var(--ifm-color-gray-500) !important;
209
+ }
210
+
211
+ .discriminatorTabsContainer {
212
+ padding-left: 0 !important;
213
+ }
214
+
215
+ .schemaItem:hover {
216
+ background-color: var(--ifm-menu-color-background-active);
217
+ }
218
+
219
+ .schemaItem:focus {
220
+ background-color: var(--ifm-menu-color-background-active);
221
+ }
222
+
223
+ .paramsItem:hover {
224
+ background-color: var(--ifm-menu-color-background-active);
225
+ }
226
+
227
+ .paramsItem:focus {
228
+ background-color: var(--ifm-menu-color-background-active);
229
+ }
230
+
231
+ /* CodeTabs */
232
+
233
+ .code__tab--python::after {
234
+ content: "";
235
+ width: 28px;
236
+ height: 28px;
237
+ background: url("https://raw.githubusercontent.com/devicons/devicon/master/icons/python/python-original.svg");
238
+ margin-block: auto;
239
+ }
240
+
241
+ .code__tab--python {
242
+ color: var(--ifm-color-success);
243
+ padding-left: 1.4rem;
244
+ padding-right: 1.4rem;
245
+ }
246
+
247
+ .code__tab--python.tabs__item--active {
248
+ border-bottom-color: var(--ifm-color-success);
249
+ background-color: var(--ifm-color-emphasis-100);
250
+ }
251
+
252
+ .language-python {
253
+ max-height: 500px;
254
+ overflow: auto;
255
+ }
256
+
257
+ .code__tab--go::after {
258
+ content: "";
259
+ width: 28px;
260
+ height: 28px;
261
+ background: url("https://raw.githubusercontent.com/devicons/devicon/master/icons/go/go-original-wordmark.svg");
262
+ margin-block: auto;
263
+ }
264
+
265
+ .code__tab--go {
266
+ color: var(--ifm-color-info);
267
+ padding-left: 1.4rem;
268
+ padding-right: 1.4rem;
269
+ }
270
+
271
+ .code__tab--go.tabs__item--active {
272
+ border-bottom-color: var(--ifm-color-info);
273
+ background-color: var(--ifm-color-emphasis-100);
274
+ }
275
+
276
+ .language-go {
277
+ max-height: 500px;
278
+ overflow: auto;
279
+ }
280
+
281
+ .code__tab--javascript::after {
282
+ content: "";
283
+ width: 28px;
284
+ height: 28px;
285
+ background: url("https://raw.githubusercontent.com/devicons/devicon/master/icons/javascript/javascript-original.svg");
286
+ margin-block: auto;
287
+ }
288
+
289
+ .code__tab--javascript {
290
+ color: var(--ifm-color-warning);
291
+ padding-left: 1.4rem;
292
+ padding-right: 1.4rem;
293
+ }
294
+
295
+ .code__tab--javascript.tabs__item--active {
296
+ border-bottom-color: var(--ifm-color-warning);
297
+ background-color: var(--ifm-color-emphasis-100);
298
+ }
299
+
300
+ .language-javascript {
301
+ max-height: 500px;
302
+ overflow: auto;
303
+ }
304
+
305
+ .code__tab--bash::after {
306
+ content: "";
307
+ width: 28px;
308
+ height: 28px;
309
+ background: url("https://raw.githubusercontent.com/devicons/devicon/master/icons/linux/linux-original.svg");
310
+ margin-block: auto;
311
+ }
312
+
313
+ .code__tab--bash {
314
+ color: var(--ifm-color-danger);
315
+ padding-left: 1.4rem;
316
+ padding-right: 1.4rem;
317
+ }
318
+
319
+ .code__tab--bash.tabs__item--active {
320
+ border-bottom-color: var(--ifm-color-danger);
321
+ background-color: var(--ifm-color-emphasis-100);
322
+ }
323
+
324
+ .language-bash {
325
+ max-height: 500px;
326
+ overflow: auto;
327
+ }
328
+
329
+ .code__tab--ruby::after {
330
+ content: "";
331
+ width: 28px;
332
+ height: 28px;
333
+ background: url("https://raw.githubusercontent.com/devicons/devicon/master/icons/ruby/ruby-plain.svg");
334
+ margin-block: auto;
335
+ }
336
+
337
+ .code__tab--ruby {
338
+ color: var(--ifm-color-danger);
339
+ padding-left: 1.4rem;
340
+ padding-right: 1.4rem;
341
+ }
342
+
343
+ .code__tab--ruby.tabs__item--active {
344
+ border-bottom-color: var(--ifm-color-danger);
345
+ background-color: var(--ifm-color-emphasis-100);
346
+ }
347
+
348
+ .language-ruby {
349
+ max-height: 500px;
350
+ overflow: auto;
351
+ }
352
+
353
+ .code__tab--csharp::after {
354
+ content: "";
355
+ width: 28px;
356
+ height: 28px;
357
+ background: url("https://raw.githubusercontent.com/devicons/devicon/master/icons/csharp/csharp-original.svg");
358
+ margin-block: auto;
359
+ }
360
+
361
+ .code__tab--csharp {
362
+ color: var(--ifm-color-gray-500);
363
+ padding-left: 1.4rem;
364
+ padding-right: 1.4rem;
365
+ }
366
+
367
+ .code__tab--csharp.tabs__item--active {
368
+ border-bottom-color: var(--ifm-color-gray-500);
369
+ background-color: var(--ifm-color-emphasis-100);
370
+ }
371
+
372
+ .language-csharp {
373
+ max-height: 500px;
374
+ overflow: auto;
375
+ }
376
+
377
+ .code__tab--nodejs::after {
378
+ content: "";
379
+ width: 28px;
380
+ height: 28px;
381
+ background: url("https://raw.githubusercontent.com/devicons/devicon/master/icons/nodejs/nodejs-original.svg");
382
+ margin-block: auto;
383
+ }
384
+
385
+ .code__tab--nodejs {
386
+ color: var(--ifm-color-success);
387
+ padding-left: 1.4rem;
388
+ padding-right: 1.4rem;
389
+ }
390
+
391
+ .code__tab--nodejs.tabs__item--active {
392
+ border-bottom-color: var(--ifm-color-success);
393
+ background-color: var(--ifm-color-emphasis-100);
394
+ }
395
+
396
+ .language-nodejs {
397
+ max-height: 500px;
398
+ overflow: auto;
399
+ }
400
+
401
+ .code__tab--php::after {
402
+ content: "";
403
+ width: 28px;
404
+ height: 28px;
405
+ background: url("https://raw.githubusercontent.com/devicons/devicon/master/icons/php/php-original.svg");
406
+ margin-block: auto;
407
+ }
408
+
409
+ .code__tab--php {
410
+ color: var(--ifm-color-gray-500);
411
+ padding-left: 1.4rem;
412
+ padding-right: 1.4rem;
413
+ }
414
+
415
+ .code__tab--php.tabs__item--active {
416
+ border-bottom-color: var(--ifm-color-gray-500);
417
+ background-color: var(--ifm-color-emphasis-100);
418
+ }
419
+
420
+ .language-php {
421
+ max-height: 500px;
422
+ overflow: auto;
423
+ }
424
+
425
+ /* Prism code styles */
426
+ .prism-code.language-json {
427
+ white-space: pre !important;
428
+ }
@@ -6,3 +6,8 @@
6
6
  * ========================================================================== */
7
7
 
8
8
  /// <reference types="@docusaurus/theme-classic" />
9
+
10
+ declare module "@docusaurus/theme-common/internal" {
11
+ function useDoc(): any;
12
+ export const { useDoc };
13
+ }
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.4",
5
5
  "license": "MIT",
6
6
  "keywords": [
7
7
  "openapi",
@@ -31,8 +31,8 @@
31
31
  "format:lib-next": "prettier --config ../../.prettierrc.json --write \"lib-next/**/*.{js,ts,jsx,tsc}\""
32
32
  },
33
33
  "devDependencies": {
34
- "@docusaurus/module-type-aliases": "2.0.1",
35
- "@docusaurus/types": "2.0.1",
34
+ "@docusaurus/module-type-aliases": "^2.0.1",
35
+ "@docusaurus/types": "^2.0.1",
36
36
  "@types/concurrently": "^6.3.0",
37
37
  "@types/crypto-js": "^4.1.0",
38
38
  "@types/file-saver": "^2.0.5",
@@ -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.4",
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": "05860ecc586244bcb84b5daa095a4110b807a95c"
77
77
  }
package/src/index.ts CHANGED
@@ -14,6 +14,11 @@ export default function docusaurusThemeOpenAPI(): Plugin<void> {
14
14
  return {
15
15
  name: "docusaurus-theme-openapi",
16
16
 
17
+ getClientModules() {
18
+ const modules = [require.resolve("./theme/styles.css")];
19
+ return modules;
20
+ },
21
+
17
22
  getThemePath() {
18
23
  return path.join(__dirname, "..", "lib-next", "theme");
19
24
  },
@@ -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 {
@@ -15,7 +15,6 @@ import MethodEndpoint from "./MethodEndpoint";
15
15
  import Request from "./Request";
16
16
  import Response from "./Response";
17
17
  import SecuritySchemes from "./SecuritySchemes";
18
- import styles from "./styles.module.css";
19
18
 
20
19
  function ApiDemoPanel({
21
20
  item,
@@ -28,7 +27,7 @@ function ApiDemoPanel({
28
27
  const { path, method } = item;
29
28
 
30
29
  return (
31
- <div className={styles.apiDemoPanelContainer}>
30
+ <div>
32
31
  <MethodEndpoint method={method} path={path} />
33
32
  <SecuritySchemes infoPath={infoPath} />
34
33
  <Request item={item} />
@@ -8,19 +8,18 @@
8
8
  import React from "react";
9
9
 
10
10
  import { useWindowSize } from "@docusaurus/theme-common";
11
- // @ts-ignore
12
11
  import { useDoc } from "@docusaurus/theme-common/internal";
13
12
  import DocBreadcrumbs from "@theme/DocBreadcrumbs";
13
+ import DocItemContent from "@theme/DocItem/Content";
14
+ import DocItemFooter from "@theme/DocItem/Footer";
14
15
  import type { Props } from "@theme/DocItem/Layout";
16
+ import DocItemPaginator from "@theme/DocItem/Paginator";
17
+ import DocItemTOCDesktop from "@theme/DocItem/TOC/Desktop";
18
+ import DocItemTOCMobile from "@theme/DocItem/TOC/Mobile";
15
19
  import DocVersionBadge from "@theme/DocVersionBadge";
16
20
  import DocVersionBanner from "@theme/DocVersionBanner";
17
21
  import clsx from "clsx";
18
22
 
19
- import DocItemContent from "../Content";
20
- import DocItemFooter from "../Footer";
21
- import DocItemPaginator from "../Paginator";
22
- import DocItemTOCDesktop from "../TOC/Desktop";
23
- import DocItemTOCMobile from "../TOC/Mobile";
24
23
  import styles from "./styles.module.css";
25
24
 
26
25
  /**