docusaurus-theme-openapi-docs 0.0.0-588 → 0.0.0-598

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.
@@ -98,6 +98,15 @@ const languageSet = [{
98
98
  trimRequestBody: true
99
99
  },
100
100
  variant: "OkHttp"
101
+ }, {
102
+ highlight: "powershell",
103
+ language: "powershell",
104
+ logoClass: "powershell",
105
+ options: {
106
+ followRedirect: true,
107
+ trimRequestBody: true
108
+ },
109
+ variant: "RestMethod"
101
110
  }];
102
111
  exports.languageSet = languageSet;
103
112
  function CodeTab({
@@ -219,7 +228,7 @@ function Curl({
219
228
  return <CodeTab value={lang.language} label={""} key={lang.variant ? `${lang.language}-${lang.variant}` : lang.language} attributes={{
220
229
  className: `code__tab--${lang.logoClass}`
221
230
  }}>
222
- <_CodeBlock.default language={lang.highlight} className={_stylesModule.default.codeBlock}>
231
+ <_CodeBlock.default language={lang.highlight} className={_stylesModule.default.codeBlock} title={`${lang.language} / ${lang.variant}`}>
223
232
  {codeText}
224
233
  </_CodeBlock.default>
225
234
  </CodeTab>;
@@ -17,10 +17,16 @@
17
17
  --openapi-card-border-radius: var(--ifm-pre-border-radius);
18
18
  --openapi-input-border: var(--ifm-color-primary);
19
19
  --openapi-input-background: var(--openapi-card-background-color);
20
+ --bash-background-color: transparent;
21
+ --bash-border-radius: none;
22
+ --code-tab-logo-width: 26px;
23
+ --code-tab-logo-height: 26px;
20
24
  }
21
25
 
22
26
  [data-theme="dark"] {
23
27
  --openapi-card-background-color: var(--ifm-color-gray-900) !important;
28
+ --bash-background-color: lightgrey;
29
+ --bash-border-radius: 20px;
24
30
  }
25
31
 
26
32
  .docs-wrapper {
@@ -239,8 +245,8 @@
239
245
 
240
246
  .code__tab--python::after {
241
247
  content: "";
242
- width: 28px;
243
- height: 28px;
248
+ width: var(--code-tab-logo-width);
249
+ height: var(--code-tab-logo-height);
244
250
  background: url("https://raw.githubusercontent.com/devicons/devicon/master/icons/python/python-original.svg");
245
251
  margin-block: auto;
246
252
  }
@@ -265,8 +271,8 @@
265
271
 
266
272
  .code__tab--go::after {
267
273
  content: "";
268
- width: 28px;
269
- height: 28px;
274
+ width: var(--code-tab-logo-width);
275
+ height: var(--code-tab-logo-height);
270
276
  background: url("https://raw.githubusercontent.com/devicons/devicon/master/icons/go/go-original-wordmark.svg");
271
277
  margin-block: auto;
272
278
  }
@@ -291,8 +297,8 @@
291
297
 
292
298
  .code__tab--javascript::after {
293
299
  content: "";
294
- width: 28px;
295
- height: 28px;
300
+ width: var(--code-tab-logo-width);
301
+ height: var(--code-tab-logo-height);
296
302
  background: url("https://raw.githubusercontent.com/devicons/devicon/master/icons/javascript/javascript-original.svg");
297
303
  margin-block: auto;
298
304
  }
@@ -317,9 +323,11 @@
317
323
 
318
324
  .code__tab--bash::after {
319
325
  content: "";
320
- width: 28px;
321
- height: 28px;
322
- background: url("https://raw.githubusercontent.com/devicons/devicon/master/icons/linux/linux-original.svg");
326
+ width: var(--code-tab-logo-width);
327
+ height: var(--code-tab-logo-height);
328
+ background: url("https://raw.githubusercontent.com/devicons/devicon/master/icons/bash/bash-plain.svg");
329
+ background-color: var(--bash-background-color);
330
+ border-radius: var(--bash-border-radius);
323
331
  margin-block: auto;
324
332
  }
325
333
 
@@ -343,8 +351,8 @@
343
351
 
344
352
  .code__tab--ruby::after {
345
353
  content: "";
346
- width: 28px;
347
- height: 28px;
354
+ width: var(--code-tab-logo-width);
355
+ height: var(--code-tab-logo-height);
348
356
  background: url("https://raw.githubusercontent.com/devicons/devicon/master/icons/ruby/ruby-plain.svg");
349
357
  margin-block: auto;
350
358
  }
@@ -369,8 +377,8 @@
369
377
 
370
378
  .code__tab--csharp::after {
371
379
  content: "";
372
- width: 28px;
373
- height: 28px;
380
+ width: var(--code-tab-logo-width);
381
+ height: var(--code-tab-logo-height);
374
382
  background: url("https://raw.githubusercontent.com/devicons/devicon/master/icons/csharp/csharp-original.svg");
375
383
  margin-block: auto;
376
384
  }
@@ -395,8 +403,8 @@
395
403
 
396
404
  .code__tab--nodejs::after {
397
405
  content: "";
398
- width: 28px;
399
- height: 28px;
406
+ width: var(--code-tab-logo-width);
407
+ height: var(--code-tab-logo-height);
400
408
  background: url("https://raw.githubusercontent.com/devicons/devicon/master/icons/nodejs/nodejs-original.svg");
401
409
  margin-block: auto;
402
410
  }
@@ -421,8 +429,8 @@
421
429
 
422
430
  .code__tab--php::after {
423
431
  content: "";
424
- width: 28px;
425
- height: 28px;
432
+ width: var(--code-tab-logo-width);
433
+ height: var(--code-tab-logo-height);
426
434
  background: url("https://raw.githubusercontent.com/devicons/devicon/master/icons/php/php-original.svg");
427
435
  margin-block: auto;
428
436
  }
@@ -447,8 +455,8 @@
447
455
 
448
456
  .code__tab--java::after {
449
457
  content: "";
450
- width: 28px;
451
- height: 28px;
458
+ width: var(--code-tab-logo-width);
459
+ height: var(--code-tab-logo-height);
452
460
  background: url("https://raw.githubusercontent.com/devicons/devicon/master/icons/java/java-original.svg");
453
461
  margin-block: auto;
454
462
  }
@@ -471,6 +479,32 @@
471
479
  overflow: auto;
472
480
  }
473
481
 
482
+ .code__tab--powershell::after {
483
+ content: "";
484
+ width: var(--code-tab-logo-width);
485
+ height: var(--code-tab-logo-height);
486
+ background: url("https://raw.githubusercontent.com/devicons/devicon/master/icons/windows8/windows8-original.svg");
487
+ margin-block: auto;
488
+ }
489
+
490
+ .code__tab--powershell {
491
+ color: var(--ifm-color-info);
492
+ padding-left: 1.4rem;
493
+ padding-right: 1.4rem;
494
+ padding-top: 1rem !important;
495
+ padding-bottom: 1rem !important;
496
+ }
497
+
498
+ .code__tab--powershell.tabs__item--active {
499
+ border-bottom-color: var(--ifm-color-info);
500
+ background-color: var(--ifm-color-emphasis-100);
501
+ }
502
+
503
+ .language-powershell {
504
+ max-height: 500px;
505
+ overflow: auto;
506
+ }
507
+
474
508
  /* Prism code styles */
475
509
  .prism-code.language-java {
476
510
  white-space: pre !important;
@@ -98,6 +98,16 @@ export const languageSet = [
98
98
  },
99
99
  variant: "OkHttp",
100
100
  },
101
+ {
102
+ highlight: "powershell",
103
+ language: "powershell",
104
+ logoClass: "powershell",
105
+ options: {
106
+ followRedirect: true,
107
+ trimRequestBody: true,
108
+ },
109
+ variant: "RestMethod",
110
+ },
101
111
  ];
102
112
  function CodeTab({ children, hidden, className, onClick }) {
103
113
  return (
@@ -256,7 +266,11 @@ function Curl({ postman, codeSamples }) {
256
266
  className: `code__tab--${lang.logoClass}`,
257
267
  }}
258
268
  >
259
- <CodeBlock language={lang.highlight} className={styles.codeBlock}>
269
+ <CodeBlock
270
+ language={lang.highlight}
271
+ className={styles.codeBlock}
272
+ title={`${lang.language} / ${lang.variant}`}
273
+ >
260
274
  {codeText}
261
275
  </CodeBlock>
262
276
  </CodeTab>
@@ -17,10 +17,16 @@
17
17
  --openapi-card-border-radius: var(--ifm-pre-border-radius);
18
18
  --openapi-input-border: var(--ifm-color-primary);
19
19
  --openapi-input-background: var(--openapi-card-background-color);
20
+ --bash-background-color: transparent;
21
+ --bash-border-radius: none;
22
+ --code-tab-logo-width: 26px;
23
+ --code-tab-logo-height: 26px;
20
24
  }
21
25
 
22
26
  [data-theme="dark"] {
23
27
  --openapi-card-background-color: var(--ifm-color-gray-900) !important;
28
+ --bash-background-color: lightgrey;
29
+ --bash-border-radius: 20px;
24
30
  }
25
31
 
26
32
  .docs-wrapper {
@@ -239,8 +245,8 @@
239
245
 
240
246
  .code__tab--python::after {
241
247
  content: "";
242
- width: 28px;
243
- height: 28px;
248
+ width: var(--code-tab-logo-width);
249
+ height: var(--code-tab-logo-height);
244
250
  background: url("https://raw.githubusercontent.com/devicons/devicon/master/icons/python/python-original.svg");
245
251
  margin-block: auto;
246
252
  }
@@ -265,8 +271,8 @@
265
271
 
266
272
  .code__tab--go::after {
267
273
  content: "";
268
- width: 28px;
269
- height: 28px;
274
+ width: var(--code-tab-logo-width);
275
+ height: var(--code-tab-logo-height);
270
276
  background: url("https://raw.githubusercontent.com/devicons/devicon/master/icons/go/go-original-wordmark.svg");
271
277
  margin-block: auto;
272
278
  }
@@ -291,8 +297,8 @@
291
297
 
292
298
  .code__tab--javascript::after {
293
299
  content: "";
294
- width: 28px;
295
- height: 28px;
300
+ width: var(--code-tab-logo-width);
301
+ height: var(--code-tab-logo-height);
296
302
  background: url("https://raw.githubusercontent.com/devicons/devicon/master/icons/javascript/javascript-original.svg");
297
303
  margin-block: auto;
298
304
  }
@@ -317,9 +323,11 @@
317
323
 
318
324
  .code__tab--bash::after {
319
325
  content: "";
320
- width: 28px;
321
- height: 28px;
322
- background: url("https://raw.githubusercontent.com/devicons/devicon/master/icons/linux/linux-original.svg");
326
+ width: var(--code-tab-logo-width);
327
+ height: var(--code-tab-logo-height);
328
+ background: url("https://raw.githubusercontent.com/devicons/devicon/master/icons/bash/bash-plain.svg");
329
+ background-color: var(--bash-background-color);
330
+ border-radius: var(--bash-border-radius);
323
331
  margin-block: auto;
324
332
  }
325
333
 
@@ -343,8 +351,8 @@
343
351
 
344
352
  .code__tab--ruby::after {
345
353
  content: "";
346
- width: 28px;
347
- height: 28px;
354
+ width: var(--code-tab-logo-width);
355
+ height: var(--code-tab-logo-height);
348
356
  background: url("https://raw.githubusercontent.com/devicons/devicon/master/icons/ruby/ruby-plain.svg");
349
357
  margin-block: auto;
350
358
  }
@@ -369,8 +377,8 @@
369
377
 
370
378
  .code__tab--csharp::after {
371
379
  content: "";
372
- width: 28px;
373
- height: 28px;
380
+ width: var(--code-tab-logo-width);
381
+ height: var(--code-tab-logo-height);
374
382
  background: url("https://raw.githubusercontent.com/devicons/devicon/master/icons/csharp/csharp-original.svg");
375
383
  margin-block: auto;
376
384
  }
@@ -395,8 +403,8 @@
395
403
 
396
404
  .code__tab--nodejs::after {
397
405
  content: "";
398
- width: 28px;
399
- height: 28px;
406
+ width: var(--code-tab-logo-width);
407
+ height: var(--code-tab-logo-height);
400
408
  background: url("https://raw.githubusercontent.com/devicons/devicon/master/icons/nodejs/nodejs-original.svg");
401
409
  margin-block: auto;
402
410
  }
@@ -421,8 +429,8 @@
421
429
 
422
430
  .code__tab--php::after {
423
431
  content: "";
424
- width: 28px;
425
- height: 28px;
432
+ width: var(--code-tab-logo-width);
433
+ height: var(--code-tab-logo-height);
426
434
  background: url("https://raw.githubusercontent.com/devicons/devicon/master/icons/php/php-original.svg");
427
435
  margin-block: auto;
428
436
  }
@@ -447,8 +455,8 @@
447
455
 
448
456
  .code__tab--java::after {
449
457
  content: "";
450
- width: 28px;
451
- height: 28px;
458
+ width: var(--code-tab-logo-width);
459
+ height: var(--code-tab-logo-height);
452
460
  background: url("https://raw.githubusercontent.com/devicons/devicon/master/icons/java/java-original.svg");
453
461
  margin-block: auto;
454
462
  }
@@ -471,6 +479,32 @@
471
479
  overflow: auto;
472
480
  }
473
481
 
482
+ .code__tab--powershell::after {
483
+ content: "";
484
+ width: var(--code-tab-logo-width);
485
+ height: var(--code-tab-logo-height);
486
+ background: url("https://raw.githubusercontent.com/devicons/devicon/master/icons/windows8/windows8-original.svg");
487
+ margin-block: auto;
488
+ }
489
+
490
+ .code__tab--powershell {
491
+ color: var(--ifm-color-info);
492
+ padding-left: 1.4rem;
493
+ padding-right: 1.4rem;
494
+ padding-top: 1rem !important;
495
+ padding-bottom: 1rem !important;
496
+ }
497
+
498
+ .code__tab--powershell.tabs__item--active {
499
+ border-bottom-color: var(--ifm-color-info);
500
+ background-color: var(--ifm-color-emphasis-100);
501
+ }
502
+
503
+ .language-powershell {
504
+ max-height: 500px;
505
+ overflow: auto;
506
+ }
507
+
474
508
  /* Prism code styles */
475
509
  .prism-code.language-java {
476
510
  white-space: pre !important;
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-588",
4
+ "version": "0.0.0-598",
5
5
  "license": "MIT",
6
6
  "keywords": [
7
7
  "openapi",
@@ -45,13 +45,13 @@
45
45
  "dependencies": {
46
46
  "@docusaurus/theme-common": ">=2.0.1 <2.3.0",
47
47
  "@mdx-js/react": "^1.6.21",
48
- "@paloaltonetworks/postman-code-generators": "^1.1.15",
48
+ "@paloaltonetworks/postman-code-generators": "1.1.15-patch.2",
49
49
  "@paloaltonetworks/postman-collection": "^4.1.0",
50
50
  "@reduxjs/toolkit": "^1.7.1",
51
51
  "buffer": "^6.0.3",
52
52
  "clsx": "^1.1.1",
53
53
  "crypto-js": "^4.1.1",
54
- "docusaurus-plugin-openapi-docs": "0.0.0-588",
54
+ "docusaurus-plugin-openapi-docs": "0.0.0-598",
55
55
  "file-saver": "^2.0.5",
56
56
  "immer": "^9.0.7",
57
57
  "lodash": "^4.17.20",
@@ -74,5 +74,5 @@
74
74
  "engines": {
75
75
  "node": ">=14"
76
76
  },
77
- "gitHead": "0c1239a810d10af302a7045b9b6e15f96f12efd4"
77
+ "gitHead": "d63df75650c00a5d0250d5c617c8e3d47d1cea33"
78
78
  }
@@ -111,6 +111,16 @@ export const languageSet: Language[] = [
111
111
  },
112
112
  variant: "OkHttp",
113
113
  },
114
+ {
115
+ highlight: "powershell",
116
+ language: "powershell",
117
+ logoClass: "powershell",
118
+ options: {
119
+ followRedirect: true,
120
+ trimRequestBody: true,
121
+ },
122
+ variant: "RestMethod",
123
+ },
114
124
  ];
115
125
 
116
126
  export interface Props {
@@ -280,7 +290,11 @@ function Curl({ postman, codeSamples }: Props) {
280
290
  }
281
291
  attributes={{ className: `code__tab--${lang.logoClass}` }}
282
292
  >
283
- <CodeBlock language={lang.highlight} className={styles.codeBlock}>
293
+ <CodeBlock
294
+ language={lang.highlight}
295
+ className={styles.codeBlock}
296
+ title={`${lang.language} / ${lang.variant}`}
297
+ >
284
298
  {codeText}
285
299
  </CodeBlock>
286
300
  </CodeTab>
@@ -17,10 +17,16 @@
17
17
  --openapi-card-border-radius: var(--ifm-pre-border-radius);
18
18
  --openapi-input-border: var(--ifm-color-primary);
19
19
  --openapi-input-background: var(--openapi-card-background-color);
20
+ --bash-background-color: transparent;
21
+ --bash-border-radius: none;
22
+ --code-tab-logo-width: 26px;
23
+ --code-tab-logo-height: 26px;
20
24
  }
21
25
 
22
26
  [data-theme="dark"] {
23
27
  --openapi-card-background-color: var(--ifm-color-gray-900) !important;
28
+ --bash-background-color: lightgrey;
29
+ --bash-border-radius: 20px;
24
30
  }
25
31
 
26
32
  .docs-wrapper {
@@ -239,8 +245,8 @@
239
245
 
240
246
  .code__tab--python::after {
241
247
  content: "";
242
- width: 28px;
243
- height: 28px;
248
+ width: var(--code-tab-logo-width);
249
+ height: var(--code-tab-logo-height);
244
250
  background: url("https://raw.githubusercontent.com/devicons/devicon/master/icons/python/python-original.svg");
245
251
  margin-block: auto;
246
252
  }
@@ -265,8 +271,8 @@
265
271
 
266
272
  .code__tab--go::after {
267
273
  content: "";
268
- width: 28px;
269
- height: 28px;
274
+ width: var(--code-tab-logo-width);
275
+ height: var(--code-tab-logo-height);
270
276
  background: url("https://raw.githubusercontent.com/devicons/devicon/master/icons/go/go-original-wordmark.svg");
271
277
  margin-block: auto;
272
278
  }
@@ -291,8 +297,8 @@
291
297
 
292
298
  .code__tab--javascript::after {
293
299
  content: "";
294
- width: 28px;
295
- height: 28px;
300
+ width: var(--code-tab-logo-width);
301
+ height: var(--code-tab-logo-height);
296
302
  background: url("https://raw.githubusercontent.com/devicons/devicon/master/icons/javascript/javascript-original.svg");
297
303
  margin-block: auto;
298
304
  }
@@ -317,9 +323,11 @@
317
323
 
318
324
  .code__tab--bash::after {
319
325
  content: "";
320
- width: 28px;
321
- height: 28px;
322
- background: url("https://raw.githubusercontent.com/devicons/devicon/master/icons/linux/linux-original.svg");
326
+ width: var(--code-tab-logo-width);
327
+ height: var(--code-tab-logo-height);
328
+ background: url("https://raw.githubusercontent.com/devicons/devicon/master/icons/bash/bash-plain.svg");
329
+ background-color: var(--bash-background-color);
330
+ border-radius: var(--bash-border-radius);
323
331
  margin-block: auto;
324
332
  }
325
333
 
@@ -343,8 +351,8 @@
343
351
 
344
352
  .code__tab--ruby::after {
345
353
  content: "";
346
- width: 28px;
347
- height: 28px;
354
+ width: var(--code-tab-logo-width);
355
+ height: var(--code-tab-logo-height);
348
356
  background: url("https://raw.githubusercontent.com/devicons/devicon/master/icons/ruby/ruby-plain.svg");
349
357
  margin-block: auto;
350
358
  }
@@ -369,8 +377,8 @@
369
377
 
370
378
  .code__tab--csharp::after {
371
379
  content: "";
372
- width: 28px;
373
- height: 28px;
380
+ width: var(--code-tab-logo-width);
381
+ height: var(--code-tab-logo-height);
374
382
  background: url("https://raw.githubusercontent.com/devicons/devicon/master/icons/csharp/csharp-original.svg");
375
383
  margin-block: auto;
376
384
  }
@@ -395,8 +403,8 @@
395
403
 
396
404
  .code__tab--nodejs::after {
397
405
  content: "";
398
- width: 28px;
399
- height: 28px;
406
+ width: var(--code-tab-logo-width);
407
+ height: var(--code-tab-logo-height);
400
408
  background: url("https://raw.githubusercontent.com/devicons/devicon/master/icons/nodejs/nodejs-original.svg");
401
409
  margin-block: auto;
402
410
  }
@@ -421,8 +429,8 @@
421
429
 
422
430
  .code__tab--php::after {
423
431
  content: "";
424
- width: 28px;
425
- height: 28px;
432
+ width: var(--code-tab-logo-width);
433
+ height: var(--code-tab-logo-height);
426
434
  background: url("https://raw.githubusercontent.com/devicons/devicon/master/icons/php/php-original.svg");
427
435
  margin-block: auto;
428
436
  }
@@ -447,8 +455,8 @@
447
455
 
448
456
  .code__tab--java::after {
449
457
  content: "";
450
- width: 28px;
451
- height: 28px;
458
+ width: var(--code-tab-logo-width);
459
+ height: var(--code-tab-logo-height);
452
460
  background: url("https://raw.githubusercontent.com/devicons/devicon/master/icons/java/java-original.svg");
453
461
  margin-block: auto;
454
462
  }
@@ -471,6 +479,32 @@
471
479
  overflow: auto;
472
480
  }
473
481
 
482
+ .code__tab--powershell::after {
483
+ content: "";
484
+ width: var(--code-tab-logo-width);
485
+ height: var(--code-tab-logo-height);
486
+ background: url("https://raw.githubusercontent.com/devicons/devicon/master/icons/windows8/windows8-original.svg");
487
+ margin-block: auto;
488
+ }
489
+
490
+ .code__tab--powershell {
491
+ color: var(--ifm-color-info);
492
+ padding-left: 1.4rem;
493
+ padding-right: 1.4rem;
494
+ padding-top: 1rem !important;
495
+ padding-bottom: 1rem !important;
496
+ }
497
+
498
+ .code__tab--powershell.tabs__item--active {
499
+ border-bottom-color: var(--ifm-color-info);
500
+ background-color: var(--ifm-color-emphasis-100);
501
+ }
502
+
503
+ .language-powershell {
504
+ max-height: 500px;
505
+ overflow: auto;
506
+ }
507
+
474
508
  /* Prism code styles */
475
509
  .prism-code.language-java {
476
510
  white-space: pre !important;