@scalar/api-reference 1.43.11 → 1.43.12
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.
- package/CHANGELOG.md +23 -0
- package/dist/blocks/scalar-client-selector-block/components/ClientDropdown.vue.d.ts.map +1 -1
- package/dist/blocks/scalar-info-block/components/DownloadLink.vue.d.ts.map +1 -1
- package/dist/blocks/scalar-info-block/components/IntroductionCard.vue.d.ts.map +1 -1
- package/dist/blocks/scalar-server-selector-block/components/ServerSelector.vue.d.ts.map +1 -1
- package/dist/browser/standalone.js +14192 -14442
- package/dist/browser/webpack-stats.json +1 -1
- package/dist/components/ApiReference.vue.d.ts.map +1 -1
- package/dist/components/ApiReference.vue.js +1 -1
- package/dist/components/ApiReference.vue2.js +19 -23
- package/dist/components/Content/Content.vue.d.ts +1 -3
- package/dist/components/Content/Content.vue.d.ts.map +1 -1
- package/dist/components/Content/Content.vue.js +16 -5
- package/dist/components/Content/Schema/Schema.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/SchemaComposition.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/SchemaEnumValues.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/SchemaProperty.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/SchemaPropertyDetail.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/SchemaPropertyHeading.vue.d.ts.map +1 -1
- package/dist/components/GettingStarted.vue.d.ts.map +1 -1
- package/dist/components/LinkList/LinkList.vue.d.ts.map +1 -1
- package/dist/components/LoadingSkeleton.vue.d.ts.map +1 -1
- package/dist/components/OperationPath.vue.d.ts.map +1 -1
- package/dist/components/OperationsList/OperationsListItem.vue.d.ts.map +1 -1
- package/dist/components/Section/CompactSection.vue.d.ts.map +1 -1
- package/dist/components/Section/SectionAccordion.vue.d.ts.map +1 -1
- package/dist/components/Section/SectionContainerAccordion.vue.d.ts.map +1 -1
- package/dist/components/Section/SectionHeader.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/ContentTypeSelect.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/Headers.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/ParameterListItem.vue.d.ts.map +1 -1
- package/dist/features/Search/components/SearchResult.vue.d.ts.map +1 -1
- package/dist/features/example-responses/ExampleResponseTab.vue.d.ts.map +1 -1
- package/dist/features/example-responses/ExampleResponses.vue.d.ts.map +1 -1
- package/dist/features/example-responses/ExampleResponses.vue.js +1 -1
- package/dist/features/example-responses/ExampleResponses.vue2.js +19 -4
- package/dist/features/example-responses/has-response-content.d.ts +7 -0
- package/dist/features/example-responses/has-response-content.d.ts.map +1 -0
- package/dist/features/example-responses/has-response-content.js +19 -0
- package/dist/features/toolbar/ApiReferenceToolbarConfigTheme.vue.d.ts.map +1 -1
- package/dist/features/toolbar/ApiReferenceToolbarPopover.vue.d.ts.map +1 -1
- package/dist/helpers/index.d.ts +0 -1
- package/dist/helpers/index.d.ts.map +1 -1
- package/dist/helpers/index.js +0 -2
- package/dist/style.css +55 -55
- package/package.json +9 -9
- package/dist/helpers/map-configuration.d.ts +0 -67
- package/dist/helpers/map-configuration.d.ts.map +0 -1
- package/dist/helpers/map-configuration.js +0 -54
- package/dist/helpers/map-hidden-clients-config.d.ts +0 -8
- package/dist/helpers/map-hidden-clients-config.d.ts.map +0 -1
- package/dist/helpers/map-hidden-clients-config.js +0 -47
package/dist/style.css
CHANGED
|
@@ -1292,13 +1292,13 @@ button.headers-card-title[data-v-6fb09984]:hover {
|
|
|
1292
1292
|
padding: 0;
|
|
1293
1293
|
}
|
|
1294
1294
|
|
|
1295
|
-
.response-card[data-v-
|
|
1295
|
+
.response-card[data-v-97958459] {
|
|
1296
1296
|
font-size: var(--scalar-font-size-3);
|
|
1297
1297
|
}
|
|
1298
|
-
.markdown[data-v-
|
|
1298
|
+
.markdown[data-v-97958459] * {
|
|
1299
1299
|
margin: 0;
|
|
1300
1300
|
}
|
|
1301
|
-
.code-copy[data-v-
|
|
1301
|
+
.code-copy[data-v-97958459] {
|
|
1302
1302
|
display: flex;
|
|
1303
1303
|
align-items: center;
|
|
1304
1304
|
justify-content: center;
|
|
@@ -1312,14 +1312,14 @@ button.headers-card-title[data-v-6fb09984]:hover {
|
|
|
1312
1312
|
padding: 0;
|
|
1313
1313
|
margin-right: 12px;
|
|
1314
1314
|
}
|
|
1315
|
-
.code-copy[data-v-
|
|
1315
|
+
.code-copy[data-v-97958459]:hover {
|
|
1316
1316
|
color: var(--scalar-color-1);
|
|
1317
1317
|
}
|
|
1318
|
-
.code-copy svg[data-v-
|
|
1318
|
+
.code-copy svg[data-v-97958459] {
|
|
1319
1319
|
width: 13px;
|
|
1320
1320
|
height: 13px;
|
|
1321
1321
|
}
|
|
1322
|
-
.response-card-footer[data-v-
|
|
1322
|
+
.response-card-footer[data-v-97958459] {
|
|
1323
1323
|
display: flex;
|
|
1324
1324
|
flex-direction: row;
|
|
1325
1325
|
justify-content: space-between;
|
|
@@ -1327,11 +1327,11 @@ button.headers-card-title[data-v-6fb09984]:hover {
|
|
|
1327
1327
|
padding: 7px 12px;
|
|
1328
1328
|
gap: 8px;
|
|
1329
1329
|
}
|
|
1330
|
-
.response-example-selector[data-v-
|
|
1330
|
+
.response-example-selector[data-v-97958459] {
|
|
1331
1331
|
align-self: flex-start;
|
|
1332
1332
|
margin: -4px;
|
|
1333
1333
|
}
|
|
1334
|
-
.response-description[data-v-
|
|
1334
|
+
.response-description[data-v-97958459] {
|
|
1335
1335
|
font-weight: var(--scalar-semibold);
|
|
1336
1336
|
font-size: var(--scalar-small);
|
|
1337
1337
|
color: var(--scalar-color--1);
|
|
@@ -1340,7 +1340,7 @@ button.headers-card-title[data-v-6fb09984]:hover {
|
|
|
1340
1340
|
align-items: center;
|
|
1341
1341
|
box-sizing: border-box;
|
|
1342
1342
|
}
|
|
1343
|
-
.schema-type[data-v-
|
|
1343
|
+
.schema-type[data-v-97958459] {
|
|
1344
1344
|
font-size: var(--scalar-micro);
|
|
1345
1345
|
color: var(--scalar-color-2);
|
|
1346
1346
|
font-weight: var(--scalar-semibold);
|
|
@@ -1349,16 +1349,16 @@ button.headers-card-title[data-v-6fb09984]:hover {
|
|
|
1349
1349
|
border-radius: 4px;
|
|
1350
1350
|
margin-right: 4px;
|
|
1351
1351
|
}
|
|
1352
|
-
.schema-example[data-v-
|
|
1352
|
+
.schema-example[data-v-97958459] {
|
|
1353
1353
|
font-size: var(--scalar-micro);
|
|
1354
1354
|
color: var(--scalar-color-2);
|
|
1355
1355
|
font-weight: var(--scalar-semibold);
|
|
1356
1356
|
}
|
|
1357
|
-
.example-response-tab[data-v-
|
|
1357
|
+
.example-response-tab[data-v-97958459] {
|
|
1358
1358
|
display: block;
|
|
1359
1359
|
margin: 6px;
|
|
1360
1360
|
}
|
|
1361
|
-
.scalar-card-checkbox[data-v-
|
|
1361
|
+
.scalar-card-checkbox[data-v-97958459] {
|
|
1362
1362
|
display: flex;
|
|
1363
1363
|
align-items: center;
|
|
1364
1364
|
justify-content: center;
|
|
@@ -1375,20 +1375,20 @@ button.headers-card-title[data-v-6fb09984]:hover {
|
|
|
1375
1375
|
padding: 7px 6px;
|
|
1376
1376
|
}
|
|
1377
1377
|
.scalar-card-checkbox:has(.scalar-card-checkbox-input:focus-visible)
|
|
1378
|
-
.scalar-card-checkbox-checkmark[data-v-
|
|
1378
|
+
.scalar-card-checkbox-checkmark[data-v-97958459] {
|
|
1379
1379
|
outline: 1px solid var(--scalar-color-accent);
|
|
1380
1380
|
}
|
|
1381
|
-
.scalar-card-checkbox[data-v-
|
|
1381
|
+
.scalar-card-checkbox[data-v-97958459]:hover {
|
|
1382
1382
|
color: var(--scalar-color--1);
|
|
1383
1383
|
}
|
|
1384
|
-
.scalar-card-checkbox .scalar-card-checkbox-input[data-v-
|
|
1384
|
+
.scalar-card-checkbox .scalar-card-checkbox-input[data-v-97958459] {
|
|
1385
1385
|
position: absolute;
|
|
1386
1386
|
opacity: 0;
|
|
1387
1387
|
cursor: pointer;
|
|
1388
1388
|
height: 0;
|
|
1389
1389
|
width: 0;
|
|
1390
1390
|
}
|
|
1391
|
-
.scalar-card-checkbox-checkmark[data-v-
|
|
1391
|
+
.scalar-card-checkbox-checkmark[data-v-97958459] {
|
|
1392
1392
|
height: 16px;
|
|
1393
1393
|
width: 16px;
|
|
1394
1394
|
border-radius: var(--scalar-radius);
|
|
@@ -1396,27 +1396,27 @@ button.headers-card-title[data-v-6fb09984]:hover {
|
|
|
1396
1396
|
background-color: var(--scalar-background-3);
|
|
1397
1397
|
box-shadow: inset 0 0 0 var(--scalar-border-width) var(--scalar-border-color);
|
|
1398
1398
|
}
|
|
1399
|
-
.scalar-card-checkbox[data-v-
|
|
1399
|
+
.scalar-card-checkbox[data-v-97958459]:has(.scalar-card-checkbox-input:checked) {
|
|
1400
1400
|
color: var(--scalar-color-1);
|
|
1401
1401
|
font-weight: var(--scalar-semibold);
|
|
1402
1402
|
}
|
|
1403
1403
|
.scalar-card-checkbox
|
|
1404
1404
|
.scalar-card-checkbox-input:checked
|
|
1405
|
-
~ .scalar-card-checkbox-checkmark[data-v-
|
|
1405
|
+
~ .scalar-card-checkbox-checkmark[data-v-97958459] {
|
|
1406
1406
|
background-color: var(--scalar-button-1);
|
|
1407
1407
|
box-shadow: none;
|
|
1408
1408
|
}
|
|
1409
|
-
.scalar-card-checkbox-checkmark[data-v-
|
|
1409
|
+
.scalar-card-checkbox-checkmark[data-v-97958459]:after {
|
|
1410
1410
|
content: '';
|
|
1411
1411
|
position: absolute;
|
|
1412
1412
|
display: none;
|
|
1413
1413
|
}
|
|
1414
1414
|
.scalar-card-checkbox
|
|
1415
1415
|
.scalar-card-checkbox-input:checked
|
|
1416
|
-
~ .scalar-card-checkbox-checkmark[data-v-
|
|
1416
|
+
~ .scalar-card-checkbox-checkmark[data-v-97958459]:after {
|
|
1417
1417
|
display: block;
|
|
1418
1418
|
}
|
|
1419
|
-
.scalar-card-checkbox .scalar-card-checkbox-checkmark[data-v-
|
|
1419
|
+
.scalar-card-checkbox .scalar-card-checkbox-checkmark[data-v-97958459]:after {
|
|
1420
1420
|
right: 11.5px;
|
|
1421
1421
|
top: 12.5px;
|
|
1422
1422
|
width: 5px;
|
|
@@ -10739,7 +10739,7 @@ to {
|
|
|
10739
10739
|
border-color: var(--scalar-border-color) !important;
|
|
10740
10740
|
background: none !important;
|
|
10741
10741
|
}
|
|
10742
|
-
.scalar .scalar-app-layout[data-v-
|
|
10742
|
+
.scalar .scalar-app-layout[data-v-9f4696a7] {
|
|
10743
10743
|
background: var(--scalar-background-1);
|
|
10744
10744
|
opacity: 0;
|
|
10745
10745
|
border: var(--scalar-border-width) solid var(--scalar-border-color);
|
|
@@ -10748,17 +10748,17 @@ to {
|
|
|
10748
10748
|
max-width: 1390px;
|
|
10749
10749
|
height: calc(100% - 120px);
|
|
10750
10750
|
margin: auto;
|
|
10751
|
-
animation: .35s forwards scalarapiclientfadein-
|
|
10751
|
+
animation: .35s forwards scalarapiclientfadein-9f4696a7;
|
|
10752
10752
|
position: relative;
|
|
10753
10753
|
overflow: hidden;
|
|
10754
10754
|
}
|
|
10755
10755
|
@media (max-width: 720px) and (max-height: 480px) {
|
|
10756
|
-
.scalar .scalar-app-layout[data-v-
|
|
10756
|
+
.scalar .scalar-app-layout[data-v-9f4696a7] {
|
|
10757
10757
|
height: 100%;
|
|
10758
10758
|
max-height: 90svh;
|
|
10759
10759
|
}
|
|
10760
10760
|
}
|
|
10761
|
-
@keyframes scalarapiclientfadein-
|
|
10761
|
+
@keyframes scalarapiclientfadein-9f4696a7 {
|
|
10762
10762
|
0% {
|
|
10763
10763
|
opacity: 0;
|
|
10764
10764
|
}
|
|
@@ -10766,22 +10766,22 @@ to {
|
|
|
10766
10766
|
opacity: 1;
|
|
10767
10767
|
}
|
|
10768
10768
|
}
|
|
10769
|
-
.scalar .scalar-app-exit[data-v-
|
|
10769
|
+
.scalar .scalar-app-exit[data-v-9f4696a7] {
|
|
10770
10770
|
cursor: pointer;
|
|
10771
10771
|
z-index: -1;
|
|
10772
10772
|
background: #00000038;
|
|
10773
10773
|
width: 100vw;
|
|
10774
10774
|
height: 100vh;
|
|
10775
10775
|
transition: all .3s ease-in-out;
|
|
10776
|
-
animation: .35s forwards scalardrawerexitfadein-
|
|
10776
|
+
animation: .35s forwards scalardrawerexitfadein-9f4696a7;
|
|
10777
10777
|
position: fixed;
|
|
10778
10778
|
top: 0;
|
|
10779
10779
|
left: 0;
|
|
10780
10780
|
}
|
|
10781
|
-
.dark-mode .scalar .scalar-app-exit[data-v-
|
|
10781
|
+
.dark-mode .scalar .scalar-app-exit[data-v-9f4696a7] {
|
|
10782
10782
|
background: #00000073;
|
|
10783
10783
|
}
|
|
10784
|
-
.scalar .scalar-app-exit[data-v-
|
|
10784
|
+
.scalar .scalar-app-exit[data-v-9f4696a7]:before {
|
|
10785
10785
|
text-align: center;
|
|
10786
10786
|
color: #fff;
|
|
10787
10787
|
opacity: .6;
|
|
@@ -10793,10 +10793,10 @@ to {
|
|
|
10793
10793
|
top: 0;
|
|
10794
10794
|
right: 12px;
|
|
10795
10795
|
}
|
|
10796
|
-
.scalar .scalar-app-exit[data-v-
|
|
10796
|
+
.scalar .scalar-app-exit[data-v-9f4696a7]:hover:before {
|
|
10797
10797
|
opacity: 1;
|
|
10798
10798
|
}
|
|
10799
|
-
@keyframes scalardrawerexitfadein-
|
|
10799
|
+
@keyframes scalardrawerexitfadein-9f4696a7 {
|
|
10800
10800
|
0% {
|
|
10801
10801
|
opacity: 0;
|
|
10802
10802
|
}
|
|
@@ -10804,7 +10804,7 @@ to {
|
|
|
10804
10804
|
opacity: 1;
|
|
10805
10805
|
}
|
|
10806
10806
|
}
|
|
10807
|
-
.scalar-container[data-v-
|
|
10807
|
+
.scalar-container[data-v-9f4696a7] {
|
|
10808
10808
|
visibility: visible;
|
|
10809
10809
|
z-index: 10000;
|
|
10810
10810
|
justify-content: center;
|
|
@@ -10818,22 +10818,22 @@ to {
|
|
|
10818
10818
|
left: 0;
|
|
10819
10819
|
overflow: hidden;
|
|
10820
10820
|
}
|
|
10821
|
-
.scalar .url-form-input[data-v-
|
|
10821
|
+
.scalar .url-form-input[data-v-9f4696a7] {
|
|
10822
10822
|
min-height: auto !important;
|
|
10823
10823
|
}
|
|
10824
|
-
.scalar .scalar-container[data-v-
|
|
10824
|
+
.scalar .scalar-container[data-v-9f4696a7] {
|
|
10825
10825
|
line-height: normal;
|
|
10826
10826
|
}
|
|
10827
|
-
.scalar .scalar-app-header span[data-v-
|
|
10827
|
+
.scalar .scalar-app-header span[data-v-9f4696a7] {
|
|
10828
10828
|
color: var(--scalar-color-3);
|
|
10829
10829
|
}
|
|
10830
|
-
.scalar .scalar-app-header a[data-v-
|
|
10830
|
+
.scalar .scalar-app-header a[data-v-9f4696a7] {
|
|
10831
10831
|
color: var(--scalar-color-1);
|
|
10832
10832
|
}
|
|
10833
|
-
.scalar .scalar-app-header a[data-v-
|
|
10833
|
+
.scalar .scalar-app-header a[data-v-9f4696a7]:hover {
|
|
10834
10834
|
text-decoration: underline;
|
|
10835
10835
|
}
|
|
10836
|
-
.scalar-activate[data-v-
|
|
10836
|
+
.scalar-activate[data-v-9f4696a7] {
|
|
10837
10837
|
cursor: pointer;
|
|
10838
10838
|
align-items: center;
|
|
10839
10839
|
gap: 6px;
|
|
@@ -10844,7 +10844,7 @@ to {
|
|
|
10844
10844
|
line-height: 24px;
|
|
10845
10845
|
display: flex;
|
|
10846
10846
|
}
|
|
10847
|
-
.scalar-activate-button[data-v-
|
|
10847
|
+
.scalar-activate-button[data-v-9f4696a7] {
|
|
10848
10848
|
color: var(--scalar-color-blue);
|
|
10849
10849
|
appearance: none;
|
|
10850
10850
|
background: none;
|
|
@@ -10855,7 +10855,7 @@ to {
|
|
|
10855
10855
|
padding: 0 .5rem;
|
|
10856
10856
|
display: flex;
|
|
10857
10857
|
}
|
|
10858
|
-
.scalar-activate:hover .scalar-activate-button[data-v-
|
|
10858
|
+
.scalar-activate:hover .scalar-activate-button[data-v-9f4696a7] {
|
|
10859
10859
|
background: var(--scalar-background-3);
|
|
10860
10860
|
border-radius: 3px;
|
|
10861
10861
|
}
|
|
@@ -11551,7 +11551,7 @@ to {
|
|
|
11551
11551
|
|
|
11552
11552
|
/* Configurable Layout Variables */
|
|
11553
11553
|
@layer scalar-config {
|
|
11554
|
-
.scalar-api-reference[data-v-
|
|
11554
|
+
.scalar-api-reference[data-v-7bfbddbe] {
|
|
11555
11555
|
--refs-sidebar-width: var(--scalar-sidebar-width, 0px);
|
|
11556
11556
|
/* The header height */
|
|
11557
11557
|
--refs-header-height: calc(
|
|
@@ -11567,7 +11567,7 @@ to {
|
|
|
11567
11567
|
);
|
|
11568
11568
|
--refs-content-max-width: var(--scalar-content-max-width, 1540px);
|
|
11569
11569
|
}
|
|
11570
|
-
.scalar-api-reference.references-classic[data-v-
|
|
11570
|
+
.scalar-api-reference.references-classic[data-v-7bfbddbe] {
|
|
11571
11571
|
/* Classic layout is wider */
|
|
11572
11572
|
--refs-content-max-width: var(--scalar-content-max-width, 1420px);
|
|
11573
11573
|
min-height: 100dvh;
|
|
@@ -11575,14 +11575,14 @@ to {
|
|
|
11575
11575
|
}
|
|
11576
11576
|
|
|
11577
11577
|
/* When the toolbar is present, we need to offset the content */
|
|
11578
|
-
.scalar-api-reference[data-v-
|
|
11578
|
+
.scalar-api-reference[data-v-7bfbddbe]:has(.api-reference-toolbar) {
|
|
11579
11579
|
--refs-content-offset: 48px;
|
|
11580
11580
|
}
|
|
11581
11581
|
}
|
|
11582
11582
|
|
|
11583
11583
|
/* ----------------------------------------------------- */
|
|
11584
11584
|
/* References Layout */
|
|
11585
|
-
.references-layout[data-v-
|
|
11585
|
+
.references-layout[data-v-7bfbddbe] {
|
|
11586
11586
|
/* Try to fill the container */
|
|
11587
11587
|
min-height: 100dvh;
|
|
11588
11588
|
min-width: 100%;
|
|
@@ -11606,39 +11606,39 @@ to {
|
|
|
11606
11606
|
|
|
11607
11607
|
background: var(--scalar-background-1);
|
|
11608
11608
|
}
|
|
11609
|
-
.references-editor[data-v-
|
|
11609
|
+
.references-editor[data-v-7bfbddbe] {
|
|
11610
11610
|
grid-area: editor;
|
|
11611
11611
|
display: flex;
|
|
11612
11612
|
min-width: 0;
|
|
11613
11613
|
background: var(--scalar-background-1);
|
|
11614
11614
|
}
|
|
11615
|
-
.references-rendered[data-v-
|
|
11615
|
+
.references-rendered[data-v-7bfbddbe] {
|
|
11616
11616
|
position: relative;
|
|
11617
11617
|
grid-area: rendered;
|
|
11618
11618
|
min-width: 0;
|
|
11619
11619
|
background: var(--scalar-background-1);
|
|
11620
11620
|
}
|
|
11621
|
-
.scalar-api-reference.references-classic[data-v-
|
|
11622
|
-
.references-classic .references-rendered[data-v-
|
|
11621
|
+
.scalar-api-reference.references-classic[data-v-7bfbddbe],
|
|
11622
|
+
.references-classic .references-rendered[data-v-7bfbddbe] {
|
|
11623
11623
|
height: initial !important;
|
|
11624
11624
|
max-height: initial !important;
|
|
11625
11625
|
}
|
|
11626
11626
|
@layer scalar-config {
|
|
11627
|
-
.references-sidebar[data-v-
|
|
11627
|
+
.references-sidebar[data-v-7bfbddbe] {
|
|
11628
11628
|
/* Set a default width if references are enabled */
|
|
11629
11629
|
--refs-sidebar-width: var(--scalar-sidebar-width, 280px);
|
|
11630
11630
|
}
|
|
11631
11631
|
}
|
|
11632
11632
|
|
|
11633
11633
|
/* Footer */
|
|
11634
|
-
.references-footer[data-v-
|
|
11634
|
+
.references-footer[data-v-7bfbddbe] {
|
|
11635
11635
|
grid-area: footer;
|
|
11636
11636
|
}
|
|
11637
11637
|
/* ----------------------------------------------------- */
|
|
11638
11638
|
/* Responsive / Mobile Layout */
|
|
11639
11639
|
@media (max-width: 1000px) {
|
|
11640
11640
|
/* Stack view on mobile */
|
|
11641
|
-
.references-layout[data-v-
|
|
11641
|
+
.references-layout[data-v-7bfbddbe] {
|
|
11642
11642
|
grid-template-columns: 100%;
|
|
11643
11643
|
grid-template-rows: var(--scalar-header-height, 0px) 0px auto auto;
|
|
11644
11644
|
|
|
@@ -11648,13 +11648,13 @@ to {
|
|
|
11648
11648
|
'rendered'
|
|
11649
11649
|
'footer';
|
|
11650
11650
|
}
|
|
11651
|
-
.references-editable[data-v-
|
|
11651
|
+
.references-editable[data-v-7bfbddbe] {
|
|
11652
11652
|
grid-template-areas:
|
|
11653
11653
|
'header'
|
|
11654
11654
|
'navigation'
|
|
11655
11655
|
'editor';
|
|
11656
11656
|
}
|
|
11657
|
-
.references-rendered[data-v-
|
|
11657
|
+
.references-rendered[data-v-7bfbddbe] {
|
|
11658
11658
|
position: static;
|
|
11659
11659
|
}
|
|
11660
11660
|
}
|
|
@@ -11665,12 +11665,12 @@ to {
|
|
|
11665
11665
|
* when the new elements are available
|
|
11666
11666
|
*/
|
|
11667
11667
|
@media (max-width: 1000px) {
|
|
11668
|
-
.scalar-api-references-standalone-mobile[data-v-
|
|
11668
|
+
.scalar-api-references-standalone-mobile[data-v-7bfbddbe] {
|
|
11669
11669
|
--scalar-header-height: 50px;
|
|
11670
11670
|
}
|
|
11671
11671
|
}
|
|
11672
11672
|
|
|
11673
|
-
.darklight-reference[data-v-
|
|
11673
|
+
.darklight-reference[data-v-7bfbddbe] {
|
|
11674
11674
|
width: 100%;
|
|
11675
11675
|
margin-top: auto;
|
|
11676
11676
|
}
|
package/package.json
CHANGED
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"vue",
|
|
21
21
|
"vue3"
|
|
22
22
|
],
|
|
23
|
-
"version": "1.43.
|
|
23
|
+
"version": "1.43.12",
|
|
24
24
|
"engines": {
|
|
25
25
|
"node": ">=20"
|
|
26
26
|
},
|
|
@@ -85,21 +85,21 @@
|
|
|
85
85
|
"microdiff": "^1.5.0",
|
|
86
86
|
"nanoid": "^5.1.6",
|
|
87
87
|
"vue": "^3.5.26",
|
|
88
|
-
"@scalar/api-client": "2.19.
|
|
89
|
-
"@scalar/components": "0.16.26",
|
|
88
|
+
"@scalar/api-client": "2.19.3",
|
|
90
89
|
"@scalar/helpers": "0.2.8",
|
|
91
|
-
"@scalar/icons": "0.5.2",
|
|
92
|
-
"@scalar/oas-utils": "0.6.23",
|
|
93
90
|
"@scalar/code-highlight": "0.2.2",
|
|
91
|
+
"@scalar/components": "0.16.27",
|
|
92
|
+
"@scalar/icons": "0.5.2",
|
|
93
|
+
"@scalar/oas-utils": "0.6.24",
|
|
94
94
|
"@scalar/openapi-parser": "0.24.3",
|
|
95
95
|
"@scalar/openapi-types": "0.5.3",
|
|
96
|
+
"@scalar/sidebar": "0.7.17",
|
|
96
97
|
"@scalar/snippetz": "0.6.6",
|
|
97
98
|
"@scalar/themes": "0.13.26",
|
|
98
|
-
"@scalar/sidebar": "0.7.16",
|
|
99
|
-
"@scalar/types": "0.5.8",
|
|
100
99
|
"@scalar/use-hooks": "0.3.6",
|
|
101
100
|
"@scalar/use-toasts": "0.9.1",
|
|
102
|
-
"@scalar/
|
|
101
|
+
"@scalar/types": "0.5.8",
|
|
102
|
+
"@scalar/workspace-store": "0.25.3"
|
|
103
103
|
},
|
|
104
104
|
"devDependencies": {
|
|
105
105
|
"@hono/node-server": "^1.19.7",
|
|
@@ -117,8 +117,8 @@
|
|
|
117
117
|
"vite-plugin-banner": "^0.8.1",
|
|
118
118
|
"vite-plugin-css-injected-by-js": "^3.5.2",
|
|
119
119
|
"vitest": "4.0.16",
|
|
120
|
-
"@scalar/core": "0.3.32",
|
|
121
120
|
"@scalar/build-tooling": "0.4.1",
|
|
121
|
+
"@scalar/core": "0.3.32",
|
|
122
122
|
"@scalar/react-renderer": "0.3.0",
|
|
123
123
|
"@scalar/galaxy": "0.5.12"
|
|
124
124
|
},
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
import type { ApiReferenceConfiguration } from '@scalar/types/api-reference';
|
|
2
|
-
/**
|
|
3
|
-
* Maps a partial ApiReferenceConfigurationWithMultipleSources object to a DocumentConfiguration
|
|
4
|
-
* for use in the API Reference. This function transforms configuration options
|
|
5
|
-
* into the expected structure for the 'x-scalar-reference-config' property.
|
|
6
|
-
*
|
|
7
|
-
* @param config - Partial configuration object for the API Reference
|
|
8
|
-
* @returns DocumentConfiguration object with mapped settings
|
|
9
|
-
*/
|
|
10
|
-
export declare const mapConfiguration: (config: Partial<ApiReferenceConfiguration>) => {
|
|
11
|
-
'x-scalar-reference-config': {
|
|
12
|
-
title: string | undefined;
|
|
13
|
-
slug: string | undefined;
|
|
14
|
-
features: {
|
|
15
|
-
showModels: boolean;
|
|
16
|
-
expandAllTagSections: boolean | undefined;
|
|
17
|
-
persistAuthenticationState: boolean | undefined;
|
|
18
|
-
showDarkModeToggle: boolean;
|
|
19
|
-
showDownload: boolean;
|
|
20
|
-
showSearch: boolean;
|
|
21
|
-
showSidebar: boolean | undefined;
|
|
22
|
-
showTestRequestButton: boolean;
|
|
23
|
-
};
|
|
24
|
-
appearance: {
|
|
25
|
-
css: string | undefined;
|
|
26
|
-
favicon: string | undefined;
|
|
27
|
-
forceColorMode: "light" | "dark" | undefined;
|
|
28
|
-
initialColorMode: "dark" | undefined;
|
|
29
|
-
layout: "modern" | "classic" | undefined;
|
|
30
|
-
loadDefaultFonts: boolean | undefined;
|
|
31
|
-
theme: "default" | "alternate" | "moon" | "purple" | "solarized" | "bluePlanet" | "deepSpace" | "saturn" | "kepler" | "elysiajs" | "fastify" | "mars" | "laserwave" | "none" | undefined;
|
|
32
|
-
};
|
|
33
|
-
httpClients: ("c/libcurl" | "c/clj_http" | "c/httpclient" | "c/restsharp" | "c/http" | "c/native" | "c/http1.1" | "c/asynchttp" | "c/nethttp" | "c/okhttp" | "c/unirest" | "c/axios" | "c/fetch" | "c/jquery" | "c/ofetch" | "c/xhr" | "c/undici" | "c/nsurlsession" | "c/cohttp" | "c/curl" | "c/guzzle" | "c/restmethod" | "c/webrequest" | "c/python3" | "c/requests" | "c/httpx_sync" | "c/httpx_async" | "c/httr" | "c/reqwest" | "c/httpie" | "c/wget" | "r/libcurl" | "r/clj_http" | "r/httpclient" | "r/restsharp" | "r/http" | "r/native" | "r/http1.1" | "r/asynchttp" | "r/nethttp" | "r/okhttp" | "r/unirest" | "r/axios" | "r/fetch" | "r/jquery" | "r/ofetch" | "r/xhr" | "r/undici" | "r/nsurlsession" | "r/cohttp" | "r/curl" | "r/guzzle" | "r/restmethod" | "r/webrequest" | "r/python3" | "r/requests" | "r/httpx_sync" | "r/httpx_async" | "r/httr" | "r/reqwest" | "r/httpie" | "r/wget" | "go/libcurl" | "go/clj_http" | "go/httpclient" | "go/restsharp" | "go/http" | "go/native" | "go/http1.1" | "go/asynchttp" | "go/nethttp" | "go/okhttp" | "go/unirest" | "go/axios" | "go/fetch" | "go/jquery" | "go/ofetch" | "go/xhr" | "go/undici" | "go/nsurlsession" | "go/cohttp" | "go/curl" | "go/guzzle" | "go/restmethod" | "go/webrequest" | "go/python3" | "go/requests" | "go/httpx_sync" | "go/httpx_async" | "go/httr" | "go/reqwest" | "go/httpie" | "go/wget" | "rust/libcurl" | "rust/clj_http" | "rust/httpclient" | "rust/restsharp" | "rust/http" | "rust/native" | "rust/http1.1" | "rust/asynchttp" | "rust/nethttp" | "rust/okhttp" | "rust/unirest" | "rust/axios" | "rust/fetch" | "rust/jquery" | "rust/ofetch" | "rust/xhr" | "rust/undici" | "rust/nsurlsession" | "rust/cohttp" | "rust/curl" | "rust/guzzle" | "rust/restmethod" | "rust/webrequest" | "rust/python3" | "rust/requests" | "rust/httpx_sync" | "rust/httpx_async" | "rust/httr" | "rust/reqwest" | "rust/httpie" | "rust/wget" | "http/libcurl" | "http/clj_http" | "http/httpclient" | "http/restsharp" | "http/http" | "http/native" | "http/http1.1" | "http/asynchttp" | "http/nethttp" | "http/okhttp" | "http/unirest" | "http/axios" | "http/fetch" | "http/jquery" | "http/ofetch" | "http/xhr" | "http/undici" | "http/nsurlsession" | "http/cohttp" | "http/curl" | "http/guzzle" | "http/restmethod" | "http/webrequest" | "http/python3" | "http/requests" | "http/httpx_sync" | "http/httpx_async" | "http/httr" | "http/reqwest" | "http/httpie" | "http/wget" | "clojure/libcurl" | "clojure/clj_http" | "clojure/httpclient" | "clojure/restsharp" | "clojure/http" | "clojure/native" | "clojure/http1.1" | "clojure/asynchttp" | "clojure/nethttp" | "clojure/okhttp" | "clojure/unirest" | "clojure/axios" | "clojure/fetch" | "clojure/jquery" | "clojure/ofetch" | "clojure/xhr" | "clojure/undici" | "clojure/nsurlsession" | "clojure/cohttp" | "clojure/curl" | "clojure/guzzle" | "clojure/restmethod" | "clojure/webrequest" | "clojure/python3" | "clojure/requests" | "clojure/httpx_sync" | "clojure/httpx_async" | "clojure/httr" | "clojure/reqwest" | "clojure/httpie" | "clojure/wget" | "csharp/libcurl" | "csharp/clj_http" | "csharp/httpclient" | "csharp/restsharp" | "csharp/http" | "csharp/native" | "csharp/http1.1" | "csharp/asynchttp" | "csharp/nethttp" | "csharp/okhttp" | "csharp/unirest" | "csharp/axios" | "csharp/fetch" | "csharp/jquery" | "csharp/ofetch" | "csharp/xhr" | "csharp/undici" | "csharp/nsurlsession" | "csharp/cohttp" | "csharp/curl" | "csharp/guzzle" | "csharp/restmethod" | "csharp/webrequest" | "csharp/python3" | "csharp/requests" | "csharp/httpx_sync" | "csharp/httpx_async" | "csharp/httr" | "csharp/reqwest" | "csharp/httpie" | "csharp/wget" | "dart/libcurl" | "dart/clj_http" | "dart/httpclient" | "dart/restsharp" | "dart/http" | "dart/native" | "dart/http1.1" | "dart/asynchttp" | "dart/nethttp" | "dart/okhttp" | "dart/unirest" | "dart/axios" | "dart/fetch" | "dart/jquery" | "dart/ofetch" | "dart/xhr" | "dart/undici" | "dart/nsurlsession" | "dart/cohttp" | "dart/curl" | "dart/guzzle" | "dart/restmethod" | "dart/webrequest" | "dart/python3" | "dart/requests" | "dart/httpx_sync" | "dart/httpx_async" | "dart/httr" | "dart/reqwest" | "dart/httpie" | "dart/wget" | "fsharp/libcurl" | "fsharp/clj_http" | "fsharp/httpclient" | "fsharp/restsharp" | "fsharp/http" | "fsharp/native" | "fsharp/http1.1" | "fsharp/asynchttp" | "fsharp/nethttp" | "fsharp/okhttp" | "fsharp/unirest" | "fsharp/axios" | "fsharp/fetch" | "fsharp/jquery" | "fsharp/ofetch" | "fsharp/xhr" | "fsharp/undici" | "fsharp/nsurlsession" | "fsharp/cohttp" | "fsharp/curl" | "fsharp/guzzle" | "fsharp/restmethod" | "fsharp/webrequest" | "fsharp/python3" | "fsharp/requests" | "fsharp/httpx_sync" | "fsharp/httpx_async" | "fsharp/httr" | "fsharp/reqwest" | "fsharp/httpie" | "fsharp/wget" | "java/libcurl" | "java/clj_http" | "java/httpclient" | "java/restsharp" | "java/http" | "java/native" | "java/http1.1" | "java/asynchttp" | "java/nethttp" | "java/okhttp" | "java/unirest" | "java/axios" | "java/fetch" | "java/jquery" | "java/ofetch" | "java/xhr" | "java/undici" | "java/nsurlsession" | "java/cohttp" | "java/curl" | "java/guzzle" | "java/restmethod" | "java/webrequest" | "java/python3" | "java/requests" | "java/httpx_sync" | "java/httpx_async" | "java/httr" | "java/reqwest" | "java/httpie" | "java/wget" | "js/libcurl" | "js/clj_http" | "js/httpclient" | "js/restsharp" | "js/http" | "js/native" | "js/http1.1" | "js/asynchttp" | "js/nethttp" | "js/okhttp" | "js/unirest" | "js/axios" | "js/fetch" | "js/jquery" | "js/ofetch" | "js/xhr" | "js/undici" | "js/nsurlsession" | "js/cohttp" | "js/curl" | "js/guzzle" | "js/restmethod" | "js/webrequest" | "js/python3" | "js/requests" | "js/httpx_sync" | "js/httpx_async" | "js/httr" | "js/reqwest" | "js/httpie" | "js/wget" | "kotlin/libcurl" | "kotlin/clj_http" | "kotlin/httpclient" | "kotlin/restsharp" | "kotlin/http" | "kotlin/native" | "kotlin/http1.1" | "kotlin/asynchttp" | "kotlin/nethttp" | "kotlin/okhttp" | "kotlin/unirest" | "kotlin/axios" | "kotlin/fetch" | "kotlin/jquery" | "kotlin/ofetch" | "kotlin/xhr" | "kotlin/undici" | "kotlin/nsurlsession" | "kotlin/cohttp" | "kotlin/curl" | "kotlin/guzzle" | "kotlin/restmethod" | "kotlin/webrequest" | "kotlin/python3" | "kotlin/requests" | "kotlin/httpx_sync" | "kotlin/httpx_async" | "kotlin/httr" | "kotlin/reqwest" | "kotlin/httpie" | "kotlin/wget" | "node/libcurl" | "node/clj_http" | "node/httpclient" | "node/restsharp" | "node/http" | "node/native" | "node/http1.1" | "node/asynchttp" | "node/nethttp" | "node/okhttp" | "node/unirest" | "node/axios" | "node/fetch" | "node/jquery" | "node/ofetch" | "node/xhr" | "node/undici" | "node/nsurlsession" | "node/cohttp" | "node/curl" | "node/guzzle" | "node/restmethod" | "node/webrequest" | "node/python3" | "node/requests" | "node/httpx_sync" | "node/httpx_async" | "node/httr" | "node/reqwest" | "node/httpie" | "node/wget" | "objc/libcurl" | "objc/clj_http" | "objc/httpclient" | "objc/restsharp" | "objc/http" | "objc/native" | "objc/http1.1" | "objc/asynchttp" | "objc/nethttp" | "objc/okhttp" | "objc/unirest" | "objc/axios" | "objc/fetch" | "objc/jquery" | "objc/ofetch" | "objc/xhr" | "objc/undici" | "objc/nsurlsession" | "objc/cohttp" | "objc/curl" | "objc/guzzle" | "objc/restmethod" | "objc/webrequest" | "objc/python3" | "objc/requests" | "objc/httpx_sync" | "objc/httpx_async" | "objc/httr" | "objc/reqwest" | "objc/httpie" | "objc/wget" | "ocaml/libcurl" | "ocaml/clj_http" | "ocaml/httpclient" | "ocaml/restsharp" | "ocaml/http" | "ocaml/native" | "ocaml/http1.1" | "ocaml/asynchttp" | "ocaml/nethttp" | "ocaml/okhttp" | "ocaml/unirest" | "ocaml/axios" | "ocaml/fetch" | "ocaml/jquery" | "ocaml/ofetch" | "ocaml/xhr" | "ocaml/undici" | "ocaml/nsurlsession" | "ocaml/cohttp" | "ocaml/curl" | "ocaml/guzzle" | "ocaml/restmethod" | "ocaml/webrequest" | "ocaml/python3" | "ocaml/requests" | "ocaml/httpx_sync" | "ocaml/httpx_async" | "ocaml/httr" | "ocaml/reqwest" | "ocaml/httpie" | "ocaml/wget" | "php/libcurl" | "php/clj_http" | "php/httpclient" | "php/restsharp" | "php/http" | "php/native" | "php/http1.1" | "php/asynchttp" | "php/nethttp" | "php/okhttp" | "php/unirest" | "php/axios" | "php/fetch" | "php/jquery" | "php/ofetch" | "php/xhr" | "php/undici" | "php/nsurlsession" | "php/cohttp" | "php/curl" | "php/guzzle" | "php/restmethod" | "php/webrequest" | "php/python3" | "php/requests" | "php/httpx_sync" | "php/httpx_async" | "php/httr" | "php/reqwest" | "php/httpie" | "php/wget" | "powershell/libcurl" | "powershell/clj_http" | "powershell/httpclient" | "powershell/restsharp" | "powershell/http" | "powershell/native" | "powershell/http1.1" | "powershell/asynchttp" | "powershell/nethttp" | "powershell/okhttp" | "powershell/unirest" | "powershell/axios" | "powershell/fetch" | "powershell/jquery" | "powershell/ofetch" | "powershell/xhr" | "powershell/undici" | "powershell/nsurlsession" | "powershell/cohttp" | "powershell/curl" | "powershell/guzzle" | "powershell/restmethod" | "powershell/webrequest" | "powershell/python3" | "powershell/requests" | "powershell/httpx_sync" | "powershell/httpx_async" | "powershell/httr" | "powershell/reqwest" | "powershell/httpie" | "powershell/wget" | "python/libcurl" | "python/clj_http" | "python/httpclient" | "python/restsharp" | "python/http" | "python/native" | "python/http1.1" | "python/asynchttp" | "python/nethttp" | "python/okhttp" | "python/unirest" | "python/axios" | "python/fetch" | "python/jquery" | "python/ofetch" | "python/xhr" | "python/undici" | "python/nsurlsession" | "python/cohttp" | "python/curl" | "python/guzzle" | "python/restmethod" | "python/webrequest" | "python/python3" | "python/requests" | "python/httpx_sync" | "python/httpx_async" | "python/httr" | "python/reqwest" | "python/httpie" | "python/wget" | "ruby/libcurl" | "ruby/clj_http" | "ruby/httpclient" | "ruby/restsharp" | "ruby/http" | "ruby/native" | "ruby/http1.1" | "ruby/asynchttp" | "ruby/nethttp" | "ruby/okhttp" | "ruby/unirest" | "ruby/axios" | "ruby/fetch" | "ruby/jquery" | "ruby/ofetch" | "ruby/xhr" | "ruby/undici" | "ruby/nsurlsession" | "ruby/cohttp" | "ruby/curl" | "ruby/guzzle" | "ruby/restmethod" | "ruby/webrequest" | "ruby/python3" | "ruby/requests" | "ruby/httpx_sync" | "ruby/httpx_async" | "ruby/httr" | "ruby/reqwest" | "ruby/httpie" | "ruby/wget" | "shell/libcurl" | "shell/clj_http" | "shell/httpclient" | "shell/restsharp" | "shell/http" | "shell/native" | "shell/http1.1" | "shell/asynchttp" | "shell/nethttp" | "shell/okhttp" | "shell/unirest" | "shell/axios" | "shell/fetch" | "shell/jquery" | "shell/ofetch" | "shell/xhr" | "shell/undici" | "shell/nsurlsession" | "shell/cohttp" | "shell/curl" | "shell/guzzle" | "shell/restmethod" | "shell/webrequest" | "shell/python3" | "shell/requests" | "shell/httpx_sync" | "shell/httpx_async" | "shell/httr" | "shell/reqwest" | "shell/httpie" | "shell/wget" | "swift/libcurl" | "swift/clj_http" | "swift/httpclient" | "swift/restsharp" | "swift/http" | "swift/native" | "swift/http1.1" | "swift/asynchttp" | "swift/nethttp" | "swift/okhttp" | "swift/unirest" | "swift/axios" | "swift/fetch" | "swift/jquery" | "swift/ofetch" | "swift/xhr" | "swift/undici" | "swift/nsurlsession" | "swift/cohttp" | "swift/curl" | "swift/guzzle" | "swift/restmethod" | "swift/webrequest" | "swift/python3" | "swift/requests" | "swift/httpx_sync" | "swift/httpx_async" | "swift/httr" | "swift/reqwest" | "swift/httpie" | "swift/wget")[];
|
|
34
|
-
routing: {
|
|
35
|
-
basePath: string | undefined;
|
|
36
|
-
};
|
|
37
|
-
settings: {
|
|
38
|
-
proxyUrl: string | undefined;
|
|
39
|
-
searchKey: "a" | "b" | "i" | "p" | "q" | "s" | "u" | "g" | "c" | "r" | "x" | "y" | "d" | "e" | "f" | "h" | "j" | "k" | "l" | "m" | "n" | "o" | "t" | "v" | "w" | "z" | undefined;
|
|
40
|
-
baseServerUrl: string | undefined;
|
|
41
|
-
servers: any[] | undefined;
|
|
42
|
-
};
|
|
43
|
-
meta: any;
|
|
44
|
-
tagSort: "alpha" | import("zod/v4/core").$InferOuterFunctionType<import("zod").ZodTuple<readonly [import("zod").ZodAny, import("zod").ZodAny], null>, import("zod").ZodNumber> | undefined;
|
|
45
|
-
operationsSorter: "alpha" | import("zod/v4/core").$InferOuterFunctionType<import("zod").ZodTuple<readonly [import("zod").ZodAny, import("zod").ZodAny], null>, import("zod").ZodNumber> | "method" | undefined;
|
|
46
|
-
generateHeadingSlug: import("zod/v4/core").$InferOuterFunctionType<import("zod").ZodTuple<readonly [import("zod").ZodObject<{
|
|
47
|
-
slug: import("zod").ZodDefault<import("zod").ZodString>;
|
|
48
|
-
}, import("zod/v4/core").$strip>], null>, import("zod").ZodString> | undefined;
|
|
49
|
-
generateModelSlug: import("zod/v4/core").$InferOuterFunctionType<import("zod").ZodTuple<readonly [import("zod").ZodObject<{
|
|
50
|
-
name: import("zod").ZodDefault<import("zod").ZodString>;
|
|
51
|
-
}, import("zod/v4/core").$strip>], null>, import("zod").ZodString> | undefined;
|
|
52
|
-
generateOperationSlug: import("zod/v4/core").$InferOuterFunctionType<import("zod").ZodTuple<readonly [import("zod").ZodObject<{
|
|
53
|
-
path: import("zod").ZodString;
|
|
54
|
-
operationId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
55
|
-
method: import("zod").ZodString;
|
|
56
|
-
summary: import("zod").ZodOptional<import("zod").ZodString>;
|
|
57
|
-
}, import("zod/v4/core").$strip>], null>, import("zod").ZodString> | undefined;
|
|
58
|
-
generateTagSlug: import("zod/v4/core").$InferOuterFunctionType<import("zod").ZodTuple<readonly [import("zod").ZodObject<{
|
|
59
|
-
name: import("zod").ZodDefault<import("zod").ZodString>;
|
|
60
|
-
}, import("zod/v4/core").$strip>], null>, import("zod").ZodString> | undefined;
|
|
61
|
-
generateWebhookSlug: import("zod/v4/core").$InferOuterFunctionType<import("zod").ZodTuple<readonly [import("zod").ZodObject<{
|
|
62
|
-
name: import("zod").ZodString;
|
|
63
|
-
method: import("zod").ZodOptional<import("zod").ZodString>;
|
|
64
|
-
}, import("zod/v4/core").$strip>], null>, import("zod").ZodString> | undefined;
|
|
65
|
-
};
|
|
66
|
-
};
|
|
67
|
-
//# sourceMappingURL=map-configuration.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"map-configuration.d.ts","sourceRoot":"","sources":["../../src/helpers/map-configuration.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAA;AAK5E;;;;;;;GAOG;AACH,eAAO,MAAM,gBAAgB,GAAI,QAAQ,OAAO,CAAC,yBAAyB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiD1E,CAAA"}
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import { mapHiddenClientsConfig } from "./map-hidden-clients-config.js";
|
|
2
|
-
const mapConfiguration = (config) => {
|
|
3
|
-
return {
|
|
4
|
-
"x-scalar-reference-config": {
|
|
5
|
-
title: config.title,
|
|
6
|
-
slug: config.slug,
|
|
7
|
-
features: {
|
|
8
|
-
// Feature toggles for UI elements and behaviors
|
|
9
|
-
showModels: !config.hideModels,
|
|
10
|
-
expandAllTagSections: config.defaultOpenAllTags,
|
|
11
|
-
persistAuthenticationState: config.persistAuth,
|
|
12
|
-
showDarkModeToggle: !config.hideDarkModeToggle,
|
|
13
|
-
showDownload: !config.hideDownloadButton,
|
|
14
|
-
showSearch: !config.hideSearch,
|
|
15
|
-
showSidebar: config.showSidebar,
|
|
16
|
-
showTestRequestButton: !config.hideTestRequestButton
|
|
17
|
-
},
|
|
18
|
-
appearance: {
|
|
19
|
-
// Appearance-related configuration
|
|
20
|
-
css: config.customCss,
|
|
21
|
-
favicon: config.favicon,
|
|
22
|
-
forceColorMode: config.forceDarkModeState,
|
|
23
|
-
initialColorMode: config.darkMode ? "dark" : void 0,
|
|
24
|
-
layout: config.layout,
|
|
25
|
-
loadDefaultFonts: config.withDefaultFonts,
|
|
26
|
-
theme: config.theme
|
|
27
|
-
},
|
|
28
|
-
httpClients: mapHiddenClientsConfig(config.hiddenClients),
|
|
29
|
-
routing: {
|
|
30
|
-
// Routing configuration
|
|
31
|
-
basePath: config.pathRouting?.basePath
|
|
32
|
-
},
|
|
33
|
-
settings: {
|
|
34
|
-
// Miscellaneous settings
|
|
35
|
-
proxyUrl: config.proxyUrl,
|
|
36
|
-
searchKey: config.searchHotKey,
|
|
37
|
-
baseServerUrl: config.baseServerURL,
|
|
38
|
-
servers: config.servers
|
|
39
|
-
},
|
|
40
|
-
meta: config.metaData,
|
|
41
|
-
// In memory configuration
|
|
42
|
-
tagSort: config.tagsSorter,
|
|
43
|
-
operationsSorter: config.operationsSorter,
|
|
44
|
-
generateHeadingSlug: config.generateHeadingSlug,
|
|
45
|
-
generateModelSlug: config.generateModelSlug,
|
|
46
|
-
generateOperationSlug: config.generateOperationSlug,
|
|
47
|
-
generateTagSlug: config.generateTagSlug,
|
|
48
|
-
generateWebhookSlug: config.generateWebhookSlug
|
|
49
|
-
}
|
|
50
|
-
};
|
|
51
|
-
};
|
|
52
|
-
export {
|
|
53
|
-
mapConfiguration
|
|
54
|
-
};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { ApiReferenceConfiguration } from '@scalar/types/api-reference';
|
|
2
|
-
import { type AvailableClients } from '@scalar/types/snippetz';
|
|
3
|
-
/**
|
|
4
|
-
* Map the old hiddenClients config to the new httpClients config.
|
|
5
|
-
* Filters out clients based on the configuration and returns the remaining clients.
|
|
6
|
-
*/
|
|
7
|
-
export declare const mapHiddenClientsConfig: (hiddenClients: ApiReferenceConfiguration["hiddenClients"]) => AvailableClients;
|
|
8
|
-
//# sourceMappingURL=map-hidden-clients-config.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"map-hidden-clients-config.d.ts","sourceRoot":"","sources":["../../src/helpers/map-hidden-clients-config.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAA;AAE5E,OAAO,EAAqB,KAAK,gBAAgB,EAAmB,MAAM,wBAAwB,CAAA;AAElG;;;GAGG;AACH,eAAO,MAAM,sBAAsB,GAAI,eAAe,yBAAyB,CAAC,eAAe,CAAC,KAAG,gBAgElG,CAAA"}
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import { objectKeys } from "@scalar/helpers/object/object-keys";
|
|
2
|
-
import { AVAILABLE_CLIENTS, GROUPED_CLIENTS } from "@scalar/types/snippetz";
|
|
3
|
-
const mapHiddenClientsConfig = (hiddenClients) => {
|
|
4
|
-
if (hiddenClients === true) {
|
|
5
|
-
return [];
|
|
6
|
-
}
|
|
7
|
-
if (!hiddenClients || Array.isArray(hiddenClients) && hiddenClients.length === 0) {
|
|
8
|
-
return AVAILABLE_CLIENTS;
|
|
9
|
-
}
|
|
10
|
-
const visibleClientsSet = new Set(AVAILABLE_CLIENTS);
|
|
11
|
-
if (Array.isArray(hiddenClients)) {
|
|
12
|
-
for (const item of hiddenClients) {
|
|
13
|
-
const group = GROUPED_CLIENTS[item];
|
|
14
|
-
if (group) {
|
|
15
|
-
for (const client of group) {
|
|
16
|
-
visibleClientsSet.delete(`${item}/${client}`);
|
|
17
|
-
}
|
|
18
|
-
} else if (item.includes("/")) {
|
|
19
|
-
visibleClientsSet.delete(item);
|
|
20
|
-
} else {
|
|
21
|
-
for (const language of objectKeys(GROUPED_CLIENTS)) {
|
|
22
|
-
visibleClientsSet.delete(`${language}/${item}`);
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
} else if (typeof hiddenClients === "object") {
|
|
27
|
-
for (const [targetId, clients] of Object.entries(hiddenClients)) {
|
|
28
|
-
if (clients === true) {
|
|
29
|
-
const group = GROUPED_CLIENTS[targetId];
|
|
30
|
-
if (group) {
|
|
31
|
-
for (const client of group) {
|
|
32
|
-
visibleClientsSet.delete(`${targetId}/${client}`);
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
} else if (Array.isArray(clients)) {
|
|
36
|
-
for (const client of clients) {
|
|
37
|
-
visibleClientsSet.delete(client);
|
|
38
|
-
visibleClientsSet.delete(`${targetId}/${client}`);
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
return Array.from(visibleClientsSet);
|
|
44
|
-
};
|
|
45
|
-
export {
|
|
46
|
-
mapHiddenClientsConfig
|
|
47
|
-
};
|