@scalar/api-reference 0.1.25 → 0.1.27
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/dist/components/ApiClientModal.vue.d.ts.map +1 -1
- package/dist/components/Content/Content.vue.d.ts.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +15 -15
- package/dist/style.css +183 -183
- package/package.json +5 -5
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ApiClientModal.vue.d.ts","sourceRoot":"","sources":["../../src/components/ApiClientModal.vue.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,KAAK,IAAI,EAAE,MAAM,UAAU,CAAA;AAIpC,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"ApiClientModal.vue.d.ts","sourceRoot":"","sources":["../../src/components/ApiClientModal.vue.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,KAAK,IAAI,EAAE,MAAM,UAAU,CAAA;AAIpC,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oBAsLzB,GAAG;0BACG,GAAG;;AAtLtC,wBAsM0G;AAG1G,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAAE,QAAO;QAClD,MAAM,EAAE,CAAC,CAAC;KACT,CAAA;CAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Content.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Content/Content.vue.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Content.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Content/Content.vue.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;;;;;;;;;;;;;;;;;;;;AAqOvC,wBAAkD"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import '../../theme/scrollbar.css';
|
|
2
|
-
export { default as ApiClientModal, useApiClientStore } from './components/ApiClientModal.vue';
|
|
2
|
+
export { default as ApiClientModal, useApiClientStore, } from './components/ApiClientModal.vue';
|
|
3
3
|
export { default as ApiReference } from './components/ApiReference.vue';
|
|
4
4
|
export { default as Sidebar } from './components/Sidebar.vue';
|
|
5
5
|
export { default as RenderedReference } from './components/Content/Content.vue';
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,2BAA2B,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,2BAA2B,CAAA;AAElC,OAAO,EACL,OAAO,IAAI,cAAc,EACzB,iBAAiB,GAClB,MAAM,iCAAiC,CAAA;AACxC,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,+BAA+B,CAAA;AACvE,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,0BAA0B,CAAA;AAC7D,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,kCAAkC,CAAA;AAE/E,cAAc,SAAS,CAAA"}
|
package/dist/index.js
CHANGED
|
@@ -37189,7 +37189,7 @@ Component that was made reactive: `, type2);
|
|
|
37189
37189
|
const FlowModal = _export_sfc$1(_sfc_main$m$1, [
|
|
37190
37190
|
[
|
|
37191
37191
|
"__scopeId",
|
|
37192
|
-
"data-v-
|
|
37192
|
+
"data-v-075b7f61"
|
|
37193
37193
|
]
|
|
37194
37194
|
]);
|
|
37195
37195
|
const BYTE_UNITS = [
|
|
@@ -45295,13 +45295,20 @@ ${closingBraceIndent}]`;
|
|
|
45295
45295
|
};
|
|
45296
45296
|
}
|
|
45297
45297
|
});
|
|
45298
|
-
const
|
|
45298
|
+
const ApiClientModal_vue_vue_type_style_index_0_scoped_cd5e89a0_lang = "";
|
|
45299
45299
|
ApiClientModal = _export_sfc(_sfc_main$n, [
|
|
45300
45300
|
[
|
|
45301
45301
|
"__scopeId",
|
|
45302
|
-
"data-v-
|
|
45302
|
+
"data-v-cd5e89a0"
|
|
45303
45303
|
]
|
|
45304
45304
|
]);
|
|
45305
|
+
function useRefOnMount(setter) {
|
|
45306
|
+
const value = ref$1(null);
|
|
45307
|
+
onMounted(() => {
|
|
45308
|
+
value.value = setter();
|
|
45309
|
+
});
|
|
45310
|
+
return value;
|
|
45311
|
+
}
|
|
45305
45312
|
const Card_vue_vue_type_style_index_0_scoped_632b8afa_lang = "";
|
|
45306
45313
|
const _sfc_main$m = {};
|
|
45307
45314
|
const _hoisted_1$i = {
|
|
@@ -46725,11 +46732,11 @@ ${closingBraceIndent}]`;
|
|
|
46725
46732
|
};
|
|
46726
46733
|
}
|
|
46727
46734
|
});
|
|
46728
|
-
const
|
|
46735
|
+
const Introduction_vue_vue_type_style_index_0_scoped_5de9da25_lang = "";
|
|
46729
46736
|
const Introduction = _export_sfc(_sfc_main$d, [
|
|
46730
46737
|
[
|
|
46731
46738
|
"__scopeId",
|
|
46732
|
-
"data-v-
|
|
46739
|
+
"data-v-5de9da25"
|
|
46733
46740
|
]
|
|
46734
46741
|
]);
|
|
46735
46742
|
const _hoisted_1$c = {
|
|
@@ -48431,13 +48438,6 @@ ${closingBraceIndent}]`;
|
|
|
48431
48438
|
"data-v-16147dd7"
|
|
48432
48439
|
]
|
|
48433
48440
|
]);
|
|
48434
|
-
function useRefOnMount(setter) {
|
|
48435
|
-
const value = ref$1(null);
|
|
48436
|
-
onMounted(() => {
|
|
48437
|
-
value.value = setter();
|
|
48438
|
-
});
|
|
48439
|
-
return value;
|
|
48440
|
-
}
|
|
48441
48441
|
const _hoisted_1$1 = [
|
|
48442
48442
|
"onClick"
|
|
48443
48443
|
];
|
|
@@ -48470,7 +48470,7 @@ ${closingBraceIndent}]`;
|
|
|
48470
48470
|
};
|
|
48471
48471
|
});
|
|
48472
48472
|
const localServers = computed(() => {
|
|
48473
|
-
if (props.spec.servers.length > 0) {
|
|
48473
|
+
if (props.spec.servers && props.spec.servers.length > 0) {
|
|
48474
48474
|
return props.spec.servers;
|
|
48475
48475
|
} else if (fallBackServer.value) {
|
|
48476
48476
|
return [
|
|
@@ -48550,11 +48550,11 @@ ${closingBraceIndent}]`;
|
|
|
48550
48550
|
};
|
|
48551
48551
|
}
|
|
48552
48552
|
});
|
|
48553
|
-
const
|
|
48553
|
+
const Content_vue_vue_type_style_index_0_scoped_914a90eb_lang = "";
|
|
48554
48554
|
Content = _export_sfc(_sfc_main$1, [
|
|
48555
48555
|
[
|
|
48556
48556
|
"__scopeId",
|
|
48557
|
-
"data-v-
|
|
48557
|
+
"data-v-914a90eb"
|
|
48558
48558
|
]
|
|
48559
48559
|
]);
|
|
48560
48560
|
const _hoisted_1 = {
|
package/dist/style.css
CHANGED
|
@@ -527,10 +527,10 @@ to {
|
|
|
527
527
|
}
|
|
528
528
|
}
|
|
529
529
|
|
|
530
|
-
.scalar-api-client__container .scalar-api-client[data-v-
|
|
530
|
+
.scalar-api-client__container .scalar-api-client[data-v-cd5e89a0] {
|
|
531
531
|
width: calc(100% - var(--scalar-api-reference-theme-sidebar-width));
|
|
532
532
|
}
|
|
533
|
-
.scalar-api-client__container[data-v-
|
|
533
|
+
.scalar-api-client__container[data-v-cd5e89a0] {
|
|
534
534
|
position: absolute;
|
|
535
535
|
right: 0;
|
|
536
536
|
left: 0;
|
|
@@ -551,11 +551,11 @@ to {
|
|
|
551
551
|
flex-direction: column;
|
|
552
552
|
}
|
|
553
553
|
@media screen and (max-width: 1265px) {
|
|
554
|
-
.scalar-api-client__container[data-v-
|
|
554
|
+
.scalar-api-client__container[data-v-cd5e89a0] {
|
|
555
555
|
width: 100vw !important;
|
|
556
556
|
}
|
|
557
557
|
}
|
|
558
|
-
.scalar-api-client__navigation[data-v-
|
|
558
|
+
.scalar-api-client__navigation[data-v-cd5e89a0] {
|
|
559
559
|
width: 100%;
|
|
560
560
|
display: flex;
|
|
561
561
|
align-items: center;
|
|
@@ -567,7 +567,7 @@ to {
|
|
|
567
567
|
border-bottom: 1px solid var(--theme-border-color);
|
|
568
568
|
top: 0;
|
|
569
569
|
}
|
|
570
|
-
.scalar-api-client__close[data-v-
|
|
570
|
+
.scalar-api-client__close[data-v-cd5e89a0] {
|
|
571
571
|
appearance: none;
|
|
572
572
|
border: none;
|
|
573
573
|
outline: none;
|
|
@@ -578,7 +578,7 @@ to {
|
|
|
578
578
|
color: var(--theme-color-1);
|
|
579
579
|
font-weight: var(--theme-semibold);
|
|
580
580
|
}
|
|
581
|
-
.scalar-api-client__close[data-v-
|
|
581
|
+
.scalar-api-client__close[data-v-cd5e89a0]:hover {
|
|
582
582
|
cursor: pointer;
|
|
583
583
|
}
|
|
584
584
|
/*
|
|
@@ -601,7 +601,7 @@ TODO: Markup is missing
|
|
|
601
601
|
height: 12px;
|
|
602
602
|
transform: rotate(180deg);
|
|
603
603
|
} */
|
|
604
|
-
.api-client-drawer[data-v-
|
|
604
|
+
.api-client-drawer[data-v-cd5e89a0] {
|
|
605
605
|
background: var(--theme-background-1);
|
|
606
606
|
height: calc(100vh - 58px);
|
|
607
607
|
width: calc(100vw - 8px);
|
|
@@ -613,9 +613,9 @@ TODO: Markup is missing
|
|
|
613
613
|
left: 4px;
|
|
614
614
|
z-index: 9999;
|
|
615
615
|
opacity: 0;
|
|
616
|
-
animation: apiclientfadein-
|
|
616
|
+
animation: apiclientfadein-cd5e89a0 0.35s forwards;
|
|
617
617
|
}
|
|
618
|
-
@keyframes apiclientfadein-
|
|
618
|
+
@keyframes apiclientfadein-cd5e89a0 {
|
|
619
619
|
from {
|
|
620
620
|
transform: translate3d(0, 20px, 0) scale(0.985);
|
|
621
621
|
opacity: 0;
|
|
@@ -625,7 +625,7 @@ to {
|
|
|
625
625
|
opacity: 1;
|
|
626
626
|
}
|
|
627
627
|
}
|
|
628
|
-
.api-client-drawer-exit[data-v-
|
|
628
|
+
.api-client-drawer-exit[data-v-cd5e89a0] {
|
|
629
629
|
position: fixed;
|
|
630
630
|
top: 0;
|
|
631
631
|
left: 0;
|
|
@@ -635,9 +635,9 @@ to {
|
|
|
635
635
|
transition: all 0.3s ease-in-out;
|
|
636
636
|
z-index: 9998;
|
|
637
637
|
cursor: pointer;
|
|
638
|
-
animation: drawerexitfadein-
|
|
638
|
+
animation: drawerexitfadein-cd5e89a0 0.35s forwards;
|
|
639
639
|
}
|
|
640
|
-
@keyframes drawerexitfadein-
|
|
640
|
+
@keyframes drawerexitfadein-cd5e89a0 {
|
|
641
641
|
from {
|
|
642
642
|
opacity: 0;
|
|
643
643
|
}
|
|
@@ -645,10 +645,10 @@ to {
|
|
|
645
645
|
opacity: 1;
|
|
646
646
|
}
|
|
647
647
|
}
|
|
648
|
-
.scalar-api-client-height[data-v-
|
|
648
|
+
.scalar-api-client-height[data-v-cd5e89a0] {
|
|
649
649
|
height: 100%;
|
|
650
650
|
}
|
|
651
|
-
.scalar-api-client-height .sidebar[data-v-
|
|
651
|
+
.scalar-api-client-height .sidebar[data-v-cd5e89a0] {
|
|
652
652
|
flex: 1 1 0%;
|
|
653
653
|
flex-grow: 1;
|
|
654
654
|
flex-shrink: 1;
|
|
@@ -1005,30 +1005,30 @@ to {
|
|
|
1005
1005
|
margin-top: -7px;
|
|
1006
1006
|
}
|
|
1007
1007
|
|
|
1008
|
-
.heading[data-v-
|
|
1008
|
+
.heading[data-v-5de9da25] {
|
|
1009
1009
|
margin-top: 0px !important;
|
|
1010
1010
|
}
|
|
1011
|
-
.loading[data-v-
|
|
1011
|
+
.loading[data-v-5de9da25] {
|
|
1012
1012
|
background: var(--theme-background-2);
|
|
1013
|
-
animation: loading-skeleton-
|
|
1013
|
+
animation: loading-skeleton-5de9da25 2s infinite alternate;
|
|
1014
1014
|
border-radius: var(--theme-radius-lg);
|
|
1015
1015
|
}
|
|
1016
|
-
.heading.loading[data-v-
|
|
1016
|
+
.heading.loading[data-v-5de9da25] {
|
|
1017
1017
|
width: 80%;
|
|
1018
1018
|
}
|
|
1019
|
-
.tag-description .loading[data-v-
|
|
1019
|
+
.tag-description .loading[data-v-5de9da25] {
|
|
1020
1020
|
height: 20px;
|
|
1021
1021
|
margin-bottom: 4px;
|
|
1022
1022
|
width: 100%;
|
|
1023
1023
|
display: inline-block;
|
|
1024
1024
|
}
|
|
1025
|
-
.tag-description .loading[data-v-
|
|
1025
|
+
.tag-description .loading[data-v-5de9da25]:first-of-type {
|
|
1026
1026
|
margin-top: 12px;
|
|
1027
1027
|
}
|
|
1028
|
-
.tag-description .loading[data-v-
|
|
1028
|
+
.tag-description .loading[data-v-5de9da25]:last-of-type {
|
|
1029
1029
|
width: 40%;
|
|
1030
1030
|
}
|
|
1031
|
-
@keyframes loading-skeleton-
|
|
1031
|
+
@keyframes loading-skeleton-5de9da25 {
|
|
1032
1032
|
from {
|
|
1033
1033
|
background: var(--theme-background-2);
|
|
1034
1034
|
}
|
|
@@ -1339,7 +1339,7 @@ to {
|
|
|
1339
1339
|
}
|
|
1340
1340
|
}
|
|
1341
1341
|
|
|
1342
|
-
.render-loading[data-v-
|
|
1342
|
+
.render-loading[data-v-914a90eb] {
|
|
1343
1343
|
height: calc(
|
|
1344
1344
|
var(--scalar-api-reference-full-height) -
|
|
1345
1345
|
var(--scalar-api-reference-theme-header-height)
|
|
@@ -1348,7 +1348,7 @@ to {
|
|
|
1348
1348
|
align-items: center;
|
|
1349
1349
|
justify-content: center;
|
|
1350
1350
|
}
|
|
1351
|
-
.show-more[data-v-
|
|
1351
|
+
.show-more[data-v-914a90eb] {
|
|
1352
1352
|
background: var(--theme-background-1);
|
|
1353
1353
|
appearance: none;
|
|
1354
1354
|
border: none;
|
|
@@ -1366,191 +1366,192 @@ to {
|
|
|
1366
1366
|
margin-bottom: 48px;
|
|
1367
1367
|
position: relative;
|
|
1368
1368
|
}
|
|
1369
|
-
.show-more[data-v-
|
|
1369
|
+
.show-more[data-v-914a90eb]:hover {
|
|
1370
1370
|
color: var(--theme-color-2);
|
|
1371
1371
|
cursor: pointer;
|
|
1372
1372
|
}
|
|
1373
|
-
.show-more-icon[data-v-
|
|
1373
|
+
.show-more-icon[data-v-914a90eb] {
|
|
1374
1374
|
width: 14px;
|
|
1375
1375
|
height: 14px;
|
|
1376
1376
|
margin-left: 3px;
|
|
1377
1377
|
}
|
|
1378
|
-
.show-more[data-v-
|
|
1378
|
+
.show-more[data-v-914a90eb]:active {
|
|
1379
1379
|
box-shadow: 0 0 0 1px var(--theme-border-color);
|
|
1380
1380
|
}
|
|
1381
1381
|
@media (max-width: 1165px) {
|
|
1382
|
-
.show-more[data-v-
|
|
1382
|
+
.show-more[data-v-914a90eb] {
|
|
1383
1383
|
margin-top: -24px;
|
|
1384
1384
|
margin-bottom: 24px;
|
|
1385
1385
|
}
|
|
1386
1386
|
}
|
|
1387
1387
|
/* fonts */
|
|
1388
1388
|
:root {
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
|
|
1389
|
+
--app-header-height: 50px;
|
|
1390
|
+
--theme-border-width: 1px;
|
|
1391
|
+
--theme-radius: 3px;
|
|
1392
|
+
--theme-radius-lg: 6px;
|
|
1393
|
+
--theme-radius-xl: 8px;
|
|
1394
|
+
|
|
1395
|
+
--theme-header-height: 50px;
|
|
1396
|
+
--theme-sidebar-width: 250px;
|
|
1397
|
+
--theme-toc-width: 250px;
|
|
1398
|
+
|
|
1399
|
+
/* TYPOGRAPHY ------------------------------------ */
|
|
1400
|
+
--theme-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
|
|
1401
|
+
Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
|
|
1402
|
+
--theme-font-code: 'JetBrains Mono';
|
|
1403
|
+
|
|
1404
|
+
/** Font sizes for rendered text content (editor styles or static content) */
|
|
1405
|
+
--theme-heading-1: 40px; /* Editor Page heading */
|
|
1406
|
+
--theme-page-description: 24px;
|
|
1407
|
+
--theme-heading-2: 24px; /* Editor section headings */
|
|
1408
|
+
--theme-heading-3: 20px;
|
|
1409
|
+
--theme-heading-4: 16px;
|
|
1410
|
+
--theme-heading-5: 16px;
|
|
1411
|
+
--theme-heading-6: 16px;
|
|
1412
|
+
|
|
1413
|
+
--theme-paragraph: 16px;
|
|
1414
|
+
--theme-small: 14px;
|
|
1415
|
+
--theme-mini: 13px;
|
|
1416
|
+
--theme-micro: 12px;
|
|
1417
|
+
--theme-bold: 600;
|
|
1418
|
+
--theme-semibold: 500;
|
|
1419
|
+
--theme-regular: 400;
|
|
1420
|
+
|
|
1421
|
+
/* Font sizes for interactive applications (not rendered text content) */
|
|
1422
|
+
--theme-font-size-1: 24px;
|
|
1423
|
+
--theme-font-size-2: 16px;
|
|
1424
|
+
--theme-font-size-3: 14px;
|
|
1425
|
+
--theme-font-size-4: 13px;
|
|
1426
|
+
--theme-font-size-5: 12px;
|
|
1427
|
+
|
|
1428
|
+
--theme-line-height-1: 32px;
|
|
1429
|
+
--theme-line-height-2: 24px;
|
|
1430
|
+
--theme-line-height-3: 20px;
|
|
1431
|
+
--theme-line-height-4: 18px;
|
|
1432
|
+
--theme-line-height-5: 16px;
|
|
1433
|
+
|
|
1434
|
+
--theme-font-medium: 500;
|
|
1435
|
+
--theme-font-bold: 700;
|
|
1436
|
+
|
|
1437
|
+
/* let's clean these up please :) */
|
|
1438
|
+
--scalar-api-reference-theme-header-height: 0;
|
|
1439
|
+
--scalar-api-reference-theme-sidebar-width: 250px;
|
|
1440
|
+
--scalar-api-reference-theme-toc-width: 250px;
|
|
1441
|
+
--scalar-api-reference-app-header-height: 100px;
|
|
1442
|
+
--scalar-api-reference-col-width-1: 250px;
|
|
1443
|
+
--scalar-api-reference-col-width-2: calc(50% - 150px);
|
|
1444
|
+
--scalar-api-reference-col-width-3: calc(50% - 150px);
|
|
1445
|
+
--scalar-api-reference-document-height: 100vh;
|
|
1446
|
+
--scalar-api-reference-full-height: 100%;
|
|
1447
1447
|
}
|
|
1448
1448
|
@media (max-width: 460px) {
|
|
1449
1449
|
:root {
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
|
|
1450
|
+
--theme-font-size-1: 22px;
|
|
1451
|
+
--theme-font-size-2: 14px;
|
|
1452
|
+
--theme-font-size-3: 12px;
|
|
1453
1453
|
}
|
|
1454
1454
|
}
|
|
1455
1455
|
@media (max-width: 720px) {
|
|
1456
1456
|
:root {
|
|
1457
|
-
|
|
1458
|
-
|
|
1457
|
+
--theme-heading-1: 24px;
|
|
1458
|
+
--theme-page-description: 20px;
|
|
1459
1459
|
}
|
|
1460
1460
|
}
|
|
1461
1461
|
.light-mode {
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
1462
|
+
color-scheme: light;
|
|
1463
|
+
--theme-color-1: #2a2f45;
|
|
1464
|
+
--theme-color-2: #757575;
|
|
1465
|
+
--theme-color-3: #8e8e8e;
|
|
1466
|
+
--theme-color-disabled: #b4b1b1;
|
|
1467
|
+
--theme-color-ghost: #a7a7a7;
|
|
1468
|
+
--theme-color-accent: #0099ff;
|
|
1469
|
+
--theme-background-1: #fff;
|
|
1470
|
+
--theme-background-2: #f6f6f6;
|
|
1471
|
+
--theme-background-3: #e7e7e7;
|
|
1472
|
+
--theme-background-4: rgba(0, 0, 0, 0.06);
|
|
1473
|
+
--theme-background-accent: #8ab4f81f;
|
|
1474
|
+
|
|
1475
|
+
--theme-border-color: rgba(0, 0, 0, 0.1);
|
|
1476
|
+
--theme-scrollbar-color: rgba(0, 0, 0, 0.18);
|
|
1477
|
+
--theme-scrollbar-color-active: rgba(0, 0, 0, 0.36);
|
|
1478
|
+
--theme-lifted-brightness: 1;
|
|
1479
|
+
--theme-backdrop-brightness: 1;
|
|
1480
|
+
|
|
1481
|
+
--theme-shadow-1: 0 1px 3px 0 rgba(0, 0, 0, 0.11);
|
|
1482
|
+
--theme-shadow-2: rgba(0, 0, 0, 0.08) 0px 13px 20px 0px,
|
|
1483
|
+
rgba(0, 0, 0, 0.08) 0px 3px 8px 0px, #eeeeed 0px 0 0 1px;
|
|
1484
|
+
|
|
1485
|
+
--theme-button-1: rgb(49 53 56);
|
|
1486
|
+
--theme-button-1-color: #fff;
|
|
1487
|
+
--theme-button-1-hover: rgb(28 31 33);
|
|
1488
|
+
|
|
1489
|
+
--theme-error-color: #ae262f;
|
|
1490
|
+
--theme-warning-color: #d89c6a;
|
|
1491
|
+
--theme-success-color: #26ae42;
|
|
1492
|
+
|
|
1493
|
+
/* REST API Client Colors */
|
|
1494
|
+
--theme-post-color: #00a67d;
|
|
1495
|
+
--theme-post-background: #00a67d1a;
|
|
1496
|
+
--theme-delete-color: #ef0006;
|
|
1497
|
+
--theme-delete-background: #ef00061a;
|
|
1498
|
+
--theme-patch-color: #b2b062;
|
|
1499
|
+
--theme-patch-background: #ffe6001a;
|
|
1500
|
+
--theme-get-color: #0082d0;
|
|
1501
|
+
--theme-get-background: #0082d01a;
|
|
1502
|
+
--theme-put-color: #f3830e;
|
|
1503
|
+
--theme-put-background: #f3830e1a;
|
|
1504
|
+
|
|
1505
|
+
/* Misc Scalar Branding */
|
|
1506
|
+
--scalar-brand: #faf6e9;
|
|
1507
1507
|
}
|
|
1508
1508
|
.dark-mode {
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
|
|
1509
|
+
color-scheme: dark;
|
|
1510
|
+
--theme-color-1: rgba(255, 255, 255, 0.9);
|
|
1511
|
+
--theme-color-2: rgba(255, 255, 255, 0.62);
|
|
1512
|
+
--theme-color-3: rgba(255, 255, 255, 0.44);
|
|
1513
|
+
--theme-color-disabled: rgba(255, 255, 255, 0.34);
|
|
1514
|
+
--theme-color-ghost: rgba(255, 255, 255, 0.26);
|
|
1515
|
+
--theme-color-accent: #8ab4f8;
|
|
1516
|
+
--theme-background-1: #1a1a1a;
|
|
1517
|
+
--theme-background-2: #252525;
|
|
1518
|
+
--theme-background-3: #323232;
|
|
1519
|
+
--theme-background-4: rgba(255, 255, 255, 0.06);
|
|
1520
|
+
--theme-background-accent: #8ab4f81f;
|
|
1521
|
+
|
|
1522
|
+
--theme-border-color: rgba(255, 255, 255, 0.1);
|
|
1523
|
+
--theme-scrollbar-color: rgba(255, 255, 255, 0.24);
|
|
1524
|
+
--theme-scrollbar-color-active: rgba(255, 255, 255, 0.48);
|
|
1525
|
+
--theme-lifted-brightness: 1.45;
|
|
1526
|
+
--theme-backdrop-brightness: 0.5;
|
|
1527
|
+
|
|
1528
|
+
--theme-shadow-1: 0 1px 3px 0 rgb(0, 0, 0, 0.1);
|
|
1529
|
+
--theme-shadow-2: rgba(15, 15, 15, 0.2) 0px 3px 6px,
|
|
1530
|
+
rgba(15, 15, 15, 0.4) 0px 9px 24px, 0 0 0 1px rgba(255, 255, 255, 0.1);
|
|
1531
|
+
|
|
1532
|
+
--theme-button-1: #f6f6f6;
|
|
1533
|
+
--theme-button-1-color: #000;
|
|
1534
|
+
--theme-button-1-hover: #e7e7e7;
|
|
1535
|
+
|
|
1536
|
+
--theme-error-color: #ff0011;
|
|
1537
|
+
--theme-success-color: #26ae42;
|
|
1538
|
+
|
|
1539
|
+
/* REST API Client Colors */
|
|
1540
|
+
--theme-post-color: #7ee787;
|
|
1541
|
+
--theme-post-background: #7ee78714;
|
|
1542
|
+
--theme-delete-color: #e77e7e;
|
|
1543
|
+
--theme-delete-background: #e77e7e24;
|
|
1544
|
+
--theme-patch-color: #b2b062;
|
|
1545
|
+
--theme-patch-background: #b2b06229;
|
|
1546
|
+
--theme-get-color: #79c0ff;
|
|
1547
|
+
--theme-get-background: #79c0ff21;
|
|
1548
|
+
--theme-put-color: #e9950c;
|
|
1549
|
+
--theme-put-background: #e9950c21;
|
|
1550
|
+
|
|
1551
|
+
/* Misc Scalar Branding */
|
|
1552
|
+
--scalar-brand: #8b7256;
|
|
1553
1553
|
}
|
|
1554
|
+
|
|
1554
1555
|
/** Utilities, how do we deal with them? */
|
|
1555
1556
|
.flex {
|
|
1556
1557
|
display: flex;
|
|
@@ -1579,8 +1580,7 @@ to {
|
|
|
1579
1580
|
background: var(--theme-background-2);
|
|
1580
1581
|
border-bottom: 1px solid var(--theme-border-color);
|
|
1581
1582
|
padding: 0 7px 0 12px;
|
|
1582
|
-
border-radius: var(--theme-radius)
|
|
1583
|
-
var(--theme-radius) 0 0;
|
|
1583
|
+
border-radius: var(--theme-radius) var(--theme-radius) 0 0;
|
|
1584
1584
|
}
|
|
1585
1585
|
.codemenu {
|
|
1586
1586
|
display: flex;
|
|
@@ -1757,7 +1757,6 @@ to {
|
|
|
1757
1757
|
text-decoration: underline;
|
|
1758
1758
|
}
|
|
1759
1759
|
|
|
1760
|
-
|
|
1761
1760
|
/* ----------------------------------------------------- */
|
|
1762
1761
|
/* Responsive styles for narrow reference container (900px) */
|
|
1763
1762
|
.references-narrow .reference {
|
|
@@ -1852,6 +1851,7 @@ to {
|
|
|
1852
1851
|
grid-area: content;
|
|
1853
1852
|
min-width: 0;
|
|
1854
1853
|
background: var(--theme-background-1);
|
|
1854
|
+
display: flex;
|
|
1855
1855
|
}
|
|
1856
1856
|
|
|
1857
1857
|
/* Measures the visible viewport of the editor */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@scalar/api-reference",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.27",
|
|
4
4
|
"author": "Scalar",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"engines": {
|
|
@@ -42,10 +42,10 @@
|
|
|
42
42
|
"typographic-base": "1.0.4",
|
|
43
43
|
"unified": "10.1.2",
|
|
44
44
|
"xmldom": "0.6.0",
|
|
45
|
-
"@scalar/api-client": "0.1.
|
|
46
|
-
"@scalar/
|
|
47
|
-
"@scalar/
|
|
48
|
-
"@scalar/use-
|
|
45
|
+
"@scalar/api-client": "0.1.18",
|
|
46
|
+
"@scalar/swagger-editor": "0.1.13",
|
|
47
|
+
"@scalar/use-tooltip": "0.1.4",
|
|
48
|
+
"@scalar/use-clipboard": "0.1.4"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
51
|
"@vitejs/plugin-vue": "4.2.3",
|