docusaurus-theme-openapi-docs 1.4.3 → 1.4.5

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